linkml / linkml

Linked Open Data Modeling Language
https://linkml.io/linkml
Other
311 stars 96 forks source link

Consider enum for metaslot "status" #440

Open cmungall opened 2 years ago

cmungall commented 2 years ago

We have status in the linkml metamodel, mapped to pav:status, the range is string

Should we have the range of this be an enum? Closed or open?

There is a semweb vocab:

https://www.w3.org/2003/06/sw-vocab-status/note.html

term status the status of a vocabulary term, expressed as a short symbolic string; known values include 'unstable','testing', 'stable' and 'archaic' unstable should we at least have a convention about which strings are used in the metamodel? It is useful to include new features but mark them in some way as subject to change
sierra-moxon commented 1 year ago

It looks like status is constrained only as a 'uriorcurie' data type, not with an enumeration of possible values. Do we still want that? Right now we mostly just leave it out or it is set to 'testing'?

  status:
    aliases:
      - workflow status
    domain: element
    range: uriorcurie
    description: status of the element
    slot_uri: bibo:status
    examples:
      - value: "bibo:draft"
    see_also:
      - https://www.hl7.org/fhir/valueset-publication-status.html  ## Draft, Active, Retired, Unknown
      - https://www.hl7.org/fhir/versions.html#std-process  ## Draft, Trial Use, Normative, Informative, Deprecated
    in_subset:
      - BasicSubset
sierra-moxon commented 1 year ago

It looks like the enum could be as simple as:

StatusEnum:
  permissible_values:
    unstable:
    testing:
    stable:
    archaic: