|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.memory.RdfSource
org.openrdf.sesame.sailimpl.memory.RdfRepository
org.openrdf.sesame.sailimpl.memory.RdfSchemaRepository
An implementation of the RdfSchemaRepository interface extending the memory repository with Schema inferencing capabilities.
| Field Summary |
| Fields inherited from class org.openrdf.sesame.sailimpl.memory.RdfRepository |
SYNC_DELAY_KEY |
| Fields inherited from class org.openrdf.sesame.sailimpl.memory.RdfSource |
COMPRESS_FILE_KEY, DATA_FORMAT_KEY, FILE_KEY |
| Constructor Summary | |
RdfSchemaRepository()
|
|
| Method Summary | |
void |
addStatement(Resource subj,
URI pred,
Value obj)
Adds a statament to the repository. |
void |
clearRepository()
Clears the repository. |
void |
commitTransaction()
Commits a started transaction. |
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 subProp,
Resource superProp)
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 |
getStatements(Resource subj,
URI pred,
Value obj)
Gets all statements with a specific subject, predicate and/or object. |
StatementIterator |
getStatements(Resource subj,
URI pred,
Value obj,
boolean explicitOnly)
|
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 |
hasStatement(Resource subj,
URI pred,
Value obj)
Checks whether some statement with a specific subject, predicate and/or object is present in the repository. |
boolean |
hasStatement(Resource subj,
URI pred,
Value obj,
boolean explicitOnly)
|
void |
initialize(File file,
RDFFormat dataFormat,
boolean compressFile)
Initializes this repository, using the specified file for persistent storage. |
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. |
int |
removeStatements(Resource subj,
URI pred,
Value obj)
Removes data statements that match the (subject, predicate, object) pattern from the repository. |
| Methods inherited from class org.openrdf.sesame.sailimpl.memory.RdfRepository |
addListener, changeNamespacePrefix, getSyncDelay, initialize, removeListener, setSyncDelay, shutDown, startTransaction, sync, transactionStarted |
| Methods inherited from class org.openrdf.sesame.sailimpl.memory.RdfSource |
createBNode, createBNode, createLiteral, createLiteral, createLiteral, createStatement, createURI, createURI, getNamespaces, getValueFactory, initialize, optimizeQuery |
| 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, getValueFactory, optimizeQuery |
| Methods inherited from interface org.openrdf.sesame.sail.Sail |
initialize, shutDown |
| Methods inherited from interface org.openrdf.sesame.sail.RdfRepository |
addListener, changeNamespacePrefix, removeListener, startTransaction, transactionStarted |
| Constructor Detail |
public RdfSchemaRepository()
| Method Detail |
public void initialize(File file,
RDFFormat dataFormat,
boolean compressFile)
throws SailInitializationException
RdfSource
initialize in class RdfRepositorySailInitializationException
public StatementIterator getStatements(Resource subj,
URI pred,
Value obj)
RdfSource
getStatements in interface RdfSourcegetStatements in class RdfSource
public boolean hasStatement(Resource subj,
URI pred,
Value obj)
RdfSource
hasStatement in interface RdfSourcehasStatement in class RdfSource
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 StatementIterator getStatements(Resource subj,
URI pred,
Value obj,
boolean explicitOnly)
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 boolean hasStatement(Resource subj,
URI pred,
Value obj,
boolean explicitOnly)
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 boolean isSubClassOf(Resource subClass,
Resource superClass)
RdfSchemaSource
isSubClassOf in interface RdfSchemaSourcesubClass - A classsuperClass - A class
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 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 boolean isSubPropertyOf(Resource subProperty,
Resource superProperty)
RdfSchemaSource
isSubPropertyOf in interface RdfSchemaSourcesubProperty - A propertysuperProperty - A property
public StatementIterator getDirectSubPropertyOf(Resource subProp,
Resource superProp)
RdfSchemaSource
getDirectSubPropertyOf in interface RdfSchemaSourcesubProp - The subproperty of the relations that should be returned,
or null if relations with any subproperty should be returned.superProp - The superproperty of the relations that should be returned,
or null if relations with any superproperty should be returned.
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 boolean isType(Resource anInstance,
Resource aClass)
RdfSchemaSource
isType in interface RdfSchemaSourceanInstance - An instanceaClass - A class
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 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.
public void commitTransaction()
RdfRepository
commitTransaction in interface RdfRepositorycommitTransaction in class RdfRepository
public void addStatement(Resource subj,
URI pred,
Value obj)
throws SailUpdateException
RdfRepository
addStatement in interface RdfRepositoryaddStatement in class RdfRepositorySailUpdateException
public int removeStatements(Resource subj,
URI pred,
Value obj)
throws SailUpdateException
RdfRepository
removeStatements in interface RdfRepositoryremoveStatements in class RdfRepositorySailUpdateException
public void clearRepository()
throws SailUpdateException
RdfRepository
clearRepository in interface RdfRepositoryclearRepository in class RdfRepositorySailUpdateException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||