Beispiel #1
0
 /**
  * Return an iterator over all of the triples representing outgoing links from this node.
  *
  * @param closed if set to true it returns triples in the transitive closure, if set to false it
  *     returns triples in the transitive reduction
  * @param tgc the enclosing TransitiveGraphCache
  */
 public ExtendedIterator<Triple> listTriples(boolean closed, TransitiveGraphCache tgc) {
   if (tgc.cacheTriples) {
     // TODO implement - for now default to non-cached
     return WrappedIterator.create(
         leadNode().triplesForSuccessors(rdfNode, closed, tgc).iterator());
   } else {
     return WrappedIterator.create(
         leadNode().triplesForSuccessors(rdfNode, closed, tgc).iterator());
   }
 }
Beispiel #2
0
 public Iterator<GraphNode> concatenateSiblings(Iterator<GraphNode> base) {
   return WrappedIterator.create(base).andThen(siblings.siblingIterator());
 }