コード例 #1
0
ファイル: GraphNode.java プロジェクト: hmottestad/jena
 /**
  * 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());
   }
 }
コード例 #2
0
ファイル: GraphNode.java プロジェクト: hmottestad/jena
 public Iterator<GraphNode> concatenateSiblings(Iterator<GraphNode> base) {
   return WrappedIterator.create(base).andThen(siblings.siblingIterator());
 }