public interface RDFSModel extends RDFModel, RDFSReasoner
Modifier and Type | Method and Description |
---|---|
void |
addClass(String uri,
ARTResource... graphs)
This method has a different behavior depending on the level of the vocabulary used by the repository
implementation.
|
void |
addComment(ARTResource subject,
String label,
String language,
ARTResource... graphs)
Adds
label to subject in the given language language |
void |
addLabel(ARTResource subject,
String label,
String language,
ARTResource... graphs)
Adds
label to subject in the given language language |
void |
addPropertyDomain(ARTURIResource property,
ARTResource domain,
ARTResource... graphs)
adds a domain statement between
property and domain beware:
property should already be part of the repository! |
void |
addPropertyRange(ARTURIResource property,
ARTResource range,
ARTResource... graphs)
adds a range statement between
property and range beware:
property should already be part of the repository! |
void |
addSuperClass(ARTResource cls,
ARTResource supercls,
ARTResource... graphs) |
void |
addSuperProperty(ARTURIResource property,
ARTURIResource superProp,
ARTResource... graphs)
adds a subPropertyOf statement between
property and superProp beware:
property should already be part of the repository! |
void |
deleteClass(ARTResource cls,
ARTResource... graphs) |
boolean |
hasSuperProperty(ARTURIResource property,
ARTURIResource superProp,
boolean inferred,
ARTResource... graphs) |
boolean |
isClass(ARTResource cls,
ARTResource... graphs) |
ARTResourceIterator |
listClasses(boolean inferred,
ARTResource... graphs)
list all the classes in the current Model (in graphs:
graphs ). |
ARTLiteralIterator |
listComments(ARTResource res,
boolean inferred,
ARTResource... graphs)
lists all comments for given
ARTResource res |
ARTLiteralIterator |
listLabels(ARTResource res,
boolean inferred,
ARTResource... graphs)
lists all labels for given
ARTResource res |
ARTURIResourceIterator |
listNamedClasses(boolean inferred,
ARTResource... graphs)
list all the classes in the current Model (in graphs:
graphs ) which have a name (a URI). |
ARTURIResourceIterator |
listNamedResources(ARTResource... graphs)
list all the URI resources in the current Model.
|
ARTURIResourceIterator |
listPropertiesForDomainClass(ARTResource cls,
boolean inferred,
ARTResource... graphs)
returns all the properties which see class
cls as their domain |
ARTURIResourceIterator |
listPropertiesForRangeClass(ARTResource cls,
boolean inferred,
ARTResource... graphs)
returns all the properties which see class
cls as their range |
ARTResourceIterator |
listPropertyDomains(ARTResource property,
boolean inferred,
ARTResource... graphs)
returns all the classes which have been declared in the domain of the property
|
ARTResourceIterator |
listPropertyRanges(ARTResource property,
boolean inferred,
ARTResource... graphs)
as
getPropertyRanges(property, false) |
ARTResourceIterator |
listSubClasses(ARTResource cls,
boolean inferred,
ARTResource... graphs)
returns all subclasses (also non direct ones) of class
cls |
ARTURIResourceIterator |
listSubProperties(ARTURIResource property,
boolean inferred,
ARTResource... graphs)
returns a list of subproperties of
resource |
ARTResourceIterator |
listSuperClasses(ARTResource cls,
boolean inferred,
ARTResource... graphs)
returns all superclasses (also non direct ones) of class
cls |
ARTURIResourceIterator |
listSuperProperties(ARTURIResource property,
boolean inferred,
ARTResource... graphs)
returns a list of superproperties of
resource |
ARTURIResourceIterator |
listURISuperClasses(ARTResource cls,
boolean inferred,
ARTResource... graphs)
given class
cls , it retrieves all of its named superclasses in an Iterator |
void |
removeComment(ARTResource resource,
String label,
String language,
ARTResource... graphs)
removes a comment for given
resource from the model |
void |
removeLabel(ARTResource resource,
String label,
String language,
ARTResource... graphs)
removes a label for given
resource from the model |
void |
removePropertyDomain(ARTURIResource property,
ARTResource domain,
ARTResource... graphs)
removes a domain statement between
property and domain beware:
property should already be part of the repository! |
void |
removePropertyRange(ARTURIResource property,
ARTResource range,
ARTResource... graphs)
removes a range statement between
property and range beware:
property should already be part of the repository! |
void |
removeSuperClass(ARTResource cls,
ARTResource supercls,
ARTResource... graphs) |
void |
removeSuperProperty(ARTResource property,
ARTResource superProp,
ARTResource... graphs)
removes a subPropertyOf statement between
property and superProp beware:
property should already be part of the repository! |
void |
renameClass(ARTURIResource cls,
String newURI,
ARTResource... graphs) |
ARTURIResource |
retrieveClass(String uri,
ARTResource... graphs) |
addInstance, addProperty, addType, deleteProperty, deleteResource, existsResource, hasType, instantiatePropertyWithPlainLiteral, instantiatePropertyWithPlainLiteral, instantiatePropertyWithResource, instantiatePropertyWithTypedLiteral, isLocallyDefined, isProperty, listInstances, listNamedInstances, listProperties, listTypes, removeType, renameProperty, renameResource, retrieveBNode, retrieveURIResource
addRDF, addRDF, addStatement, addTriple, clearRDF, close, deleteStatement, deleteTriple, getBaseURI, getDefaultNamespace, hasStatement, hasTriple, listNamedGraphs, listNamespaces, listPredicatesOfSubjObjPair, listStatements, listSubjectsOfPredObjPair, listValuesOfSubjPredPair, setBaseURI, setDefaultNamespace, writeRDF, writeRDF
expandQName, getNamespacePrefixMapping, getNSForPrefix, getPrefixForNS, getQName, removeNsPrefixMapping, setNsPrefix
createBNode, createBNode, createLiteral, createLiteral, createLiteral, createStatement, createURIResource
writeRDF, writeRDF
createBooleanQuery, createBooleanQuery, createBooleanQuery, createGraphQuery, createGraphQuery, createGraphQuery, createQuery, createQuery, createQuery, createTupleQuery, createTupleQuery, createTupleQuery, createUpdateQuery, createUpdateQuery, createUpdateQuery
createBooleanQuery, createGraphQuery, createQuery, createTupleQuery, createUpdate
supportsClassIdentification, supportsSubClassOfClosure, supportsSubPropertyMaterialization, supportsSubPropertyOfClosure
ARTURIResourceIterator listURISuperClasses(ARTResource cls, boolean inferred, ARTResource... graphs) throws ModelAccessException
cls
, it retrieves all of its named superclasses in an Iteratorcls
- inferred
- graphs
- ModelAccessException
void removeComment(ARTResource resource, String label, String language, ARTResource... graphs) throws ModelUpdateException
resource
from the modelsubject
- label
- language
- graphs
- ModelUpdateException
void removeLabel(ARTResource resource, String label, String language, ARTResource... graphs) throws ModelUpdateException
resource
from the modelsubject
- label
- language
- graphs
- ModelUpdateException
void removePropertyDomain(ARTURIResource property, ARTResource domain, ARTResource... graphs) throws ModelUpdateException
property
and domain
beware:
property
should already be part of the repository!property
- domain
- graphs
- ModelUpdateException
void removePropertyRange(ARTURIResource property, ARTResource range, ARTResource... graphs) throws ModelUpdateException
property
and range
beware:
property
should already be part of the repository!property
- range
- ModelUpdateException
void removeSuperProperty(ARTResource property, ARTResource superProp, ARTResource... graphs) throws ModelUpdateException
property
and superProp
beware:
property
should already be part of the repository!property
- superProp
- ModelUpdateException
void addClass(String uri, ARTResource... graphs) throws ModelUpdateException
uri
- URI string of the class being createdModelUpdateException
void addComment(ARTResource subject, String label, String language, ARTResource... graphs) throws ModelUpdateException
label
to subject
in the given language language
subject
- label
- language
- ModelUpdateException
void addPropertyDomain(ARTURIResource property, ARTResource domain, ARTResource... graphs) throws ModelUpdateException
property
and domain
beware:
property
should already be part of the repository!property
- domain
- ModelUpdateException
void addPropertyRange(ARTURIResource property, ARTResource range, ARTResource... graphs) throws ModelUpdateException
property
and range
beware:
property
should already be part of the repository!property
- range
- ModelUpdateException
void addLabel(ARTResource subject, String label, String language, ARTResource... graphs) throws ModelUpdateException
label
to subject
in the given language language
subject
- label
- language
- ModelUpdateException
void addSuperClass(ARTResource cls, ARTResource supercls, ARTResource... graphs) throws ModelUpdateException
ModelUpdateException
void addSuperProperty(ARTURIResource property, ARTURIResource superProp, ARTResource... graphs) throws ModelUpdateException
property
and superProp
beware:
property
should already be part of the repository!property
- superProp
- ModelUpdateException
boolean hasSuperProperty(ARTURIResource property, ARTURIResource superProp, boolean inferred, ARTResource... graphs) throws ModelAccessException
property
- superProp
- inferred
- graphs
- true
if property rdfs:subPropertyOf superProp
ModelAccessException
ARTLiteralIterator listComments(ARTResource res, boolean inferred, ARTResource... graphs) throws ModelAccessException
ARTResource
res
res
- inferred
- graphs
- ModelAccessException
ARTLiteralIterator listLabels(ARTResource res, boolean inferred, ARTResource... graphs) throws ModelAccessException
ARTResource
res
res
- inferred
- graphs
- ModelAccessException
ARTResourceIterator listPropertyDomains(ARTResource property, boolean inferred, ARTResource... graphs) throws ModelAccessException
property
- the property whose domain is being queriedinferred
- ModelAccessException
ARTResourceIterator listPropertyRanges(ARTResource property, boolean inferred, ARTResource... graphs) throws ModelAccessException
getPropertyRanges(property, false)property
- the property whose range is being queriedinferred
- ModelAccessException
ARTURIResourceIterator listPropertiesForDomainClass(ARTResource cls, boolean inferred, ARTResource... graphs) throws ModelAccessException
cls
as their domaincls
- ModelAccessException
ARTURIResourceIterator listPropertiesForRangeClass(ARTResource cls, boolean inferred, ARTResource... graphs) throws ModelAccessException
cls
as their rangecls
- ModelAccessException
ARTURIResource retrieveClass(String uri, ARTResource... graphs) throws ModelAccessException
uri
- graphs
- ModelAccessException
ARTResourceIterator listClasses(boolean inferred, ARTResource... graphs) throws ModelAccessException
graphs
). If this model is also an
RDFSReasoner
which RDFSReasoner.supportsSubClassOfClosure()
, the returned URIs are all
rdf instances of RDFS.CLASS
. If negative case, the returned URIs are those specified as
subjects of triples present in the given graphs
where the predicate is RDF.TYPE
or
RDFS.SUBCLASSOF
.inferred
- ModelAccessException
ARTURIResourceIterator listNamedClasses(boolean inferred, ARTResource... graphs) throws ModelAccessException
graphs
) which have a name (a URI).
If this model is also an RDFSReasoner
which RDFSReasoner.supportsSubClassOfClosure()
,
the returned URIs are all rdf instances of RDFS.CLASS
. If negative case, the returned URIs are
those specified as subjects of triples present in the given graphs
where the predicate is
RDF.TYPE
or RDFS.SUBCLASSOF
.inferred
- ModelAccessException
ARTURIResourceIterator listNamedResources(ARTResource... graphs) throws ModelAccessException
RDFSReasoner
which
RDFSReasoner.supportsSubClassOfClosure()
, the returned URIs are all rdf instances of
RDFS.RESOURCE
. If negative case, the returned URIs are those specified as subjects of triples
present in the specified graphs
.graphs
- ModelAccessException
ARTResourceIterator listSubClasses(ARTResource cls, boolean inferred, ARTResource... graphs) throws ModelAccessException
cls
inferred
- resource
- ModelAccessException
ARTResourceIterator listSuperClasses(ARTResource cls, boolean inferred, ARTResource... graphs) throws ModelAccessException
cls
inferred
- TODOresource
- ModelAccessException
ARTURIResourceIterator listSubProperties(ARTURIResource property, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource
property
- inferred
- resource
ModelAccessException
ARTURIResourceIterator listSuperProperties(ARTURIResource property, boolean inferred, ARTResource... graphs) throws ModelAccessException
resource
property
- inferred
- resource
ModelAccessException
boolean isClass(ARTResource cls, ARTResource... graphs) throws ModelAccessException
ModelAccessException
void removeSuperClass(ARTResource cls, ARTResource supercls, ARTResource... graphs) throws ModelUpdateException
ModelUpdateException
void deleteClass(ARTResource cls, ARTResource... graphs) throws ModelUpdateException
ModelUpdateException
void renameClass(ARTURIResource cls, String newURI, ARTResource... graphs) throws ModelUpdateException
ModelUpdateException
Copyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.