INCATools / kgcl

Datamodel for KGCL (Knowledge Graph Change Language)
https://w3id.org/kgcl/
MIT License
11 stars 4 forks source link

Add example for adding xrefs #44

Open cthoyt opened 11 months ago

cthoyt commented 11 months ago

I would like to see two additional examples/functionalities in https://incatools.github.io/kgcl/examples/:

  1. Adding an xref. Is it also possible to add extra metadata like the contributor ORCID with an xref?
  2. Updating an xref. E.g., I know there's already an xref from A to B with a given relationship like oboInOwl:hasDbXref and want to upgrade it to a more specific relation like skos:exactMatch

It's also not clear from the docs what happens if I try upgrading an xref that doesn't exist. E.g., if I try and upgrade A oboInOwl:hasDbXref B to A skos:exactMatch B but A oboInOwl:hasDbXref B doesn't exist, will it still add A skos:exactMatch B?

Motivation: I want to automate adding Biomappings to various ontologies