Closed den1k closed 2 years ago
As per the announcement there are breaking syntax changes: https://twitter.com/jackrusher/status/1515986224921591812
The good news is that we now have support for a much larger part of SPARQL and no longer need template
(and thus the backtick
dep), which helps pave the way for a future CLJS version. Check out the updated examples in the README and the Clerk notebook in the notebooks
folder for more info about the slightly different syntax.
That helps! Thank you, fixed the query. Here it is for reference
(defn directors [movie-title]
(when-let [wd (some-> movie-title not-empty mq/entity)]
(some->>
(mq/query `{:select [?director ?directorLabel]
:where [[~wd ~(mp/wdt :director) ?director]]
:limit 10})
(into [] (map :directorLabel)))))
I recently upgraded to the newest version of the library and this query started breaking
wondering if this is a bug or the api changed