java.lang.Object
org.apache.jena.sparql.core.DatasetGraphBase
org.apache.jena.sparql.core.DatasetGraphQuads
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,DatasetGraph,Transactional
A DatasetGraph base class for pure quad-centric storage.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidAdd a quadvoidaddGraph(org.apache.jena.graph.Node graphName, org.apache.jena.graph.Graph graph) Add the given graph to the dataset.abstract voidDelete a quadfind(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Find matching quads in the dataset (including default graph) - may include wildcards, Node.ANY or nullfindNG(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Find matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or nullIterator<org.apache.jena.graph.Node>Iterate over all names of named graphsvoidremoveGraph(org.apache.jena.graph.Node graphName) Remove all data associated with the named graph.Methods inherited from class org.apache.jena.sparql.core.DatasetGraphBase
add, clear, close, contains, contains, containsGraph, delete, deleteAny, deleteAny, find, find, getContext, getDefaultGraph, getGraph, getLock, getUnionGraph, isEmpty, size, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.core.DatasetGraph
addAll, prefixes, stream, stream, supportsTransactionAbort, supportsTransactionsMethods inherited from interface org.apache.jena.sparql.core.Transactional
abort, begin, begin, begin, calc, calculate, calculateRead, calculateWrite, commit, end, exec, execute, executeRead, executeWrite, isInTransaction, promote, promote, transactionMode, transactionType
-
Constructor Details
-
DatasetGraphQuads
public DatasetGraphQuads()
-
-
Method Details
-
listGraphNodes
Description copied from interface:DatasetGraphIterate over all names of named graphs -
removeGraph
public void removeGraph(org.apache.jena.graph.Node graphName) Description copied from interface:DatasetGraphRemove all data associated with the named graph. This will include prefixes associated with the graph.- Specified by:
removeGraphin interfaceDatasetGraph- Specified by:
removeGraphin classDatasetGraphBase
-
addGraph
public void addGraph(org.apache.jena.graph.Node graphName, org.apache.jena.graph.Graph graph) Description copied from interface:DatasetGraphAdd the given graph to the dataset. Replaces any existing data for the named graph; to add data, get the graph and add triples to it, or add quads to the dataset. Do not assume that the same Java object is returned byDatasetGraph.getGraph(org.apache.jena.graph.Node)- Specified by:
addGraphin interfaceDatasetGraph- Specified by:
addGraphin classDatasetGraphBase
-
find
public abstract Iterator<Quad> find(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Description copied from interface:DatasetGraphFind matching quads in the dataset (including default graph) - may include wildcards, Node.ANY or null- See Also:
-
Graph.find(Node,Node,Node)
-
findNG
public abstract Iterator<Quad> findNG(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Description copied from interface:DatasetGraphFind matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or null- See Also:
-
Graph.find(Node,Node,Node)
-
add
Description copied from interface:DatasetGraphAdd a quad- Specified by:
addin interfaceDatasetGraph- Overrides:
addin classDatasetGraphBase
-
delete
Description copied from interface:DatasetGraphDelete a quad- Specified by:
deletein interfaceDatasetGraph- Overrides:
deletein classDatasetGraphBase
-