Skip to content
Paula Gearon edited this page Jul 1, 2021 · 12 revisions

Getting Started

If you are unfamiliar with graph databases and graph queries, start with the Introduction.

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.

For developers who want to understand Asami, look at the Code Layout page.

Background

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.


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 [{}])
(def t (transact conn {:tx-data data}))