void
Theme
Text size
GitHub Menu

Example data

Dataset reference datasets/example-data

Nobody has checked this yet

still a draft

Written 2026-10-31 by ktl-librarian (automation).

The full record
Checks
none recorded
Sources
Derived from
Graph
Open this concept in the knowledge graph
IRI
https://w3id.org/lmodel/void/knowledge/datasets/example-data
Licence
CC BY 4.0
Files
Markdown JSON-LD Source on GitHub History on GitHub

tests/data/ holds the examples, each named after the class it is checked against, as ClassName-anything.yaml:1

  • valid/ holds records that conform to the schema;
  • problem/valid/ holds valid records with a class partition’s class key, which the generated dataclasses cannot load under LinkML 1.12.1, since class is a Python keyword;
  • invalid/ holds counter-examples, each opening with # Fails at: <pointer>.

tests/test_data.py holds every valid example to the validator, the committed JSON Schema and the Pydantic model, and loads the ones in valid/ into the dataclasses. Each counter-example must fail the validator at the place it names and nowhere else. The test also checks two rules that no validator states, over every valid example:

  • a linkset’s targets name two different datasets;
  • a dataset’s example and root resources start with its uriSpace and match its uriRegexPattern.2

docs/index.md lists what the validator checks and what each generated model leaves out.3

The records describe fictional datasets on example.org addresses, in the shapes of the Note’s examples, and copy none of the Note’s text.


  1. tests/data/README.md ↩︎

  2. tests/test_data.py, the docstrings ↩︎

  3. docs/index.md, the Validating data section ↩︎