Fork me on GitHub
#asami
<
2021-04-28
>
quoll02:04:36

How very rdf:Statement of you!

2
quoll02:04:12

That’s my way of saying…. “No” 🙂

👻 3
pithyless06:04:30

Since attribute is just another datom in Datomic you can do:

[?p ?a ?p2]
[?a :db/ident :friend]
But in Datomic edges are scalar and unlabeled. If we ease that requirement, perhaps we can push this further:
[?p ?e ?p2]
[?e :attr/ident :friend]
[?e :date ?date]
The primary difference being that ?e could have a multiple cardinality unlike Datomic.
[?p ?e ?p2]
[?e :attr/ident :friend]
[?e :priority ?p]
[(> ?p 10)]  ;; and maybe in find we want to (count ?e)
Warning: I'm still pre- so this may all be gibberish; but I like playing with the duality of labeled edges vs labeled-nodes + more-edges. This may be all very impractical. 🙂

quoll14:04:25

Since this is the Asami channel, I can say that this is already quite possible. In fact, we’re using it this way at Cisco.

quoll14:04:58

While it has bizarre semantic implications (that I really don’t want to think about! :rolling_on_the_floor_laughing:) Asami has been liberating after years of RDF where the datatypes of Subject/Predicate/Object were so strictly defined

quoll14:04:06

So Asami really just doesn’t care if your attribute is an internal node that is unique to that connection and has its own attributes

quoll14:04:24

Asami also doesn’t care if your attribute is a string… which has its own attributes.

quoll14:04:14

(Note: please don’t do this! It works fine, but I’m sure that one day it will cause significant confusion for someone)

😜 2
quoll15:04:35

I like the idea that I can say:

["football"  :matches  #a/n 1]
[#a/n "1"    :type     :regex]
[#a/n "1"    :value    "^foo.*"]

quoll15:04:03

I plan to use internal nodes more frequently in my examples in future. I figure that it will be clearer what the nodes indicate and also get people more used to seeing them.

quoll19:04:16

Asami 2.0.2 is out. This has 2 changes: • A bugfix in grouping for some aggregate queries • Filenames have been corrected. If you have a database from 2.0.1 or earlier, then you can rename the files with a script called update.sh on github

quoll19:04:16

The filename change was annoying and trivial, so I didn’t figure that it warranted a minor version update, but it’s a bigger change than I like.

quoll19:04:50

I figured I needed to get it out asap before too many databases had been created with the wrong filenames 🙂