linkml / linkml-runtime

Runtime support for linkml generated models
https://linkml.io/linkml/
Creative Commons Zero v1.0 Universal
24 stars 23 forks source link

SchemaView should handle shared attributes with shared names appropriately #210

Closed cmungall closed 1 year ago

cmungall commented 1 year ago
classes:
  C:
    attributes:
      a:
         ...
  D:
    attributes:
      a:
          ...

when using methods such as induced_slot that are contextualized by class, the behavior is umabiguous

however, when using the general get_slots method, the behavior can be ambiguous for fetching attribute a. SchemaView should return a slot when attributes=True is passed.