public class OWLAPI3OntologyFactory extends OntologyFactory
Modifier and Type | Field and Description |
---|---|
private static OntologyCache<OWLAPI3Ontology> |
cache |
private static java.lang.String |
formalismId |
private static java.net.URI |
formalismUri |
(package private) static org.slf4j.Logger |
logger |
private org.semanticweb.owlapi.model.OWLOntologyManager |
manager |
ALL, ANY, ASSERTED, DIRECT, FULL, GLOBAL, INDIRECT, INHERITED, instances, LOCAL, MENTIONNED, NAMED, UNASSERTED, UNNAMED
Constructor and Description |
---|
OWLAPI3OntologyFactory() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
All Ontologies must implement clearCache()
which unload their ontologies if any cache is enabled.
|
org.semanticweb.owlapi.model.OWLOntologyManager |
getManager() |
HeavyLoadedOntology<? extends java.lang.Object> |
loadOntology(java.net.URI uri,
boolean onlyLocalEntities)
Load an ontology, cache enabled
These methods should rather be in a LoadableOntologyFactory
|
OWLAPI3Ontology |
newOntology(java.lang.Object ontology,
boolean onlyLocalEntities)
Encapsulate an ontology already in the environment
These methods should rather be in a LoadableOntologyFactory
|
clear, getDefaultFactory, getFactories, getFactory, loadOntology, loadOntology, newInstance, newOntology, setDefaultFactory
static final org.slf4j.Logger logger
private static java.net.URI formalismUri
private static final java.lang.String formalismId
private static final OntologyCache<OWLAPI3Ontology> cache
private org.semanticweb.owlapi.model.OWLOntologyManager manager
public OWLAPI3Ontology newOntology(java.lang.Object ontology, boolean onlyLocalEntities) throws OntowrapException
OntologyFactory
newOntology
in class OntologyFactory
OntowrapException
- when something goes wrongpublic HeavyLoadedOntology<? extends java.lang.Object> loadOntology(java.net.URI uri, boolean onlyLocalEntities) throws OntowrapException
OntologyFactory
loadOntology
in class OntologyFactory
OntowrapException
- when something goes wrongpublic org.semanticweb.owlapi.model.OWLOntologyManager getManager()
public void clearCache() throws OntowrapException
OntologyFactory
clearCache
in class OntologyFactory
OntowrapException
- when something goes wrong(C) INRIA & friends, 2003-2020