Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPARQL Update has no effect #1730

Open
hannahbast opened this issue Jan 24, 2025 · 3 comments
Open

SPARQL Update has no effect #1730

hannahbast opened this issue Jan 24, 2025 · 3 comments

Comments

@hannahbast
Copy link
Member

hannahbast commented Jan 24, 2025

I did the following DELETE:

curl -s https://qlever.cs.uni-freiburg.de/api/wikidata?access-token=<access-token> -H "Content-type: application/sparql-update" --data "PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> DELETE WHERE { wd:Q873 wdt:P166 ?award_received }"

which returned a JSON with the information that 35 triples were deleted.

But the following SELECT returns the 35 triples that are supposed to be deleted:

curl -s https://qlever.cs.uni-freiburg.de/api/wikidata -H "Accept: text/tab-separated-values" -H "Content-type: application/sparql-query" --data "PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> SELECT * WHERE { wd:Q873 wdt:P166 ?award_received }"

NOTE: This bug was already there with acb6633 (08.01.2025)

@namedgraph
Copy link

@hannahbast what's the status of SPARQL Update? Do you have any results of the W3C test suite available?

@semanticfire
Copy link

Hi,

I cannot clear a graph with:
DROP GRAPH <iri> and CLEAR GRAPH <iri> are not supported

delete { graph <http://example.com> { ?s ?p ?o}} where { ?s ?p ?o }

results in:

{
    "exception": "Assertion `wasInserted == true` failed. Please report this to the developers. In file \"/qlever/src/index/LocatedTriples.cpp \" at line 220",
    "query": "delete { graph <http://example.com> { ?s ?p ?o}} where { ?s ?p ?o }",
    "resultsize": 0,
    "status": "ERROR",
    "time": {
        "computeResult": 11585,
        "total": 11585
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants