518519520521522523524525526527528
{ while (iter.hasNext()) { final Statement s = iter.next(); checkCreate(s.asTriple()); lst.add(s.asTriple()); } final Model m = ModelFactory .createModelForGraph(new CollectionGraph(lst)); holder.getBaseItem().add(m.listStatements()); }
24042405240624072408240924102411241224132414
try { while (iter.hasNext()) { final Statement s = iter.next(); checkDelete(s.asTriple()); lst.add(s.asTriple()); } final Model m = ModelFactory .createModelForGraph(new CollectionGraph(lst)); holder.getBaseItem().remove(m.listStatements());
24052406240724082409241024112412241324142415
{ while (iter.hasNext()) { final Statement s = iter.next(); checkDelete(s.asTriple()); lst.add(s.asTriple()); } final Model m = ModelFactory .createModelForGraph(new CollectionGraph(lst)); holder.getBaseItem().remove(m.listStatements()); }
try { while (iter.hasNext()) { final Statement s = iter.next(); checkCreate(s.asTriple()); lst.add(s.asTriple()); } final Model m = ModelFactory .createModelForGraph(new CollectionGraph(lst)); holder.getBaseItem().add(m.listStatements());
519520521522523524525526527528529
24252426242724282429243024312432243324342435
24262427242824292430243124322433243424352436
213214215216217218219220221222223
public Triple next() { Quad q = iter.next() ; if ( graphNode != null && !q.getGraph().equals(graphNode) ) throw new InternalError("ProjectQuadsToTriples: Quads from unexpected graph (expected=" + graphNode + ", got=" + q.getGraph() + ")") ; return q.asTriple() ; } @Override public void remove() { iter.remove() ;
109110111112113114115116117118119
if ( quads.size() == 1 ) { Quad q = quads.get(0) ; BasicPattern bgp = new BasicPattern() ; bgp.add(q.asTriple()) ; return new OpQuadPattern(q.getGraph(), bgp) ; } List<OpQuadPattern> x = convert() ; OpSequence ops = OpSequence.create() ;
179180181182183184185186187188189
@Override public Triple next() { Quad q = iter.next(); if ( graphNode != null && ! q.getGraph().equals(graphNode)) throw new InternalError("ProjectQuadsToTriples: Quads from unexpected graph (expected="+graphNode+", got="+q.getGraph()+")") ; return q.asTriple() ; } @Override public void remove() { iter.remove(); } }