biopragmatics / curies

🐸 Idiomatic conversion between URIs and compact URIs (CURIEs) in Python
https://curies.readthedocs.io
MIT License
21 stars 6 forks source link

Exporters to support Monarch use cases #106

Closed joeflack4 closed 7 months ago

joeflack4 commented 7 months ago

There exist ecosystem some defined formats for prefix maps. It would be nice to have curies exporters for those.

Context: This came up originally in my work in mondo-ingest: https://github.com/monarch-initiative/mondolib/issues/8

joeflack4 commented 7 months ago

@cthoyt You mentioned it might be a good idea to solve problem (1) in either SemanticSQL or curies rather than in Mondo, and I think that's a great idea. Just today I noticed that (2) is another case.

matentzn commented 7 months ago

I think curies has an exporter for that already, something like converter.to_jsonld() or to_jsonld_context()?

cthoyt commented 7 months ago

Indeed, https://curies.readthedocs.io/en/latest/api/curies.write_jsonld_context.html but now I notice it needs some documentation updates