de.fuberlin.wiwiss.d2rq.jena
Class GraphD2RQ

java.lang.Object
  extended by com.hp.hpl.jena.graph.impl.GraphBase
      extended by de.fuberlin.wiwiss.d2rq.jena.GraphD2RQ
All Implemented Interfaces:
Graph, GraphAdd, com.hp.hpl.jena.graph.impl.GraphWithPerform
Direct Known Subclasses:
CachingGraphD2RQ

public class GraphD2RQ
extends com.hp.hpl.jena.graph.impl.GraphBase
implements Graph

A D2RQ virtual read-only Jena graph backed by a non-RDF database.

Author:
Chris Bizer chris@bizer.de, Richard Cyganiak (richard@cyganiak.de)

Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase
bulkHandler, closed, gem, pm, queryHandler, reifier, statisticsHandler, style, TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Constructor Summary
GraphD2RQ(Mapping mapping)
          Creates a new D2RQ graph from a previously prepared Mapping instance.
 
Method Summary
protected  void checkOpen()
           
 void close()
           
 Capabilities getCapabilities()
           
 Mapping getMapping()
           
 com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> graphBaseFind(TripleMatch m)
           
 com.hp.hpl.jena.graph.query.QueryHandler queryHandler()
          Returns a QueryHandler for this graph.
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
add, constructReifier, contains, contains, containsByFind, createStatisticsHandler, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getBulkUpdateHandler, getEventManager, getPrefixMapping, getReifier, getStatisticsHandler, getTransactionHandler, graphBaseContains, graphBaseFind, graphBaseSize, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, reifierContains, reifierSize, reifierTriples, size, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.graph.Graph
contains, contains, delete, dependsOn, find, find, getBulkUpdateHandler, getEventManager, getPrefixMapping, getReifier, getStatisticsHandler, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, size
 
Methods inherited from interface com.hp.hpl.jena.graph.GraphAdd
add
 

Constructor Detail

GraphD2RQ

public GraphD2RQ(Mapping mapping)
          throws D2RQException
Creates a new D2RQ graph from a previously prepared Mapping instance.

Parameters:
mapping - A D2RQ mapping
Throws:
D2RQException - If the mapping is invalid
Method Detail

queryHandler

public com.hp.hpl.jena.graph.query.QueryHandler queryHandler()
Returns a QueryHandler for this graph. The query handler class can be set by the mapping. It then must have exact constructor signature QueryHandler(Graph) For some reasons, Java does not allow to call getConstructor(GraphD2RQ.class) on SimpleQueryHandler class.

Specified by:
queryHandler in interface Graph
Overrides:
queryHandler in class com.hp.hpl.jena.graph.impl.GraphBase

close

public void close()
Specified by:
close in interface Graph
Overrides:
close in class com.hp.hpl.jena.graph.impl.GraphBase

getCapabilities

public Capabilities getCapabilities()
Specified by:
getCapabilities in interface Graph
Overrides:
getCapabilities in class com.hp.hpl.jena.graph.impl.GraphBase

graphBaseFind

public com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> graphBaseFind(TripleMatch m)
Specified by:
graphBaseFind in class com.hp.hpl.jena.graph.impl.GraphBase

checkOpen

protected void checkOpen()
Overrides:
checkOpen in class com.hp.hpl.jena.graph.impl.GraphBase

getMapping

public Mapping getMapping()
Returns:
The Mapping this graph is based on