Contributing
Contributions are welcome — a new concept type, a mapping fix, a documentation improvement, or a bug report.
The single source of truth
Section titled “The single source of truth”LOKF is defined once in
lokf.yaml, a
LinkML schema. The JSON-LD context, JSON Schema, SHACL
shapes, and OWL ontology are generated from it — never hand-edit them.
| File | Hand-edit? |
|---|---|
lokf.yaml |
✅ the schema |
SPEC.md, examples/…/*.md, web/… |
✅ prose, examples, docs |
lokf.context.jsonld, lokf.schema.json, lokf.shacl.ttl, lokf.owl.ttl, examples/*.nt |
⚙️ generated |
Set up
Section titled “Set up”git clone https://github.com/nicholsn/lokfcd lokfuv syncMake a change
Section titled “Make a change”-
Edit the source:
lokf.yamlfor the vocabulary,src/lokf/for the toolkit,examples/for the reference bundle, orweb/for these docs. -
When adding a type or field, map it to an established public ontology term (schema.org, DCAT, PROV-O, SKOS, W3C ORG, …) rather than minting a new term — reuse is the whole point of LOKF.
-
Regenerate and re-validate everything:
Terminal window just build # regenerate artifacts + re-validate the reference bundlejust test # run the test suite -
Commit the regenerated artifacts alongside your schema change, so the generated files never drift from
lokf.yaml.
Open a pull request
Section titled “Open a pull request”just buildandjust testmust pass.- Regenerated artifacts are committed.
- Describe the change and the reasoning; if you touched the vocabulary, note which public terms you reused and why.
Responsible AI use
Section titled “Responsible AI use”LOKF is built openly with AI assistance, and we ask contributors to use these tools responsibly. The essentials:
- You own what you submit. Regardless of what tools helped, you are the author — understand it, verify it, and be ready to defend it in review.
- No AI co-authorship. AI is never credited as a commit author or co-author; the human running the tool is solely responsible.
- Disclose when it matters. If you propose a change in code or schema you don’t fully understand, say that AI suggested it so reviewers can weigh it appropriately.
- Humans own discussion. AI can help you draft, but must not autonomously post to issues or discussions.
The full policy is the AI Covenant, adapted from the LinkML AI Covenant.