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

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.DatasetGraphWrapper
      extended by com.hp.hpl.jena.sparql.core.DatasetGraphViewGraphs
All Implemented Interfaces:
DatasetGraph, Closeable, Sync

public class DatasetGraphViewGraphs
extends DatasetGraphWrapper

Wrap a DatasetGraph with implementations of DatasetGraph.getDefaultGraph() and DatasetGraph.getGraph(com.hp.hpl.jena.graph.Node) that use the view graph mechanism.

See Also:
GraphView

Constructor Summary
DatasetGraphViewGraphs(DatasetGraph dsg)
           
 
Method Summary
 Graph getDefaultGraph()
          Get the default graph as a Jena Graph
 Graph getGraph(Node graphNode)
          Get the graph named by graphNode : returns null on no graph NB Whether a dataset contains a graph if there are no triples is not defined - see the specifc implementation.
 
Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphWrapper
add, add, addGraph, close, contains, contains, containsGraph, delete, delete, deleteAny, find, find, find, findNG, getContext, getLock, getWrapped, isEmpty, listGraphNodes, removeGraph, setDefaultGraph, size, sync, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatasetGraphViewGraphs

public DatasetGraphViewGraphs(DatasetGraph dsg)
Method Detail

getDefaultGraph

public Graph getDefaultGraph()
Description copied from interface: DatasetGraph
Get the default graph as a Jena Graph

Specified by:
getDefaultGraph in interface DatasetGraph
Overrides:
getDefaultGraph in class DatasetGraphWrapper

getGraph

public Graph getGraph(Node graphNode)
Description copied from interface: DatasetGraph
Get the graph named by graphNode : returns null on no graph NB Whether a dataset contains a graph if there are no triples is not defined - see the specifc implementation. Some datasets are "open" - they have all graphs even if no triples,

Specified by:
getGraph in interface DatasetGraph
Overrides:
getGraph in class DatasetGraphWrapper


Licenced under the Apache License, Version 2.0