Closed den1k closed 4 years ago
In the REPL, this does not work:
(require '[mundaneum.query :as mq]) (mq/query '[:select ?work ?workLabel :where [[?work (wdt :author) (entity "James Joyce")]] :limit 10]) ;; errors: Unable to resolve symbol: entity in this context
This works:
(require '[mundaneum.query :refer :all]) (query '[:select ?work ?workLabel :where [[?work (wdt :author) (entity "James Joyce")]] :limit 10])
This is not about the query function but rather the resolution of vars inside the quoted query vector.
query
Ah, it turns out that whether one requires :all or not changes the behavior of eval inside the required namespace (!). Fixed in latest.
:all
eval
In the REPL, this does not work:
This works:
This is not about the
query
function but rather the resolution of vars inside the quoted query vector.