Class OntologyLoader

java.lang.Object
ai.chatur.cortex.core.ontology.OntologyLoader

public final class OntologyLoader extends Object
Builds the immutable OntModel the knowledge graph is built on.
  • Method Details

    • load

      public static org.apache.jena.ontapi.model.OntModel load(List<String> ontologies)
      Builds the ontology model by merging the given Turtle documents, in order, then locks it against further mutation.
      Parameters:
      ontologies - the ontology documents, in Turtle syntax
      Returns:
      the merged, locked ontology model