|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticweb.skosapibinding.SKOSManager
public class SKOSManager
Author: Simon Jupp
Date: Mar 4, 2008
The University of Manchester
Bio-Health Informatics Group
Provides a point of convenience for creating an SKOSDataset
with commonly required features (such as an RDF parser for example).
The SKOSManager
manages a set of SKOS vocabularies.
It is the main point for creating, loading and accessing vocabularies.
Constructor Summary | |
---|---|
SKOSManager()
Creates a new SKOSManager object which is used to manage SKOS vocabularies |
|
SKOSManager(org.semanticweb.owl.model.OWLOntologyManager manager)
|
Method Summary | |
---|---|
java.util.List<SKOSChange> |
applyChange(SKOSChange change)
Applies a single AddAssertion object (change) to some or all the vocabularies that are managed by this Manager |
java.util.List<SKOSChange> |
applyChanges(java.util.List<SKOSChange> change)
A conveniance method which applies a list of AddAssertion objects (changes) to some or all the vocabularies that are managed by this Manager |
SKOSDataset |
createSKOSDataset(java.net.URI uri)
Creates a new (empty) SKOS vocabulary that has the specified ontology URI. |
org.semanticweb.owl.model.OWLOntologyManager |
getOWLManger()
As SKOSManager is a wrapper for an OWLOntologyManager, you get access to the actual OWLOntologyManger using this method |
SKOSDataFactory |
getSKOSDataFactory()
Return a SKOSDataFactory for this Manager. |
java.util.Collection<uk.ac.manchester.cs.skos.SKOSDatasetImpl> |
getSKOSDataSets()
|
SKOSDataset |
loadDataset(SKOSInputSource inputSource)
A convenience method that load an ontology from an input source. |
SKOSDataset |
loadDataset(java.net.URI uri)
Loads the ontology specified by the uri
parameter. |
SKOSDataset |
loadDatasetFromPhysicalURI(java.net.URI uri)
A convenience method that loads an ontology from a physical URI. |
void |
save(SKOSDataset vocab)
|
void |
save(SKOSDataset vocab,
SKOSFormat format)
|
void |
save(SKOSDataset vocab,
SKOSFormat format,
java.net.URI uri)
Saves the specified ontology, using the specified URI to determine where/how the ontology should be saved. |
void |
save(SKOSDataset vocab,
java.net.URI uri)
Saves the specified ontology, using the specified URI to determine where/how the ontology should be saved. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SKOSManager() throws SKOSCreationException
SKOSCreationException
- A SKOS creation exceptionpublic SKOSManager(org.semanticweb.owl.model.OWLOntologyManager manager)
Method Detail |
---|
public org.semanticweb.owl.model.OWLOntologyManager getOWLManger()
public SKOSDataset createSKOSDataset(java.net.URI uri) throws SKOSCreationException
SKOSContentManager
createSKOSDataset
in interface SKOSContentManager
uri
- The URI of the ontology to be created. The ontology
URI will be mapped to a physical URI in order to determine the type of
ontology factory that will be used to create the ontology. If this mapping
is null
then a default (in memory) implementation of the
ontology will most likely be created.
SKOSCreationException
public SKOSDataset loadDataset(java.net.URI uri) throws SKOSCreationException
SKOSContentManager
uri
parameter. Note that this is NOT the physical URI that
points to a concrete representation (e.g. an RDF/XML OWL file)
of an ontology. The mapping to a physical URI will be determined
by using one of the loaded OWLOntologyURIMapper
s.
Again, it is important to realise that the ontology being loaded is the container for your SKOSVocabularies
loadDataset
in interface SKOSContentManager
uri
- The ontology URI (sometimes called logical URI
of the ontology to be loaded)
SKOSDataset
represented in the Ontology
that was loaded. If an ontology with the specified URI is already loaded
then that ontology will be returned.
SKOSCreationException
public SKOSDataset loadDataset(SKOSInputSource inputSource) throws SKOSCreationException
SKOSContentManager
loadDataset
in interface SKOSContentManager
SKOSCreationException
public SKOSDataset loadDatasetFromPhysicalURI(java.net.URI uri) throws SKOSCreationException
SKOSContentManager
loadDatasetFromPhysicalURI
in interface SKOSContentManager
uri
- The physical URI which points to a concrete representation
of an ontology. (e.g a physical URI could be file:/home/simon/myvocab.rdf)
SKOSCreationException
public SKOSDataFactory getSKOSDataFactory()
SKOSContentManager
SKOSDataFactory
is used to
construct SKOS object (for example a SKOSConcept)
getSKOSDataFactory
in interface SKOSContentManager
public void save(SKOSDataset vocab, SKOSFormat format) throws SKOSStorageException
SKOSStorageException
public void save(SKOSDataset vocab, SKOSFormat format, java.net.URI uri) throws SKOSStorageException
SKOSContentManager
save
in interface SKOSContentManager
vocab
- The vocabulary to be saved.uri
- The physical URI which will be used to determine how and where the
ontology will be saved.
SKOSStorageException
public java.util.List<SKOSChange> applyChanges(java.util.List<SKOSChange> change) throws SKOSChangeException
SKOSContentManager
applyChanges
in interface SKOSContentManager
change
- The changes to be applied
SKOSChangeException
public java.util.List<SKOSChange> applyChange(SKOSChange change) throws SKOSChangeException
SKOSContentManager
applyChange
in interface SKOSContentManager
change
- The changes to be applied
SKOSChangeException
public void save(SKOSDataset vocab) throws SKOSStorageException
save
in interface SKOSContentManager
SKOSStorageException
public void save(SKOSDataset vocab, java.net.URI uri) throws SKOSStorageException
SKOSContentManager
save
in interface SKOSContentManager
vocab
- The vocabulary to be saved.uri
- The physical URI which will be used to determine how and where the
ontology will be saved.
SKOSStorageException
public java.util.Collection<uk.ac.manchester.cs.skos.SKOSDatasetImpl> getSKOSDataSets()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |