Package ai.chatur.cortex.spring.ontology
Class OntologyController
java.lang.Object
ai.chatur.cortex.spring.ontology.OntologyController
Web UI page rendering the ontology in Turtle syntax.
-
Constructor Summary
ConstructorsConstructorDescriptionOntologyController(ai.chatur.cortex.CortexOntology cortex) Creates the controller. -
Method Summary
Modifier and TypeMethodDescriptiongetOntology(org.springframework.ui.Model model) Renders the ontology in Turtle syntax.
-
Constructor Details
-
OntologyController
public OntologyController(ai.chatur.cortex.CortexOntology cortex) Creates the controller.- Parameters:
cortex- the ontology role used to render the ontology
-
-
Method Details
-
getOntology
Renders the ontology in Turtle syntax.- Parameters:
model- receivesontology(the ontology serialized in Turtle syntax)- Returns:
- the
ontologyview name
-