de.fuberlin.wiwiss.ng4j.db
Class NamedGraphDB

java.lang.Object
  extended by com.hp.hpl.jena.graph.impl.GraphBase
      extended by de.fuberlin.wiwiss.ng4j.db.NamedGraphDB
All Implemented Interfaces:
Graph, GraphAdd, com.hp.hpl.jena.graph.impl.GraphWithPerform, NamedGraph

public class NamedGraphDB
extends com.hp.hpl.jena.graph.impl.GraphBase
implements NamedGraph

A database-backed Named Graph implementation which is handed out by NamedGraphSetDB.getGraph(Node). The real work is done by a QuadDB instance. This class provides a NamedGraph view onto the QuadDB interface for a fixed graph name.

Author:
Richard Cyganiak (richard@cyganiak.de)

Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase
bulkHandler, capabilities, closed, gem, pm, queryHandler, reifier, style
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Constructor Summary
NamedGraphDB(QuadDB db, Node graphName)
           
 
Method Summary
 Node getGraphName()
          Returns the URI of the named graph.
 ExtendedIterator graphBaseFind(TripleMatch m)
           
 void performAdd(Triple t)
           
 void performDelete(Triple t)
           
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
add, checkOpen, close, constructReifier, contains, contains, containsByFind, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, graphBaseContains, graphBaseFind, graphBaseSize, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, queryHandler, 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
close, contains, contains, delete, dependsOn, find, find, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, queryHandler, size
 
Methods inherited from interface com.hp.hpl.jena.graph.GraphAdd
add
 

Constructor Detail

NamedGraphDB

public NamedGraphDB(QuadDB db,
                    Node graphName)
Method Detail

getGraphName

public Node getGraphName()
Description copied from interface: NamedGraph
Returns the URI of the named graph. The returned Node instance is always an URI and cannot be a blank node or literal.

Specified by:
getGraphName in interface NamedGraph

performDelete

public void performDelete(Triple t)
Specified by:
performDelete in interface com.hp.hpl.jena.graph.impl.GraphWithPerform
Overrides:
performDelete in class com.hp.hpl.jena.graph.impl.GraphBase

graphBaseFind

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

performAdd

public void performAdd(Triple t)
Specified by:
performAdd in interface com.hp.hpl.jena.graph.impl.GraphWithPerform
Overrides:
performAdd in class com.hp.hpl.jena.graph.impl.GraphBase