utility
Class Ontology
java.lang.Object
utility.Ontology
public class Ontology
- extends java.lang.Object
- Author:
- Dominique Ritze
The class Ontology contains the classes, properties and some ontology characteristics like the filepath.
Constructor Summary |
Ontology(java.lang.String filepath)
Create an ontology out of the filepath and build all important structures (like set of classes or properties). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ontology
public Ontology(java.lang.String filepath)
throws ComplexMappingException
- Create an ontology out of the filepath and build all important structures (like set of classes or properties).
- Parameters:
filepath
-
- Throws:
ComplexMappingException
getDelimiter
public static boolean[] getDelimiter(org.semanticweb.owl.model.OWLOntology ontology)
- Compute the delimiter which occur in the ontology.
- Parameters:
ontology
-
- Returns:
- Array with the real delimiter, first entry: hyphen, second: blank, third: underscore. The entry is true if the
character should be a real delimiter.
buildOntology
public static org.semanticweb.owl.model.OWLOntology buildOntology(java.lang.String filepath)
throws ComplexMappingException
- Build an OWLOntology out of a filepath.
- Parameters:
filepath
-
- Returns:
-
- Throws:
ComplexMappingException
getDelimiter
public boolean[] getDelimiter()
getClasses
public java.util.Set<org.semanticweb.owl.model.OWLClass> getClasses()
getObjectProperties
public java.util.Set<org.semanticweb.owl.model.OWLObjectProperty> getObjectProperties()
getDatatypeProperties
public java.util.Set<org.semanticweb.owl.model.OWLDataProperty> getDatatypeProperties()
getOntology
public org.semanticweb.owl.model.OWLOntology getOntology()
getFilepath
public java.net.URI getFilepath()
getTermClasses
public java.util.HashMap<org.semanticweb.owl.model.OWLClass,Term> getTermClasses()
getTermObjectProperties
public java.util.HashMap<org.semanticweb.owl.model.OWLObjectProperty,Term> getTermObjectProperties()
getTermDatatypeProperties
public java.util.HashMap<org.semanticweb.owl.model.OWLDataProperty,Term> getTermDatatypeProperties()