public class DatasetGraphAltDefaultGraph extends DatasetGraphCollection
Constructor and Description |
---|
DatasetGraphAltDefaultGraph(DatasetGraph dsg,
Graph defaultGraph) |
Modifier and Type | Method and Description |
---|---|
void |
addGraph(Node graphName,
Graph graph)
Add the given graph to the dataset.
|
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.
|
Iterator<Node> |
listGraphNodes()
Iterate over all names of named graphs
|
void |
removeGraph(Node graphName)
Remove all data associated with the named graph
|
add, clear, delete
find, findNG
add, close, contains, contains, containsGraph, delete, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toString
public DatasetGraphAltDefaultGraph(DatasetGraph dsg, Graph defaultGraph)
public Iterator<Node> listGraphNodes()
DatasetGraph
listGraphNodes
in interface DatasetGraph
listGraphNodes
in class DatasetGraphCollection
public Graph getDefaultGraph()
DatasetGraph
getDefaultGraph
in interface DatasetGraph
getDefaultGraph
in class DatasetGraphBase
public Graph getGraph(Node graphNode)
DatasetGraph
getGraph
in interface DatasetGraph
getGraph
in class DatasetGraphBase
public void addGraph(Node graphName, Graph graph)
DatasetGraph
DatasetGraph.getGraph(com.hp.hpl.jena.graph.Node)
addGraph
in interface DatasetGraph
addGraph
in class DatasetGraphBase
public void removeGraph(Node graphName)
DatasetGraph
removeGraph
in interface DatasetGraph
removeGraph
in class DatasetGraphBase
Licenced under the Apache License, Version 2.0