Add an example, more notes.
This commit is contained in:
parent
41f1ff2393
commit
9eb6bc6220
2 changed files with 51 additions and 4 deletions
24
NOTES
24
NOTES
|
@ -1,3 +1,12 @@
|
|||
* sqlite -> monetdb-lite-c + fts5 + bayesdb
|
||||
* fts5 + regex + tre/fuzzy + codesearch/trigram filters, streaming bloom filters https://arxiv.org/abs/2001.03147
|
||||
* datalog to "goblin relational engine" (gtk)
|
||||
* branching distributed wal (chain replication) and CRDTs
|
||||
* alf:fn query language
|
||||
* datatypes via bit syntax+some code?
|
||||
* pure lang?
|
||||
|
||||
* https://github.com/dahjelle/pouch-datalog
|
||||
* https://github.com/edn-query-language/eql
|
||||
* https://github.com/borkdude/jet
|
||||
* https://github.com/walmartlabs/dyn-edn
|
||||
|
@ -7,7 +16,14 @@
|
|||
* https://github.com/clojure-emacs/parseedn
|
||||
* https://github.com/exoscale/seql
|
||||
* https://github.com/axboe/liburing
|
||||
* https://github.com/probcomp/BayesDB
|
||||
* https://github.com/probcomp/bayeslite
|
||||
* http://probcomp.csail.mit.edu/software/bayesdb/
|
||||
*
|
||||
|
||||
* (EAVtf) - entity attribute value type flags
|
||||
|
||||
* distributed, replicated WAL
|
||||
* https://github.com/mirage/irmin
|
||||
|
||||
* What if facts had "confidence" [0-1)?
|
||||
* entity attribute value type flags
|
||||
* https://github.com/probcomp/BayesDB
|
||||
* https://github.com/probcomp/bayeslite
|
||||
* http://probcomp.csail.mit.edu/software/bayesdb/
|
||||
|
|
31
examples/movies.edn
Normal file
31
examples/movies.edn
Normal file
|
@ -0,0 +1,31 @@
|
|||
;; movie schema
|
||||
[{:db/ident :movie/title
|
||||
:db/valueType :db.type/string
|
||||
:db/cardinality :db.cardinality/one
|
||||
:db/doc "The title of the movie"}
|
||||
|
||||
{:db/ident :movie/genre
|
||||
:db/valueType :db.type/string
|
||||
:db/cardinality :db.cardinality/one
|
||||
:db/doc "The genre of the movie"}
|
||||
|
||||
{:db/ident :movie/release-year
|
||||
:db/valueType :db.type/long
|
||||
:db/cardinality :db.cardinality/one
|
||||
:db/doc "The year the movie was released in theaters"}]
|
||||
|
||||
;; a few movies
|
||||
[{:movie/title "The Goonies"
|
||||
:movie/genre "action/adventure"
|
||||
:movie/release-year 1985}
|
||||
{:movie/title "Commando"
|
||||
:movie/genre "thriller/action"
|
||||
:movie/release-year 1985}
|
||||
{:movie/title "Repo Man"
|
||||
:movie/genre "punk dystopia"
|
||||
:movie/release-year 1984}]
|
||||
|
||||
;; query
|
||||
[:find ?movie-title
|
||||
:where [_ :movie/title ?movie-title]]
|
||||
|
Loading…
Reference in a new issue