|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.rdbms.RdfSource
org.openrdf.sesame.sailimpl.rdbms.RdfRepository
org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository
A portable implementation of the RdfSchemaRepository interface for relational databases. This class defines the RDF Schema specific methods and takes care of RDF Model Theory inferencing. The superclasses define the basic RDF functionality.
| Field Summary | |
static String |
INFERENCER_KEY
Key used to store a fully qualified inferencer class name in the initialization parameters. |
int |
rdfAltId
|
int |
rdfBagId
|
int |
rdfFirstId
|
int |
rdfListId
|
int |
rdfNilId
|
int |
rdfObjectId
|
int |
rdfPredicateId
|
int |
rdfPropertyId
|
int |
rdfRestId
|
int |
rdfsClassId
|
int |
rdfsCommentId
|
int |
rdfsContainerId
|
int |
rdfsContainerMembershipPropertyId
|
int |
rdfsDatatypeId
|
int |
rdfsDomainId
|
int |
rdfSeqId
|
int |
rdfsIsDefinedById
|
int |
rdfsLabelId
|
int |
rdfsLiteralId
|
int |
rdfsMemberId
|
int |
rdfsRangeId
|
int |
rdfsResourceId
|
int |
rdfsSeeAlsoId
|
int |
rdfsSubClassOfId
|
int |
rdfsSubPropertyOfId
|
int |
rdfStatementId
|
int |
rdfSubjectId
|
int |
rdfTypeId
|
int |
rdfValueId
|
int |
rdfXMLLiteralId
|
static String |
USE_DEPENDENCY_INFERENCER_KEY
|
| Fields inherited from class org.openrdf.sesame.sailimpl.rdbms.RdfSource |
JDBC_DRIVER_KEY, JDBC_URL_KEY, KEY_EXPORT_FLAGS, KEY_SCHEMACREATOR, KEY_SCHEMAVERSION, PASSWORD_KEY, USER_KEY, VALUE_DIRTY, VALUE_UP_TO_DATE |
| Constructor Summary | |
RdfSchemaRepository()
|
|
| Method Summary | |
void |
clearRepository()
Clears the repository. |
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 domain)
Gets all range relations with a specific property and/or range class. |
RDBMS |
getRDBMS()
|
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. |
void |
initialize(Map configParams)
Initializes the Sail using a set of configuration parameters. |
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 class org.openrdf.sesame.sailimpl.rdbms.RdfRepository |
addListener, addStatement, changeNamespacePrefix, commitTransaction, removeListener, removeStatements, startTransaction, transactionStarted |
| Methods inherited from class org.openrdf.sesame.sailimpl.rdbms.RdfSource |
createBNode, createBNode, createLiteral, createLiteral, createLiteral, createStatement, createURI, createURI, getLiteral, getNamespaces, getResource, getStatements, getStatements, getValue, getValueFactory, hasStatement, hasStatement, initialize, initialize, optimizeQuery, shutDown |
| 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 |
shutDown |
| Methods inherited from interface org.openrdf.sesame.sail.RdfRepository |
addListener, addStatement, changeNamespacePrefix, commitTransaction, removeListener, removeStatements, startTransaction, transactionStarted |
| Field Detail |
public static final String INFERENCER_KEY
public static final String USE_DEPENDENCY_INFERENCER_KEY
public int rdfTypeId
public int rdfPropertyId
public int rdfXMLLiteralId
public int rdfStatementId
public int rdfSubjectId
public int rdfPredicateId
public int rdfObjectId
public int rdfAltId
public int rdfBagId
public int rdfSeqId
public int rdfListId
public int rdfFirstId
public int rdfRestId
public int rdfNilId
public int rdfValueId
public int rdfsResourceId
public int rdfsLiteralId
public int rdfsClassId
public int rdfsSubClassOfId
public int rdfsSubPropertyOfId
public int rdfsDomainId
public int rdfsRangeId
public int rdfsCommentId
public int rdfsLabelId
public int rdfsDatatypeId
public int rdfsContainerId
public int rdfsMemberId
public int rdfsContainerMembershipPropertyId
public int rdfsIsDefinedById
public int rdfsSeeAlsoId
| Constructor Detail |
public RdfSchemaRepository()
| Method Detail |
public void initialize(Map configParams)
throws SailInitializationException
Sail
initialize in interface Sailinitialize in class RdfRepositorySailInitializationExceptionSail.initialize(java.util.Map)
public void clearRepository()
throws SailUpdateException
RdfRepository
clearRepository in interface RdfRepositoryclearRepository in class RdfRepositorySailUpdateException
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 domain)
RdfSchemaSource
getRange in interface RdfSchemaSourceprop - The property of the relations that should be returned,
or null if relations with any property should be returned.domain - 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.
public RDBMS getRDBMS()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||