Skip to content
Paula Gearon edited this page Aug 17, 2020 · 15 revisions

Asami is a project that evolved from simple data storage in the Naga rules system.

It has been heavily influenced by RDF in the data model, and Datomic in the API.

The links on the right provide documentation for how to use Asami, along with the graph data structures and how the API interacts with them.


Many of these pages provide example code, but require some preliminary setup before it can be run.

A copy/paste template that may be useful in a repl is:

(require '[asami.core :as d :refer [transact q])
(def db-uri "asami:mem://dbname")
(d/create-database db-uri)
(def conn (d/connect db-uri))

(def data [{}])
(transact conn {:tx-data data})

Clone this wiki locally