Class SingleQuadHolder

  • All Implemented Interfaces:
    QuadHolder

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

      • SingleQuadHolder

        public SingleQuadHolder​(Quad quad)
        Constructor for a single quad.
        Parameters:
        quad - the quad to hold.
      • SingleQuadHolder

        public SingleQuadHolder​(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​(Node 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 Detail

      • getQuads

        public ExtendedIterator<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​(java.util.Map<Var,​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.