Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulbatchelor/dagzet
Dagzet, a small DAG-Zettelkasten format for mind maps and knowledge graphs
https://github.com/paulbatchelor/dagzet
Last synced: 11 days ago
JSON representation
Dagzet, a small DAG-Zettelkasten format for mind maps and knowledge graphs
- Host: GitHub
- URL: https://github.com/paulbatchelor/dagzet
- Owner: PaulBatchelor
- License: mit
- Created: 2024-07-12T14:55:20.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-01-12T23:36:50.000Z (18 days ago)
- Last Synced: 2025-01-13T00:25:28.138Z (18 days ago)
- Language: Rust
- Size: 172 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dagzet
DAGZet (Directed-Acyclic-Graph Zettelkasten) is a simple
text-based data format for producing knowledge graphs.
A graph described in Dagzet gets compiled down into
SQLite code, which can then be parsed by sqlite to
be turned into a queryable database.Dual-licensed under MIT or the [UNLICENSE](https://unlicense.org).
## Installation
Compile and install locally with:```
cargo install --path .
```## Basic Usage
Here is an example of a simple graph```
zz declare the namespace
ns hellozz create a new node "world"
zz the full namespace is "hello/world"nn world
ln this is a line.
ln many lines can be appended.zz create a new node "another"
nn another
ln Another node has been createdzz make "another" point to "world" (another -> world)"
zz this makes "another" a child of "world"
co another world
```This can then be converted to a SQLite database:
```
$ dagzet hello.dz | sqlite a.db
$ echo "SELECT name FROM dz_nodes" | sqlite3 a.db"
hello/another
hello/world
```