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

add schemaview method to compute class siblings #199

Closed sujaypatil96 closed 1 year ago

sujaypatil96 commented 2 years ago

Method to compute all the siblings of a given input class.

sujaypatil96 commented 2 years ago

The use case is that we wanted to see, for example, Biosample class in the NMDC Schema has the following siblings: DataObject, GeneProduct, Instrument, OntologyClass, Person, Study. And show the relationships between Biosample and each of the above listed classes as links in the mermaid diagram.

Hm, I hadn't considered the handling of root mixins.

cmungall commented 1 year ago

And show the relationships between Biosample and each of the above listed classes as https://github.com/linkml/linkml-runtime/pull/199#issuecomment-1234907887 in the mermaid diagram.

We definitely want this - but this has nothing to do with siblings