sssom-py icon indicating copy to clipboard operation
sssom-py copied to clipboard

Reliably decide whether a predicate is an AP or OP

Open matentzn opened this issue 2 years ago • 2 comments

To be able to render an OWL existential restriction correctly from SSSOM, we need to be able to infer whether a predicate is an AP or OP.

  • 👍 One idea would be to assume AP, and add an optional predicate_type column to SSSOM from which this information can be obtained.
  • 🚀 Alternatively, we can create a dictionary at release time that contains the types (using OMO/RO as input) - this is less flexible (no way add custom mappings).
  • 👀 Last but not least we can add a new parameter to convert that takes a type dictionary as input.

matentzn avatar Aug 25 '21 12:08 matentzn

Obvious alignment with kgx/biolink here https://w3id.org/biolink/vocab/logical_interpretation

cmungall avatar Aug 25 '21 21:08 cmungall

Does biolink has a curated table like this that keeps the types of some known properties?

matentzn avatar Aug 30 '21 11:08 matentzn