Class OntologyController

java.lang.Object
ai.chatur.cortex.spring.ontology.OntologyController

@Controller public class OntologyController extends Object
Web UI page rendering 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

      @GetMapping("/ontology") public String getOntology(org.springframework.ui.Model model)
      Renders the ontology in Turtle syntax.
      Parameters:
      model - receives ontology (the ontology serialized in Turtle syntax)
      Returns:
      the ontology view name