Class OntModelGenerator

java.lang.Object
org.brapi.schematools.core.ontmodel.OntModelGenerator

public class OntModelGenerator extends Object
Generates an Ontology Model from a BrAPI Json Schema.
  • Constructor Details

  • Method Details

    • generate

      public Response<org.apache.jena.ontapi.model.OntModel> generate(Path schemaDirectory)
      Generates the OntModel from the complete BrAPI Specification in a directory contains a subdirectories for each module that contain the BrAPI Json schema and BrAPI-Common that contains common schemas for use across modules.
      Parameters:
      schemaDirectory - the path to the complete BrAPI Specification
      Returns:
      the OntModel from the complete BrAPI Specification
    • generate

      public Response<org.apache.jena.ontapi.model.OntModel> generate(Path schemaDirectory, OntModelGeneratorMetadata metadata)
      Generates the RDF OntModel from the complete BrAPI Specification in a directory contains a subdirectories for each module that contain the BrAPI Json schema and BrAPI-Common that contains common schemas for use across modules.
      Parameters:
      schemaDirectory - the path to the complete BrAPI Specification
      metadata - additional metadata that is used in the generation
      Returns:
      the RDF OntModel from the complete BrAPI Specification