|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfleischhacker.uni.thesis.utils.ontology.OntologyManager
public class OntologyManager
This class provides methods to generate ontologies. It is possible to generate ontologies from a given OWL file. Furthermore, the OntologyManager is able to write ontologies to files.
Constructor Summary | |
---|---|
OntologyManager()
|
Method Summary | |
---|---|
static Ontology |
createOntology(java.net.URI uri)
Creates an Ontology object and adds the OWLOntologyManager used to do this into the wrapper class. |
static Ontology |
loadOntology(java.lang.String filename)
Loads the given file as ontology. |
static Ontology |
loadOntology(java.net.URI uri)
Loads the file from the given physical URI as ontology. |
static void |
writeOntology(Ontology onto,
java.lang.String filename)
Writes the given ontology into a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OntologyManager()
Method Detail |
---|
public static Ontology loadOntology(java.lang.String filename) throws org.semanticweb.owl.model.OWLOntologyCreationException
filename
- absolute URI of ontology as string
org.semanticweb.owl.model.OWLOntologyCreationException
public static Ontology loadOntology(java.net.URI uri) throws org.semanticweb.owl.model.OWLOntologyCreationException
uri
- physical URI of ontology
org.semanticweb.owl.model.OWLOntologyCreationException
public static void writeOntology(Ontology onto, java.lang.String filename) throws org.semanticweb.owl.model.UnknownOWLOntologyException, org.semanticweb.owl.model.OWLOntologyStorageException
onto
- ontology to write to filefilename
- filname to use
org.semanticweb.owl.model.UnknownOWLOntologyException
org.semanticweb.owl.model.OWLOntologyStorageException
public static Ontology createOntology(java.net.URI uri) throws org.semanticweb.owl.model.OWLOntologyCreationException
uri
- URI to identify the ontology
org.semanticweb.owl.model.OWLOntologyCreationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |