Package openllet.owlapi
Class OWLAPILoader
- java.lang.Object
-
- openllet.core.KBLoader
-
- openllet.owlapi.OWLAPILoader
-
- All Implemented Interfaces:
FacetFactoryOWL,FacetManagerOWL,FacetOntologyOWL,FacetReasonerOWL,OWLHelper,OWLManagementObject,openllet.shared.tools.Logging
public class OWLAPILoader extends openllet.core.KBLoader implements OWLHelper
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
- Author:
- Evren Sirin
-
-
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 OWLAPILoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.stream.Stream<org.semanticweb.owlapi.model.OWLOntology>allOntologies()voidclear()voiddispose()Dispose the reasoner attached to this helper.java.util.Set<org.semanticweb.owlapi.model.OWLOntology>getAllOntologies()Deprecated.org.semanticweb.owlapi.model.OWLDataFactorygetFactory()OWLGroupgetGroup()openllet.core.KnowledgeBasegetKB()org.semanticweb.owlapi.model.OWLOntologyManagergetManager()org.semanticweb.owlapi.model.OWLOntologygetOntology()OpenlletReasonergetReasoner()Returns the reasoner created by this loader.booleanisVolatile()The ontology is load from a file but is not persist into a file after change, so it is a volatile ontology.voidload()voidparse(java.lang.String... fileNames)voidsetIgnoreImports(boolean ignoreImports)-
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
-
-
-
-
Method Detail
-
getManager
public org.semanticweb.owlapi.model.OWLOntologyManager getManager()
- Specified by:
getManagerin interfaceFacetManagerOWL- Returns:
- the manager that manage the current ontology.
-
getFactory
public org.semanticweb.owlapi.model.OWLDataFactory getFactory()
- Specified by:
getFactoryin interfaceFacetFactoryOWL- Returns:
- a factory that can build object for this ontlogy.
-
isVolatile
public boolean isVolatile()
The ontology is load from a file but is not persist into a file after change, so it is a volatile ontology.- Specified by:
isVolatilein interfaceOWLHelper- Returns:
- true if this ontology isn't persistent.
-
getGroup
public OWLGroup getGroup()
- Specified by:
getGroupin interfaceFacetManagerOWL- Returns:
- the group of manager that own the getManager() returned manager.
-
getReasoner
public OpenlletReasoner getReasoner()
Returns the reasoner created by this loader. Anullvalue is returned untilload()function is called (explicitly or implicitly).- Specified by:
getReasonerin interfaceFacetReasonerOWL- Returns:
- the reasoner created by this loader
-
getOntology
public org.semanticweb.owlapi.model.OWLOntology getOntology()
- Specified by:
getOntologyin interfaceFacetOntologyOWL- Returns:
- the ontology map to this helper
-
getKB
public openllet.core.KnowledgeBase getKB()
- Specified by:
getKBin classopenllet.core.KBLoader
-
getAllOntologies
@Deprecated public java.util.Set<org.semanticweb.owlapi.model.OWLOntology> getAllOntologies()
Deprecated.
-
allOntologies
public java.util.stream.Stream<org.semanticweb.owlapi.model.OWLOntology> allOntologies()
-
load
public void load()
- Specified by:
loadin classopenllet.core.KBLoader
-
parse
public void parse(java.lang.String... fileNames)
- Overrides:
parsein classopenllet.core.KBLoader
-
setIgnoreImports
public void setIgnoreImports(boolean ignoreImports)
- Specified by:
setIgnoreImportsin classopenllet.core.KBLoader
-
clear
public void clear()
- Specified by:
clearin classopenllet.core.KBLoader
-
-