asami

simongray 2022-02-07T09:30:02.241709Z

Why do some of my queries return :tg/nil as opposed to nil? Should I always just expect :tg/nil when there is no data for that triple? It’s not a hassle at all, but I am wondering why there is a special keyword.

simongray 2022-02-07T09:33:09.816069Z

Also thanks for making Asami. I’ve been using Aristotle for a different project and the transition to Asami is quite seamless since I am used to RDF semantics by now + the queries are definitely easier to write than Aristotle’s.

quoll 2022-02-07T10:27:00.971649Z

:tg/nil is only used to represent a nil value that was explicitly inserted in the database. eg if you insert an object like this:

{:id “object”
 :data nil}

quoll 2022-02-07T10:27:10.471509Z

And thank you 😊

quoll 2022-02-07T10:40:27.468379Z

In general, if there isn't any data then there won't be any result in a query

simongray 2022-02-07T12:53:34.440289Z

I see, thank you. I’ll just get rid of the nil vals in the input entities then to get back my nil punning. It’s just a bunch of excel rows, I just didn’t bother to clean them up before importing into Asami.

quoll 2022-02-07T13:28:15.209929Z

The idea was that a round-trip through Asami would not lose any information. If that entity is retrieved then it will have that key on it (with a nil value)

simongray 2022-02-07T13:56:23.715099Z

makes sense

respatialized 2022-02-07T16:52:21.650839Z

I have a question about transacting data in Asami: does the storage model support annotating transactions with metadata? I'm interested in recording information about how certain facts were added to an Asami DB and was wondering how this might be possible.

quoll 2022-02-07T16:53:09.618989Z

The storage model: yes. It’s not implemented though

quoll 2022-02-07T16:53:31.209619Z

Every transaction gets an ID. Those IDs can have statements made about them

quoll 2022-02-07T16:53:47.197369Z

Also, every statement gets an ID, and those IDs can have statements made about them too

quoll 2022-02-07T16:54:15.659959Z

But I haven’t done anything about exposing them yet. I plan to, but haven’t done so

respatialized 2022-02-07T17:05:33.061839Z

ok, thanks!