You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the documentation on Identity Values (https://github.com/threatgrid/asami/wiki/4.-Transactions#identity-values) makes me think :db/ident and :id would operate the same but only :id would show up in entity maps. However, I'm seeing something different when I transact things. It's most easily seen in build-triples:
For a little context, I came across this because I'm importing some json from an endpoint I don't have control over. Conveniently, it has uuids on an "id" attribute, but it does duplicate the data of some entities when nested. I was surprised to see that generate multiple copies even when they had an "id" uuid. I can work around it easily enough by parsing the json myself and adding a :db/ident whenever I see an :id, but was mostly wondering if :id and :db/ident were supposed to have differences like this.
Also, I've been having a lot of fun with Asami over the past few weeks--thanks for making it!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Looking at the documentation on Identity Values (https://github.com/threatgrid/asami/wiki/4.-Transactions#identity-values) makes me think
:db/identand:idwould operate the same but only:idwould show up in entity maps. However, I'm seeing something different when I transact things. It's most easily seen inbuild-triples:I would expect that to return
Is this the expected behavior?
I'm on Asami version "2.1.3".
For a little context, I came across this because I'm importing some json from an endpoint I don't have control over. Conveniently, it has uuids on an "id" attribute, but it does duplicate the data of some entities when nested. I was surprised to see that generate multiple copies even when they had an "id" uuid. I can work around it easily enough by parsing the json myself and adding a
:db/identwhenever I see an:id, but was mostly wondering if:idand:db/identwere supposed to have differences like this.Also, I've been having a lot of fun with Asami over the past few weeks--thanks for making it!
Beta Was this translation helpful? Give feedback.
All reactions