linkml / prefixmaps

Semantic prefix map registry
https://linkml.io/prefixmaps/
Apache License 2.0
10 stars 3 forks source link

Simplify getting a `curies.Converter` from a `prefixmaps.Context` #37

Closed cthoyt closed 1 year ago

cthoyt commented 1 year ago

This PR introduces curies as a core requirement and simplifies the usage in many examples in the README for generating a curies.Converter object from a prefixmaps.Context object down to a single line:

from prefixmaps import load_multi_context
from curies import Converter

context = load_multi_context(["obo", "bioregistry.upper", "linked_data", "prefixcc"])
converter: Converter = context.as_converter()
cthoyt commented 1 year ago

@sierra-moxon now that a new release has been made, can we get this in?