linkml / prefixmaps

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

Add source column to merged context CSVs #52

Closed cthoyt closed 7 months ago

cthoyt commented 8 months ago

Closes #51

This PR adds an additional field to the PrefixExpansion class that can be optionally annotated with the source from which the class was instantiated. This is then used during the Context.combine() function such that when the merged and merged.oak contexts are generated, each record gets annotated with the simple context from which it came.

This PR also runs the ETL pipeline to regenerate the merged prefix maps, now with the sources annotated in the merged files. The new source column does not affect reading in any way.

Interestingly, this sheds some light on #49 - now we know that the WIKIDATA prefix comes from the Bioregistry and wd from Prefix.cc.

cthoyt commented 7 months ago

@sierra-moxon please let me know if there's anything you'd like changed here / what the way forward is

cthoyt commented 7 months ago

@sierra-moxon can we please merge this? It will also solve @glass-ships' problem in #55