Skip to content

expresslang/schema-manifest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

EXPRESS schema manifest specification

Warning
This is current in draft form. Use it at risk.

Purpose

In the EXPRESSdocs framework a representation that lists out multiple EXPRESS schemas is needed.

The current specification reflects the schemas.yaml file structure that is used in EXPRESSdocs.

History

In STEPmod (by ISO/TC 184/SC 4), the repository_index.xml served the purpose of defining the SMRL collection of EXPRESS schemas.

Syntax

---
path: ~/src/iso-10303-srl (1)
schemas: (2)
  # listing of EXPRESS schema names
  action_schema: (3)
    # `path`: per-schema relative path to the root path
    path: schemas/resources/action_schema/action_schema.exp (4)
  aic_associative_draughting_elements:
    path: schemas/resources/aic_associative_draughting_elements/aic_associative_draughting_elements.exp
  # ...
  1. (optional) Root path

  2. Schema listings

  3. Individual EXPRESS schema names

  4. (optional) Individual schema path

    Root path

    (optional) Root path to all schemas listed in this file. If not set, it is the current working directory.

    Schema listings

    (mandatory) List of objects that represent an EXPRESS schema each.

    Individual schema listing

    (mandatory) The key is set to name of the EXPRESS schema.

    Individual schema path

    (optional) The path to the schema location (*.exp file). Only needs to be set if the path differs from {current directory}/{schema_name}.exp, or when root path is set, {root_path}/{schema_name}.exp.

Example 1. When root path is current directory, schemas paths are overridden
schemas:
  action_schema:
    path: schemas/resources/action_schema/action_schema.exp
  aic_associative_draughting_elements:
    path: schemas/resources/aic_associative_draughting_elements/aic_associative_draughting_elements.exp
  # ...
Example 2. When root path is set, when schemas are located at {root_path}/{schema_name}.exp
path: ~/src/iso-10303-srl
schemas:
  action_schema: nil
  aic_associative_draughting_elements: nil
  # ...
Example 3. When schema names do not match file names
---
schemas:
  Event_arm:
    path: ../../schemas/modules/event/arm.exp
  Event_mim:
    path: ../../schemas/modules/event/mim.exp
  # ...
An example from EXPRESSdocs is provided in schemas-srl.yml.

ELF.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published