|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An extension of RdfSource offering RDF Schema specific methods.
| Method Summary | |
StatementIterator |
getClasses()
Gets all defined classes. |
StatementIterator |
getDirectSubClassOf(Resource subClass,
Resource superClass)
Gets all direct subClassOf relations with a specific sub- and/or superclass. |
StatementIterator |
getDirectSubPropertyOf(Resource subProperty,
Resource superProperty)
Gets all direct subPropertyOf relations with a specific sub- and/or superproperty. |
StatementIterator |
getDirectType(Resource anInstance,
Resource aClass)
Gets all direct type relations with a specific instance and/or class. |
StatementIterator |
getDomain(Resource prop,
Resource domain)
Gets all domain relations with a specific property and/or domain class. |
StatementIterator |
getExplicitStatements(Resource subj,
URI pred,
Value obj)
Gets all explicitly added statements with a specific subject, predicate and/or object. |
LiteralIterator |
getLiterals(String label,
String language,
URI datatype)
Gets all literals with a specific label, language and/or datatype. |
StatementIterator |
getProperties()
Gets all defined properties. |
StatementIterator |
getRange(Resource prop,
Resource range)
Gets all range relations with a specific property and/or range class. |
StatementIterator |
getSubClassOf(Resource subClass,
Resource superClass)
Gets all subClassOf relations with a specific sub- and/or superclass. |
StatementIterator |
getSubPropertyOf(Resource subProperty,
Resource superProperty)
Gets all subPropertyOf relations with a specific sub- and/or superproperty. |
StatementIterator |
getType(Resource anInstance,
Resource aClass)
Gets all type relations with a specific instance and/or class. |
boolean |
hasExplicitStatement(Resource subj,
URI pred,
Value obj)
Checks if an explicitly added statement with a specific subject, predicate and/or object is present in the repository. |
boolean |
isClass(Resource resource)
Checks whether the supplied resource represents a class. |
boolean |
isDirectSubClassOf(Resource subClass,
Resource superClass)
Checks whether one resource is a direct subclass of another. |
boolean |
isDirectSubPropertyOf(Resource subProperty,
Resource superProperty)
Checks whether one resource is a direct subproperty of another. |
boolean |
isDirectType(Resource anInstance,
Resource aClass)
Checks whether one resource is a direct instance of another. |
boolean |
isProperty(Resource resource)
Checks whether the supplied resource represents a property. |
boolean |
isSubClassOf(Resource subClass,
Resource superClass)
Checks whether one resource is a subclass of another. |
boolean |
isSubPropertyOf(Resource subProperty,
Resource superProperty)
Checks whether one resource is a subproperty of another. |
boolean |
isType(Resource anInstance,
Resource aClass)
Checks whether one resource is an instance of another. |
| Methods inherited from interface org.openrdf.sesame.sail.RdfSource |
getNamespaces, getStatements, getValueFactory, hasStatement, optimizeQuery |
| Methods inherited from interface org.openrdf.sesame.sail.Sail |
initialize, shutDown |
| Method Detail |
public StatementIterator getExplicitStatements(Resource subj,
URI pred,
Value obj)
subj - subject of patternpred - predicate of patternobj - object of pattern
SailInternalException - To indicate an internal error.RdfSource.getStatements(org.openrdf.model.Resource, org.openrdf.model.URI, org.openrdf.model.Value)
public boolean hasExplicitStatement(Resource subj,
URI pred,
Value obj)
subj - subject of statementpred - predicate of statementobj - object of statement
SailInternalException - To indicate an internal error.RdfSource.hasStatement(org.openrdf.model.Resource, org.openrdf.model.URI, org.openrdf.model.Value)public StatementIterator getClasses()
SailInternalException - To indicate an internal error.public boolean isClass(Resource resource)
resource - A resource
SailInternalException - To indicate an internal error.public StatementIterator getProperties()
SailInternalException - To indicate an internal error.public boolean isProperty(Resource resource)
resource - A resource
SailInternalException - To indicate an internal error.
public StatementIterator getSubClassOf(Resource subClass,
Resource superClass)
subClass - The subclass of the relations that should be returned,
or null if relations with any subclass should be returned.superClass - The superclass of the relations that should be returned,
or null if relations with any superclass should be returned.
SailInternalException - To indicate an internal error.
public StatementIterator getDirectSubClassOf(Resource subClass,
Resource superClass)
subClass - The subclass of the relations that should be returned,
or null if relations with any subclass should be returned.superClass - The superclass of the relations that should be returned,
or null if relations with any superclass should be returned.
SailInternalException - To indicate an internal error.
public boolean isSubClassOf(Resource subClass,
Resource superClass)
subClass - A classsuperClass - A class
SailInternalException - To indicate an internal error.
public boolean isDirectSubClassOf(Resource subClass,
Resource superClass)
subClass - A classsuperClass - A class
SailInternalException - To indicate an internal error.
public StatementIterator getSubPropertyOf(Resource subProperty,
Resource superProperty)
subProperty - The subproperty of the relations that should be returned,
or null if relations with any subproperty should be returned.superProperty - The superproperty of the relations that should be returned,
or null if relations with any superproperty should be returned.
SailInternalException - To indicate an internal error.
public StatementIterator getDirectSubPropertyOf(Resource subProperty,
Resource superProperty)
subProperty - The subproperty of the relations that should be returned,
or null if relations with any subproperty should be returned.superProperty - The superproperty of the relations that should be returned,
or null if relations with any superproperty should be returned.
SailInternalException - To indicate an internal error.
public boolean isSubPropertyOf(Resource subProperty,
Resource superProperty)
subProperty - A propertysuperProperty - A property
SailInternalException - To indicate an internal error.
public boolean isDirectSubPropertyOf(Resource subProperty,
Resource superProperty)
subProperty - A propertysuperProperty - A property
SailInternalException - To indicate an internal error.
public StatementIterator getDomain(Resource prop,
Resource domain)
prop - The property of the relations that should be returned,
or null if relations with any property should be returned.domain - The domain of the relations that should be returned,
or null if relations with any domain should be returned.
SailInternalException - To indicate an internal error.
public StatementIterator getRange(Resource prop,
Resource range)
prop - The property of the relations that should be returned,
or null if relations with any property should be returned.range - The range of the relations that should be returned,
or null if relations with any range should be returned.
SailInternalException - To indicate an internal error.
public StatementIterator getType(Resource anInstance,
Resource aClass)
anInstance - The instance of the relations that should be returned,
or null if relations with any instance should be returned.aClass - The class of the relations that should be returned,
or null if relations with any class should be returned.
SailInternalException - To indicate an internal error.
public StatementIterator getDirectType(Resource anInstance,
Resource aClass)
anInstance - The instance of the relations that should be returned,
or null if relations with any instance should be returned.aClass - The class of the relations that should be returned,
or null if relations with any class should be returned.
SailInternalException - To indicate an internal error.
public boolean isType(Resource anInstance,
Resource aClass)
anInstance - An instanceaClass - A class
SailInternalException - To indicate an internal error.
public boolean isDirectType(Resource anInstance,
Resource aClass)
anInstance - An instanceaClass - A class
SailInternalException - To indicate an internal error.
public LiteralIterator getLiterals(String label,
String language,
URI datatype)
label - The label of the literals that should be returned,
or null if literals with any label should be returned.language - The language of the literals that should be returned,
or null if literals with any language should be returned.datatype - The datatype of the literals that should be returned,
or null if literals with any datatype should be returned.
SailInternalException - To indicate an internal error.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||