Package openllet.owlapi
Class OWLGenericTools
- java.lang.Object
-
- openllet.owlapi.OWLGenericTools
-
- All Implemented Interfaces:
FacetFactoryOWL,FacetManagerOWL,FacetOntologyOWL,FacetReasonerOWL,OWLHelper,OWLManagementObject,openllet.shared.tools.Logging
- Direct Known Subclasses:
OWLTools
public class OWLGenericTools extends java.lang.Object implements OWLHelper
The main difference between OWLTools and OWLGenericTools is the usage of static resources by OWLTools.- Since:
- 2.5.1
-
-
Field Summary
-
Fields inherited from interface openllet.owlapi.OWLHelper
_caseSeparator, _debug, _delta, _entitySeparator, _fileExtention, _fileExtentionPart, _format, _formatFactory, _innerSeparator, _localProtocol, _prefixSeparator, _protocol, _secureProtocol, _webSeparator
-
-
Constructor Summary
Constructors Constructor Description OWLGenericTools(OWLGroup group, java.io.File file)OWLGenericTools(OWLGroup group, java.io.InputStream is)OWLGenericTools(OWLGroup group, java.lang.String ontology, boolean isVolatile)OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.IRI ontologyIRI, boolean isVolatile)OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.IRI ontologyIRI, double version)OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.IRI ontologyIRI, double version, boolean isVolatile)OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntologyID ontologyID)Load the ontology ontologyId into the good manager or create it if it doesn't previously exist.OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntologyID ontologyID, boolean isVolatile)OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntologyManager manager, java.io.File file)OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntologyManager manager, org.semanticweb.owlapi.model.OWLOntology ontology)OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntology ontology, boolean isVolatile)OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLOntologyManager manager, java.util.Map<java.lang.String,java.lang.String> namespaces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose the reasoner attached to this helper.org.semanticweb.owlapi.model.OWLDataFactorygetFactory()OWLGroupgetGroup()java.util.logging.LoggergetLogger()org.semanticweb.owlapi.model.OWLOntologyManagergetManager()org.semanticweb.owlapi.model.OWLOntologygetOntology()org.semanticweb.owlapi.reasoner.OWLReasonergetReasoner()booleanisVolatile()OWLGenericToolssetReasonerFactory(java.util.function.Function<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.reasoner.OWLReasoner> reasonerFactory)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface openllet.owlapi.OWLHelper
derivate, derivate, deserializeAxioms, deserializeAxiomsInto, getFragment, getNameSpace, getNamespaces, getOntology, getRootIri, getTypes, getVersion, look, look, ontologyToString, ontologyToString, path, removeFirstLast, resolvPrefix, serializeAxioms
-
Methods inherited from interface openllet.owlapi.OWLManagementObject
addAxiom, addAxioms, addClass, addClass, addClassPropertyAxiom, addDataPropertyAxiom, addDataPropertyAxiom, addDataPropertyAxiom, addDataPropertyAxiom, addDataPropertyAxiom, addObject, addObject, addObjectPropertyAxiom, addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, declareClass, declareClassOfIndividual, declareDataProperty, declareIndividual, declareIndividual, declareIndividual, declareIndividual, declareIndividual, declareObjectProperty, getObject, getObject, getObjects, getObjects, getValue, getValue, getValues, getValues, individualHaveFacet, isLiteralIncludeInRange, removeAxiom, removeAxioms, removeDataPropertyAxiom, removeDataPropertyAxiom, removeDataPropertyAxiom, removeObjectPropertyAxiom, removeObjectPropertyAxiom, removeObjectPropertyAxiom, toClass, toDataProperty, toIndividual, toObjectProperty, updateObject, updateObject, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue
-
-
-
-
Constructor Detail
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntologyID ontologyID) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
Load the ontology ontologyId into the good manager or create it if it doesn't previously exist.- Parameters:
group- of managers.ontologyID- is the reference to the ontology- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException- is raise when things goes baddly wrong.- Since:
- 2.5.1
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntologyID ontologyID, boolean isVolatile) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.IRI ontologyIRI, double version) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.IRI ontologyIRI, double version, boolean isVolatile) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.IRI ontologyIRI, boolean isVolatile) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, java.io.InputStream is) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntology ontology, boolean isVolatile)
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntologyManager manager, org.semanticweb.owlapi.model.OWLOntology ontology)
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntologyManager manager, java.io.File file) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
- Throws:
org.semanticweb.owlapi.model.OWLOntologyCreationException
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.model.OWLOntologyManager manager, java.util.Map<java.lang.String,java.lang.String> namespaces)
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, java.io.File file) throws java.lang.Exception
- Throws:
java.lang.Exception
-
OWLGenericTools
public OWLGenericTools(OWLGroup group, java.lang.String ontology, boolean isVolatile) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
getLogger
public java.util.logging.Logger getLogger()
- Specified by:
getLoggerin interfaceopenllet.shared.tools.Logging
-
getOntology
public org.semanticweb.owlapi.model.OWLOntology getOntology()
- Specified by:
getOntologyin interfaceFacetOntologyOWL- Returns:
- the ontology map to this helper
-
getManager
public org.semanticweb.owlapi.model.OWLOntologyManager getManager()
- Specified by:
getManagerin interfaceFacetManagerOWL- Returns:
- the manager that manage the current ontology.
-
getGroup
public OWLGroup getGroup()
- Specified by:
getGroupin interfaceFacetManagerOWL- Returns:
- the group of manager that own the getManager() returned manager.
-
isVolatile
public boolean isVolatile()
- Specified by:
isVolatilein interfaceOWLHelper- Returns:
- true if this ontology isn't persistent.
-
getFactory
public org.semanticweb.owlapi.model.OWLDataFactory getFactory()
- Specified by:
getFactoryin interfaceFacetFactoryOWL- Returns:
- a factory that can build object for this ontlogy.
-
getReasoner
public org.semanticweb.owlapi.reasoner.OWLReasoner getReasoner()
- Specified by:
getReasonerin interfaceFacetReasonerOWL- Returns:
- a PelletReasoner that reason over a previously registered ontology.
-
setReasonerFactory
public OWLGenericTools setReasonerFactory(java.util.function.Function<org.semanticweb.owlapi.model.OWLOntology,org.semanticweb.owlapi.reasoner.OWLReasoner> reasonerFactory)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-