biolink / biolink-model-toolkit

A collection of useful python functions for looking up information and working with the Biolink Model
https://biolink.github.io/biolink-model-toolkit/
BSD 3-Clause "New" or "Revised" License
20 stars 11 forks source link

Given a URI, can on get the CURIE (or vice versa?) #76

Closed RichardBruskiewich closed 2 years ago

RichardBruskiewich commented 2 years ago

I don't know if this is a general LinkML use case or just a Biolink Model prefixes processing use case, but what is the best way to map a URI onto it's CURIE (or vice versa?)

sierra-moxon commented 2 years ago
bmt.toolkit_generator.namespaces.uri_for(identifier)
bmt.toolkit_generator.namespaces.prefix_for