Class OntologyGenerator
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.ontology.OntologyGenerator
-
public class OntologyGenerator extends Object
-
-
Constructor Summary
Constructors Constructor Description OntologyGenerator(String ontologyPrefix)OntologyGenerator(String ontologyPrefix, char spaceSubstitutionChar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTaxonomiesFromModel(Model model)voidaddTaxonomy(InstanceTaxonomyOrderPredicate taxonomy)voidaddTotalOrder(InstanceTotalOrderPredicate totalOrder)Creates a class in the ontology for each value of the given total order.voidaddTotalOrdersFromModel(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.OntModelgetOntModel()voidwriteOntologyToOWLFile(String fileName)
-
-
-
Method Detail
-
addTaxonomiesFromModel
public void addTaxonomiesFromModel(Model model)
-
addTaxonomy
public void addTaxonomy(InstanceTaxonomyOrderPredicate taxonomy)
-
addTotalOrdersFromModel
public 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. Does NOT model the order in the ontology!- Parameters:
model-
-
addTotalOrder
public void addTotalOrder(InstanceTotalOrderPredicate totalOrder)
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
public void writeOntologyToOWLFile(String fileName)
-
getOntModel
public org.apache.jena.ontology.OntModel getOntModel()
-
-