|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OWLKnowledgeBase
| Method Summary | |
|---|---|
OWLOntology |
createOntology()
Create an empty ontology which is automatically loaded to the KB. |
OWLOntology |
createOntology(boolean load)
|
OWLOntology |
createOntology(java.net.URI uri)
Create an empty ontology with the given logical URI (xml:base). |
OWLOntology |
createOntology(java.net.URI uri,
java.net.URI fileURI)
Create an empty ontology with the given logical URI (xml:base) and physical URI. |
OWLOntology |
createOntology(java.net.URI uri,
java.net.URI fileURI,
java.lang.Object implementation)
Create an empty ontology with the given logical URI (xml:base), physical URI and an implementation specific data (Jena Model or OWL-API OWLOntology). |
OWLSOntology |
createOWLSOntology()
Deprecated. Use createOntology() instead |
OWLSOntology |
createOWLSOntology(java.net.URI uri)
Deprecated. Use createOntology(URI) instead |
boolean |
getAutoConsistency()
Returns true if the KB checks consistency automatically after each ontology is loaded and rejects to load the ontology if it causes inconsistency. |
boolean |
getAutoTranslate()
|
OWLOntology |
getBaseOntology()
Return the base ontology of this KB. |
java.util.Set |
getOntologies()
Return the set of loaded ontologies including the imported ones. |
java.util.Set |
getOntologies(boolean all)
Return the set of ontologies loaded to this KB with the optino to include/exclude imported ones. |
OWLOntology |
getOntology(java.net.URI uri)
Return the loaded ontology associated with this URI. |
QNameProvider |
getQNames()
|
OWLReader |
getReader()
Return the reader assocaited with this KB. |
OWLKnowledgeBase |
getTranslationSource()
|
OWLOntology |
load(OWLOntology ontology)
Load the ontology to the KB. |
OWLOntology |
load(OWLOntology ontology,
boolean withImports)
Load the ontology to the KB. |
OWLOntology |
loadOntology(OWLOntology ontology)
Deprecated. Please use load(OWLOntology) instead |
OWLOntology |
read(java.io.InputStream in,
java.net.URI baseURI)
Read the ontology using the given InputStream and the base URI, load it to this KB and return a reference to the ontology object created. |
OWLOntology |
read(java.io.Reader in,
java.net.URI baseURI)
Read the ontology using the given Reader and the base URI, load it to this KB and return a reference to the ontology object created. |
OWLOntology |
read(java.lang.String uri)
Read the ontology from the given URI, load it to this KB and return a reference to the ontology object created. |
OWLOntology |
read(java.net.URI uri)
Read the ontology from the given URI, load it to this KB and return a reference to the ontology object created. |
java.util.List |
readAllServices(java.io.InputStream in,
java.net.URI baseURI)
|
java.util.List |
readAllServices(java.io.Reader in,
java.net.URI baseURI)
|
java.util.List |
readAllServices(java.lang.String uri)
|
java.util.List |
readAllServices(java.net.URI uri)
|
Service |
readService(java.io.InputStream in,
java.net.URI baseURI)
|
Service |
readService(java.io.Reader in,
java.net.URI baseURI)
|
Service |
readService(java.lang.String uri)
|
Service |
readService(java.net.URI uri)
|
void |
setAutoConsistency(boolean auto)
Set/clear the behavior to check consistency automatically after each ontology is loaded. |
void |
setAutoTranslate(boolean auto)
|
void |
setReader(OWLReader reader)
Set the reader assocaited with this KB. |
void |
unload(OWLOntology ontology)
Unload the ontology from the KB. |
void |
unload(java.net.URI uri)
Unload the ontology with the given URI from the KB. |
| Method Detail |
|---|
java.util.Set getOntologies()
java.util.Set getOntologies(boolean all)
ont is considered to be imported if there
was no explicit function call to load the ontology, i.e load(ont) or read(ont.getURI(),
but ont was imported by one of the loaded ontologies.
all - If true return all onotlogies, otherwise return only the explcicitly loaded
ones
OWLOntology getOntology(java.net.URI uri)
uri - URI of the ontology
OWLOntology getBaseOntology()
getBaseOntology in interface OWLModelOWLOntology createOntology()
OWLOntology createOntology(boolean load)
OWLOntology createOntology(java.net.URI uri)
uri -
OWLOntology createOntology(java.net.URI uri,
java.net.URI fileURI)
uri - Logical URI of the onotlogyfileURI - Physical URI of the onotlogy
OWLOntology createOntology(java.net.URI uri,
java.net.URI fileURI,
java.lang.Object implementation)
uri - fileURI - implementation -
OWLOntology loadOntology(OWLOntology ontology)
load(OWLOntology) instead
OWLOntology load(OWLOntology ontology)
ontology -
OWLOntology load(OWLOntology ontology,
boolean withImports)
ontology - withImports -
void unload(OWLOntology ontology)
ontology - void unload(java.net.URI uri)
uri - OWLReader getReader()
void setReader(OWLReader reader)
reader -
OWLOntology read(java.lang.String uri)
throws java.net.URISyntaxException,
java.io.FileNotFoundException
This function is equivalent to kb.read(new URI(uri)). For loading local files use kb.read(file.toURI()) instead. If the input string is known to be a URI the function call kb.read(URI.create(uri)) can be used to avoid URISyntaxException.
uri -
java.net.URISyntaxException - When the given string is not a well-formed URI
java.io.FileNotFoundException
OWLOntology read(java.net.URI uri)
throws java.io.FileNotFoundException
uri -
java.io.FileNotFoundException
OWLOntology read(java.io.Reader in,
java.net.URI baseURI)
in - baseURI -
OWLOntology read(java.io.InputStream in,
java.net.URI baseURI)
in - baseURI -
QNameProvider getQNames()
boolean getAutoConsistency()
void setAutoConsistency(boolean auto)
boolean getAutoTranslate()
void setAutoTranslate(boolean auto)
OWLKnowledgeBase getTranslationSource()
OWLSOntology createOWLSOntology()
OWLSOntology createOWLSOntology(java.net.URI uri)
Service readService(java.lang.String uri)
throws java.net.URISyntaxException,
java.io.FileNotFoundException
java.net.URISyntaxException
java.io.FileNotFoundException
Service readService(java.net.URI uri)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
Service readService(java.io.Reader in,
java.net.URI baseURI)
Service readService(java.io.InputStream in,
java.net.URI baseURI)
java.util.List readAllServices(java.lang.String uri)
throws java.net.URISyntaxException,
java.io.FileNotFoundException
java.net.URISyntaxException
java.io.FileNotFoundException
java.util.List readAllServices(java.net.URI uri)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
java.util.List readAllServices(java.io.Reader in,
java.net.URI baseURI)
java.util.List readAllServices(java.io.InputStream in,
java.net.URI baseURI)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||