From 9eb6bc622027aef6426081c91fc4c4fd2a575eb7 Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Thu, 27 Feb 2020 12:09:11 -0500 Subject: [PATCH] Add an example, more notes. --- NOTES | 24 ++++++++++++++++++++---- examples/movies.edn | 31 +++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 examples/movies.edn diff --git a/NOTES b/NOTES index 34c9234d..a897a075 100644 --- a/NOTES +++ b/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/ diff --git a/examples/movies.edn b/examples/movies.edn new file mode 100644 index 00000000..ab8657a1 --- /dev/null +++ b/examples/movies.edn @@ -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]] +