|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.sync.SyncRdfRepository
org.openrdf.sesame.sailimpl.sync.SyncRdfSchemaRepository
| Constructor Summary | |
SyncRdfSchemaRepository()
|
|
| 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. |
void |
setBaseSail(Sail sail)
Sets the base Sail that this Sail will work on top of. |
| Methods inherited from class org.openrdf.sesame.sailimpl.sync.SyncRdfRepository |
addListener, addStatement, changeNamespacePrefix, clearRepository, commitTransaction, getBaseSail, getNamespaces, getStatements, getValueFactory, hasStatement, initialize, optimizeQuery, removeListener, removeStatements, shutDown, startTransaction, transactionStarted |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Methods inherited from interface org.openrdf.sesame.sail.RdfRepository |
addListener, addStatement, changeNamespacePrefix, clearRepository, commitTransaction, removeListener, removeStatements, startTransaction, transactionStarted |
| Methods inherited from interface org.openrdf.sesame.sail.StackedSail |
getBaseSail |
| Constructor Detail |
public SyncRdfSchemaRepository()
| Method Detail |
public void setBaseSail(Sail sail)
StackedSail
setBaseSail in interface StackedSailsetBaseSail in class SyncRdfRepository
public StatementIterator getExplicitStatements(Resource subj,
URI pred,
Value obj)
RdfSchemaSource
getExplicitStatements in interface RdfSchemaSourcesubj - subject of patternpred - predicate of patternobj - object of pattern
RdfSource.getStatements(org.openrdf.model.Resource, org.openrdf.model.URI, org.openrdf.model.Value)
public boolean hasExplicitStatement(Resource subj,
URI pred,
Value obj)
RdfSchemaSource
hasExplicitStatement in interface RdfSchemaSourcesubj - subject of statementpred - predicate of statementobj - object of statement
RdfSource.hasStatement(org.openrdf.model.Resource, org.openrdf.model.URI, org.openrdf.model.Value)public StatementIterator getClasses()
RdfSchemaSource
getClasses in interface RdfSchemaSourcepublic boolean isClass(Resource resource)
RdfSchemaSource
isClass in interface RdfSchemaSourceresource - A resource
public StatementIterator getProperties()
RdfSchemaSource
getProperties in interface RdfSchemaSourcepublic boolean isProperty(Resource resource)
RdfSchemaSource
isProperty in interface RdfSchemaSourceresource - A resource
public StatementIterator getSubClassOf(Resource subClass,
Resource superClass)
RdfSchemaSource
getSubClassOf in interface RdfSchemaSourcesubClass - 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.
public StatementIterator getDirectSubClassOf(Resource subClass,
Resource superClass)
RdfSchemaSource
getDirectSubClassOf in interface RdfSchemaSourcesubClass - 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.
public boolean isSubClassOf(Resource subClass,
Resource superClass)
RdfSchemaSource
isSubClassOf in interface RdfSchemaSourcesubClass - A classsuperClass - A class
public boolean isDirectSubClassOf(Resource subClass,
Resource superClass)
RdfSchemaSource
isDirectSubClassOf in interface RdfSchemaSourcesubClass - A classsuperClass - A class
public StatementIterator getSubPropertyOf(Resource subProperty,
Resource superProperty)
RdfSchemaSource
getSubPropertyOf in interface RdfSchemaSourcesubProperty - 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.
public StatementIterator getDirectSubPropertyOf(Resource subProperty,
Resource superProperty)
RdfSchemaSource
getDirectSubPropertyOf in interface RdfSchemaSourcesubProperty - 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.
public boolean isSubPropertyOf(Resource subProperty,
Resource superProperty)
RdfSchemaSource
isSubPropertyOf in interface RdfSchemaSourcesubProperty - A propertysuperProperty - A property
public boolean isDirectSubPropertyOf(Resource subProperty,
Resource superProperty)
RdfSchemaSource
isDirectSubPropertyOf in interface RdfSchemaSourcesubProperty - A propertysuperProperty - A property
public StatementIterator getDomain(Resource prop,
Resource domain)
RdfSchemaSource
getDomain in interface RdfSchemaSourceprop - 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.
public StatementIterator getRange(Resource prop,
Resource range)
RdfSchemaSource
getRange in interface RdfSchemaSourceprop - 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.
public StatementIterator getType(Resource anInstance,
Resource aClass)
RdfSchemaSource
getType in interface RdfSchemaSourceanInstance - 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.
public StatementIterator getDirectType(Resource anInstance,
Resource aClass)
RdfSchemaSource
getDirectType in interface RdfSchemaSourceanInstance - 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.
public boolean isType(Resource anInstance,
Resource aClass)
RdfSchemaSource
isType in interface RdfSchemaSourceanInstance - An instanceaClass - A class
public boolean isDirectType(Resource anInstance,
Resource aClass)
RdfSchemaSource
isDirectType in interface RdfSchemaSourceanInstance - An instanceaClass - A class
public LiteralIterator getLiterals(String label,
String language,
URI datatype)
RdfSchemaSource
getLiterals in interface RdfSchemaSourcelabel - 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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||