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

CONSTRUCT fails when N-Triples are requested #1766

Open
ktk opened this issue Feb 5, 2025 · 0 comments
Open

CONSTRUCT fails when N-Triples are requested #1766

ktk opened this issue Feb 5, 2025 · 0 comments

Comments

@ktk
Copy link

ktk commented Feb 5, 2025

This query works:

curl https://qlever.cs.uni-freiburg.de/api/wikidata -X POST -H 'Accept: text/turtle' -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' --data-raw 'query=CONSTRUCT+%7B+%3Fs+%3Fp+%3Fo+.+%7D+WHERE+%7B+%3Fs+%3Fp+%3Fo+.+%7D+LIMIT+1&send=100'

the same query with application/n-triples fails:

curl https://qlever.cs.uni-freiburg.de/api/wikidata -X POST -H 'Accept: application/n-triples' -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' --data-raw 'query=CONSTRUCT+%7B+%3Fs+%3Fp+%3Fo+.+%7D+WHERE+%7B+%3Fs+%3Fp+%3Fo+.+%7D+LIMIT+1&send=100'

error:

{
    "exception": "Assertion `ad_utility::contains(supportedTypes, mediaType)` failed. Please report this to the developers. In file \"/local/data-ssd/qlever/qlever-code/src/engine/ExportQueryExecutionTrees.cpp \" at line 893",
    "query": "CONSTRUCT { ?s ?p ?o . } WHERE { ?s ?p ?o . } LIMIT 1",
    "resultsize": 0,
    "status": "ERROR",
    "time": {
        "computeResult": 17,
        "total": 17
    }
}

Reported by a colleague of mine, he says it's a regression since d7ec9be

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

1 participant