Fixed a few typos in project files
This commit is contained in:
parent
bc65de6b29
commit
88d767b9df
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -116,7 +116,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "geormerge-demo"
|
||||
name = "geomerge-demo"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"geomerge",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "geormerge-demo"
|
||||
name = "geomerge-demo"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
35
crates/geomerge-demo/README.md
Normal file
35
crates/geomerge-demo/README.md
Normal 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.
|
||||
|
||||

|
||||
|
||||
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.
|
||||
14
crates/geomerge-demo/docs/diagrams/make_figures.sh
Executable file
14
crates/geomerge-demo/docs/diagrams/make_figures.sh
Executable 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
|
||||
@ -36,7 +36,7 @@ fixture_rows [label = "Fixture Rows\n(graphs, vertices, edge)", fillcolor = "#E8
|
||||
}
|
||||
|
||||
subgraph cluster_demo {
|
||||
label = "geormerge-demo (run_demo)"
|
||||
label = "geomerge-demo (run_demo)"
|
||||
style = "rounded"
|
||||
color = "#666666"
|
||||
fontcolor = "#333333"
|
||||
@ -17,7 +17,7 @@
|
||||
<g id="clust2" class="cluster">
|
||||
<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"/>
|
||||
<text text-anchor="middle" x="1220" y="-295.7" font-family="Helvetica,Arial,sans-serif" font-size="14.00" fill="#333333">geormerge-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-demo (run_demo)</text>
|
||||
</g>
|
||||
<g id="clust3" class="cluster">
|
||||
<title>cluster_loading</title>
|
||||
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@ -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.
|
||||
|
||||

|
||||
|
||||
### 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.
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user