@CreoleResource(name="CreateSesameOntology",
interfaceName="gate.creole.ontology.Ontology",
comment="Create a ontology from a Sesame configuration file for a repository",
icon="ontology",
helpURL="http://gate.ac.uk/userguide/sec:ontologies:ontoplugin:create")
public class CreateSesameOntology
extends OntologyLR
NOTE: Any Sesame repository can be created this way, but the functionality of the GATE ontology API depends on an OWLIM repository with owl-max reasoning and partialRDFS optimizations turned off.
After creation the owl.rdfs and rdf-schema.rdf files will be imported into the newly created repository.
| Modifier and Type | Field and Description |
|---|---|
protected URL |
configFileURL |
protected String |
repositoryID |
protected URL |
repositoryLocation |
actionsList, DEBUGTRIPLE_CONTEXT_DATA, TRIPLE_CONTEXT_METAanonymousNodeCounter, defaultNameSpace, doSetAutoLabel, isModified, knownImportURIs, loadedOntologyURIs, modificationListeners, ontologyService, ontologyURL, OURI_OWL_ALLVALUESFROM, OURI_OWL_ANNOTATIONPROPERTY, OURI_OWL_CLASS, OURI_OWL_DATATYPEPROPERTY, OURI_OWL_DIFFERENTFROM, OURI_OWL_EQUIVALENTCLASS, OURI_OWL_EQUIVALENTPROPERTY, OURI_OWL_FUNCTIONALPROPERTY, OURI_OWL_HASVALUE, OURI_OWL_INVERSEFUNCTIONALPROPERTY, OURI_OWL_MAXCARDINALITY, OURI_OWL_MINCARDINALITY, OURI_OWL_OBJECTPROPERTY, OURI_OWL_ONPROPERTY, OURI_OWL_ONTOLOGY, OURI_OWL_RESTRICTION, OURI_OWL_SAMEAS, OURI_OWL_SOMEVALUESFROM, OURI_OWL_SYMMETRICPROPERTY, OURI_OWL_TRANSITIVEPROPERTY, OURI_OWL_VERSIONINFO, OURI_RDF_PROPERTY, OURI_RDF_TYPE, OURI_RDFS_CLASS, OURI_RDFS_COMMENT, OURI_RDFS_DOMAIN, OURI_RDFS_LABEL, OURI_RDFS_RANGE, OURI_RDFS_SUBCLASSOF, pluginDir, randomGenerator, restrictionPrefix| Constructor and Description |
|---|
CreateSesameOntology()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
URL |
getConfigFile() |
String |
getRepositoryID() |
URL |
getRepositoryLocation() |
URL |
getSourceURL()
Return an URL that is related to the source of the ontology.
|
gate.Resource |
init()
Initialises this resource, and returns it.
|
void |
load()
Loads this ontology.
|
void |
setConfigFile(URL url) |
void |
setRepositoryID(String id) |
void |
setRepositoryLocation(URL loc) |
cleanup, datastoreClosed, datastoreCreated, datastoreOpened, getActions, getService, getSesameRepositoryConnection, resourceLoaded, resourceRenamed, resourceUnloadedcleanOntology, createBooleanQuery, createTupleQuery, executeQuery, getOntologyTripleStore, loadSystemImports, peekBaseURIFromRDF, readOntologyData, readOntologyData, readOntologyData, readOntologyData, setDefaultNameSpaceByPeeking, setDefaultNameSpaceByPeeking, setDefaultNameSpaceFromRepository, setTripleContextURI, writeOntologyData, writeOntologyData, writeOntologyDataaddAllValuesFromRestriction, addAllValuesFromRestriction, addAnnotationProperty, addAnonymousClass, addCardinalityRestriction, addDatatypeProperty, addHasValueRestriction, addMaxCardinalityRestriction, addMinCardinalityRestriction, addObjectProperty, addOClass, addOClass, addOInstance, addOntologyModificationListener, addOntologyURIs, addOResourceToMap, addRDFProperty, addSomeValuesFromRestriction, addSymmetricProperty, addTransitiveProperty, commitTransaction, containsOClass, containsOClass, containsOInstance, containsOInstance, createOBNodeID, createOURI, createOURIForName, createOURIForName, encodeResourceName, fireOntologyReset, fireOntologyResourceAdded, fireOntologyResourcesRemoved, fireResourcePropertyValueChanged, fireResourceRelationChanged, generateOURI, generateOURI, getAllResources, getAnnotationProperties, getAnnotationProperty, getAutoGeneratedRestrictionName, getDatatypeProperties, getDatatypeProperty, getDefaultNameSpace, getDistance, getImportURIs, getObjectProperties, getObjectProperty, getOClass, getOClasses, getOClassesByName, getOClassesIterator, getOInstance, getOInstances, getOInstances, getOInstances, getOInstancesByName, getOInstancesIterator, getOInstancesIterator, getOntologyAnnotationValues, getOntologyData, getOntologyURI, getOntologyURIs, getOResourceByName, getOResourceFromMap, getOResourcesByName, getOResourcesWith, getOResourcesWith, getPluginDir, getPropertiesByName, getProperty, getPropertyDefinitions, getRDFProperties, getSesameRepository, getSesameRepositoryID, getSymmetricProperties, getTransitiveProperties, getURL, getVersion, isAnnotationProperty, isDatatypeProperty, isModified, isObjectProperty, isRDFProperty, isSymmetricProperty, isTransitiveProperty, loadImportMappingsFile, removeOClass, removeOInstance, removeOntologyModificationListener, removeOResourceFromMap, removeProperty, resolveImports, setDataStore, setDefaultNameSpace, setModified, setOntologyAnnotation, setOntologyURI, setURL, setVersion, startTransaction, store, transationStarted, writeOntologyData, writeOntologyDatagetDataStore, getLRPersistenceId, getParent, setLRPersistenceId, setParent, synccheckParameterValues, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataStore, getLRPersistenceId, getParent, setLRPersistenceId, setParent, syncprotected String repositoryID
protected URL repositoryLocation
protected URL configFileURL
public CreateSesameOntology()
throws gate.creole.ResourceInstantiationException
gate.creole.ResourceInstantiationException@CreoleParameter(comment="The name of the repository to create") public void setRepositoryID(String id)
id - public String getRepositoryID()
@CreoleParameter(comment="The location of the repository, either a direcotry or a Sesame server URL") public void setRepositoryLocation(URL loc)
public URL getRepositoryLocation()
@CreoleParameter(comment="The URL of the configuration file to use") public void setConfigFile(URL url)
url - public URL getConfigFile()
public gate.Resource init()
throws gate.creole.ResourceInstantiationException
init in interface gate.Resourceinit in class gate.creole.AbstractResourcegate.creole.ResourceInstantiationExceptionpublic void load()
throws gate.creole.ResourceInstantiationException
gate.creole.ResourceInstantiationExceptionpublic URL getSourceURL()
AbstractOntologyImplgetSourceURL in class AbstractOntologyImpl