Package helper
Class OWLOntologyCreator
java.lang.Object
helper.OWLOntologyCreator
Contains helper methods for the creation of a new ontology.
- Author:
- Samuel Correia
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
resultToOntology
(org.swrlapi.sqwrl.SQWRLResult result, jakarta.servlet.ServletContext context, String ontoKbPath) Considering the query results, creates a new ontology, and saves it.
-
Constructor Details
-
OWLOntologyCreator
public OWLOntologyCreator()
-
-
Method Details
-
resultToOntology
public static File resultToOntology(org.swrlapi.sqwrl.SQWRLResult result, jakarta.servlet.ServletContext context, String ontoKbPath) throws org.semanticweb.owlapi.model.OWLOntologyCreationException Considering the query results, creates a new ontology, and saves it. To create this new ontology it may query the original ontology to add additional information to this ontology, besides the results.- Parameters:
result
- Result from the query, used to create new ontology of result.context
- Servlet context, used to obtain the path where results are to be stored.ontoKbPath
- The path to the original ontology's knowledge base file.- Returns:
- The file containing the query result with additional relevant information.
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
- If there was an error when creating the ontology.
-