public class CASA_OWLOntologyManagerImpl
extends uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl
Modifier and Type | Field and Description |
---|---|
private String |
DEFAULT_ONT_PATH |
private static long |
serialVersionUID |
autoGeneratedURICounter, dataFactory, defaultChangeBroadcastStrategy, defaultImpendingChangeBroadcastStrategy, documentIRIsByID, documentMappers, importsClosureCache, importsLoadCount, loadCount, loaderListeners, missingImportsListeners, ontologiesByID, ontologyFactories, ontologyFormatsByOntology, ontologyIDsByImportsDeclaration, ontologyStorers, progressListeners, properties, silentMissingImportsHandling
Constructor and Description |
---|
CASA_OWLOntologyManagerImpl(org.semanticweb.owlapi.model.OWLDataFactory dataFactory) |
Modifier and Type | Method and Description |
---|---|
private void |
addComment(org.semanticweb.owlapi.model.OWLOntology ont,
org.semanticweb.owlapi.model.IRI iri,
String comment) |
org.semanticweb.owlapi.model.OWLOntology |
getOntology(org.semanticweb.owlapi.model.OWLOntologyID ontologyID) |
Ontology |
getOntology(String name)
Find (get) or read (load) in a CASAOntology in the following manner:
if name doesn't end in ".owl", then append ".owl" to the name.
|
private String |
getOntologyNameFromIRI(org.semanticweb.owlapi.model.IRI ontologyIRI)
From an ontology IRI of the forms
[{protocol}:][{host}]/ontologies/{name}[.owl]
{name}[.owl]
return {name}.owl.
|
protected org.semanticweb.owlapi.model.OWLOntology |
loadOntology(org.semanticweb.owlapi.model.IRI ontologyIRI,
boolean allowExists,
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration) |
private org.semanticweb.owlapi.model.OWLOntology |
loadOntologyHelper(org.semanticweb.owlapi.model.IRI ontologyIRI,
boolean allowExists,
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration) |
private boolean |
shouldUseDefault(org.semanticweb.owlapi.model.IRI ontologyIRI)
If this is an absolute IRI, but not http: or file: then go with the default behaviour.
|
addAxiom, addAxioms, addImpendingOntologyChangeListener, addIRIMapper, addMissingImportListener, addOntologyChangeListener, addOntologyChangeListener, addOntologyChangeProgessListener, addOntologyChangesVetoedListener, addOntologyFactory, addOntologyLoaderListener, addOntologyStorer, applyChange, applyChanges, broadcastChanges, broadcastImpendingChanges, clearIRIMappers, contains, contains, contains, containsVersion, createOntology, createOntology, createOntology, createOntology, createOntology, createOntology, createOntology, createOntology, fireBeginChanges, fireChangeApplied, fireEndChanges, fireFinishedLoadingEvent, fireMissingImportEvent, fireStartedLoadingEvent, getDirectImports, getImportedOntology, getImports, getImportsClosure, getNextAutoGeneratedIRI, getOntologies, getOntologies, getOntology, getOntologyDocumentIRI, getOntologyFactories, getOntologyFormat, getOntologyIDsByVersion, getOWLDataFactory, getProperties, getSortedImportsClosure, getVersions, installDefaultOntologyFactories, installDefaultURIMappers, isSilentMissingImportsHandling, loadImports, loadOntology, loadOntology, loadOntologyFromOntologyDocument, loadOntologyFromOntologyDocument, loadOntologyFromOntologyDocument, loadOntologyFromOntologyDocument, loadOntologyFromOntologyDocument, makeLoadImportRequest, makeLoadImportRequest, ontologyCreated, removeAxiom, removeAxioms, removeImpendingOntologyChangeListener, removeIRIMapper, removeMissingImportListener, removeOntology, removeOntology, removeOntologyChangeListener, removeOntologyChangeProgessListener, removeOntologyChangesVetoedListener, removeOntologyFactory, removeOntologyLoaderListener, removeOntologyStorer, resetImportsClosureCache, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, saveOntology, setDefaultChangeBroadcastStrategy, setOntologyDocumentIRI, setOntologyFormat, setSilentMissingImportsHandling
private static final long serialVersionUID
private String DEFAULT_ONT_PATH
public CASA_OWLOntologyManagerImpl(org.semanticweb.owlapi.model.OWLDataFactory dataFactory)
dataFactory
- protected org.semanticweb.owlapi.model.OWLOntology loadOntology(org.semanticweb.owlapi.model.IRI ontologyIRI, boolean allowExists, org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
loadOntology
in class uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl
org.semanticweb.owlapi.model.OWLOntologyCreationException
private org.semanticweb.owlapi.model.OWLOntology loadOntologyHelper(org.semanticweb.owlapi.model.IRI ontologyIRI, boolean allowExists, org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
private String getOntologyNameFromIRI(org.semanticweb.owlapi.model.IRI ontologyIRI)
ontologyIRI
- private boolean shouldUseDefault(org.semanticweb.owlapi.model.IRI ontologyIRI)
ontologyIRI
- private void addComment(org.semanticweb.owlapi.model.OWLOntology ont, org.semanticweb.owlapi.model.IRI iri, String comment)
public Ontology getOntology(String name) throws IllegalArgumentException
OWLOntologyManager.getOntology(IRI)
.
OWLOntologyManager.loadOntology(IRI)
.
OWLOntologyManager.loadOntology(IRI)
.
theName
- the name of the ontology as either a raw name or as a existing file path.IllegalArgumentException
public org.semanticweb.owlapi.model.OWLOntology getOntology(org.semanticweb.owlapi.model.OWLOntologyID ontologyID)
getOntology
in interface org.semanticweb.owlapi.model.OWLOntologyManager
getOntology
in class uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl