/** * return an iterator over all the nodes that are reifiying t in the graph */ public static ExtendedIterator<Node> allNodes(Graph graph, Triple t) { return findNodesForTriple(graph, t, false) ; }
/** @return true iff there's > 0 mappings to this triple */ public static boolean hasTriple(Graph graph, Triple t) { ExtendedIterator<Node> iter = findNodesForTriple(graph, t, false) ; try { return iter.hasNext() ; } finally { iter.close() ; } }