Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
/dist/api/
/www/

# Explorer build output. Everything under explorer/ that is generated:
explorer/modern/dist/
explorer/modern/node_modules/
explorer/**/node_modules/
explorer/**/target/
explorer/**/pkg/
explorer/legacy/deploy/

# ---------------------------------------------------------------------------
# Language toolchains
# ---------------------------------------------------------------------------
Expand Down
7 changes: 5 additions & 2 deletions LICENSING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ The September archive move changed paths, not licence grants. In the scope table
| `docs/` (original prose) | GNU Affero General Public License v3.0 or later | `AGPL-3.0-or-later` | [`LICENSE`](LICENSE) |
| `examples/` | GNU Affero General Public License v3.0 or later | `AGPL-3.0-or-later` | [`LICENSE`](LICENSE) |
| `README.md`, `LICENSING.md`, `COMMERCIAL.md`, `CONTRIBUTING.md`, `NOTICE` | GNU Affero General Public License v3.0 or later | `AGPL-3.0-or-later` | [`LICENSE`](LICENSE) |
| `explorer/` | MIT License | `MIT` | [`LICENSE-EXPLORER`](LICENSE-EXPLORER) |
| `explorer/` (removed from `main` 2026-11-23; last present at `7815bbcb9f8`) | MIT License | `MIT` | [`LICENSE-EXPLORER`](LICENSE-EXPLORER) |
| `assets/images/ngm-hero.webp`, `docs/reference/FORMAT-NGG1.md` (moved out of `explorer/` 2026-11-23) | MIT License | `MIT` | [`LICENSE-EXPLORER`](LICENSE-EXPLORER) |
| `ontology/` | Open Database License v1.0 | `ODbL-1.0` | [`LICENSE-DATA`](LICENSE-DATA) |
| `dist/` | Open Database License v1.0 | `ODbL-1.0` | [`LICENSE-DATA`](LICENSE-DATA) |

Expand Down Expand Up @@ -56,7 +57,9 @@ working tree on 2026-07-25.
- **`static/`**: `ns/v2.jsonld`, the JSON-LD `@context` document that maps the corpus
vocabulary onto `owl:`, `rdfs:`, `skos:`, `prov:` and the local `vc:` namespace
(`https://narrativegoldmine.com/ns/v1#`). Original work.
- **`explorer/`**: WasmVOWL. Subtrees: `modern/` (React + TypeScript SPA),
- **`explorer/`** (removed from `main` on 2026-11-23; the description below is kept as a
record of commit `7815bbcb9f8`. Live source: `publishing-tools/WasmVOWL/modern` in
jjohare/visionGraph): WasmVOWL. Subtrees: `modern/` (React + TypeScript SPA),
`rust-wasm/` (Rust → WebAssembly layout engine and NGG1 reader), `docs/`, `tests/`,
`scripts/`, `.github/workflows/wasm-publish.yml`, plus the design and format notes at
the tree root (`FORMAT-NGG1.md`, `VOWL-SPEC.md`, `CAPABILITIES.md` and others) and
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

</div>

![Narrative Goldmine decorative graph illustration](explorer/modern/public/images/heroes/ngm-hero.webp)
![Narrative Goldmine decorative graph illustration](assets/images/ngm-hero.webp)

**knowledgeGraph is the publication target and historical archive for Narrative Goldmine.** It hosts the public Markdown corpus and compiled ontology at [narrativegoldmine.com](https://narrativegoldmine.com/). Authoring and the active publication build live upstream; this checkout's `main` branch retains the earlier corpus, pipeline, explorer and their method.
**knowledgeGraph is the publication target and historical archive for Narrative Goldmine.** It hosts the public Markdown corpus and compiled ontology at [narrativegoldmine.com](https://narrativegoldmine.com/). Authoring and the active publication build live upstream; this checkout's `main` branch retains the earlier corpus, pipeline and their method.

Use the public site to read concepts, explore their relationships or download machine-readable artefacts. Use [Ontomark](https://github.com/DreamLab-AI/ontomark) to build a new corpus from Markdown. Running the archived Python pipeline here reproduces an older dataset; it does not rebuild today's public site.

Expand Down Expand Up @@ -65,9 +65,8 @@ The repository's former seven-stage rdflib build and Logseq-format source were r
| [`archive/github-workflows/`](archive/github-workflows/) | Retired workflow; historical build and gate definitions |
| [`dist/data/`](dist/data/) | Committed historical Turtle, WebVOWL JSON and graph artefacts |
| [`static/ns/v2.jsonld`](static/ns/v2.jsonld) | Local namespace document; distinguish it from the current served version |
| [`explorer/`](explorer/) | Retained React/Rust/WASM explorer implementation |
| [`explorer/FORMAT-NGG1.md`](explorer/FORMAT-NGG1.md) | Local binary format documentation |
| [`explorer/CAPABILITIES.md`](explorer/CAPABILITIES.md) | Explorer capability record and its evidence limits |
| [`docs/reference/FORMAT-NGG1.md`](docs/reference/FORMAT-NGG1.md) | NGG1 binary format of the committed `dist/data/graph/*.bin` tiers (moved from `explorer/`) |
| [`assets/images/`](assets/images/) | README imagery (moved from `explorer/`) |
| [`docs/`](docs/) | Architecture, methodology and historical acceptance records |

<details>
Expand All @@ -93,7 +92,7 @@ The earlier representation puts machine assertions in fenced JSON-LD and readabl
<details>
<summary><strong>Explorer and graph-format boundaries</strong></summary>

The retained explorer has its own build and acceptance record. Its presence here does not establish that the upstream publisher deploys this exact copy. Consult [`explorer/CAPABILITIES.md`](explorer/CAPABILITIES.md) and [`docs/architecture/explorer.md`](docs/architecture/explorer.md) before reusing it.
**Explorer retired from this repository (23 November 2026).** The `explorer/` tree was a stale copy of the WasmVOWL explorer (pinning `@dreamlab-ai/vowl-wasm` v0.1.1) that nothing here built or deployed, and it has been removed from `main`. The live explorer source is `publishing-tools/WasmVOWL/modern` in the private visionGraph repository, whose publish workflow builds it and pushes the site to this repository's `gh-pages` branch; it is served at [narrativegoldmine.com/graph/](https://narrativegoldmine.com/graph/). The removed tree, and every `explorer/…` path cited by the historical records in [`docs/`](docs/), remains readable at commit `7815bbcb9f8ab04c2e76f5f8c5c32c69a9dbc56c` (for example `git show 7815bbcb9f8:explorer/CAPABILITIES.md`). [`docs/architecture/explorer.md`](docs/architecture/explorer.md) describes that retired copy.

NGG1 represents graph tiers with a compact node table and CSR adjacency. The local format uses 24-byte node records and stores one category per node; it cannot by itself represent every multiple-inheritance membership. Sidecar metadata carries additional memberships. Check the producer and consumer versions together before using a binary tier.

Expand Down
8 changes: 4 additions & 4 deletions docs/BASELINE-narrativegoldmine.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sources:
- pipeline/jsonld_to_turtle.py
- pipeline/jsonld_parser.py
- pipeline/validate.py
- explorer/FORMAT-NGG1.md
- docs/reference/FORMAT-NGG1.md
- explorer/rust-wasm/src/ngg1.rs
- explorer/modern/src/types/scope.ts
- explorer/modern/src/workers/protocol.ts
Expand Down Expand Up @@ -46,7 +46,7 @@ Detailed references this baseline governs, not replaces:
- Pipeline internals — `docs/architecture/pipeline.md`
- Explorer internals — `docs/architecture/explorer.md`
- Corpus provenance & generation — `docs/methodology/corpus-generation.md`
- Binary tier contract — `explorer/FORMAT-NGG1.md`
- Binary tier contract — `docs/reference/FORMAT-NGG1.md`
- CI gates — `docs/ci-cd/build-and-gates.md`

## Current State
Expand Down Expand Up @@ -87,7 +87,7 @@ Exporter-local visibility checks in `pipeline/visibility.py` remain defensive bo
### The NGG1 binary tier contract

The graph tiers (`full.bin`, six `domain-*.bin`) use the frozen NGG1 format
(`explorer/FORMAT-NGG1.md`). Little-endian; 32-byte header; four 4-byte-aligned
(`docs/reference/FORMAT-NGG1.md`). Little-endian; 32-byte header; four 4-byte-aligned
sections (node table, CSR adjacency, edge types, string table). The node record
is **24 bytes, not 20** — the sprint brief's field widths summed to 22 and a
`u32 degree` cannot be 4-aligned inside 20 bytes, so the pad was widened to 3.
Expand Down Expand Up @@ -136,7 +136,7 @@ CI glue are **AGPL-3.0-or-later** (`LICENSE`); the `ontology/` corpus is
decision this repo did not take would fabricate authority. Instead each cited
section is mapped to the in-tree surface that carries its content today
(ADR-2001 "ADR-NG-001 resolution"), so a reader following a citation reaches
a real document. `explorer/FORMAT-NGG1.md:3` links the absent record by the
a real document. `docs/reference/FORMAT-NGG1.md:3` links the absent record by the
path `../../docs/adr/ADR-NG-001-explorer-architecture.md`, which is **doubly
broken**: from `explorer/` that normalises to *above* the repo root (the
correct depth would be `../docs/adr/…`). Since the target is classified
Expand Down
2 changes: 1 addition & 1 deletion docs/adr/PREAMBLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ says how to amend it:
Detailed, non-normative references the baseline governs: `docs/architecture/pipeline.md`
(pipeline internals), `docs/architecture/explorer.md` (explorer internals),
`docs/methodology/corpus-generation.md` (how the corpus was generated),
`explorer/FORMAT-NGG1.md` (the frozen binary tier contract).
`docs/reference/FORMAT-NGG1.md` (the frozen binary tier contract).

**Lookup order:** governing doc → its `file:line` citations into code → the ledger
records below. (There is no `docs/archive/`: this consolidation moved nothing, so
Expand Down
2 changes: 1 addition & 1 deletion docs/adr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ says how to amend it:
Detailed, non-normative references the baseline governs: `docs/architecture/pipeline.md`
(pipeline internals), `docs/architecture/explorer.md` (explorer internals),
`docs/methodology/corpus-generation.md` (how the corpus was generated),
`explorer/FORMAT-NGG1.md` (the frozen binary tier contract).
`docs/reference/FORMAT-NGG1.md` (the frozen binary tier contract).

**Lookup order:** governing doc → its `file:line` citations into code → the ledger
records below. (There is no `docs/archive/`: this consolidation moved nothing, so
Expand Down
10 changes: 10 additions & 0 deletions docs/architecture/explorer.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Explorer architecture: Rust/WASM + React

> **Retired 2026-11-23.** The `explorer/` tree this document describes has been removed
> from `main`; nothing in this repository built or deployed it. The text below is kept
> unchanged as a historical record, and its `explorer/…` paths resolve at commit
> `7815bbcb9f8ab04c2e76f5f8c5c32c69a9dbc56c` (`git show 7815bbcb9f8:explorer/<path>`). The NGG1 contract moved to
> [`docs/reference/FORMAT-NGG1.md`](../reference/FORMAT-NGG1.md). The live explorer
> source is `publishing-tools/WasmVOWL/modern` in
> the private visionGraph repository,
> built by that repository's publish workflow and served at
> <https://narrativegoldmine.com/graph/>.

The explorer is the browser half of this repository: it turns the binary and JSON
artefacts under `dist/data/` into a navigable graph and a readable page view. It
lives in `explorer/`, 227 files (excluding `node_modules/`, `target/`, `pkg/`,
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ content, produced under human direction, by design"* and that provenance attests

## NGG1 binary format

Contract: `explorer/FORMAT-NGG1.md`. Writer: `pack_ngg1`, `emit_graph_tiers.py:288-344`. Readers:
Contract: `docs/reference/FORMAT-NGG1.md`. Writer: `pack_ngg1`, `emit_graph_tiers.py:288-344`. Readers:
`explorer/modern/src/lib/ngg1.ts` and the `explorer/rust-wasm/` crate. Little-endian
throughout; every section starts on a 4-byte boundary and readers must use the
declared offsets rather than assume back-to-back packing.
Expand Down
2 changes: 1 addition & 1 deletion docs/ci-cd/build-and-gates.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ mistaken for a clean corpus.

**NGG1 golden fixture.** `test_golden_183_bytes_byte_exact` builds a 3-node /
2-edge graph and asserts the packed output is byte-identical to the hex dump in
`explorer/FORMAT-NGG1.md` §7 (exactly 183 bytes), then writes
`docs/reference/FORMAT-NGG1.md` §7 (exactly 183 bytes), then writes
`pipeline/tests/fixtures/ngg1-3n2e.bin`. That file is byte-identical to its twin
at `explorer/modern/src/lib/__fixtures__/ngg1-3n2e.bin`, which the TypeScript
reader test consumes. One worked example, two independent sides, one contract.
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/reproduce.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ five times the file size.

### NGG1 binary header (VERIFIED)

The format is documented in `explorer/FORMAT-NGG1.md`. Little-endian, 32-byte
The format is documented in `docs/reference/FORMAT-NGG1.md`. Little-endian, 32-byte
header, 24-byte node records:

```python
Expand Down Expand Up @@ -206,7 +206,7 @@ Planning.

Flags: `0x01` domain root, `0x02` category root, `0x04` has page, `0x08` bridge.
The writer also emits `0x10` for an Individual (`pipeline/emit_graph_tiers.py:221`,
`FLAG_INDIVIDUAL`); `explorer/FORMAT-NGG1.md` §5 still lists bits 4–7 as reserved,
`FLAG_INDIVIDUAL`); `docs/reference/FORMAT-NGG1.md` §5 still lists bits 4–7 as reserved,
so the file is the newer of the two. The extracted corpus has 0 individuals, so no
node in `full.bin` carries that bit.

Expand Down Expand Up @@ -261,7 +261,7 @@ Output:
*AI Documentation Standards* is a single class sitting under two parents that
resolve to two categories in two different domains. Read the same node out of
`full.bin` and it reports `category 3` and nothing else — the NGG1 node record
holds a **single** `u16` category (`explorer/FORMAT-NGG1.md` §3, byte offset 14),
holds a **single** `u16` category (`docs/reference/FORMAT-NGG1.md` §3, byte offset 14),
so the tiers keep only the nearest category ancestor and drop the rest. The full
membership exists only in `bridges.json`. If you are computing anything over
category overlap, read the JSON; the binary cannot answer the question.
Expand Down
File renamed without changes.
18 changes: 0 additions & 18 deletions explorer/.gitignore

This file was deleted.

55 changes: 0 additions & 55 deletions explorer/CAPABILITIES.md

This file was deleted.

Loading
Loading