|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RDFModel
Interface for basic RDF models
Also, contains extensions to the TripleQueryModel which allows for more flexible management of
query parameters
| Method Summary | |
|---|---|
void |
addInstance(java.lang.String uri,
ARTResource cls,
ARTResource... graphs)
adds a resource with uri= uri to the specified graphsThe resource is automatically typized with class cls |
void |
addProperty(java.lang.String propertyURI,
ARTURIResource superProperty,
ARTResource... graphs)
adds a resource with uri= propertyURI as an rdf:PropertyThe new property is defined as subproperty of suprtProperty (unless this last is
null) |
void |
addType(ARTResource res,
ARTResource cls,
ARTResource... graphs)
adds a type to resource res |
boolean |
hasType(ARTResource res,
ARTResource type,
boolean inferred,
ARTResource... graphs)
checks if resource type is a type for resource res |
void |
instantiatePropertyWithPlainLiteral(ARTResource subject,
ARTURIResource predicate,
java.lang.String value,
ARTResource... graphs)
creates a triple for the given subject, predicate and valueby using a plain literal with no language tag as the object |
void |
instantiatePropertyWithPlainLiteral(ARTResource subject,
ARTURIResource predicate,
java.lang.String value,
java.lang.String lang,
ARTResource... graphs)
creates a triple for the given subject, predicate and valueby using a plain literal with a language tag as the object |
void |
instantiatePropertyWithResource(ARTResource subject,
ARTURIResource predicate,
ARTResource object,
ARTResource... graphs)
creates a triple for the given subject, predicate and objectjust a mere rewriting of addTriple with the object constrained to be a Resource |
void |
instantiatePropertyWithTypedLiteral(ARTResource subject,
ARTURIResource property,
java.lang.String value,
ARTURIResource datatype,
ARTResource... graphs)
creates a triple for the given subject, predicate and object, which is
described by its label (value) and (datatype) |
boolean |
isProperty(ARTResource prop,
ARTResource... graphs)
checks that resource prop is a propertyIf available, reasoning is activated by default, so all kind of properties should be properly checked by this method |
ARTResourceIterator |
listInstances(ARTResource type,
boolean inferred,
ARTResource... graphs)
retrieves all instances of class type |
ARTURIResourceIterator |
listNamedInstances(ARTResource... graphs)
|
ARTURIResourceIterator |
listProperties(ARTResource... graphs)
list all properties declared in graphs graphsIf available, reasoning is activated by default, so all kind of properties should be returned by this method |
ARTResourceIterator |
listTypes(ARTResource res,
boolean inferred,
ARTResource... graphs)
retrieves all classes which are types for resource res |
void |
removeType(ARTResource res,
ARTResource cls,
ARTResource... graphs)
removes the rdf:type relationship between res and cls |
void |
renameIndividual(ARTURIResource res,
java.lang.String newURI)
renames a resource (which can either be a class or an individual) |
void |
renameProperty(ARTURIResource res,
java.lang.String newLocalName)
renames a property |
ARTBNode |
retrieveBNode(java.lang.String ID,
ARTResource... graphs)
Contract for this method is: If there exist a triple in the specified graphs graphs where a blank node with id=
ID is mentioned, then return that blank node, otherwise return null |
ARTURIResource |
retrieveURIResource(java.lang.String uri,
ARTResource... graphs)
Contract for this method is: If there exist a triple in the specified graphs graphs where a resource with uri=
uri is mentioned, then return that resource, otherwise return null |
| 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 |
| Method Detail |
|---|
void addInstance(java.lang.String uri,
ARTResource cls,
ARTResource... graphs)
throws ModelUpdateException
uri to the specified graphscls
uri - cls - graphs -
ModelUpdateException
void addProperty(java.lang.String propertyURI,
ARTURIResource superProperty,
ARTResource... graphs)
throws ModelUpdateException
propertyURI as an rdf:PropertysuprtProperty (unless this last is
null)
propertyURI - superProperty - graphs -
ModelUpdateException
void addType(ARTResource res,
ARTResource cls,
ARTResource... graphs)
throws ModelUpdateException
res
res - cls - graphs -
ModelUpdateException
void instantiatePropertyWithPlainLiteral(ARTResource subject,
ARTURIResource predicate,
java.lang.String value,
ARTResource... graphs)
throws ModelUpdateException
subject, predicate and value
subject - predicate - value - graphs -
ModelUpdateException
void instantiatePropertyWithPlainLiteral(ARTResource subject,
ARTURIResource predicate,
java.lang.String value,
java.lang.String lang,
ARTResource... graphs)
throws ModelUpdateException
subject, predicate and value
subject - predicate - value - graphs -
ModelUpdateException
void instantiatePropertyWithTypedLiteral(ARTResource subject,
ARTURIResource property,
java.lang.String value,
ARTURIResource datatype,
ARTResource... graphs)
throws ModelUpdateException
subject, predicate and object, which is
described by its label (value) and (datatype)
subject - property - value - lang -
ModelUpdateException
void instantiatePropertyWithResource(ARTResource subject,
ARTURIResource predicate,
ARTResource object,
ARTResource... graphs)
throws ModelUpdateException
subject, predicate and object
subject - predicate - object - graphs -
ModelUpdateException
ARTURIResourceIterator listProperties(ARTResource... graphs)
throws ModelAccessException
graphs
graphs -
ModelAccessException
ARTURIResource retrieveURIResource(java.lang.String uri,
ARTResource... graphs)
throws ModelAccessException
graphs where a resource with uri=
uri is mentioned, then return that resource, otherwise return null
uri - graphs -
ModelAccessException
ARTBNode retrieveBNode(java.lang.String ID,
ARTResource... graphs)
throws ModelAccessException
graphs where a blank node with id=
ID is mentioned, then return that blank node, otherwise return null
uri - graphs -
ModelAccessException
ARTResourceIterator listTypes(ARTResource res,
boolean inferred,
ARTResource... graphs)
throws ModelAccessException
res
res - inferred - graphs -
ModelAccessException
ARTResourceIterator listInstances(ARTResource type,
boolean inferred,
ARTResource... graphs)
throws ModelAccessException
type
type - inferred - graphs -
ModelAccessException
ARTURIResourceIterator listNamedInstances(ARTResource... graphs)
throws ModelAccessException
ModelAccessException
boolean hasType(ARTResource res,
ARTResource type,
boolean inferred,
ARTResource... graphs)
throws ModelAccessException
type is a type for resource res
res - type - inferred - graphs -
ModelAccessException
void removeType(ARTResource res,
ARTResource cls,
ARTResource... graphs)
throws ModelUpdateException
res and cls
res - cls - graphs -
ModelUpdateException
void renameIndividual(ARTURIResource res,
java.lang.String newURI)
throws ModelUpdateException
res - newURI -
ModelUpdateException
void renameProperty(ARTURIResource res,
java.lang.String newLocalName)
throws ModelUpdateException
res - newLocalName -
ModelUpdateException
boolean isProperty(ARTResource prop,
ARTResource... graphs)
throws ModelAccessException
prop is a property
prop - graphs -
ModelAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||