public class OWLGraphWrapperBasic extends Object
OWLOntology
objects as one graph.
Provide methods to add, remove, or merge support ontologies.OWLGraphWrapper
Modifier and Type | Field and Description |
---|---|
protected org.semanticweb.owlapi.model.OWLOntology |
sourceOntology |
protected Set<org.semanticweb.owlapi.model.OWLOntology> |
supportOntologySet |
Modifier | Constructor and Description |
---|---|
protected |
OWLGraphWrapperBasic(org.semanticweb.owlapi.model.OWLOntology ontology) |
protected |
OWLGraphWrapperBasic(String iri) |
Modifier and Type | Method and Description |
---|---|
void |
addImport(org.semanticweb.owlapi.model.OWLOntology extOnt)
adds an imports declaration between the source ontology and extOnt
|
void |
addImportsFromSupportOntologies() |
void |
addSupportOntologiesFromImportsClosure()
Each ontology in the import closure of the source ontology is added to
the list of support ontologies
|
void |
addSupportOntologiesFromImportsClosure(boolean doForAllSupportOntologies)
Each ontology in the import closure of the source ontology
(and the import closure of each existing support ontology, if
doForAllSupportOntologies is true) is added to
the list of support ontologies
|
void |
addSupportOntology(org.semanticweb.owlapi.model.OWLOntology o) |
Set<org.semanticweb.owlapi.model.OWLOntology> |
getAllOntologies()
in general application code need not call this - it is mostly used internally
|
Set<org.semanticweb.owlapi.model.OWLClass> |
getAllOWLClasses()
Fetch all
OWLClass objects from all ontologies. |
Set<org.semanticweb.owlapi.model.OWLObject> |
getAllOWLObjects()
fetches all classes, individuals and object properties in all ontologies.
|
Set<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> |
getAllOWLSubClassOfAxiomsForSubClass(org.semanticweb.owlapi.model.OWLClass owlClass)
Fetch all
OWLSubClassOfAxiom axioms for a given subClass
(OWLClass ) from all ontologies. |
Set<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> |
getAllOWLSubClassOfAxiomsForSuperClass(org.semanticweb.owlapi.model.OWLClass owlClass)
Fetch all
OWLSubClassOfAxiom axioms for a given superClass
(OWLClass ) from all ontologies. |
org.semanticweb.owlapi.model.OWLDataFactory |
getDataFactory() |
org.semanticweb.owlapi.model.OWLOntologyManager |
getManager() |
org.semanticweb.owlapi.model.OWLOntology |
getSourceOntology()
Every OWLGraphWrapper objects wraps zero or one source ontologies.
|
Set<org.semanticweb.owlapi.model.OWLOntology> |
getSupportOntologySet()
all operations are over a set of ontologies - the source ontology plus
any number of supporting ontologies.
|
void |
mergeImportClosure()
note: may move to mooncat
|
void |
mergeImportClosure(boolean isRemovedImportsDeclarations) |
void |
mergeOntology(org.semanticweb.owlapi.model.OWLOntology extOnt)
Adds all axioms from extOnt into source ontology
|
void |
mergeOntology(org.semanticweb.owlapi.model.OWLOntology extOnt,
boolean isRemoveFromSupportList) |
void |
mergeSupportOntology(String ontologyIRI) |
void |
mergeSupportOntology(String ontologyIRI,
boolean isRemoveFromSupportList) |
void |
remakeOntologiesFromImportsClosure() |
void |
remakeOntologiesFromImportsClosure(org.semanticweb.owlapi.model.IRI ontologyIRI) |
void |
removeSupportOntology(org.semanticweb.owlapi.model.OWLOntology o) |
void |
setSourceOntology(org.semanticweb.owlapi.model.OWLOntology sourceOntology) |
void |
setSupportOntologySet(Set<org.semanticweb.owlapi.model.OWLOntology> supportOntologySet) |
protected org.semanticweb.owlapi.model.OWLOntology sourceOntology
protected Set<org.semanticweb.owlapi.model.OWLOntology> supportOntologySet
protected OWLGraphWrapperBasic(org.semanticweb.owlapi.model.OWLOntology ontology)
protected OWLGraphWrapperBasic(String iri) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void addImport(org.semanticweb.owlapi.model.OWLOntology extOnt)
extOnt
- public void mergeOntology(org.semanticweb.owlapi.model.OWLOntology extOnt) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
extOnt
- org.semanticweb.owlapi.model.OWLOntologyCreationException
public void mergeOntology(org.semanticweb.owlapi.model.OWLOntology extOnt, boolean isRemoveFromSupportList) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void mergeSupportOntology(String ontologyIRI, boolean isRemoveFromSupportList) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void mergeSupportOntology(String ontologyIRI) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public org.semanticweb.owlapi.model.OWLOntology getSourceOntology()
public void setSourceOntology(org.semanticweb.owlapi.model.OWLOntology sourceOntology)
public Set<org.semanticweb.owlapi.model.OWLOntology> getSupportOntologySet()
public void setSupportOntologySet(Set<org.semanticweb.owlapi.model.OWLOntology> supportOntologySet)
public void addSupportOntology(org.semanticweb.owlapi.model.OWLOntology o)
public void removeSupportOntology(org.semanticweb.owlapi.model.OWLOntology o)
public void addSupportOntologiesFromImportsClosure()
public void addSupportOntologiesFromImportsClosure(boolean doForAllSupportOntologies)
doForAllSupportOntologies
- public void addImportsFromSupportOntologies()
public void remakeOntologiesFromImportsClosure() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void remakeOntologiesFromImportsClosure(org.semanticweb.owlapi.model.IRI ontologyIRI) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void mergeImportClosure() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public void mergeImportClosure(boolean isRemovedImportsDeclarations) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public Set<org.semanticweb.owlapi.model.OWLOntology> getAllOntologies()
public org.semanticweb.owlapi.model.OWLDataFactory getDataFactory()
public org.semanticweb.owlapi.model.OWLOntologyManager getManager()
public Set<org.semanticweb.owlapi.model.OWLObject> getAllOWLObjects()
public Set<org.semanticweb.owlapi.model.OWLClass> getAllOWLClasses()
OWLClass
objects from all ontologies.
This set is a copy. Changes are not reflected in the ontologies.OWLClass
public Set<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> getAllOWLSubClassOfAxiomsForSubClass(org.semanticweb.owlapi.model.OWLClass owlClass)
OWLSubClassOfAxiom
axioms for a given subClass
(OWLClass
) from all ontologies. This set is a copy. Changes are
not reflected in the ontologies.owlClass
- OWLSubClassOfAxiom
public Set<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> getAllOWLSubClassOfAxiomsForSuperClass(org.semanticweb.owlapi.model.OWLClass owlClass)
OWLSubClassOfAxiom
axioms for a given superClass
(OWLClass
) from all ontologies. This set is a copy. Changes are
not reflected in the ontologies.owlClass
- OWLSubClassOfAxiom
Copyright © 2010–2015. All rights reserved.