public abstract class OwlApiSimplexUtilsBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
OwlApiSimplexUtils |
build()
Loads the ontologies and creates an instance of
OwlApiSimplexUtils for the loaded ontologies. |
protected org.semanticweb.owlapi.model.OWLOntologyManager |
getOntologyManager() |
protected abstract List<org.semanticweb.owlapi.model.OWLOntology> |
loadOntologies()
Abstract method for loading ontologies.
|
protected org.semanticweb.owlapi.model.OWLOntology |
loadOntology(InputStream inputStream)
Helper method for loading an ontology document from an
InputStream. |
protected void |
validate(List<org.semanticweb.owlapi.model.OWLOntology> ontologies)
Validate if all required ontologies are available.Intented to be
overwritten by subclasses the the owlapi-simplex-generator.
|
protected org.semanticweb.owlapi.model.OWLOntologyManager getOntologyManager()
protected org.semanticweb.owlapi.model.OWLOntology loadOntology(InputStream inputStream) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
InputStream.inputStream - The {OWLOntology for the the loaded ontology.org.semanticweb.owlapi.model.OWLOntologyCreationException - If the ontology could not be loaded.protected abstract List<org.semanticweb.owlapi.model.OWLOntology> loadOntologies() throws OwlApiSimplexException
OwlApiSimplexException - If an error occurs while loading the
ontology documents.protected void validate(List<org.semanticweb.owlapi.model.OWLOntology> ontologies) throws OwlApiSimplexException
ontologies - The ontologies to validate.OwlApiSimplexException - If no all required ontologies are
available.public OwlApiSimplexUtils build() throws OwlApiSimplexException
OwlApiSimplexUtils for the loaded ontologies.
The last ontology document loaded is used as ontology here. Therefore
this OWL document must either directly or indirectly import all other
ontologies.OwlApiSimplexUtils.OwlApiSimplexException - If an error occurs while loading the
ontologies.Copyright © 2020 Jens Pelzetter. All rights reserved.