by simongray · 4y ago · 0 comments
I do feel saddened that few seem to realise that the fundamental idea actually comes from RDF (i.e. the semantic web) and that Datomic's Datalog dialect is actually very similar to SPARQL. Datomic's primary innovation is the immutability/time travel feature, not the fact that is uses triples and works like a graph database. If you find triplestores fascinating I implore you to explore the semantic web stack too.
While RDF has an elegant core, it is bogged down by the complixity of the web and ancillary technologies.
XML Types, cURIes, OWL, the different encodings.
They all make RDF a nightmare to work with, and to implement in practice.
The is simply no good RDF software ecosystem, yet the Spec ecosystem continues to grow (wildly out of control).
On a technical note, SPARQL and Datomic Datalog are very different beasts.
The former is conjunctive queries with optionals and regular path expressions (i.e. Conjunctive queries + XPath + nonmonotonic defaults) while the latter is recursive conjunctive queries (i.e. Datalog).
Of course there are other GraphDBs with additional properties and custom query languages such as Neo4j and its query language Cypher. I Find that Neo4j's property graph is more intuitive to model data with than a plain RDF store and Cypher has some advantages over SPARQL as well