java.lang.Object
org.apache.jena.arq.querybuilder.updatebuilder.SingleQuadHolder
All Implemented Interfaces:
QuadHolder

public class SingleQuadHolder extends Object implements QuadHolder
A QuadHolder implementation for a single quad.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SingleQuadHolder(org.apache.jena.graph.Node graph, org.apache.jena.graph.Triple triple)
    Constructor from a triple
    SingleQuadHolder(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 Type
    Method
    Description
    org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.sparql.core.Quad>
    Get an extended iterator over the quads this holder holds.
    setValues(Map<org.apache.jena.sparql.core.Var,org.apache.jena.graph.Node> values)
    Apply values to the variables in the quads held by this holder.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 triple
      triple - 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 interface QuadHolder
      Returns:
      the extended iterator.
    • setValues

      public QuadHolder setValues(Map<org.apache.jena.sparql.core.Var,org.apache.jena.graph.Node> values)
      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 interface QuadHolder
      Parameters:
      values - the values to set.
      Returns:
      a QuadHolder in which the variables have been replaced.