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, deletefind, findNGadd, close, contains, contains, containsGraph, delete, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toStringpublic DatasetGraphAltDefaultGraph(DatasetGraph dsg, Graph defaultGraph)
public Iterator<Node> listGraphNodes()
DatasetGraphlistGraphNodes in interface DatasetGraphlistGraphNodes in class DatasetGraphCollectionpublic Graph getDefaultGraph()
DatasetGraphgetDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphBasepublic Graph getGraph(Node graphNode)
DatasetGraphgetGraph in interface DatasetGraphgetGraph in class DatasetGraphBasepublic void addGraph(Node graphName, Graph graph)
DatasetGraphDatasetGraph.getGraph(com.hp.hpl.jena.graph.Node)addGraph in interface DatasetGraphaddGraph in class DatasetGraphBasepublic void removeGraph(Node graphName)
DatasetGraphremoveGraph in interface DatasetGraphremoveGraph in class DatasetGraphBaseLicenced under the Apache License, Version 2.0