Class CollectionQuadHolder

  • All Implemented Interfaces:
    QuadHolder

    public class CollectionQuadHolder
    extends java.lang.Object
    implements QuadHolder
    An QuadHolder that creates quads from a collection or iterator of triples.
    • Constructor Detail

      • CollectionQuadHolder

        public CollectionQuadHolder​(Node graph,
                                    java.util.Collection<Triple> triples)
        Constructor.
        Parameters:
        graph - the default graph name for the triples
        triples - the collection of triples.
      • CollectionQuadHolder

        public CollectionQuadHolder​(Node graph,
                                    java.util.Iterator<Triple> triples)
        Constructor.
        Parameters:
        graph - the default graph name for the triples
        triples - the iterator of triples.
      • CollectionQuadHolder

        public CollectionQuadHolder​(java.util.Collection<Triple> triples)
        Constructor. Uses Quad.defaultGraphNodeGenerated for the graph name.
        Parameters:
        triples - the collection of triples.
        See Also:
        Quad.defaultGraphNodeGenerated
      • CollectionQuadHolder

        public CollectionQuadHolder​(java.util.Iterator<Triple> triples)
        Constructor.
        Parameters:
        triples - the iterator of triples.
    • 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)
        This implementation does nothing.
        Specified by:
        setValues in interface QuadHolder
        Parameters:
        values - the values to set.
        Returns:
        a QuadHolder in which the variables have been replaced.