Is possible to rename a graph using sparql update?
The only way through that I see is this:
INSERT {GRAPH uri:graphNEW {?s ?p ?o}}
WHERE {GRAPH uri:graphOLD {?s ?p ?o}};
DROP GRAPH uri:graphOLD
but I'm not 100% sure that all the triples and attributes (like langue tags and xsd format) will be copied in the new graph.
Is there a cleverer way to do it?
EDIT: question improved thanks to Roman Susi suggestion
From http://www.w3.org/TR/sparql11-update/#graphManagement
MOVE uri:graphOLD TO uri:graphNEW
which will replace uri:graphNEW
ADD uri:graphOLD TO uri:graphNEW
which will add all of old into new and keep existing triples in uri:graphNEW
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With