Skip to main content

Module schema_source

Module schema_source 

Source
Expand description

Where a family’s class table comes from.

By default it is the table cimgen generated. With the dynamic-schema feature, an ENTSO-E RDFS directory can supply it instead, so a new profile version is a data load rather than a recompile.

Resolution order, highest first:

  1. [load_from] — an explicit call, for libraries and tests
  2. CIMOXIDE_RDFS_DIR — for the CLI and the Python bindings. It may list several directories, separated as in PATH; each serves the family whose vocabularies it holds (see [family_of_dir]), so NC’s directory alone leaves CGMES on its generated table
  3. the generated table

A directory that is missing or fails to parse falls back to the generated table with a warning. Silently serving a stale schema because a path had a typo is the worst outcome available here.

Functions§

resolve
Resolve the schema for a family.