Class OntologyGenerator


  • public class OntologyGenerator
    extends Object
    • Constructor Detail

      • OntologyGenerator

        public OntologyGenerator​(String ontologyPrefix,
                                 char spaceSubstitutionChar)
      • OntologyGenerator

        public OntologyGenerator​(String ontologyPrefix)
    • Method Detail

      • addTaxonomiesFromModel

        public void addTaxonomiesFromModel​(Model model)
      • 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()