|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.semanticweb.owl.impl.model.OWLConnectionImpl
OWL Connection The class gives access to a concrete implementation of the OWL API
| Nested Class Summary | |
protected static class |
OWLConnectionImpl.PhysicalURIResolver
The resolver for RDF physical URIs. |
| Field Summary | |
protected ChangeVisitor |
m_applyChangeVisitor
Visitor for change events. |
protected Map |
m_ontologiesByLogicalURI
The map of OWL ontologies indexed by the logical URI opened by this connection. |
protected Map |
m_ontologiesByPhysicalURI
The map of OWL ontologies indexed by the physical URI opened by this connection. |
protected OWLDataFactory |
m_owlDataFactory
Data Factory used to create entities |
protected Map |
m_parameters
Parameters of this connection |
protected static Map |
s_defaultParameters
Default parameters of this connection |
| Constructor Summary | |
OWLConnectionImpl()
Creates an instance of this class with default parameters. |
|
OWLConnectionImpl(Map parameters)
Creates an instance of this class using user defined parameters. |
|
OWLConnectionImpl(Map parameters,
Map ontologiesByLogicalURI,
Map ontologiesByPhysicalURI)
Creates an instance of this class. |
|
| Method Summary | |
void |
applyChanges(List changes)
Deprecated. |
void |
changeOntologyLogicalURI(OWLOntology o,
URI uri)
|
void |
close()
Closes all opened ontologies. |
OWLOntology |
createOntology(URI physicalURI,
URI logicalURI)
Creates an OWLOntology with a given physical and logical URI. |
OWLOntology |
createOWLOntology(URI physicalURI,
URI logicalURI)
Deprecated. Use createOntology instead. |
Set |
getAllLogicalURIs()
Returns the set of logical URIs of all OI-models available at the node represented by this KAON connection. |
Set |
getAllOntologies()
Returns the set of OI-models available at the node represented by this KAON connection. |
ChangeVisitor |
getChangeVisitor(OWLOntology o)
Given an ontology, returns a change visitor that will enact changes over that ontology. |
OWLConnection |
getConnection()
Deprecated. |
OWLDataFactory |
getDataFactory()
|
OWLOntology |
getOntologyLogical(URI logicalURI)
Returns an OWLOntology with given logical URI. |
OWLOntology |
getOntologyPhysical(URI physicalURI)
|
Set |
getOpenOWLOntologies()
Returns the set of all open OWLOntology objects. |
Map |
getParameters()
Returns the parameters of this connection. |
boolean |
isOpen()
Returns true if this connection is open, i.e. atleast one ontology is open. |
OWLOntology |
loadOntologyPhysical(URI physicalURI)
Loads an OWLOntology with given physical URI (in fact an URL), somewhere on the web or in the file system. |
void |
notifyOntologyDeleted(OWLOntology onto)
Notifies the connection that the OWLOntology has been deleted. |
OWLOntology |
openOntologyLogical(URI logicalURI)
Deprecated. |
OWLOntology |
openOntologyPhysical(URI physicalURI)
Deprecated. Use getOntology instead. |
OWLOntology |
reloadOntologyPhysical(URI physicalURI)
Reloads an OWLOntology with given physical URI (in fact an URL), somewhere on the web or in the file system. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final Map s_defaultParameters
protected Map m_parameters
protected Map m_ontologiesByLogicalURI
protected Map m_ontologiesByPhysicalURI
protected OWLDataFactory m_owlDataFactory
protected ChangeVisitor m_applyChangeVisitor
| Constructor Detail |
public OWLConnectionImpl()
throws OWLException
OWLException - thrown if connection cannot be created
public OWLConnectionImpl(Map parameters)
throws OWLException
parameters - the map of parameters
OWLException - thrown if connection cannot be created
public OWLConnectionImpl(Map parameters,
Map ontologiesByLogicalURI,
Map ontologiesByPhysicalURI)
throws OWLException
parameters - the map of connection parametersontologiesByLogicalURI - the map of OWL Ontologies by logical URIontologiesByPhysicalURI - the map of OWL Ontologies by physical URI
OWLException - thrown if connection cannot be created| Method Detail |
public OWLDataFactory getDataFactory()
getDataFactory in interface OWLConnectionpublic Map getParameters()
getParameters in interface OWLConnectionpublic void close()
close in interface OWLConnectionpublic boolean isOpen()
OWLConnectiontrue if this connection is open, i.e. atleast one ontology is open.
isOpen in interface OWLConnectiontrue if this connection has one opened ontology.
public OWLConnection getConnection()
throws OWLException
OWLException - thrown if connection cannot be created
public OWLOntology openOntologyPhysical(URI physicalURI)
throws OWLException
openOntologyPhysical in interface OWLConnectionphysicalURI - the physical URI of the OWLOntology
OWLException - thrown if OWLOntology cannot be opened
public OWLOntology openOntologyLogical(URI logicalURI)
throws OWLException
openOntologyLogical in interface OWLConnectionlogicalURI - the logical URI of the OWLOntology
OWLException - thrown if OWLOntology cannot be opened
public OWLOntology createOWLOntology(URI physicalURI,
URI logicalURI)
throws OWLException
createOWLOntology in interface OWLConnectionphysicalURI - the physical URI of the OWLOntologylogicalURI - the logical URI of the OWLOntology
OWLException - thrown if OWLOntology cannot be opened
public void notifyOntologyDeleted(OWLOntology onto)
throws OWLException
notifyOntologyDeleted in interface OWLConnectionOWLException - thrown if there is an errorpublic Set getOpenOWLOntologies()
getOpenOWLOntologies in interface OWLConnectionpublic Set getAllOntologies()
getAllOntologies in interface OWLConnectionpublic Set getAllLogicalURIs()
getAllLogicalURIs in interface OWLConnection
public void applyChanges(List changes)
throws OWLException
applyChanges in interface OWLConnectionchanges - list of changes to the models in the connection
OWLException - thrown if there is an error
public ChangeVisitor getChangeVisitor(OWLOntology o)
throws OWLException
getChangeVisitor in interface OWLConnectionOWLException
public void changeOntologyLogicalURI(OWLOntology o,
URI uri)
throws OWLException
OWLException
public OWLOntology createOntology(URI physicalURI,
URI logicalURI)
throws OWLException
OWLConnection
createOntology in interface OWLConnectionphysicalURI - the physical URI of the OWLOntologylogicalURI - the logical URI of the OWLOntology
OWLExceptionOWLConnection.createOntology(URI, URI)
public OWLOntology getOntologyLogical(URI logicalURI)
throws OWLException
OWLConnection
getOntologyLogical in interface OWLConnectionlogicalURI - the logical URI of the OWLOntology
OWLExceptionOWLConnection.getOntologyLogical(URI)
public OWLOntology getOntologyPhysical(URI physicalURI)
throws OWLException
getOntologyPhysical in interface OWLConnectionOWLExceptionOWLConnection.getOntologyPhysical(URI)
public OWLOntology loadOntologyPhysical(URI physicalURI)
throws OWLException
OWLConnection
loadOntologyPhysical in interface OWLConnectionphysicalURI - the physical URI of the OWLOntology
OWLExceptionOWLConnection.loadOntologyPhysical(URI)
public OWLOntology reloadOntologyPhysical(URI physicalURI)
throws OWLException
OWLConnection
reloadOntologyPhysical in interface OWLConnectionphysicalURI - the physical URI of the OWLOntology
OWLExceptionOWLConnection.reloadOntologyPhysical(URI)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||