This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-11
Channels
- # asami (19)
- # babashka (41)
- # beginners (115)
- # biff (7)
- # calva (78)
- # clj-kondo (29)
- # cljs-dev (9)
- # clojure (39)
- # clojure-europe (17)
- # clojure-gamedev (29)
- # clojure-nl (1)
- # clojure-norway (9)
- # clojure-spec (2)
- # clojure-uk (3)
- # clojurescript (7)
- # core-async (26)
- # cursive (16)
- # datomic (13)
- # emacs (1)
- # events (5)
- # fulcro (2)
- # funcool (4)
- # gratitude (1)
- # helix (1)
- # holy-lambda (1)
- # humbleui (1)
- # introduce-yourself (4)
- # java (1)
- # jobs (2)
- # jobs-discuss (9)
- # lsp (28)
- # matcher-combinators (2)
- # mathematics (1)
- # membrane (1)
- # nbb (12)
- # off-topic (10)
- # pathom (52)
- # polylith (38)
- # portal (32)
- # re-frame (4)
- # reagent (16)
- # reitit (2)
- # remote-jobs (1)
- # reveal (1)
- # rewrite-clj (10)
- # sci (67)
- # shadow-cljs (45)
- # squint (1)
- # tools-build (13)
- # tools-deps (16)
Am I misunderstanding how inputs work? 😬
(d/q '[:find ?ident ?c
:in $ ?ident
:where
[?ident :document/comment ?c]]
conn
"ActaJutlandica_7_1-tei.xml")
returns
(["acc-1992_0005_030_Western_0120-tei-final.xml" #a/n[1]]
["acc-1992_0005_030_Western_0120-tei-final.xml" #a/n[2]]
["acc-1992_0005_030_Western_0120-tei-final.xml" #a/n[3]]
["ActaJutlandica_7_1-tei.xml" #a/n[4]]
["ActaJutlandica_9_2-tei.xml" #a/n[5]])
which to me seems off? It cannot be the case that ?ident
is not equal to "ActaJutlandica_7_1-tei.xml"
, yet the query results seem to say so?
----
If I substitute ?ident
with the value I get the expected (single) result:
(d/q '[:find "ActaJutlandica_7_1-tei.xml" ?c
:in $
:where
["ActaJutlandica_7_1-tei.xml" :document/comment ?c]]
conn)
returns
(["ActaJutlandica_7_1-tei.xml" #a/n[4]])
To start with, it’s kinda freaking me out that you have a string as a subject. But OK 🙂 As for the binding… yes, I’m confused. I am in transit today. I will try to look at it when I get home, but I have to take my daughter out for her birthday this evening, so I don’t know how much time I will have before tomorrow
I have a bunch of input files whose names I treat as unique IDs. Anyway, don’t worry about it. I realise that I may be spamming this channel a bit too much at times. Have a nice evening together with your daughter!
While I’m sitting at the gate waiting to board… do you happen to have a handful of triples that are relevant to your data, please?
I created a handful of triples:
[
["acc-1992_0005_030_Western_0120-tei-final.xml" :document/comment #a/n[1]]
["acc-1992_0005_030_Western_0120-tei-final.xml" :document/comment #a/n[2]]
["acc-1992_0005_030_Western_0120-tei-final.xml" :document/comment #a/n[3]]
["ActaJutlandica_7_1-tei.xml" :document/comment #a/n[4]]
["ActaJutlandica_9_2-tei.xml" :document/comment #a/n[5]]
]
since I’m presuming that these triples were found in your system.
Issuing your first query against them returns only:
(["ActaJutlandica_7_1-tei.xml" #a/n[4]])
This happened for both a memory and a local database.
So… I’m wondering if there is something in the shape of your data that triggers this, maybe?
Is your data large? If not, could I see the .edn file from an export, please?
(spit "output.edn" (asami.core/export-str conn))