This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-07
Channels
- # announcements (38)
- # asami (14)
- # beginners (35)
- # biff (3)
- # calva (29)
- # cider (20)
- # clj-kondo (7)
- # cljdoc (38)
- # clojure (64)
- # clojure-art (2)
- # clojure-australia (1)
- # clojure-dev (6)
- # clojure-europe (30)
- # clojure-nl (4)
- # clojure-spec (4)
- # clojure-uk (9)
- # clojured (3)
- # clojurescript (87)
- # cursive (17)
- # datahike (2)
- # datomic (10)
- # defnpodcast (2)
- # emacs (2)
- # events (1)
- # fulcro (25)
- # gratitude (1)
- # introduce-yourself (1)
- # jobs-discuss (21)
- # lsp (103)
- # malli (41)
- # meander (8)
- # minecraft (3)
- # missionary (3)
- # nextjournal (20)
- # off-topic (10)
- # pedestal (1)
- # polylith (15)
- # portal (6)
- # releases (2)
- # ring (1)
- # ring-swagger (2)
- # sci (4)
- # shadow-cljs (5)
- # spacemacs (3)
- # sql (11)
- # xtdb (3)
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.
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.
: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}
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.
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)
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.
Also, every statement gets an ID, and those IDs can have statements made about them too
ok, thanks!