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, toStringpublic DatasetGraphReadOnly(DatasetGraph dsg)
public Graph getDefaultGraph()
DatasetGraphgetDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphWrapperpublic Graph getGraph(Node graphNode)
DatasetGraphgetGraph in interface DatasetGraphgetGraph in class DatasetGraphWrapperpublic void setDefaultGraph(Graph g)
DatasetGraphDatasetGraph.getDefaultGraph()setDefaultGraph in interface DatasetGraphsetDefaultGraph in class DatasetGraphWrapperpublic void addGraph(Node graphName, Graph graph)
DatasetGraphDatasetGraph.getGraph(com.hp.hpl.jena.graph.Node)addGraph in interface DatasetGraphaddGraph in class DatasetGraphWrapperpublic void removeGraph(Node graphName)
DatasetGraphremoveGraph in interface DatasetGraphremoveGraph in class DatasetGraphWrapperpublic void add(Quad quad)
DatasetGraphadd in interface DatasetGraphadd in class DatasetGraphWrapperpublic void delete(Quad quad)
DatasetGraphdelete in interface DatasetGraphdelete in class DatasetGraphWrapperpublic void deleteAny(Node g, Node s, Node p, Node o)
DatasetGraphdeleteAny in interface DatasetGraphdeleteAny in class DatasetGraphWrapperLicenced under the Apache License, Version 2.0