|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KAON2Connection
The connection to the KAON2. One connection encapsulates several ontologies that include each other.
| Field Summary | |
|---|---|
static java.lang.String |
LOAD_FROM_INPUT_STREAM
This property can be used in the map of parameters to the openOntology() call to specify that the contents of the ontology should be loaded from a stream. |
static java.lang.String |
LOAD_FROM_READER
This property can be used in the map of parameters to the openOntology() call to specify that the contents of the ontology should be loaded from a read. |
static java.lang.String |
USE_PROXY
This property can be used in the map of parameters to the openOntology() call to specify that the ontology should be accessed through a proxy. |
static java.lang.String |
USE_SIMPLIFIED_RDF_PARSING
This property can be set to Boolean.TRUE in the map of parameters to the openOntology() call to specify that the simplified, but incomplete, algorithms should be used when reading RDF files. |
| Method Summary | |
|---|---|
java.lang.Object |
accept(KAON2Visitor visitor)
Accepts a visitor for this object. |
void |
cancelPendingOpen()
Cancels the open operation that is pending on this connection. |
void |
close()
Closes this connection. |
void |
closeOntologies(java.util.Set<Ontology> ontologies)
Closes the ontologies in the specified set. |
Ontology |
createOntology(java.lang.String ontologyURI,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Creates an ontology with given physical URI. |
java.util.Set<Ontology> |
getOntologies()
Returns the set of ontologies open by the connection. |
Ontology |
getOntology(java.lang.String ontologyURI)
Returns an ontology with a given ontology URI, provided that it was opened or created before. |
OntologyResolver |
getOntologyResovler()
Returns the ontology resolver used by this connection. |
java.util.Set<java.lang.String> |
getOntologyURIs()
Returns the set of logical URIs of all ontologies open by the connection. |
boolean |
isOpen()
Returns true if this connection is open. |
Ontology |
openOntology(java.lang.String ontologyURI,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Opens an ontology with given ontology URI. |
void |
setOntologyResolver(OntologyResolver ontologyResolver)
Registers the ontology resolver into this connection. |
| Field Detail |
|---|
static final java.lang.String LOAD_FROM_INPUT_STREAM
static final java.lang.String LOAD_FROM_READER
static final java.lang.String USE_PROXY
static final java.lang.String USE_SIMPLIFIED_RDF_PARSING
| Method Detail |
|---|
java.lang.Object accept(KAON2Visitor visitor)
visitor - the visitor for this object
null)void setOntologyResolver(OntologyResolver ontologyResolver)
ontologyResolver - the ontology resolverOntologyResolver getOntologyResovler()
void close()
throws KAON2Exception
KAON2Exception - thrown if there is an error
boolean isOpen()
throws KAON2Exception
true if this connection is open.
true if the connection is open
KAON2Exception - thrown if there is an error
Ontology getOntology(java.lang.String ontologyURI)
throws KAON2Exception
ontologyURI - the ontology URI of the ontology
null if the onotlogy was not opened or created
KAON2Exception - thrown if there is an error
Ontology openOntology(java.lang.String ontologyURI,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws KAON2Exception,
java.lang.InterruptedException
ontologyURI - the ontology URI of the ontologyparameters - the parameters for the ontology
KAON2Exception - thrown if there is an error
java.lang.InterruptedException - thrown if the open operation is interrupted
Ontology createOntology(java.lang.String ontologyURI,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws KAON2Exception
ontologyURI - the ontology URI of the ontologyparameters - the parameters for the ontology
KAON2Exception - thrown if there is an error
void closeOntologies(java.util.Set<Ontology> ontologies)
throws KAON2Exception
ontologies - the set of ontologies
KAON2Exception - thrown if there is an error
java.util.Set<Ontology> getOntologies()
throws KAON2Exception
KAON2Exception - thrown if there is an error
java.util.Set<java.lang.String> getOntologyURIs()
throws KAON2Exception
KAON2Exception - thrown if there is an error
void cancelPendingOpen()
throws KAON2Exception
KAON2Exception - thrown if there is an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||