public class DatasetGraphReadOnly extends DatasetGraphWrapper
Constructor and Description |
---|
DatasetGraphReadOnly(DatasetGraph dsg) |
Modifier and Type | Method and Description |
---|---|
void |
add(Quad quad)
Add a quad
|
void |
addGraph(Node graphName,
Graph graph)
Add the given graph to the dataset.
|
void |
delete(Quad quad)
Delete a quad
|
void |
deleteAny(Node g,
Node s,
Node p,
Node o)
Delete any quads matching the pattern
|
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
|
void |
setDefaultGraph(Graph g)
Set the default graph.
|
add, close, contains, contains, containsGraph, delete, find, find, find, findNG, getContext, getLock, isEmpty, listGraphNodes, size, toString
public DatasetGraphReadOnly(DatasetGraph dsg)
public Graph getDefaultGraph()
DatasetGraph
getDefaultGraph
in interface DatasetGraph
getDefaultGraph
in class DatasetGraphWrapper
public Graph getGraph(Node graphNode)
DatasetGraph
getGraph
in interface DatasetGraph
getGraph
in class DatasetGraphWrapper
public void setDefaultGraph(Graph g)
DatasetGraph
DatasetGraph.getDefaultGraph()
setDefaultGraph
in interface DatasetGraph
setDefaultGraph
in class DatasetGraphWrapper
public void addGraph(Node graphName, Graph graph)
DatasetGraph
DatasetGraph.getGraph(com.hp.hpl.jena.graph.Node)
addGraph
in interface DatasetGraph
addGraph
in class DatasetGraphWrapper
public void removeGraph(Node graphName)
DatasetGraph
removeGraph
in interface DatasetGraph
removeGraph
in class DatasetGraphWrapper
public void add(Quad quad)
DatasetGraph
add
in interface DatasetGraph
add
in class DatasetGraphWrapper
public void delete(Quad quad)
DatasetGraph
delete
in interface DatasetGraph
delete
in class DatasetGraphWrapper
public void deleteAny(Node g, Node s, Node p, Node o)
DatasetGraph
deleteAny
in interface DatasetGraph
deleteAny
in class DatasetGraphWrapper
Licenced under the Apache License, Version 2.0