|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.core.DatasetGraphBase
com.hp.hpl.jena.sparql.core.DatasetGraphQuad
com.hp.hpl.jena.sparql.modify.GraphStoreNull
public class GraphStoreNull
A black hole for Quads, add as many as you want and it will forget them all. Useful for testing.
| Constructor Summary | |
|---|---|
GraphStoreNull()
|
|
| 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 |
Iterator<Quad> |
find(Node g,
Node s,
Node p,
Node o)
Find matching quads in the dataset (including default graph) - may include wildcards, Node.ANY or null |
Iterator<Quad> |
findNG(Node g,
Node s,
Node p,
Node o)
Find matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or null |
void |
finishRequest()
Signal end of a request being executed |
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 |
startRequest()
Signal start of a request being executed |
Dataset |
toDataset()
Convert to a dataset (for query) |
| Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphQuad |
|---|
listGraphNodes, removeGraph |
| Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphBase |
|---|
add, close, contains, contains, containsGraph, delete, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.sparql.core.DatasetGraph |
|---|
add, close, contains, contains, containsGraph, delete, deleteAny, find, find, getContext, getLock, isEmpty, listGraphNodes, removeGraph, setDefaultGraph, size |
| Constructor Detail |
|---|
public GraphStoreNull()
| Method Detail |
|---|
public Iterator<Quad> find(Node g,
Node s,
Node p,
Node o)
DatasetGraph
find in interface DatasetGraphfind in class DatasetGraphQuadGraph.find(Node,Node,Node)
public Iterator<Quad> findNG(Node g,
Node s,
Node p,
Node o)
DatasetGraph
findNG in interface DatasetGraphfindNG in class DatasetGraphQuadGraph.find(Node,Node,Node)public void add(Quad quad)
DatasetGraph
add in interface DatasetGraphadd in class DatasetGraphQuadpublic void delete(Quad quad)
DatasetGraph
delete in interface DatasetGraphdelete in class DatasetGraphQuad
public void addGraph(Node graphName,
Graph graph)
DatasetGraphDatasetGraph.getGraph(com.hp.hpl.jena.graph.Node)
addGraph in interface DatasetGraphaddGraph in class DatasetGraphBasepublic Graph getDefaultGraph()
DatasetGraph
getDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphBasepublic Graph getGraph(Node graphNode)
DatasetGraph
getGraph in interface DatasetGraphgetGraph in class DatasetGraphBasepublic Dataset toDataset()
GraphStore
toDataset in interface GraphStorepublic void startRequest()
GraphStore
startRequest in interface GraphStorepublic void finishRequest()
GraphStore
finishRequest in interface GraphStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||