Class FindableCollection

  • All Implemented Interfaces:
    Findable

    public class FindableCollection
    extends java.lang.Object
    implements Findable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(Node s, Node p, Node o)
      Return whether any triple matches the (s,p,o) pattern.
      java.util.Iterator<Triple> find​(Node _s, Node _p, Node _o)
      Return an iterator over all triples matching the (s,p,o) pattern.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.jena.sparql.util.graph.Findable

        count
    • Constructor Detail

      • FindableCollection

        public FindableCollection​(java.util.Collection<Triple> triples)
    • Method Detail

      • find

        public java.util.Iterator<Triple> find​(Node _s,
                                               Node _p,
                                               Node _o)
        Description copied from interface: Findable
        Return an iterator over all triples matching the (s,p,o) pattern. Each element of (s,p,o) can be concrete, or the wildcard Node.ANY.
        Specified by:
        find in interface Findable
      • contains

        public boolean contains​(Node s,
                                Node p,
                                Node o)
        Description copied from interface: Findable
        Return whether any triple matches the (s,p,o) pattern. Each element of (s,p,o) can be concrete, or the wildcard Node.ANY.
        Specified by:
        contains in interface Findable