Class OntModelGenerator
java.lang.Object
org.brapi.schematools.core.ontmodel.OntModelGenerator
Generates an Ontology Model from a BrAPI Json Schema.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a OntModelGenerator using a defaultBrAPISchemaReaderand the defaultOntModelGeneratorOptions.Creates a OntModelGenerator using a defaultBrAPISchemaReaderand the providedOntModelGeneratorOptions. -
Method Summary
Modifier and TypeMethodDescriptionResponse<org.apache.jena.ontapi.model.OntModel> Generates theOntModelfrom 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.Response<org.apache.jena.ontapi.model.OntModel> generate(Path schemaDirectory, OntModelGeneratorMetadata metadata) Generates the RDFOntModelfrom 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.
-
Constructor Details
-
OntModelGenerator
public OntModelGenerator()Creates a OntModelGenerator using a defaultBrAPISchemaReaderand the defaultOntModelGeneratorOptions. -
OntModelGenerator
Creates a OntModelGenerator using a defaultBrAPISchemaReaderand the providedOntModelGeneratorOptions.- Parameters:
options- The options to be used in the generation.
-
-
Method Details
-
generate
Generates theOntModelfrom 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
OntModelfrom the complete BrAPI Specification
-
generate
public Response<org.apache.jena.ontapi.model.OntModel> generate(Path schemaDirectory, OntModelGeneratorMetadata metadata) Generates the RDFOntModelfrom 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 Specificationmetadata- additional metadata that is used in the generation- Returns:
- the RDF
OntModelfrom the complete BrAPI Specification
-