Examples
This directory contains example SysML v2 models.
OMG Training Examples
The official OMG SysML v2 training examples are not included in this repository.
Download them with:
./scripts/download-training-examples.sh
That fetches sysml/src/training from the pinned pilot release
(https://github.com/Systems-Modeling/SysML-v2-Pilot-Implementation) into
sysml-v2-training/, which is gitignored.
Status: the corpus gate's current result is in
docs/project/training-examples.md, with the files that
still report errors and why.
Walkthroughs
Each of these is a model and a walkthrough of the commands that exercise it.
| Model |
Walkthrough |
What it demonstrates |
| disposal-robot-demo/robot.sysml |
disposal-robot-demo/README.md |
one bomb-disposal robot, end to end: structure, calculations, an action with a fork/join, a branch and a nested flow, a hierarchical state machine an object exhibits, assignment through a feature chain, the solver commands, the view renderings, and the same questions from Python |
| solver-demo.sysml |
SOLVER-DEMO.md |
%check, %explain, %solve, %configure and %optimize — what conditions can hold, which conflict, what satisfies them, which variants are permitted, what is best (needs z3 or cvc5) |
| views-demo.sysml |
VIEWS-DEMO.md |
%view and %render — the five rendering kinds, the text/Mermaid/Markdown forms, viewpoint conformance and filtered exposure |
| action-executor-demo.sysml |
ACTION-EXECUTOR-DEMO.md |
executing actions, and stepping one in the REPL |
parser_features_demo_*.sysml/.kerml |
PARSER_FEATURES_DEMOS.md |
the notation the parser accepts, feature by feature |
Other Examples
Additional example models may be added to this directory. SysML v2 files use the .sysml
extension and KerML files use .kerml.