Skip to content

Translation

Generate translation dictionaries, in JSON, from the names in the schema to the names in the generated outputs. Useful where those names matter, such as in a query against a database that follows the schema.

Terminal window
ohi get w3c/prov-o
ohi linkml to translation --target pydantic \
--to prov-o.translation.json prov-o.linkml.yaml
Try it in the playground, with PROV-O
derived_attributesbooleandefault false
CLI --derived-attributesScala derivedAttributes

Whether classAttributes also lists inherited slots, mixin slots and the slots in the class's slots list. Without it, classAttributes lists only the class's own attributes.

indentation_stepintegerdefault 2
CLI --indentation-stepScala indentationStep

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

targetstringdefault base
CLI --target

The framework of the names in the dictionaries. One of base, uri, scala, graphql, frictionless, ossie, erdiagram, json, typescript, pydantic or docs.