Part of the "Read and write LinkML schema for HDMF (CSRMatrix / base.yaml)" epic. Depends on the mapping-conventions issue.
Hand-author the LinkML translation of a minimal test namespace: a namespace.yaml that references only base.yaml (Data, Container, SimpleMultiContainer) and sparse.yaml (CSRMatrix), plus those two schema files, following the agreed mapping conventions. These become the fixtures the reader and writer are tested against, so they must be correct and follow the conventions exactly. Include any companion files the conventions call for (for example, the dtype type definitions). The namespace references only these two files so the out-of-scope table.yaml and resources.yaml are excluded.
The HDMFSL sources are src/hdmf/common/hdmf-common-schema/common/base.yaml and src/hdmf/common/hdmf-common-schema/common/sparse.yaml; the test namespace.yaml is a new, minimal namespace modeled on src/hdmf/common/hdmf-common-schema/common/namespace.yaml but referencing only those two files.
The examples should be described in full in the new docs/source/linkml-mapping.rst file from #1487, as well as added as YAML to tests/unit/linkml_tests/fixtures/.
Acceptance criteria
Part of the "Read and write LinkML schema for HDMF (CSRMatrix / base.yaml)" epic. Depends on the mapping-conventions issue.
Hand-author the LinkML translation of a minimal test namespace: a
namespace.yamlthat references onlybase.yaml(Data,Container,SimpleMultiContainer) andsparse.yaml(CSRMatrix), plus those two schema files, following the agreed mapping conventions. These become the fixtures the reader and writer are tested against, so they must be correct and follow the conventions exactly. Include any companion files the conventions call for (for example, the dtype type definitions). The namespace references only these two files so the out-of-scopetable.yamlandresources.yamlare excluded.The HDMFSL sources are
src/hdmf/common/hdmf-common-schema/common/base.yamlandsrc/hdmf/common/hdmf-common-schema/common/sparse.yaml; the testnamespace.yamlis a new, minimal namespace modeled onsrc/hdmf/common/hdmf-common-schema/common/namespace.yamlbut referencing only those two files.The examples should be described in full in the new
docs/source/linkml-mapping.rstfile from #1487, as well as added as YAML totests/unit/linkml_tests/fixtures/.Acceptance criteria
CSRMatrixcommitted totests/unit/linkml_tests/fixtures/.linkml-runtime'sSchemaView.linkml-runtimeis added as an optionallinkmldependency group; the core install does not require it.linkml-runtime'sSchemaView.