Thanks for contributing to Open Knowledge Graph Resources.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtRefresh data:
python scripts/fetch_data.pyClassify categories (optional, requires Anthropic key):
export ANTHROPIC_API_KEY=your_key_here
python scripts/classify_categories.pyLocal site preview:
python -m http.server 8000Open: http://localhost:8000/site/
python3 -m py_compile scripts/fetch_data.py scripts/category_classifier.py scripts/classify_categories.py
node --check site/app.js
python3 - <<'PY'
from rdflib import Graph
Graph().parse('ontology.ttl', format='turtle')
print('ontology.ttl parse ok')
PYIf your change affects generated datasets, include updated files in data/.
- Keep PRs focused and scoped to one task/theme.
- Include a short summary of behavior changes.
- Link related issues/tasks where relevant.
- Add or update docs when behavior, workflows, or schema changes.
- Preserve optional-field behavior in JSON output (omit missing keys).
- Do not introduce required fields unless explicitly approved.
- Preserve current SHACL constraints unless the task requires updates.
- Keep
wikidataIdas an IRI-valued field. - Prefer deterministic output ordering where possible.
- Data refresh workflow (
update-data.yml) runs daily at 06:00 UTC. - Deployment workflow (
deploy.yml) publishessite/,data/, andontology.ttl. - Use
openknowledgegraphs.comURLs in docs and public references.
- Open an issue with:
- repro steps
- expected vs actual behavior
- relevant logs/screenshots
- affected files/workflow runs