|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.sesame.D2RQSource
public class D2RQSource
Implementation of the Sesame RdfSource Interface for D2RQ This class wraps the D2RQGraph into an implementation of the Sesame RdfSource interface.
Constructor Summary | |
---|---|
D2RQSource(String d2rqMapUrl,
String language,
String baseURI)
Creates a new instance of D2RQSource |
Method Summary | |
---|---|
org.openrdf.sesame.sail.NamespaceIterator |
getNamespaces()
Returns all know namespaces within the source. |
org.openrdf.sesame.sail.StatementIterator |
getStatements(org.openrdf.model.Resource resource,
org.openrdf.model.URI uRI,
org.openrdf.model.Value value)
Maps the call of the Sesame RdfSource.getStatement interface to the Jena Graph.find(spo) interface and returns an implemenation of the Sesame StatementIterator, which wraps the results of the Jena Graph interface. |
org.openrdf.model.ValueFactory |
getValueFactory()
Rerturns the ValueFactory of the RdfSource. |
boolean |
hasStatement(org.openrdf.model.Resource resource,
org.openrdf.model.URI uRI,
org.openrdf.model.Value value)
Returns true, if the source contains the specified statement. |
void |
initialize(Map configParams)
Initialize the repository. |
org.openrdf.sesame.sail.query.Query |
optimizeQuery(org.openrdf.sesame.sail.query.Query query)
Optimize queries (no opitmization in this implementation) |
void |
shutDown()
Shuts down the repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public D2RQSource(String d2rqMapUrl, String language, String baseURI) throws D2RQException
d2rqMapUrl
- URL of the mapping file for D2RQlanguage
- Identifies the format of the rdf data in the mapping file. Should be one of the values "RDF/XML", "RDF/XML-ABBREV", "N-TRIPLE" and "N3". The default value, represented by null
, is "RDF/XML".
D2RQException
Method Detail |
---|
public org.openrdf.sesame.sail.NamespaceIterator getNamespaces()
getNamespaces
in interface org.openrdf.sesame.sail.RdfSource
public org.openrdf.sesame.sail.StatementIterator getStatements(org.openrdf.model.Resource resource, org.openrdf.model.URI uRI, org.openrdf.model.Value value)
getStatements
in interface org.openrdf.sesame.sail.RdfSource
public org.openrdf.model.ValueFactory getValueFactory()
getValueFactory
in interface org.openrdf.sesame.sail.RdfSource
public boolean hasStatement(org.openrdf.model.Resource resource, org.openrdf.model.URI uRI, org.openrdf.model.Value value)
hasStatement
in interface org.openrdf.sesame.sail.RdfSource
resource
- the RDF resource of the subjectuRI
- the URI of the statment propertyvalue
- the RDF resource of the object
public void initialize(Map configParams) throws org.openrdf.sesame.sail.SailInitializationException
initialize
in interface org.openrdf.sesame.sail.Sail
configParams
-
org.openrdf.sesame.sail.SailInitializationException
public org.openrdf.sesame.sail.query.Query optimizeQuery(org.openrdf.sesame.sail.query.Query query)
optimizeQuery
in interface org.openrdf.sesame.sail.RdfSource
query
- the unoptimized query
public void shutDown()
shutDown
in interface org.openrdf.sesame.sail.Sail
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |