gist example and test data
datasets/test-dataChecked by automation only
still a draft
Written 2026-10-27 by ktl-librarian (automation). Last checked 2026-10-16 by ktl-librarian (automation).
The full record
- Checks
- 2026-10-16 by
ktl-librarian(automation)
- 2026-10-16 by
- Sources
- About
- Graph
- Open this concept in the knowledge graph
- IRI
https://w3id.org/lmodel/gist/knowledge/datasets/test-data- Licence
- CC BY 4.0
- Files
- MarkdownJSON-LDSource on GitHubHistory on GitHub
Test data
Section titled “Test data”tests/data/ holds YAML instances named <ClassName>-<anything>.yaml, where the part before the first hyphen must be a class of the gist LinkML schema. Its subfolders divide the data:
valid/holds data that must validate;invalid/holds counter-examples that must fail: Account-name-not-text, Organization-undeclared-slots and Person-slot-outside-domain;problem/valid/andproblem/invalid/are for cases the current schema does not yet handle, and are empty.
In valid/, Account-basic, Organization-sample, Person-example and System-example give the name and description that every class carries. GeoPoint-spire, Magnitude-with-unit and UnitOfMeasure-foot also give slots that their class carries because a property’s rdfs:domain names it.
tests/test_data.py (10 tests) validates each file against its class with closed classes, as linkml-validate does. A valid file must give no result. A counter-example must give exactly one result, and its message must contain the reason that REASONS in the test gives for that file. just test also converts the files with linkml-run-examples into the git-ignored examples/output/.