Skip to content

Statistics

Count the elements, their documentation, mappings and languages, and the imports. Returns a SchemaStats of model/schema-stats.yaml.

Terminal window
ohi get w3c/prov-o
ohi linkml to stats --pruning-mode skip prov-o.linkml.yaml
Try it in the playground, with PROV-O
pruning_modePruningModedefault schema
CLI --pruning-modeScala pruningMode

The elements in scope for the counts.

  • 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.
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.