it.uniroma2.art.owlart.models
Interface RDFSModel

All Superinterfaces:
ARTNodeFactory, BaseRDFTripleModel, PrefixMapping, RDFModel, RDFSReasoner, TripleQueryModel
All Known Subinterfaces:
OWLModel, SKOSModel, SKOSXLModel
All Known Implementing Classes:
OWLModelImpl, RDFSModelImpl, SKOSModelImpl, SKOSXLModelImpl

public interface RDFSModel
extends RDFModel, RDFSReasoner

Interface for basic RDFS models

Author:
Armando Stellato

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

listURISuperClasses

ARTURIResourceIterator listURISuperClasses(ARTResource cls,
                                           boolean inferred,
                                           ARTResource... graphs)
                                           throws ModelAccessException
given class cls, it retrieves all of its named superclasses in an Iterator

Parameters:
cls -
inferred -
graphs -
Returns:
Throws:
ModelAccessException

removeComment

void removeComment(ARTResource resource,
                   java.lang.String label,
                   java.lang.String language,
                   ARTResource... graphs)
                   throws ModelUpdateException
removes a comment for given resource from the model

Parameters:
subject -
label -
language -
graphs -
Throws:
ModelUpdateException

removeLabel

void removeLabel(ARTResource resource,
                 java.lang.String label,
                 java.lang.String language,
                 ARTResource... graphs)
                 throws ModelUpdateException
removes a label for given resource from the model

Parameters:
subject -
label -
language -
graphs -
Throws:
ModelUpdateException

removePropertyDomain

void removePropertyDomain(ARTURIResource property,
                          ARTResource domain,
                          ARTResource... graphs)
                          throws ModelUpdateException
removes a domain statement between property and domain beware: property should already be part of the repository!

Parameters:
property -
domain -
graphs -
Throws:
ModelUpdateException

removePropertyRange

void removePropertyRange(ARTURIResource property,
                         ARTResource range,
                         ARTResource... graphs)
                         throws ModelUpdateException
removes a range statement between property and range beware: property should already be part of the repository!

Parameters:
property -
range -
Throws:
ModelUpdateException

removeSuperProperty

void removeSuperProperty(ARTResource property,
                         ARTResource superProp,
                         ARTResource... graphs)
                         throws ModelUpdateException
removes a subPropertyOf statement between property and superProp beware: property should already be part of the repository!

Parameters:
property -
superProp -
Throws:
ModelUpdateException

addClass

void addClass(java.lang.String uri,
              ARTResource... graphs)
              throws ModelUpdateException
This method has a different behavior depending on the level of the vocabulary used by the repository implementation. The newly created class will be an rdfs:Class in RDFS repositories and owl:Class in OWL repositories

Parameters:
uri - URI string of the class being created
Throws:
ModelUpdateException

addComment

void addComment(ARTResource subject,
                java.lang.String label,
                java.lang.String language,
                ARTResource... graphs)
                throws ModelUpdateException
Adds label to subject in the given language language

Parameters:
subject -
label -
language -
Throws:
ModelUpdateException

addPropertyDomain

void addPropertyDomain(ARTURIResource property,
                       ARTResource domain,
                       ARTResource... graphs)
                       throws ModelUpdateException
adds a domain statement between property and domain beware: property should already be part of the repository!

Parameters:
property -
domain -
Throws:
ModelUpdateException

addPropertyRange

void addPropertyRange(ARTURIResource property,
                      ARTResource range,
                      ARTResource... graphs)
                      throws ModelUpdateException
adds a range statement between property and range beware: property should already be part of the repository!

Parameters:
property -
range -
Throws:
ModelUpdateException

addLabel

void addLabel(ARTResource subject,
              java.lang.String label,
              java.lang.String language,
              ARTResource... graphs)
              throws ModelUpdateException
Adds label to subject in the given language language

Parameters:
subject -
label -
language -
Throws:
ModelUpdateException

addSuperClass

void addSuperClass(ARTResource cls,
                   ARTResource supercls,
                   ARTResource... graphs)
                   throws ModelUpdateException
Throws:
ModelUpdateException

addSuperProperty

void addSuperProperty(ARTURIResource property,
                      ARTURIResource superProp,
                      ARTResource... graphs)
                      throws ModelUpdateException
adds a subPropertyOf statement between property and superProp beware: property should already be part of the repository!

Parameters:
property -
superProp -
Throws:
ModelUpdateException

listComments

ARTLiteralIterator listComments(ARTResource res,
                                boolean inferred,
                                ARTResource... graphs)
                                throws ModelAccessException
lists all comments for given ARTResource res

Parameters:
res -
inferred -
graphs -
Returns:
Throws:
ModelAccessException

listLabels

ARTLiteralIterator listLabels(ARTResource res,
                              boolean inferred,
                              ARTResource... graphs)
                              throws ModelAccessException
lists all labels for given ARTResource res

Parameters:
res -
inferred -
graphs -
Returns:
Throws:
ModelAccessException

listPropertyDomains

ARTResourceIterator listPropertyDomains(ARTResource property,
                                        boolean inferred,
                                        ARTResource... graphs)
                                        throws ModelAccessException
returns all the classes which have been declared in the domain of the property

Parameters:
property - the property whose domain is being queried
inferred -
Returns:
the ranges of the property
Throws:
ModelAccessException

listPropertyRanges

ARTResourceIterator listPropertyRanges(ARTResource property,
                                       boolean inferred,
                                       ARTResource... graphs)
                                       throws ModelAccessException
as getPropertyRanges(property, false)

Parameters:
property - the property whose range is being queried
inferred -
Returns:
the ranges of the property
Throws:
ModelAccessException

listPropertiesForDomainClass

ARTURIResourceIterator listPropertiesForDomainClass(ARTResource cls,
                                                    boolean inferred,
                                                    ARTResource... graphs)
                                                    throws ModelAccessException
returns all the properties which see class cls as their domain

Parameters:
cls -
Returns:
Throws:
ModelAccessException

listPropertiesForRangeClass

ARTURIResourceIterator listPropertiesForRangeClass(ARTResource cls,
                                                   boolean inferred,
                                                   ARTResource... graphs)
                                                   throws ModelAccessException
returns all the properties which see class cls as their range

Parameters:
cls -
Returns:
Throws:
ModelAccessException

retrieveClass

ARTURIResource retrieveClass(java.lang.String uri,
                             ARTResource... graphs)
                             throws ModelAccessException
Parameters:
uri -
graphs -
Returns:
Throws:
ModelAccessException

listNamedClasses

ARTURIResourceIterator listNamedClasses(boolean inferred,
                                        ARTResource... graphs)
                                        throws ModelAccessException
list all the classes in the current Model (in graphs: 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.

Parameters:
inferred -
Returns:
Collection arrayList
Throws:
ModelAccessException

listNamedResources

ARTURIResourceIterator listNamedResources(ARTResource... graphs)
                                          throws ModelAccessException
list all the URI resources in the current Model. If this model is also an 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.

Parameters:
graphs -
Returns:
Throws:
ModelAccessException

listSubClasses

ARTResourceIterator listSubClasses(ARTResource cls,
                                   boolean inferred,
                                   ARTResource... graphs)
                                   throws ModelAccessException
returns all subclasses (also non direct ones) of class cls

Parameters:
inferred -
resource -
Returns:
Throws:
ModelAccessException

listSuperClasses

ARTResourceIterator listSuperClasses(ARTResource cls,
                                     boolean inferred,
                                     ARTResource... graphs)
                                     throws ModelAccessException
returns all superclasses (also non direct ones) of class cls

Parameters:
inferred - TODO
resource -
Returns:
Throws:
ModelAccessException

listSubProperties

ARTURIResourceIterator listSubProperties(ARTURIResource property,
                                         boolean inferred,
                                         ARTResource... graphs)
                                         throws ModelAccessException
returns a list of subproperties of resource

Parameters:
property -
inferred -
Returns:
a list of subproperties of resource
Throws:
ModelAccessException

listSuperProperties

ARTURIResourceIterator listSuperProperties(ARTURIResource property,
                                           boolean inferred,
                                           ARTResource... graphs)
                                           throws ModelAccessException
returns a list of superproperties of resource

Parameters:
property -
inferred -
Returns:
a list of superproperties of resource
Throws:
ModelAccessException

isClass

boolean isClass(ARTResource cls,
                ARTResource... graphs)
                throws ModelAccessException
Throws:
ModelAccessException

removeSuperClass

void removeSuperClass(ARTResource cls,
                      ARTResource supercls,
                      ARTResource... graphs)
                      throws ModelUpdateException
Throws:
ModelUpdateException

renameClass

void renameClass(ARTURIResource cls,
                 java.lang.String newURI)
                 throws ModelUpdateException
changes a class' local name

Throws:
ModelUpdateException


Copyright © 2011 ART Group, University of Rome, Tor Vergata. All Rights Reserved.