Skip to content

LinkML

Materialize a derived LinkML schema: imports resolved, slots pushed into attributes, and the elements out of scope pruned.

Terminal window
ohi get w3c/prov-o
ohi linkml to linkml --full-uris \
--to prov-o.derived.yaml prov-o.linkml.yaml
Try it in the playground, with PROV-O
formatJsonOutputFormatdefault yaml
CLI --format

The serialization of the output.

  • yaml YAML.
  • json JSON.
full_urisbooleandefault false
CLI --full-urisScala fullUris

Whether to write URIs in full, instead of compacting them to CURIEs with the schema's prefixes.

pruning_modePruningModedefault skip
CLI --pruning-modeScala pruningMode

The elements of the schema to include in the output.

  • tree_root The elements reachable from the tree root class. Without a tree root, the same as schema.
  • schema Everything defined in the root schema, and every element reachable from it. This leaves out the unused parts of imported schemas, such as most of linkml:types.
  • skip Every element of the root schema and of all its imports.
skip_class_derivationbooleandefault false
CLI --skip-class-derivationScala skipClassDerivation

Whether to copy the classes as they are, instead of deriving them.

tree_rootstring
CLI --tree-rootScala treeRoot

The class to use as the tree root, instead of the class with tree_root: true in the schema. Only for the tree_root pruning mode.