Here are some examples showcasing Virtuoso's support for this functionality:
This example adds all triples from a named graph identified by the IRI <urn:sparql:tests:add:data> to a named graph identified by the IRI <urn:sparql:tests:add2:data>
<http://example/william> a <http://xmlns.com/foaf/0.1/Person> ; <http://xmlns.com/foaf/0.1/givenName> "William" ; <http://xmlns.com/foaf/0.1/mbox> <mailto:bill@example> .
INSERT DATA { GRAPH <urn:sparql:tests:add:data> { <http://example/william> a <http://xmlns.com/foaf/0.1/Person> ; <http://xmlns.com/foaf/0.1/givenName> "William" ; <http://xmlns.com/foaf/0.1/mbox> <mailto:bill@example> . } }
SELECT * FROM <urn:sparql:tests:add:data> WHERE { ?s ?p ?o }
<http://example/fred> a <http://xmlns.com/foaf/0.1/Person> .
INSERT DATA { GRAPH <urn:sparql:tests:add2:data> { <http://example/fred> a <http://xmlns.com/foaf/0.1/Person> . } }
SELECT * FROM <urn:sparql:tests:add2:data> WHERE { ?s ?p ?o }
ADD GRAPH <urn:sparql:tests:add:data> TO <urn:sparql:tests:add2:data>;
INSERT { GRAPH <urn:sparql:tests:add2:data> { ?s ?p ?o } } WHERE { GRAPH <urn:sparql:tests:add:data> { ?s ?p ?o } }
ADD
operation:
SELECT * FROM <urn:sparql:tests:add2:data> WHERE { ?s ?p ?o }