Reputation: 245
May I use a variable in order to define the graph(s) affected in a SPARQL update? For example, can i have:
INSERT
{ GRAPH ?dest
{
?person foaf:name ?name .
?person foaf:mbox ?email
}
}
WHERE
{ GRAPH <http://example/people>
{
?person foaf:name ?name .
}
}
Upvotes: 4
Views: 148
Reputation: 16700
?dest
must be defined by the WHERE
clause (else how does the system know where in INSERT
the data?).
If you mean, all named graphs, then add GRAPH ?dest {}
to the WHERE
clause.
Upvotes: 5