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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering in N3 is not working as expected when using VALUES #1155

Closed
danielbeeke opened this issue Feb 13, 2023 · 3 comments
Closed

Filtering in N3 is not working as expected when using VALUES #1155

danielbeeke opened this issue Feb 13, 2023 · 3 comments

Comments

@danielbeeke
Copy link
Contributor

Issue type:

  • 馃悰 Bug

Description:

The following query works fine for https://dbpedia.org/sparql but the same structure does not work for Comunica with an N3 store.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbr: <http://dbpedia.org/resource/>

SELECT *
WHERE {
  dbr:S酶ren_Kierkegaard ?p ?o.
  VALUES ?p { rdfs:label }
  FILTER(lang(?o) = "en")
}

Same for:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbr: <http://dbpedia.org/resource/>

SELECT *
WHERE {
  dbr:S酶ren_Kierkegaard ?p ?o.
  VALUES ?p { rdfs:label }
  FILTER(?o = "S酶ren Kierkegaard"@en)
}

Environment:

I am running the current stable npm:@comunica/query-sparql@2.6.6 via Deno

@github-actions
Copy link

Thanks for reporting!

@rubensworks rubensworks added this to Triage in Maintenance Feb 13, 2023
@rubensworks
Copy link
Member

Looks like this is the same bug as in #1146, so I'm closing this in favor of that one.

I am running the current stable npm:@comunica/query-sparql@2.6.6 via Deno

Oh, Deno, great to hear that this works (aside from this bug).

Maintenance automation moved this from Triage to Done Feb 13, 2023
@danielbeeke
Copy link
Contributor Author

I have tested if this issue is indeed a duplicate of #1146 and it is.
Commenting out the Sparqlee Error at https://github.com/comunica/sparqlee/blob/master/lib/functions/RegularFunctions.ts#L111 fixes the problem.

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

No branches or pull requests

2 participants