biolink / biolinkml

DEPRECATED: replaced by linkml
https://github.com/linkml/linkml
Creative Commons Zero v1.0 Universal
23 stars 12 forks source link

Add a generic annotations pattern #167

Closed cmungall closed 3 years ago

cmungall commented 4 years ago

We often want to add annotated annotations

e.g.

classes:
  my class:
    annotations:
      altLabel:
         - 
           value: some other label
           annotations:
             source:
               value: PMID:12345

In principle this allows unb ounded nesting as in owl2 (though I have never needed >1 level)

this would also allow people to use AP/metadata slots without to describe their model wiithout advance inclusion in metamodel: e.g. #150

cmungall commented 4 years ago

the concern with the above is that we have undefined keys

an alternative would be:

classes:
  my class:
    annotations:
      property: altLabel:
      value: some other label
      annotations:
           source:
             value: PMID:12345
nlharris commented 3 years ago

In biolink/biolink-model#440, Chris said "I think this ticket should be closed: biolink/biolinkml#167"

hsolbrig commented 3 years ago

Done