microbiomedata / nmdc-schema

National Microbiome Data Collaborative (NMDC) unified data model
https://microbiomedata.github.io/nmdc-schema/
Creative Commons Zero v1.0 Universal
26 stars 8 forks source link

check if classes associated with `alternative_identifiers` can use ANY `alternative_identifiers` #2066

Open turbomam opened 2 weeks ago

turbomam commented 2 weeks ago

Use the examples data file framework

As in, could a Biosample have a neon_study_identifiers annotation?

turbomam commented 2 weeks ago
id: nmdc:bsm-99-dtTMNb
part_of:
  - nmdc:sty-00-abc123
env_broad_scale:
  has_raw_value: ENVO:00002030
  term:
    id: ENVO:00002030
env_local_scale:
  has_raw_value: ENVO:00002169
  term:
    id: ENVO:00002169
env_medium:
  has_raw_value: ENVO:00005792
  term:
    id: ENVO:00005792
alternative_identifiers:
  - generic:123
turbomam commented 2 weeks ago
linkml-validate \
    --schema  nmdc_schema/nmdc_materialized_patterns.yaml  \
    --target-class  Biosample src/data/valid/Biosample-minimal-with-alternative-identifiers.yaml 

No issues found

turbomam commented 2 weeks ago
id: nmdc:bsm-99-dtTMNb
part_of:
  - nmdc:sty-00-abc123
env_broad_scale:
  has_raw_value: ENVO:00002030
  term:
    id: ENVO:00002030
env_local_scale:
  has_raw_value: ENVO:00002169
  term:
    id: ENVO:00002169
env_medium:
  has_raw_value: ENVO:00005792
  term:
    id: ENVO:00005792
gold_study_identifiers:
  - gold:Gs123
linkml-validate \
    --schema  nmdc_schema/nmdc_materialized_patterns.yaml  \
    --target-class  Biosample src/data/valid/Biosample-minimal-with-study-id.yaml

No issues found

turbomam commented 2 weeks ago

@aclum @cmungall ^

aclum commented 2 weeks ago

Is this a linkml bug? If it is allowed why doesn't it show up in the documentation as an inherited slot?