@@ -0,0 +1,2016 @@
+package com.hp.hpl.jena.sparql.modify;%0D%0A%0D%0Aimport java.util.Iterator ;%0D%0A%0D%0Aimport org.openjena.atlas.iterator.Iter ;%0D%0A%0D%0Aimport com.hp.hpl.jena.graph.Graph ;%0D%0Aimport com.hp.hpl.jena.graph.Node ;%0D%0Aimport com.hp.hpl.jena.graph.Triple ;%0D%0Aimport com.hp.hpl.jena.graph.TripleMatch ;%0D%0Aimport com.hp.hpl.jena.graph.impl.GraphBase ;%0D%0Aimport com.hp.hpl.jena.query.Dataset ;%0D%0Aimport com.hp.hpl.jena.query.DatasetFactory ;%0D%0Aimport com.hp.hpl.jena.sparql.core.DatasetGraphQuad ;%0D%0Aimport com.hp.hpl.jena.sparql.core.Quad ;%0D%0Aimport com.hp.hpl.jena.update.GraphStore ;%0D%0Aimport com.hp.hpl.jena.update.UpdateRequest ;%0D%0Aimport com.hp.hpl.jena.util.iterator.ExtendedIterator ;%0D%0Aimport com.hp.hpl.jena.util.iterator.NullIterator ;%0D%0A%0D%0A/**%0D%0A * A black hole for Quads, add as many as you want and it will forget them all.  Useful for testing.%0D%0A */%0D%0Apublic class GraphStoreNull extends DatasetGraphQuad implements GraphStore%0D%0A%7B%0D%0A    // The baby brother%0D%0A    private static final Graph GRAPH_NULL = new GraphBase()%0D%0A    %7B%0D%0A        @Override%0D%0A        protected ExtendedIterator%3CTriple%3E graphBaseFind(TripleMatch m)%0D%0A        %7B%0D%0A            return NullIterator.instance();%0D%0A        %7D%0D%0A    %7D;%0D%0A%0D%0A    @Override%0D%0A    public Iterator%3CQuad%3E find(Node g, Node s, Node p, Node o)%0D%0A    %7B%0D%0A        return Iter.nullIterator();%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public Iterator%3CQuad%3E findNG(Node g, Node s, Node p, Node o)%0D%0A    %7B%0D%0A        return Iter.nullIterator();%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public void add(Quad quad)%0D%0A    %7B %7D%0D%0A%0D%0A    @Override%0D%0A    public void delete(Quad quad)%0D%0A    %7B %7D%0D%0A%0D%0A    @Override%0D%0A    public Graph getDefaultGraph()%0D%0A    %7B%0D%0A        return GRAPH_NULL ;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public Graph getGraph(Node graphNode)%0D%0A    %7B%0D%0A        return GRAPH_NULL ;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public Dataset toDataset()%0D%0A    %7B%0D%0A        return DatasetFactory.create(this);%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public void startRequest(UpdateRequest request)%0D%0A    %7B %7D%0D%0A%0D%0A    @Override%0D%0A    public void finishRequest(UpdateRequest request)%0D%0A    %7B %7D%0D%0A%7D%0D%0A

Add GraphStoreNull, which accepts quads and throws them away.