Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

never use name or text metaslots #862

Open
turbomam opened this issue Sep 23, 2024 · 0 comments
Open

never use name or text metaslots #862

turbomam opened this issue Sep 23, 2024 · 0 comments
Assignees

Comments

@turbomam
Copy link
Member

For example, when serialized in YAML, a LinkML schema does not need to declare the name or text of its entities. In fact, it bloats the files and is a potential source of conflict (relative to the out-dented key that introduces the thing that bears some name or text)

For example, this:

enums:
  AeroStrucEnum:
    name: AeroStrucEnum
    description: permissible values, used by term aero_struc
    from_schema: https://w3id.org/mixs
    permissible_values:
      glider:
        text: glider
      plane:
        text: plane
  AnimalBodyCondEnum:
    name: AnimalBodyCondEnum
    description: permissible values, used by term animal_body_cond
    from_schema: https://w3id.org/mixs
    permissible_values:
      normal:
        text: normal
      over conditioned:
        text: over conditioned
      under conditioned:
        text: under conditioned

could be

enums:
  AeroStrucEnum:
    description: permissible values, used by term aero_struc
    from_schema: https://w3id.org/mixs
    permissible_values:
      glider:
      plane:
  AnimalBodyCondEnum:
    description: permissible values, used by term animal_body_cond
    from_schema: https://w3id.org/mixs
    permissible_values:
      normal:
      over conditioned:
      under conditioned:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant