Thank you for helping improve the Home-Cage Monitoring Ontology. HCMO is an ontology: every change is a semantic change until shown otherwise, so the process below is stricter than for a typical code repository. Please read it before opening a pull request.
By participating you agree to the Code of Conduct. Contributions are released under the repository licence (CC BY 4.0).
- A monitoring system or dataset: use the contribution form under
docs/hcm-systems/contribute/and open an issue with the exported Turtle, or follow the per-system layout indocs/hcm-systems/. - A new or changed term (class, property, definition, alignment): open a "Term request" issue first so scope, module and modelling pattern can be agreed before you edit.
- Missing labels or definitions: see
docs/MISSING-DEFINITIONS.md. Fill them in the source module; please do not invent definitions you cannot source. - Examples, shapes, competency questions, documentation, bug reports.
| Path | What it is | Hand-edit? |
|---|---|---|
ontology/modules/*.ttl |
Ontology source (hcm-core, hcm-bio, hcm-env, hcm-obs, hcm-tech, ...) |
Yes |
dist/ |
Merged and serialised release artefacts | Never, regenerate |
shapes/, examples/, queries/ |
SHACL, ABox examples, competency questions | Yes |
hcmo.yaml |
Release manifest read by downstream tools; its shape is an API | Carefully |
AGENTS.md holds the authoritative repository map and modelling
rules.
- Do not change meaning silently. Describe the semantic effect of every change.
- Never re-mint or rename IRIs. Labels may change; IRIs must not. Deprecate a term and map its replacement instead of deleting it.
- Put each term in the right module by namespace; keep
hcm-coreminimal and push application-specific constraints toshapes/orexamples/. - Every class and property needs an
rdfs:label, a textual definition (rdfs:commentand/orIAO:0000115) and a short provenance note. Avoid circular definitions and definition-by-example. - Prefer reuse of the external vocabularies recorded in
external-vocabularies.yamlover new terms.
pip install -r tooling/requirements.txt
# 1. Edit ontology/modules/*.ttl (and shapes/, examples/, queries/ as needed)
python tooling/build.py # 2. regenerate dist/ (re-running must give no diff)
python tooling/validate.py # 3. parse, SHACL, competency questions (the CI gate)Then:
- Commit the regenerated
dist/together with the module change. CI fails ifdist/is stale. - Add an entry under
## [Unreleased]inCHANGELOG.md; list any moved term in a### Renamedsection asold -> new. - Open a pull request against
mainand fill in the template. Keep it small and focused: one semantic concern per pull request.
If you are unsure whether a change fits the ontology's scope or patterns, open an issue first; we would rather discuss alternatives early.
- Modelling or data problems: a "Bug report" issue.
- Security concerns or exposed personal/confidential data: see
SECURITY.md; do not open a public issue.