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 filter #535
Comments
Well... You're missing a closing quotation mark. But maybe this isn't the FILTER clause you're actually using. So maybe show us the clause you're actually using, and the value you're expecting it to match? |
ops, yes it should have been
Launching this query i don't get any filtering:
|
OK, that looks more like what I was expecting to see, and it does look like you should get the desired result. What is the target SPARQL engine (name, version, and platform; all may matter)? Is it a publicly accessible endpoint (such that we can experiment)? |
So far it's not public. I am fetching data from the API (structured in json-ld) of our Omeka S server, which i then parse with |
My best guess from the limited information at hand is a bug in the SPARQL processor. A log from it, and possibly logs from any other components involved that can produce them, may help confirm that and/or pinpoint what the issue is. |
The SPARQL engine in rdflib is not fully SPARQL 1.1 compliant and is also, unfortunately, not very well documented. It does NOT support Filter. |
is the support planned for the future? |
We are considering options on SPARQL, possibly piggy-backing on another engine such as @RubenVerborgh's SPARQL.js . Rdflib's parsing may be weak but excels in loading (handles CORS, alternate formats) and following (loading all documents in a query, not assuming a single triplestore). It's possible to use comunica or sparql.js in conjunction with rdlib though it requires some dumping of quads from one format to the other. But no, sorry, no specific plans on FILTER. |
@jeff-zucker That's great. Note that both the loading and the link following are part of Comunica as well. Comunica has extended format support (also parsing JSON-LD inside of HTML, for instance) and extensive configurations for different kinds of traversal. So I can recommend it for more advanced SPARQL queries. |
Which SPARQL filter are supported now?
FILTER(contains(?var, "value to match))
does not filter anything.The text was updated successfully, but these errors were encountered: