publish-linkml#
Generate a LinkML schema from a COGS model.
This publisher maps the COGS model into a LinkML-oriented representation for
schema exchange and downstream tooling in ecosystems that use LinkML. Classes
remain PascalCase; global slot keys and their explicit slot_uri terms use
the shared camelCase RDF property convention.
Arguments#
[cogsLocation]Directory containing the model.
[targetLocation]Directory where the LinkML YAML will be written.
Flags#
-?,-h,--helpShow command help.
-o,--overwriteOverwrite the target directory.
-n,--namespaceOverride the target namespace URI and effective RDF slot-term base.
-p,--namespacePrefixOverride the target namespace prefix.
--nameOverride the LinkML schema name. A value that can be represented safely is normalized with a
LNK2003warning; namespace-prefix conflicts likewise receive a stable projection warning.
Example#
cogs publish-linkml --overwrite --name MySchema MyModel output/linkml