|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RDFSModel
Interface for basic RDFS models
| Method Summary | |
|---|---|
void |
addClass(java.lang.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,
java.lang.String label,
java.lang.String language,
ARTResource... graphs)
Adds label to subject in the given language language |
void |
addLabel(ARTResource subject,
java.lang.String label,
java.lang.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! |
boolean |
isClass(ARTResource cls,
ARTResource... 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,
java.lang.String label,
java.lang.String language,
ARTResource... graphs)
removes a comment for given resource from the model |
void |
removeLabel(ARTResource resource,
java.lang.String label,
java.lang.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,
java.lang.String newURI)
changes a class' local name |
ARTURIResource |
retrieveClass(java.lang.String uri,
ARTResource... graphs)
|
| Methods inherited from interface it.uniroma2.art.owlart.models.RDFModel |
|---|
addInstance, addProperty, addType, hasType, instantiatePropertyWithPlainLiteral, instantiatePropertyWithPlainLiteral, instantiatePropertyWithResource, instantiatePropertyWithTypedLiteral, isProperty, listInstances, listNamedInstances, listProperties, listTypes, removeType, renameIndividual, renameProperty, retrieveBNode, retrieveURIResource |
| Methods inherited from interface it.uniroma2.art.owlart.models.BaseRDFTripleModel |
|---|
addRDF, addRDF, addStatement, addTriple, clearRDF, close, deleteStatement, deleteTriple, getBaseURI, getDefaultNamespace, hasStatement, hasTriple, listNamedGraphs, listNamespaces, listPredicatesOfSubjObjPair, listStatements, listSubjectsOfPredObjPair, listValuesOfSubjPredPair, setBaseURI, setDefaultNamespace, writeRDF, writeRDF |
| Methods inherited from interface it.uniroma2.art.owlart.models.PrefixMapping |
|---|
expandQName, getNamespacePrefixMapping, getNSForPrefix, getPrefixForNS, getQName, removeNsPrefixMapping, setNsPrefix |
| Methods inherited from interface it.uniroma2.art.owlart.models.TripleQueryModel |
|---|
createBooleanQuery, createGraphQuery, createQuery, createTupleQuery |
| Methods inherited from interface it.uniroma2.art.owlart.model.ARTNodeFactory |
|---|
createBNode, createBNode, createLiteral, createLiteral, createLiteral, createURIResource |
| Methods inherited from interface it.uniroma2.art.owlart.models.RDFSReasoner |
|---|
supportsSubClassOfClosure, supportsSubPropertyMaterialization, supportsSubPropertyOfClosure |
| Method Detail |
|---|
ARTURIResourceIterator listURISuperClasses(ARTResource cls,
boolean inferred,
ARTResource... graphs)
throws ModelAccessException
cls, it retrieves all of its named superclasses in an Iterator
cls - inferred - graphs -
ModelAccessException
void removeComment(ARTResource resource,
java.lang.String label,
java.lang.String language,
ARTResource... graphs)
throws ModelUpdateException
resource from the model
subject - label - language - graphs -
ModelUpdateException
void removeLabel(ARTResource resource,
java.lang.String label,
java.lang.String language,
ARTResource... graphs)
throws ModelUpdateException
resource from the model
subject - 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(java.lang.String uri,
ARTResource... graphs)
throws ModelUpdateException
uri - URI string of the class being created
ModelUpdateException
void addComment(ARTResource subject,
java.lang.String label,
java.lang.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,
java.lang.String label,
java.lang.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
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 domain
cls -
ModelAccessException
ARTURIResourceIterator listPropertiesForRangeClass(ARTResource cls,
boolean inferred,
ARTResource... graphs)
throws ModelAccessException
cls as their range
cls -
ModelAccessException
ARTURIResource retrieveClass(java.lang.String uri,
ARTResource... graphs)
throws ModelAccessException
uri - graphs -
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 renameClass(ARTURIResource cls,
java.lang.String newURI)
throws ModelUpdateException
ModelUpdateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||