Skip to content

JSON Schema

Generate a JSON Schema.

Terminal window
ohi get w3c/prov-o
ohi linkml to json-schema --tree-root Entity \
--to prov-o.schema.json prov-o.linkml.yaml
Try it in the playground, with PROV-O
include_nullbooleandefault false
CLI --include-nullScala includeNull

Whether optional values and compact dictionary entries with nothing beyond the key may be null.

indentation_stepintegerdefault 2
CLI --indentation-stepScala indentationStep

The number of spaces for each level of indentation in the output.

metadata_languagestringdefault en
CLI --metadata-languageScala metadataLanguage

The language of the titles and descriptions in the output, for schemas with text in more than one language.

openbooleandefault false
CLI --open

Whether every class allows properties beyond the ones in the schema. Classes whose extra_slots allows them allow them anyway.

tree_rootstring
CLI --tree-rootScala treeRoot

The class at the root of the JSON Schema, instead of the class with tree_root: true in the schema.

tree_root_inline_typestring
CLI --tree-root-inline-typeScala treeRootInlineType

How the tree root class appears at the root of the JSON Schema, instead of its tree_root_as extension. One of plain, optional, list, compact_dict or simple_dict.