Variable in updated schedule in SPARQL update

Is it possible to use a variable to determine the graph (s) affected in the SPARQL update? For example, can I:

INSERT { GRAPH ?dest { ?person foaf:name ?name . ?person foaf:mbox ?email } } WHERE { GRAPH <http://example/people> { ?person foaf:name ?name . } } 
+4
source share
1 answer

?dest should be determined by the WHERE (otherwise how does the system know where the data is in INSERT ?).

If you mean all the named graphs, add GRAPH ?dest {} to the WHERE .

+5
source

Source: https://habr.com/ru/post/1498832/


All Articles