sssom-py
sssom-py copied to clipboard
Reliably decide whether a predicate is an AP or OP
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.
Obvious alignment with kgx/biolink here https://w3id.org/biolink/vocab/logical_interpretation
Does biolink has a curated table like this that keeps the types of some known properties?