Fixed a few typos in project files

This commit is contained in:
Hassan Abedi 2026-05-29 14:54:24 +02:00
parent bc65de6b29
commit 88d767b9df
9 changed files with 53 additions and 45 deletions

2
Cargo.lock generated
View File

@ -116,7 +116,7 @@ dependencies = [
] ]
[[package]] [[package]]
name = "geormerge-demo" name = "geomerge-demo"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"geomerge", "geomerge",

View File

@ -1,5 +1,5 @@
[package] [package]
name = "geormerge-demo" name = "geomerge-demo"
version = "0.1.0" version = "0.1.0"
edition.workspace = true edition.workspace = true
license.workspace = true license.workspace = true

View File

@ -0,0 +1,35 @@
## Geomerge Demo
This demo shows how to store and read data from Geomerge.
The demo:
1. loads the compiled `paths.json` schema,
2. creates a Geomerge store,
3. inserts a small graph dataset in one transaction,
4. reads the inserted edge back,
5. persists the store to bytes,
6. reloads it, and checks that the restored store matches the original.
![Workflow Diagram](docs/diagrams/workflow.svg)
The SVG is generated from `docs/diagrams/workflow.dot`. To regenerate it after editing the `.dot` source, run:
```sh
bash docs/diagrams/make_figures.sh docs/diagrams
```
### Run
```sh
cargo run -p geomerge-demo
```
Expected output includes table and law counts, row counts for graphs, vertices, and edges, edge endpoints, and persisted byte size.
### Test
```sh
cargo test -p geomerge-demo
```
The tests cover the successful store, read, and persistence round trip, plus a rejected invalid edge insert that must leave the store unchanged.

View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# You need to have Graphviz installed to run this script
# On Debian-based OSes, you can install it using: sudo apt-get install graphviz
# Directory containing .dot files. Defaults to the script's own directory so the
# script works regardless of the caller's working directory.
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
ASSET_DIR=${1:-"${SCRIPT_DIR}"}
# Make figures from .dot files
for f in "${ASSET_DIR}"/*.dot; do
dot -Tsvg "$f" -o "${f%.dot}.svg"
done

View File

@ -36,7 +36,7 @@ fixture_rows [label = "Fixture Rows\n(graphs, vertices, edge)", fillcolor = "#E8
} }
subgraph cluster_demo { subgraph cluster_demo {
label = "geormerge-demo (run_demo)" label = "geomerge-demo (run_demo)"
style = "rounded" style = "rounded"
color = "#666666" color = "#666666"
fontcolor = "#333333" fontcolor = "#333333"

View File

@ -17,7 +17,7 @@
<g id="clust2" class="cluster"> <g id="clust2" class="cluster">
<title>cluster_demo</title> <title>cluster_demo</title>
<path fill="#fafafa" stroke="#666666" d="M284.75,-35C284.75,-35 2155.25,-35 2155.25,-35 2161.25,-35 2167.25,-41 2167.25,-47 2167.25,-47 2167.25,-301 2167.25,-301 2167.25,-307 2161.25,-313 2155.25,-313 2155.25,-313 284.75,-313 284.75,-313 278.75,-313 272.75,-307 272.75,-301 272.75,-301 272.75,-47 272.75,-47 272.75,-41 278.75,-35 284.75,-35"/> <path fill="#fafafa" stroke="#666666" d="M284.75,-35C284.75,-35 2155.25,-35 2155.25,-35 2161.25,-35 2167.25,-41 2167.25,-47 2167.25,-47 2167.25,-301 2167.25,-301 2167.25,-307 2161.25,-313 2155.25,-313 2155.25,-313 284.75,-313 284.75,-313 278.75,-313 272.75,-307 272.75,-301 272.75,-301 272.75,-47 272.75,-47 272.75,-41 278.75,-35 284.75,-35"/>
<text text-anchor="middle" x="1220" y="-295.7" font-family="Helvetica,Arial,sans-serif" font-size="14.00" fill="#333333">geormerge&#45;demo (run_demo)</text> <text text-anchor="middle" x="1220" y="-295.7" font-family="Helvetica,Arial,sans-serif" font-size="14.00" fill="#333333">geomerge&#45;demo (run_demo)</text>
</g> </g>
<g id="clust3" class="cluster"> <g id="clust3" class="cluster">
<title>cluster_loading</title> <title>cluster_loading</title>

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -1,29 +0,0 @@
## Geomerge Demo
This demo show how to store and read data from Geomerge.
The demo
1. loads the compiled `paths.json` schema
2. creates a Geomerge store
3. inserts a small graph dataset in one transaction
4. reads the inserted edge back
5. persists the store to bytes
6. reloads it and checks that the restored store matches the original.
![Workflow Diagram](docs/diagrams/workflow.svg)
### Run
```sh
cargo run -p geormerge-demo
```
Expected output includes table and law counts, stored graph row counts, edge endpoints, and persisted byte size.
### Test
```sh
cargo test -p geormerge-demo
```
The tests cover the successful store, read, and persistence round trip, plus a rejected invalid edge insert that must leave the store unchanged.

View File

@ -1,12 +0,0 @@
#!/bin/bash
# You need to have Graphviz installed to run this script
# On Debian-based OSes, you can install it using: sudo apt-get install graphviz
# Directory containing .dot files (with default value)
ASSET_DIR=${1:-"."}
# Make figures from .dot files
for f in "${ASSET_DIR}"/*.dot; do
dot -Tsvg "$f" -o "${f%.dot}.svg"
done