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

query interface adds prefix declarations before executing query #149

Open
balhoff opened this issue May 29, 2023 · 3 comments
Open

query interface adds prefix declarations before executing query #149

balhoff opened this issue May 29, 2023 · 3 comments

Comments

@balhoff
Copy link
Contributor

balhoff commented May 29, 2023

Issue type:

  • 🐛 Bug

Description:

The query interface at https://query.linkeddatafragments.org seems to add prefix declarations before executing a query, even if these conflict with prefix declarations that are typed into the input. If I configure a datasource https://query.wikidata.org/sparql and enter this query:

PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?s ?o
WHERE {
  ?s rdf:type ?o .
}
LIMIT 10

I get an error from the SPARQL endpoint: java.util.concurrent.ExecutionException: org.openrdf.query.MalformedQueryException: Multiple prefix declarations for prefix 'owl'

I don't see a way in the UI to configure which prefix declarations are added, or not.


Bounty

A bounty has been placed on this issue by:

Comunica Association
€136

Click here to learn more if you're interested in claiming this bounty by resolving this issue.

@github-actions
Copy link

Thanks for reporting!

@rubensworks rubensworks transferred this issue from comunica/comunica May 30, 2023
@rubensworks
Copy link
Member

A bounty has been placed on this issue via the Comunica Association (see original post).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Do (prio:medium)
Development

No branches or pull requests

3 participants