public class SKOSOntologyFactory extends OntologyFactory
Modifier and Type | Field and Description |
---|---|
private static OntologyCache<SKOSThesaurus> |
cache |
private org.semanticweb.skos.SKOSDataFactory |
factory |
private static java.lang.String |
formalismId |
private static java.net.URI |
formalismUri |
(package private) static org.slf4j.Logger |
logger |
private org.semanticweb.skosapibinding.SKOSManager |
manager |
ALL, ANY, ASSERTED, DIRECT, FULL, GLOBAL, INDIRECT, INHERITED, instances, LOCAL, MENTIONNED, NAMED, UNASSERTED, UNNAMED
Constructor and Description |
---|
SKOSOntologyFactory() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
All Ontologies must implement clearCache()
which unload their ontologies if any cache is enabled.
|
SKOSThesaurus |
loadOntology(java.net.URI uri,
boolean onlyLocalEntities)
Load an ontology, cache enabled
These methods should rather be in a LoadableOntologyFactory
|
SKOSThesaurus |
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<SKOSThesaurus> cache
private org.semanticweb.skosapibinding.SKOSManager manager
private org.semanticweb.skos.SKOSDataFactory factory
public SKOSOntologyFactory() throws OntowrapException
OntowrapException
public SKOSThesaurus newOntology(java.lang.Object ontology, boolean onlyLocalEntities) throws OntowrapException
OntologyFactory
newOntology
in class OntologyFactory
OntowrapException
- when something goes wrongpublic SKOSThesaurus loadOntology(java.net.URI uri, boolean onlyLocalEntities) throws OntowrapException
OntologyFactory
loadOntology
in class OntologyFactory
OntowrapException
- when something goes wrongpublic void clearCache() throws OntowrapException
OntologyFactory
clearCache
in class OntologyFactory
OntowrapException
- when something goes wrong(C) INRIA & friends, 2003-2020