public abstract class DatasetGraphCaching extends DatasetGraphTriplesQuads
DatasetGraphMap
provides an implementation which is an extensable collection of graphs.Modifier and Type | Method and Description |
---|---|
void |
addGraph(Node graphName,
Graph graph)
Add the given graph to the dataset.
|
void |
close()
Close the dataset
|
boolean |
containsGraph(Node graphNode) |
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.
|
void |
removeGraph(Node graphName)
Remove all data associated with the named graph
|
add, add, delete, delete
find, findNG
contains, contains, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
listGraphNodes
public boolean containsGraph(Node graphNode)
containsGraph
in interface DatasetGraph
containsGraph
in class DatasetGraphBase
public final Graph getDefaultGraph()
DatasetGraph
getDefaultGraph
in interface DatasetGraph
getDefaultGraph
in class DatasetGraphBase
public final 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 final void removeGraph(Node graphName)
DatasetGraph
removeGraph
in interface DatasetGraph
removeGraph
in class DatasetGraphBase
public void close()
DatasetGraph
close
in interface DatasetGraph
close
in interface Closeable
close
in class DatasetGraphBase
Licenced under the Apache License, Version 2.0