Skip to content

Commit 84c04c2

Browse files
authored
Merge pull request #13 from sensein/claude/schema-registry-meta-model-2upt56
docs: update local setup section to use pipeline.py
2 parents d5cf62b + 46030b7 commit 84c04c2

1 file changed

Lines changed: 23 additions & 11 deletions

File tree

README.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -239,24 +239,36 @@ outside the web flow.
239239
git clone https://github.com/sensein/NeuroGhost.git
240240
cd NeuroGhost
241241
pip install -r requirements.txt
242+
```
243+
244+
**Full rebuild** (seeds schema.org, fetches external schemas, ingests everything, aligns, exports):
245+
246+
```bash
247+
python neuro_ghost/pipeline.py --fresh
248+
```
242249

243-
# 1. Seed with schema.org as the base vocabulary
244-
python neuro_ghost/seed.py
250+
**Local schemas only** (skips the external network fetch):
245251

246-
# 2. Fetch + convert external schemas (BIDS, NWB, DANDI, openMINDS, AIND)
247-
python neuro_ghost/converters/run_all.py
252+
```bash
253+
python neuro_ghost/pipeline.py --fresh --skip-converters
254+
```
248255

249-
# 3. Load a schema
250-
python neuro_ghost/ingest_linkml.py --file schemas/bbqs.yml
256+
**One schema** (incremental, adds to an existing DB):
251257

252-
# 4. Compute alignments
253-
python neuro_ghost/align.py --source bbqs
258+
```bash
259+
python neuro_ghost/pipeline.py --skip-converters --schemas schemas/bbqs.yml
260+
```
254261

255-
# 5. Export snapshot the frontend reads
256-
python neuro_ghost/export_json.py --bump minor --schema bbqs
262+
```
263+
Options:
264+
--fresh Delete the DB first (fixes version-mismatch errors)
265+
--skip-converters Skip fetching BIDS, NWB, DANDI, openMINDS, AIND
266+
--schemas FILE One or more specific .yml files to ingest
267+
--bump Version bump type: major / minor / patch [default: minor]
268+
--agent TEXT Name recorded in provenance [default: local]
257269
```
258270

259-
Then open `index.html` in a browser and you'll see the local snapshot.
271+
Then open `index.html` in a browser to see the local snapshot.
260272

261273

262274
## Under the hood

0 commit comments

Comments
 (0)