Lemon-KG: Research-centered ontology and SHACL
- ontology: OWL/Turtle modules (core, diversity, energy, context, align)
- shapes: SHACL shapes for validation
- data: Example instances (hypotheses)
- queries: SPARQL queries for analysis
- mappings: Per-project mappings to Lemon-KG
- tools: Python tooling (rdflib, pyshacl, loaders, metrics)
- graphdb: Helper scripts and notes for GraphDB
Quick start
- Assemble all ontology and data into build/lemon-kg.ttl
- python3 tools/assemble.py
- Validate with SHACL
- python3 tools/validate.py
- Load to GraphDB (env GRAPHDB_URL, REPO_ID)
- ./graphdb/load.sh build/lemon-kg.ttl
Prereqs: Node 18+
# Run the vendored CLI in this repo only
./tools/vendor/cc-sdd/dist/cli.js \
--agent cursor \
--profile minimal \
--yes \
--overwrite skip \
--backup="/tmp/cc-sdd-backup"Outputs here (safe):
- .cursor/commands/kiro/*
- .kiro/settings/*
- AGENTS.md
Update the vendor snapshot later (optional):
# Refresh from your local cc-sdd clone (keeps upstream untouched)
rsync -a /Volumes/lemon/cursor/cc-sdd/tools/cc-sdd/dist/ tools/vendor/cc-sdd/dist/
rsync -a /Volumes/lemon/cursor/cc-sdd/tools/cc-sdd/templates/ tools/vendor/cc-sdd/templates/Guardrails:
- Do not modify upstream cc-sdd here.
- Commit the vendored tree if you refresh it, so CI is reproducible.