public class DatasetGraphSimpleMem extends DatasetGraphTriplesQuads
DatasetGraphTriplesQuads
style implementation framework.Constructor and Description |
---|
DatasetGraphSimpleMem() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the dataset
|
boolean |
containsGraph(Node graphNode)
Does the DatasetGraph contain a specific named graph?
Whether a dataset contains a graph if there are no triples is
not defined - see the specifc implementation.
|
Iterator<Quad> |
findInAnyNamedGraphs(Node s,
Node p,
Node o)
Find in any named graph - return quads.
|
Iterator<Quad> |
findInDftGraph(Node s,
Node p,
Node o)
Find matches in the default graph.
|
Iterator<Quad> |
findInSpecificNamedGraph(Node g,
Node s,
Node p,
Node o)
Find in a specific named graph -
g is a group term (IRI or bNode), not a wild card (or null). |
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.
|
Iterator<Node> |
listGraphNodes()
Iterate over all names of named graphs
|
static Node |
nullAsAny(Node x)
Convert null to Node.ANY
|
static Node |
nullAsDft(Node x,
Node dft)
Convert null to some default Node
|
add, add, addGraph, delete, delete, removeGraph
find, findInUnionGraph, findNG, findQuadsInUnionGraph
clear, contains, contains, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toString
public Iterator<Quad> findInDftGraph(Node s, Node p, Node o)
DatasetGraphBaseFind
Quad.defaultGraphIRI
To get Triples, use DatasetGraph.getDefaultGraph().find(...)
.public Iterator<Quad> findInSpecificNamedGraph(Node g, Node s, Node p, Node o)
DatasetGraphBaseFind
g
is a group term (IRI or bNode), not a wild card (or null).public Iterator<Quad> findInAnyNamedGraphs(Node s, Node p, Node o)
DatasetGraphBaseFind
DatasetGraphBaseFind.findInUnionGraph(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node)
for matching without duplicate triples.public Graph getDefaultGraph()
DatasetGraph
getDefaultGraph
in interface DatasetGraph
getDefaultGraph
in class DatasetGraphBase
public Graph getGraph(Node graphNode)
DatasetGraph
getGraph
in interface DatasetGraph
getGraph
in class DatasetGraphBase
public boolean containsGraph(Node graphNode)
DatasetGraph
containsGraph
in interface DatasetGraph
containsGraph
in class DatasetGraphBase
public Iterator<Node> listGraphNodes()
DatasetGraph
public void close()
DatasetGraph
close
in interface org.apache.jena.atlas.lib.Closeable
close
in interface DatasetGraph
close
in class DatasetGraphBase
Licenced under the Apache License, Version 2.0