microbiomedata / nmdc-schema

National Microbiome Data Collaborative (NMDC) unified data model
https://microbiomedata.github.io/nmdc-schema/
Creative Commons Zero v1.0 Universal
26 stars 8 forks source link

generate prefixmap for nmdc #1925

Open sierra-moxon opened 2 months ago

sierra-moxon commented 2 months ago

We can generate a prefix map for all the NMDC schema prefixes currently supported with their expansions using this linkml command:

poetry run gen-prefix-map src/schema/nmdc.yaml

per @aclum's request in PR #1924

aclum commented 2 months ago

@sierra-moxon is there a way to get this generated and up on the website as a markdown file or something similar? Is gen-prefix-map part of linkml or this is specific to nmdc?

sierra-moxon commented 1 month ago

part of linkml, we can add it to the gen-doc target and deploy the .json file that results to our documentation site (that also allows downloading of the file at a stable URL instead of a github raw URL for computational usage).

see PR #1976

but this may not be what you are asking for - this is generating prefixes at the schema level, not for each individual NMDC typecode.