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, removeGraphfind, findInUnionGraph, findNG, findQuadsInUnionGraphclear, contains, contains, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toStringpublic Iterator<Quad> findInDftGraph(Node s, Node p, Node o)
DatasetGraphBaseFindQuad.defaultGraphIRI
To get Triples, use DatasetGraph.getDefaultGraph().find(...).public Iterator<Quad> findInSpecificNamedGraph(Node g, Node s, Node p, Node o)
DatasetGraphBaseFindg is a group term (IRI or bNode), not a wild card (or null).public Iterator<Quad> findInAnyNamedGraphs(Node s, Node p, Node o)
DatasetGraphBaseFindDatasetGraphBaseFind.findInUnionGraph(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node) for matching without duplicate triples.public Graph getDefaultGraph()
DatasetGraphgetDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphBasepublic Graph getGraph(Node graphNode)
DatasetGraphgetGraph in interface DatasetGraphgetGraph in class DatasetGraphBasepublic boolean containsGraph(Node graphNode)
DatasetGraphcontainsGraph in interface DatasetGraphcontainsGraph in class DatasetGraphBasepublic Iterator<Node> listGraphNodes()
DatasetGraphpublic void close()
DatasetGraphclose in interface org.apache.jena.atlas.lib.Closeableclose in interface DatasetGraphclose in class DatasetGraphBaseLicenced under the Apache License, Version 2.0