This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-11
Channels
- # aws (2)
- # beginners (38)
- # boot (21)
- # boot-dev (8)
- # cider (51)
- # cljsrn (3)
- # clojars (23)
- # clojure (99)
- # clojure-austin (7)
- # clojure-brasil (1)
- # clojure-dev (8)
- # clojure-dusseldorf (1)
- # clojure-estonia (20)
- # clojure-greece (4)
- # clojure-italy (3)
- # clojure-russia (1)
- # clojure-spec (28)
- # clojure-uk (47)
- # clojurescript (47)
- # core-logic (3)
- # cursive (9)
- # data-science (1)
- # datomic (50)
- # docs (12)
- # emacs (5)
- # fulcro (60)
- # graphql (33)
- # hoplon (8)
- # jobs-discuss (1)
- # keechma (31)
- # lein-figwheel (10)
- # leiningen (4)
- # off-topic (70)
- # om (1)
- # onyx (15)
- # pedestal (5)
- # re-frame (185)
- # reagent (14)
- # remote-jobs (8)
- # ring-swagger (7)
- # rum (17)
- # shadow-cljs (193)
- # specter (6)
- # sql (51)
- # unrepl (8)
And moin moin as I know come from east-Frisia (which is the very north western part of Germany that borders the Netherlands)
and the only reason I come here to the UK channel is that I have lived in the uk for almost 17 years... but I left just over a year ago and have come back to NL
Good morning humans and other designations
Jason is in the human group, Jade is in the other designations group
ÂŻ\(ă)/ÂŻ
My phd supervisor was known for âmoin moinâ too. Baden-WĂźrttemberg area of Germany (south west)
@yogidevbear Well I suppose thatâs a positive start then.
To be fair my old workmate might have got it from Germany, as Luxembourg is next to Germany and he spoke all the languages
Has anyone got a good example of using db.type/ref in Datomic..? I am (still) trying to wrap my head around how I might use Datomic to build my / our foundation database and I realise that I donât really__ understand how to use references properly.
(in other words, how do I define in a schema a relationship, an âedgeâ, between two or more datoms?)
@otfrom - I knew there was a Python connection to moin moin⌠I think I used it way back tooâŚ
hwe used moinmoin - and had a german guy working for us who was quite enthusiastic about wishing everyone moinmoin and then giggling
perhaps because of the apparent tweeness
@maleghast With db.type/ref
the value is just the entity ID of the datom youâre referencing. Like a foreign key.
I had a look at the source code for the Datomic example DB for Musicbrainz and that was really the only bit I hadnât wrapped my head around, so I appreciate it.
Is there any way to store values on âedgesâ in Datomic, I mean I can already see how datoms are like nodes / vertices, but I havenât really been able to figure out whether or not a datom can be modelled as an edge instead of a nodeâŚ
You could model the edges as datoms explicitly - so rather than nodes referencing each other, they reference edges. Then store your extra attributes on the edge datoms. So each node could have a :node/connections
attribute of type db.type/ref
with db.cardinality/many
that reference connected edge datoms.
With Foreign Keys in an RDBMS one can create utility look-ups so that one can find the right ID to add into a related record as the database grows large and there are many items that need to be added into new data in this way⌠Is there a Datomic way of doing this..? As in an idiomatic / received way of doing it, as well as or instead of a âfeatureâ designed to make it easier / simpler..?
Alternatively, you invert the relationship so an edge datom has :edge/from
and :edge/to
, both refs.
Frankly the ability to model it in a couple of different ways is quite awesome / felxible.
I think that what I am going to do in the first instance is create some pretty open / simple schema for very general âclassesâ of data, such as person, organisation, country etc. and then create schema for specialised versions of these core types over time as / when it becomes necessary to create highly specified datoms.
That makes sense. The philosophy is very much about âaccretionâ, so starting general and adding more attributes as you need them works well. đ
Brilliant⌠Itâs still a ridiculous mountain to climb, but at least I feel as though I have a plan that is the product of some serious consideration and thought.
Are people broadly in favour of Conformity ( https://github.com/rkneufeld/conformity ) or âsomething elseâ(tm) or neither?
Also, I have a feeling someone said to me that there is a clojure.spec -> Datomic Schema workflow / path / approach that if I am remembering it correctly I would probably enjoy⌠Finally I find myself wondering if anyone has cracked connecting up forms in a ClojureScript app with inserting data into Datomic..?