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!
No, I enjoy the interaction. It reminds me that I have to prioritize a new release
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))About to board, so I may not respond for a whileā¦
A slice that triggers this?
wait a sec⦠itās actually not
I updated asami from ā2.3.0ā to ā2.3.2" and the issue doesnāt manifestā¦
so I guess thereās no need for the output now š
š
Wonder what I fixed? š
You know I have to check now!
I was working on a separate issue related to updating dependencies and getting security fixes today and just rebased on that branch to check if anything was differentā¦
OK, boardingā¦
have a nice flight
š«
š¦