|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.core.DatasetGraphWrapper
com.hp.hpl.jena.sparql.core.DatasetGraphReadOnly
public class DatasetGraphReadOnly
Read-only view of a DatasetGraph. Assumes the dataset underneath isn't changing.
| Constructor Summary | |
|---|---|
DatasetGraphReadOnly(DatasetGraph dsg)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphWrapper |
|---|
add, close, contains, contains, containsGraph, delete, find, find, find, findNG, getContext, getLock, getWrapped, isEmpty, listGraphNodes, size, sync, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatasetGraphReadOnly(DatasetGraph dsg)
| Method Detail |
|---|
public Graph getDefaultGraph()
DatasetGraph
getDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphWrapperpublic Graph getGraph(Node graphNode)
DatasetGraph
getGraph in interface DatasetGraphgetGraph in class DatasetGraphWrapperpublic void setDefaultGraph(Graph g)
DatasetGraphDatasetGraph.getDefaultGraph()
setDefaultGraph in interface DatasetGraphsetDefaultGraph in class DatasetGraphWrapper
public 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)
DatasetGraph
removeGraph in interface DatasetGraphremoveGraph in class DatasetGraphWrapperpublic void add(Quad quad)
DatasetGraph
add in interface DatasetGraphadd in class DatasetGraphWrapperpublic void delete(Quad quad)
DatasetGraph
delete in interface DatasetGraphdelete in class DatasetGraphWrapper
public void deleteAny(Node g,
Node s,
Node p,
Node o)
DatasetGraph
deleteAny in interface DatasetGraphdeleteAny in class DatasetGraphWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||