Re: How to call CREATE / DELETE GRAPH in Fuseki

2014-08-03 Thread Arthur Keen
On Aug 3, 2014, at 4:17 AM, Andy Seaborne wrote: > On 02/08/14 19:47, Arthur Keen wrote: >> Pilot error: The issue was caused by my using >> SELECT DISTINCT ?g WHERE{GRAPH ?g {?s ?p ?o}} >> >> Which finds non empty named graphs (containing one or more statements). I >> should have been using:

Re: How to call CREATE / DELETE GRAPH in Fuseki

2014-08-03 Thread Andy Seaborne
On 02/08/14 19:47, Arthur Keen wrote: Pilot error: The issue was caused by my using SELECT DISTINCT ?g WHERE{GRAPH ?g {?s ?p ?o}} Which finds non empty named graphs (containing one or more statements). I should have been using: SELECT DISTINCT ?g WHERE {GRAPH ?g{}} (DISTINCT not needed)

Re: How to call CREATE / DELETE GRAPH in Fuseki

2014-08-02 Thread Arthur Keen
Pilot error: The issue was caused by my using SELECT DISTINCT ?g WHERE{GRAPH ?g {?s ?p ?o}} Which finds non empty named graphs (containing one or more statements). I should have been using: SELECT DISTINCT ?g WHERE {GRAPH ?g{}} Which finds empty graphs On Aug 1, 2014, at 3:49 PM, Arthur Keen

Re: How to call CREATE / DELETE GRAPH in Fuseki

2014-08-01 Thread Arthur Keen
Andy, Thanks for clearing that up. One cannot underestimate Occam's Razor. I switched my code back to update and replaced DELETE with DROP and that is working, and INSERT also works to create graphs, but using CREATE on update is not creating graphs. When I tried the same queries from the

Re: How to call CREATE / DELETE GRAPH in Fuseki

2014-08-01 Thread Andy Seaborne
It's DROP not DELETE in SPARQL Update. DELETE is for triples, DROP is for whole graphs. http://www.w3.org/TR/sparql11-update/#graphManagement On 31/07/14 22:47, Arthur Keen wrote: For executing CREATE or DELETE GRAPH in Fuseki I tried to use them the same way as SPARQL INSERT/DELETE by posting

How to call CREATE / DELETE GRAPH in Fuseki

2014-07-31 Thread Arthur Keen
For executing CREATE or DELETE GRAPH in Fuseki I tried to use them the same way as SPARQL INSERT/DELETE by posting to ../ds/update, but this did not work Which Endpoint URL pattern I should use: http://localhost:8080/ds/update, http://localhost:8080/ds/graph For Creating a graph do you use an