Fork me on GitHub
#asami
<
2022-11-11
>
simongray08:11:08

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]])

quoll13:11:18

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

🥳 3
simongray13:11:33

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!

quoll13:11:11

No, I enjoy the interaction. It reminds me that I have to prioritize a new release

quoll13:11:31

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?

quoll14:11:18

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))

quoll14:11:44

About to board, so I may not respond for a while…

👍 1
quoll14:11:54

A slice that triggers this?

simongray14:11:04

wait a sec… it’s actually not

👍 1
simongray14:11:57

I updated asami from “2.3.0” to “2.3.2" and the issue doesn’t manifest…

simongray14:11:11

so I guess there’s no need for the output now 🙂

quoll14:11:11

Wonder what I fixed? 😊

quoll14:11:41

You know I have to check now!

1
simongray14:11:42

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…

quoll14:11:02

OK, boarding…

simongray14:11:09

have a nice flight

simongray14:11:16

:airplane_departure: