You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should instead be this, and pass (note the where test is also incorrect, signifying special where logic when a PREFIX exists, but it should parse like a normal `where clause instead):
I worked on this as part of the recent v3 SPARQL work before I noticed this ticket existed. The new, passing SPARQL PREFIX test looks like this:
(testing"PREFIX declarations go into the context"
(let [book-db @(fluree/stage db book-data)
query "PREFIX book: <http://example.org/book/> SELECT ?book ?title WHERE {?book book:title ?title.}"
results @(fluree/query book-db query {:format:sparql})]
(is (= [["book:1""For Whom the Bell Tolls"]
["book:2""The Hitchhiker's Guide to the Galaxy"]]
results))))
The current test for
PREFIX
treats it as a source, but instead it is the equivalent to@context
.The current test that is passing, but incorrect is:
It should instead be this, and pass (note the
where
test is also incorrect, signifying specialwhere
logic when aPREFIX
exists, but it should parse like a normal `where clause instead):Also, there is no test that uses multiple
PREFIX
declarations. Hopefully that just works, or may warrant a separate ticket if not. Here is a test:The text was updated successfully, but these errors were encountered: