Project Generator#

Overview#

The ProjectGenerator is a wrapper for all other generators, and will generate a complete project folder, with subfolders for jsonschema, python, etc

Docs#

Command Line#

gen-project#

Generate an entire project LinkML schema

Generate all downstream artefacts using default configuration:

Exclusion lists: all except ShEx:

Inclusion lists: only jsonschema and python:

Configuration, on command line:

Configuration, via yaml file:

config.yaml:

gen-project [OPTIONS] YAMLFILE

Options

-d, --dir <dir>#

directory in which to place generated files. E.g. linkml_model, biolink_model

-A, --generator-arguments <generator_arguments>#

yaml configuration for generators

-C, --config-file <config_file>#

path to yaml configuration

-X, --exclude <exclude>#

list of artefacts to be excluded

-I, --include <include>#

list of artefacts to be included. If not set, defaults to all

--mergeimports, --no-mergeimports#

Merge imports into source file

Default:

True

--log_level <log_level>#

Logging level

Default:

'WARNING'

Options:

CRITICAL | ERROR | WARNING | INFO | DEBUG

-V, --version#

Show the version and exit.

Arguments

YAMLFILE#

Required argument

Code#

class linkml.generators.projectgen.ProjectGenerator[source]#

Generates complete project folders

Note this doesn’t conform to overall generator framework, as it is a meta-generator