|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.unima.alcomox.ontology.AlcomoOntology
public abstract class AlcomoOntology
This abstract class represents an ontology used in the alcomo system. It can be seen
Field Summary | |
---|---|
protected java.util.HashMap<java.lang.String,Entity> |
entities
|
protected ExtractionProblem |
extractionProblem
|
protected org.semanticweb.owlapi.model.OWLDataFactory |
factory
|
protected java.util.ArrayList<java.lang.String> |
indexedConceptEntityUris
|
protected java.util.ArrayList<java.lang.String> |
indexedPropertyEntityUris
|
protected AlcomoLogger |
log
|
protected org.semanticweb.owlapi.model.OWLOntologyManager |
manager
|
org.semanticweb.owlapi.model.OWLClass |
NOTHING
|
protected org.semanticweb.owlapi.model.OWLOntology |
ontology
|
protected org.semanticweb.owlapi.reasoner.OWLReasoner |
reasoner
|
org.semanticweb.owlapi.model.OWLClass |
THING
|
Constructor Summary | |
---|---|
AlcomoOntology()
|
|
AlcomoOntology(org.semanticweb.owlapi.model.OWLOntology owlOntology,
org.semanticweb.owlapi.model.OWLOntologyManager owlManager)
|
Method Summary | |
---|---|
void |
freeReasoner()
|
java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> |
getAxioms()
|
java.util.Set<org.semanticweb.owlapi.model.OWLClass> |
getClasses()
Returns alls classes in this ontology. |
ExtractionProblem |
getExtractionProblem()
|
java.util.Set<org.semanticweb.owlapi.model.OWLClass> |
getRealDirectSuperClassesOfClass(org.semanticweb.owlapi.model.OWLClass c)
Returns the set of all classes that direct are superclasses of the specified class The class itself is excluded. |
java.util.Set<org.semanticweb.owlapi.model.OWLClass> |
getSubClassesOfClass(org.semanticweb.owlapi.model.OWLClass c)
Returns the set of all classes that are subclasses of the specified class as well as the class itself. |
java.util.Set<org.semanticweb.owlapi.model.OWLClass> |
getUnsatisfiableClasses()
Returns all unsatisfiable classes in this ontology. |
void |
initReasoner()
|
void |
initReasonerWithoutClassification()
|
boolean |
isDisjointClassWithClass(org.semanticweb.owlapi.model.OWLClass c1,
org.semanticweb.owlapi.model.OWLClass c2)
Checks wether two classes are disjoint. |
boolean |
isSubClassOfClass(org.semanticweb.owlapi.model.OWLClass c1,
org.semanticweb.owlapi.model.OWLClass c2)
Checks wether first class is subclass of second class. |
boolean |
isUnsatisfiable(org.semanticweb.owlapi.model.OWLClass c)
Checks the unsatisfiability of a class. |
void |
setExtractionProblem(ExtractionProblem extractionProblem)
|
protected void |
setFactory()
|
java.lang.String |
toShortString()
Returns a short string representation of this ontology. |
java.lang.String |
toString()
Returns a string representation of this ontology. |
void |
write(java.lang.String filepath)
Writes the ontology into a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public org.semanticweb.owlapi.model.OWLClass THING
public org.semanticweb.owlapi.model.OWLClass NOTHING
protected ExtractionProblem extractionProblem
protected org.semanticweb.owlapi.model.OWLOntology ontology
protected org.semanticweb.owlapi.model.OWLOntologyManager manager
protected org.semanticweb.owlapi.model.OWLDataFactory factory
protected java.util.HashMap<java.lang.String,Entity> entities
protected java.util.ArrayList<java.lang.String> indexedConceptEntityUris
protected java.util.ArrayList<java.lang.String> indexedPropertyEntityUris
protected AlcomoLogger log
protected org.semanticweb.owlapi.reasoner.OWLReasoner reasoner
Constructor Detail |
---|
public AlcomoOntology(org.semanticweb.owlapi.model.OWLOntology owlOntology, org.semanticweb.owlapi.model.OWLOntologyManager owlManager) throws AlcomoException
AlcomoException
public AlcomoOntology()
Method Detail |
---|
protected void setFactory()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toShortString()
public java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> getAxioms()
public void initReasoner() throws OntologyException
OntologyException
public void initReasonerWithoutClassification() throws OntologyException
OntologyException
public void freeReasoner()
public ExtractionProblem getExtractionProblem()
public void setExtractionProblem(ExtractionProblem extractionProblem)
public boolean isSubClassOfClass(org.semanticweb.owlapi.model.OWLClass c1, org.semanticweb.owlapi.model.OWLClass c2)
c1
- First class.c2
- Second class.
public java.util.Set<org.semanticweb.owlapi.model.OWLClass> getSubClassesOfClass(org.semanticweb.owlapi.model.OWLClass c)
c
- A class.
public java.util.Set<org.semanticweb.owlapi.model.OWLClass> getRealDirectSuperClassesOfClass(org.semanticweb.owlapi.model.OWLClass c)
c
- A class.
public boolean isDisjointClassWithClass(org.semanticweb.owlapi.model.OWLClass c1, org.semanticweb.owlapi.model.OWLClass c2)
c1
- A class.c2
- Another class.
public java.util.Set<org.semanticweb.owlapi.model.OWLClass> getUnsatisfiableClasses()
public java.util.Set<org.semanticweb.owlapi.model.OWLClass> getClasses()
public boolean isUnsatisfiable(org.semanticweb.owlapi.model.OWLClass c)
c
- The class that has to be checked for unsatisfiability.
public void write(java.lang.String filepath) throws AlcomoException
filepath
- Destination path
OntologyException
- Thrwon if file could not be written.
AlcomoException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |