Skip to content

Small change to clinical classes in linkml-microschema-profile to enable validation plugin #20

@sierra-moxon

Description

@sierra-moxon

I would change the CDE microschema to store this set of linkml:comments:

      - Classes instantiating this SHOULD NOT have identifier slots
      - Classes instantiating this SHOULD be used with inlined=true
      - Classes instantiating this MAY compose other microschemas via attributes

here:

like this:

ValueMicroschemaDefinition:
  is_a: MicroschemaDefinition
  annotations:
    must_not_have_id_slot: true
    must_be_inlined: true
    # I don't know how to validate/enforce "Classes instantiating this MAY compose other microschemas via attributes" and write a validator plugin to capture those annotations via the "instantiates" keyword here:
Quantity:
  instantiates:
    - ValueMicroschemaDefinition

and then I could write a linkml validation plugin to capture those annotations via the "instantiates" keyword:

Quantity:
  instantiates:
    - ValueMicroschemaDefinition

see also: #21, linkml/linkml#3281

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions