/** * Convert an iterator of triples into quads for the default graph. This is * {@link Quad#defaultGraphIRI}, not {@link Quad#defaultGraphNodeGenerated}, which is * for quads outside a dataset, usually the output of parsers. */ public static Iterator<Quad> triples2quadsDftGraph(Iterator<Triple> iter) { return triples2quads(Quad.defaultGraphIRI, iter) ; }
protected Iterator<Quad> triples2quadsDftGraph(Iterator<Triple> iter) { return isolate(triples2quads(Quad.defaultGraphIRI, iter)); }
@Override protected Iterator<Quad> findInSpecificNamedGraph(Node g, Node s, Node p, Node o) { Iterator<Triple> iter = getGraph(g).find(s, p, o) ; return triples2quads(g, iter) ; }
protected Iterator<Quad> findInOneGraph(Node g, Node s, Node p, Node o) { return triples2quads(g, getGraph(g).find(s, p, o)); }
@Override protected Iter<Quad> findInSpecificNamedGraph(Node g, Node s, Node p , Node o) { Graph graph = fetchGraph(g) ; if ( graph == null ) return Iter.nullIter() ; return triples2quads(g, graph.find(s, p, o)) ; }