com.hp.hpl.jena.sparql.core
Class GraphView

java.lang.Object
  extended by com.hp.hpl.jena.graph.impl.GraphBase
      extended by com.hp.hpl.jena.sparql.core.GraphView
All Implemented Interfaces:
Graph, GraphAdd, com.hp.hpl.jena.graph.impl.GraphWithPerform, Sync

public class GraphView
extends com.hp.hpl.jena.graph.impl.GraphBase
implements Sync

Implement a Graph as a view of the DatasetGraph. It maps graph operations to quad operations.


Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Method Summary
static GraphView createDefaultGraph(DatasetGraph dsg)
           
static GraphView createNamedGraph(DatasetGraph dsg, Node graphIRI)
           
 DatasetGraph getDataset()
          Return the DatasetGraph we are viewing.
 Node getGraphName()
          Return the graph name for this graph in the dataset it is a view of.
 void performAdd(Triple t)
           
 void performDelete(Triple t)
           
 void sync()
           
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
add, clear, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getStatisticsHandler, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createDefaultGraph

public static GraphView createDefaultGraph(DatasetGraph dsg)

createNamedGraph

public static GraphView createNamedGraph(DatasetGraph dsg,
                                         Node graphIRI)

getGraphName

public Node getGraphName()
Return the graph name for this graph in the dataset it is a view of. Returns null for the default graph.


getDataset

public DatasetGraph getDataset()
Return the DatasetGraph we are viewing.


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

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

sync

public void sync()
Specified by:
sync in interface Sync


Licenced under the Apache License, Version 2.0