Class OntologyGenerator
java.lang.Object
de.uni_trier.wi2.procake.utils.ontology.OntologyGenerator
-
Constructor Summary
ConstructorDescriptionOntologyGenerator
(String ontologyPrefix) OntologyGenerator
(String ontologyPrefix, char spaceSubstitutionChar) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTaxonomiesFromModel
(Model model) void
addTaxonomy
(InstanceTaxonomyOrderPredicate taxonomy) void
addTotalOrder
(InstanceTotalOrderPredicate totalOrder) Creates a class in the ontology for each value of the given total order.void
addTotalOrdersFromModel
(Model model) Retrieves all total orders from the given model and for each order creates a class in the ontology for each of its values.org.apache.jena.ontology.OntModel
void
writeOntologyToOWLFile
(String fileName)
-
Constructor Details
-
OntologyGenerator
-
OntologyGenerator
-
-
Method Details
-
addTaxonomiesFromModel
-
addTaxonomy
-
addTotalOrdersFromModel
Retrieves all total orders from the given model and for each order creates a class in the ontology for each of its values. Does NOT model the order in the ontology!- Parameters:
model
-
-
addTotalOrder
Creates a class in the ontology for each value of the given total order. Name of the created class is the native value of the respective order value. Does NOT model the order in the ontology!- Parameters:
totalOrder
-
-
writeOntologyToOWLFile
-
getOntModel
public org.apache.jena.ontology.OntModel getOntModel()
-