biolink / biolinkml

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

alt_description not behaving as expected #326

Closed hsolbrig closed 3 years ago

hsolbrig commented 3 years ago

The following:

id: https://hotecosystem.org/tccm/datatype
name: datatypes
alt_descriptions:
  - source: UMLInfrastructure2.3,p.100
    text: a type whose instances are identified only by their value

Should fail because alt_description has no text parameter. It errors out for an entirely bogus reason

id: https://hotecosystem.org/tccm/datatype
name: datatypes
alt_descriptions:
  - source: UMLInfrastructure2.3,p.100
    description: a type whose instances are identified only by their value

Should pass, but it fails because source is type NCName -- we need to decide whether we expect a URI/Curie in the source field or a string. (For the moment I'd propose string)