[redland-dev] DELETE WHERE failing
Dave Beckett
dave at dajobe.org
Wed Mar 21 13:23:19 EDT 2012
DELETE is a SPARQL update operation that is not implemented by Redland
librdf core, it only deals with query (SELECT, ASK etc.)
One redland-based service that does deal with this is redstore which
provides a sparql protocol endpoint and does it's own graph management
http://www.aelius.com/njh/redstore/
Adding sparql update (delete, move, copy etc.) to redland librdf core
is on the 'someday' pile.
Dave
On Wed, 21 Mar 2012, Maxence Guesdon wrote:
> Hello,
>
> I'm trying to execute a DELETE WHERE query. Since it does not do anything,
> I'm trying to find the problem using roqet.
>
> I'm trying the example from
> http://www.w3.org/TR/sparql11-update/#deleteWhere
>
> # cat > t.ttl
> @prefix foaf: <http://xmlns.com/foaf/0.1/> .
>
> <http://example/william> a foaf:Person .
> <http://example/william> foaf:givenName "William" .
> <http://example/william> foaf:mbox <mailto:bill at example> .
>
> <http://example/fred> a foaf:Person .
> <http://example/fred> foaf:givenName "Fred" .
> <http://example/fred> foaf:mbox <mailto:fred at example> .
> ^D
>
> # roqet -W 100 -i sparql11-update -D t.ttl -e "PREFIX foaf: <http://xmlns.com/foaf/0.1/>
> DELETE WHERE { ?person foaf:givenName 'Fred';
> ?property ?value }"
>
> But all I get is:
> roqet: Running query 'PREFIX foaf: <http://xmlns.com/foaf/0.1/>
>
> DELETE WHERE { ?person foaf:givenName 'Fred';
> ?property ?value }'
> roqet: Query execution failed
>
> Do you know how I could know what's wrong ? I tried searching for DELETE in
> bug tracker but did not find anything.
>
> Regards,
>
> Maxence
>
> _______________________________________________
> redland-dev mailing list
> redland-dev at lists.librdf.org
> http://lists.librdf.org/mailman/listinfo/redland-dev
>
>
More information about the redland-dev
mailing list