Module org.apache.jena.querybuilder
Class SingleQuadHolder
java.lang.Object
org.apache.jena.arq.querybuilder.updatebuilder.SingleQuadHolder
- All Implemented Interfaces:
QuadHolder
A QuadHolder implementation for a single quad.
-
Constructor Summary
ConstructorDescriptionSingleQuadHolder
(org.apache.jena.graph.Node graph, org.apache.jena.graph.Triple triple) Constructor from a tripleSingleQuadHolder
(org.apache.jena.graph.Triple triple) Constructor from a triple Uses Quad.defaultGraphNodeGenerated for the graph name.SingleQuadHolder
(org.apache.jena.sparql.core.Quad quad) Constructor for a single quad. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.sparql.core.Quad>
getQuads()
Get an extended iterator over the quads this holder holds.Apply values to the variables in the quads held by this holder.
-
Constructor Details
-
SingleQuadHolder
public SingleQuadHolder(org.apache.jena.sparql.core.Quad quad) Constructor for a single quad.- Parameters:
quad
- the quad to hold.
-
SingleQuadHolder
public SingleQuadHolder(org.apache.jena.graph.Triple triple) Constructor from a triple Uses Quad.defaultGraphNodeGenerated for the graph name.- Parameters:
triple
- the triple to convert to a quad.- See Also:
-
Quad.defaultGraphNodeGenerated
-
SingleQuadHolder
public SingleQuadHolder(org.apache.jena.graph.Node graph, org.apache.jena.graph.Triple triple) Constructor from a triple- Parameters:
graph
- the graph name to use for the tripletriple
- the triple to convert to a quad.
-
-
Method Details
-
getQuads
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.sparql.core.Quad> getQuads()Description copied from interface:QuadHolder
Get an extended iterator over the quads this holder holds.- Specified by:
getQuads
in interfaceQuadHolder
- Returns:
- the extended iterator.
-
setValues
Description copied from interface:QuadHolder
Apply values to the variables in the quads held by this holder. May return this holder or a new holder instance.- Specified by:
setValues
in interfaceQuadHolder
- Parameters:
values
- the values to set.- Returns:
- a QuadHolder in which the variables have been replaced.
-