Skip to content
Open-MBEEPublic

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

2 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sysml-sdk

The SysML v2 SDK: read SysML v2 and KerML models from Python, JavaScript/TypeScript, Java, C# and C++, through an API that has the shape of the OMG specification. Every class, property and operation of the KerML and SysML metamodels is there under its specification name (ownedFeature, qualifiedName, effectiveName()), and the generated classes form the metaclass hierarchy, so isinstance, instanceof and their equivalents follow the specification's generalizations.

A model is read through one of three backends, with the same classes over all of them:

  • the SysML Toolkit: the OpenMBEE SysML Toolkit (Open-MBEE/sysml-toolkit, release v0.13.1), reached through this SDK's binding library. It reads .sysml and .kerml text, resolves names, computes derived properties and evaluates specification operations;
  • the Pilot Implementation: the SysML v2 Pilot Implementation (Systems-Modeling/SysML-v2-Pilot-Implementation, release 2026-09.1, version 0.63.1), run in Java. It reads the text, resolves names, adds the implied relationships, and computes every property and operation with its own code;
  • a payload: a model exported as full-form interchange JSON by any SysML v2 tool, read with no native code at all.

The SDK never guesses. A property read returns what the SysML Toolkit or the Pilot computed, or what the payload holds. A member the SysML Toolkit does not answer raises NotImplementedInToolkit with the SysML Toolkit's reason, and a reference that does not resolve raises UnresolvedReference; nothing is silently empty.

This is release 0.3.1, a preview. The payload backend is the dependable path; the SysML Toolkit backend is a preview of the SysML Toolkit's own coverage. What the SysML Toolkit does not answer yet, and where it answers differently from the specification, is listed under Known limitations in STATUS.md, with the numbers.

Get started

Each guide shows how to install the package, the code that reads a model through the SysML Toolkit and the code that reads a JSON export, ready to copy with your file names, and the first queries. The code in the guides is run against the release packages before every release.

Language Guide Runnable tutorial Skill for coding agents
Python examples/python tutorial.py sysml-sdk-python
JavaScript / TypeScript examples/typescript tutorial.mjs sysml-sdk-typescript
Java examples/java Tutorial.java sysml-sdk-java
C# examples/csharp Tutorial.cs sysml-sdk-csharp
C++ examples/cpp tutorial.cpp sysml-sdk-cpp

In Python, the whole thing is:

from sysml import Model, standard_library

model = Model.from_toolkit("model.sysml", library_dir=standard_library())
vehicle = model.resolve("Vehicles::Vehicle")
print([feature.declaredName for feature in vehicle.ownedFeature])

examples/queries/ goes further: parametric queries over whole models (reachable states with trigger sequences, bills of materials, roll-ups, connectivity, requirement checks), the same in every language and printing the same report.

Install

Python is on PyPI: pip install sysml. The release assets of each version carry one package per language (the Python wheels too), the binding library for each platform, and the standard library. How the Python packages are published: PUBLISHING.md.

Language Asset Install SysML Toolkit backend
Python 3.10+ sysml-0.3.1-py3-none-<platform>.whl pip install sysml (or the wheel's file) included in the wheel
JavaScript / TypeScript (Node 20+, browsers) sysml-0.3.1.tgz npm install ./sysml-0.3.1.tgz included, as WebAssembly
Java 21+ sysml-sdk-0.3.1.jar put it on the class path, or install it as an OSGi bundle included in the jar
C# (.NET 8) OpenMBEE.SysML.0.3.1.nupkg dotnet add package OpenMBEE.SysML --version 0.3.1 --source <folder with the .nupkg> included in the package
C++17 sysml-sdk-cpp-0.3.1.zip put its include/ on the include path (header-only) included in the archive (lib/<target>/): copy it beside your program
  • The standard library. Most models refer to it (ScalarValues::Real, ISQ::mass, and implicitly Parts::parts and the like), so a program gets it first, as each language's guide shows. Every package carries its models, for the SysML Toolkit: standard_library() (Python), standardLibrary() (JavaScript), StandardLibrary.directory() (Java), StandardLibrary.Directory() (C#), and in C++ sysml::standard_library() finds the archive's sysml.library/ copied beside the program. The same library as JSON, for payloads, is too large for a package: standard_library_json() and its counterparts download it from the release on their first call (checked against the SHA-256 GitHub states, kept in the user cache, shared by all languages; C++ reads that cache but does not download). sysml_library-0.3.1.zip on the release has both, for machines without access to GitHub (SYSML_LIBRARY_JSON names its JSON). It is the SysML v2 release's library, under the Eclipse Public License 2.0.
  • The binding library comes with every package: the wheel carries the one for its platform, the npm package the WebAssembly build, and the jar, the NuGet package and the C++ archive one for each of Windows x64, Linux x64, and macOS on Apple silicon and on Intel. The jar copies its library out on first use and loads it; .NET finds the NuGet package's; a C++ program finds the one beside its executable. SYSMLV2_ABI (and SYSMLV2_ABI_WASM for JavaScript) overrides it with another build. The release also has each platform's library on its own, sysmlv2_abi-0.3.1-<target>.zip (Windows) and .tar.gz (others), each with a README.
Platform Target Wheel tag
Windows x64 x86_64-pc-windows-msvc win_amd64
Linux x64 (glibc 2.28 or later) x86_64-unknown-linux-gnu manylinux_2_28_x86_64
macOS, Apple silicon (11 or later) aarch64-apple-darwin macosx_11_0_arm64
macOS, Intel (10.12 or later) x86_64-apple-darwin macosx_10_12_x86_64
Anywhere JavaScript runs wasm32-unknown-unknown (in the npm package)

Java: on JDK 21 run with --enable-preview, because the foreign function API the SysML Toolkit backend uses is a preview there; from JDK 22 on nothing is needed. The jar serves both. The jar is also an OSGi bundle (org.openmbee.sysml, which exports its three packages and imports nothing outside the JDK), so an Eclipse plug-in can depend on it or carry it on its own class path. The Pilot backend runs there as anywhere else, with its own copy of the Pilot in a class loader of its own. Add --enable-native-access=ALL-UNNAMED to silence the JDK's warning about native access. On macOS, a library downloaded through a web browser is quarantined and will not load until the attribute is removed: xattr -d com.apple.quarantine libsysmlv2_abi.dylib.

The backends

The SysML Toolkit answers from the model itself, through its checked reader: a property is read by its specification name, owned or derived, and the SysML Toolkit answers only what it can derive completely. Where it cannot yet, it refuses, and the SDK raises NotImplementedInToolkit with the SysML Toolkit's reason rather than pass on a value that might be wrong. The relationships a derived property is computed from belong to the model and are answered, so the guides show both: catching a refusal, and reading what the model states (a feature's ownedTyping for its type, a definition's ownedSubclassification for its supertypes).

Specification operations go through the SysML Toolkit's operation entry point by their declaration, with the specification's parameter and result types. The SysML Toolkit has a body for a part of them (effectiveName(), resolve, resolveGlobal, visibleMemberships(...), supertypes(...), evaluate(...), ...) and answers a call only where its evidence for the model at hand is complete; it refuses the others, like a property read.

The SysML Toolkit reads the standard library from a directory given when the session opens: library_dir in Python, the last argument of ToolkitBackend.open(library, paths, sources, libraryDir) in Java and of ToolkitBackend.Open(...) in C#, and of ToolkitBackend::open(paths, sources, library_dir) in C++. The WebAssembly build reads no files itself: in JavaScript pass libraryDir in Node, or the library's files as librarySources (each file's name, without its directories, to its text), which works in a browser too. The library loads as a library: its elements are not listed as the model's, and they report isLibraryElement. The packages' standard library helpers (see Install) give the directory.

The SysML Toolkit also writes the model back out as full-form JSON: full_json() in Python, fullJson() in JavaScript and Java, FullJson() in C#, full_json() in C++. By default the export is written at the closure level, with inherited and imported members filled in; closures false writes the owned side only, as the SysML Toolkit's command-line tool does.

The Pilot Implementation is the open-source implementation developed alongside the KerML and SysML v2 specifications. It reads the model with its own standard library, adds the implied relationships and implicit elements of the specification's semantics (as the SysML Toolkit does; elaborate false reads the model as written), and computes properties and operations with its own code. It has every property the SDK declares and answers rather than refuses; its answers are the Pilot's, as the SysML Toolkit's are the SysML Toolkit's, and the two implementations differ in places. The elements it creates by elaboration are among the model's elements.

Language Open a model The Pilot runs
Python Model.from_pilot("model.sysml") in the program's process through JPype (pip install "sysml[pilot]"), else in a Java process
JavaScript / TypeScript (Node) new Model(await PilotBackend.open({ paths: ["model.sysml"] })) in a Java process
Java new Model(PilotBackend.open(List.of("model.sysml"))) in the program's process, in a class loader of its own
C# new Model(PilotBackend.Open(new[] { "model.sysml" })) in a Java process
C++ Model::from_backend(PilotBackend::open({"model.sysml"})) (#include <sysml/pilot.hpp>) in a Java process; compiled with SYSML_PILOT_JNI defined and the JDK's include directories, in the program's process through JNI

The Pilot needs a Java 21 or newer runtime (JAVA_HOME, else java on the path) and is not part of any package. The SDK finds it: SYSML_PILOT_HOME, a directory holding a Pilot jar and its sysml.library (beside it or under sysml/, as the Pilot's release archive unpacks); else the copy in the user's cache; else the release the SDK is pinned to, jupyter-sysml-kernel-0.63.1.zip of the Pilot's 2026-09.1 release, downloaded into that cache on the first use (about 130 MB), checked against its pinned SHA-256, and shared by all languages. A program in Python, JavaScript, C# or C++ reaches it through the SDK's Pilot engine, sysml-pilot-server.jar, which those packages carry (C++: copy it beside the program, or name it in SYSML_PILOT_SERVER); the Java SDK has the engine inside. Opening a model takes seconds even for a small one (the Pilot loads and elaborates its library), a minute or more for a large one, and the Java heap a large model needs is set with the heap option (4 GB by default where the SDK starts the JVM). The Pilot is licensed under the Eclipse Public License 2.0; the SDK redistributes nothing of it.

A property the element's metaclass does not have reads as absent, as with the other backends. A failure inside the Pilot, an operation it does not have, or a Pilot that cannot be found, downloaded or started raises BackendError.

Other engines. The Pilot backend talks to its engine through a protocol any engine can speak: one JSON request and one JSON answer per line, over the engine's standard input and output (docs/engine-protocol.md). EngineBackend runs such an engine as a process in every language (EngineBackend.start(command, ...); EngineBackend.Start in C#, EngineBackend::start in C++ from <sysml/engine.hpp>), with the same classes over it, so another SysML v2 implementation becomes a backend by answering the protocol, without a change to the SDK.

A payload answers with what its writer wrote, and nothing else: it needs no native code, and it cannot tell a computed value from a stand-in its writer put where it had none. Operations cannot be evaluated on a payload and raise NotImplementedInToolkit. A reference to an element the payload does not contain raises UnresolvedReference.

A payload refers to the standard library's elements without containing them, by the element ids KerML 9.1 and SysML 9.1 prescribe for the library. Read the release's library JSON once as a PayloadLibrary and pass it with each payload model: the model's references into the library then resolve against it. The library's elements are not the model's, so all, roots and elements_of_type list the payload's own, as the SysML Toolkit does with its library, and a qualified name is looked up in the payload first. The library JSON holds each library element's own side: its inherited members are not listed. A model exported without the library loaded refers to library names by ids that resolve nowhere; export with the library.

Every language has the same errors: NotAnswered (a member the backend does not answer for this element; NotImplementedInToolkit is the SysML Toolkit's kind of it), UnresolvedReference (a reference that does not resolve), InvalidModel (a reference to an element of the wrong metaclass, such as a specialization of a package: the model breaks the metamodel there), Gone (an element that is no longer there), BackendError (the engine behind a backend failed, or is not available); in Java and C# they end in Exception, in C++ they are not_answered, not_implemented_in_toolkit, unresolved_reference, invalid_model, gone and backend_error.

Convenience members

Beside the specification's members, every class has members for what takes several steps in the specification: find_parts(), find_part("engine"), find_part_defs(), find_part_defs_by_name(), find_value().find_literal(), find_lower_bound(), 318 in all (findParts in Java and JavaScript, FindParts in C#, find_parts in C++). They are the SDK's own, so their names start with find, and each one is defined over the specification's properties and operations, in OCL, in the SDK's contract (convenience.toml). The SysML Toolkit and the Pilot Implementation answer them, each over its own model; a payload does not. The same examples (convenience-examples.toml) check them on both backends, in every language.

  • Features by kind (27 kinds), the type's own, the inherited ones or both (scope), by visibility, and with or without what the libraries contribute (libraries: none, a user's library packages, or all); the definitions a namespace owns, by kind, as a list, by name or as a name-keyed map; and members one by one: typing and specialization as written, redefinitions, values and literals, multiplicity bounds, parameters, inputs and outputs, a case's or requirement's subject, actors, stakeholders, and objective, accepted types, applied metadata, documentation.
  • A list carries the members of its elements, so calls chain: package.find_part_defs().find_ports().
  • Where a member's definition gives no answer, it raises Refused, a kind of NotAnswered; where the backend cannot answer something a member reads, NotAnswered names it. On the examples the Pilot Implementation answers every member; the SysML Toolkit refuses 20 of the 491 examples, where they read the type of behavioral usages, or the inherited members of a type whose supertype imports into its body.
  • In Java, C# and C++, a literal's value and a multiplicity bound are a Literal: an integer, a real, a Boolean, a string, or unbounded (*).
  • Each language's guide shows them in use. Every member, with its definition, its signature in each language, its examples and what each backend answers on them, is in the release's sysml-sdk-reference-<version>.html.

Editing

The SysML Toolkit and the Pilot Implementation backends edit their model, in every language. An edit collects changes and applies all of them or none (model.edit(), then check(), commit(), or abort()):

  • Values as data. A feature's value (create_value, clear_value): a number, a Boolean, a string, a quantity with its unit, a reference to a feature, or none; in the feature's owner, or in a definition or usage that has the feature, through its member that redefines it.
  • The metamodel. Every property the specification stores and an edit can set has a setter, and every relationship end too (vehicle.declaredName = "Truck", typing.type = engine); new_owned_relationship and new_owned_related_element create what an element owns, and create_member a member with its membership. What each metaclass sets and creates is edit-metamodel.json.
  • Removal. remove takes an element out with what it owns. A cleanup decides what happens to what refers to it: the referring relationship goes (remove_referrer), or the member declaration holding the reference (remove_referring_member); without one, removing an element something refers to is refused.
  • The report. What a commit did: the text edits (on the SysML Toolkit, which writes the model's text; the Pilot Implementation changes its model in memory), the elements created and removed, the validation rules the change newly breaks, and the references it moved.
  • Identity. After a commit, every element held before it is the same element, or is gone.
  • Libraries. An edit changes the model's own elements; libraries opens a user's library packages, or the standard library too.

What an edit may do, and what follows from it, is the SDK's contract (edit.toml, in OCL), with examples and scripts (edit-examples.toml) that every language checks on both backends by reading the model back. A backend that cannot make a change the contract allows says so (NotAnswered): the SysML Toolkit writes text and does not write everything yet. Each language's guide shows an edit.

Names

Each language follows its own conventions for package names.

Language Package In your code
Python sysml import sysml
JavaScript / TypeScript sysml import { Model } from "sysml";
Java sysml-sdk jar org.openmbee.sysml and org.openmbee.sysml.classes
C# OpenMBEE.SysML using OpenMBEE.SysML;
C++ header-only namespace sysml

In the specification, properties and operations are separate members of a class, and every language shows at the call site which one it uses.

  • Java and C++ read every property through a getter: get followed by the specification name with its first letter capitalized (getQualifiedName(), getOwnedFeature(), and for Booleans getIsAbstract()). Operations keep their specification names (effectiveName(), specializes(...)).
  • Python, C# and TypeScript read properties with property syntax under the specification name (el.qualifiedName) and call operations by theirs (el.effectiveName()). Where an operation shares its name with a property of the same class, the operation takes a suffix: instantiatedType is a property of InstantiationExpression and its subclasses, and the operation of that name is instantiatedType_op() in Python and instantiatedTypeOp() in C# and TypeScript. TypeScript also suffixes the one operation whose name JavaScript reserves for its own protocols: MultiplicityRange.valueOf is valueOfOp().

Every class carries every member it has, whether it declares it or inherits it. The members of the metaclass Element itself (name, owner, qualifiedName, documentation, isLibraryElement, effectiveName(), ...) are on the runtime element type too, so an element held without its class (what owner returns) answers them without being narrowed first. Runtime members that are not in the specification are spelled so they can never collide with it: element_id and metaclass_name in Python, $id and $metaclass in Java and TypeScript, ElementId and MetaclassName in C#, element_id() and metaclass_name() in C++.

Every model offers the same helpers: its elements (all(), All()), those of one metaclass (elements_of_type, elementsOfType, ElementsOfType<T>()), and its top-level namespaces (roots). Elements compare, and hash, by their element id.

Skills for coding agents

skills/ holds one skill per language (sysml-sdk-python, sysml-sdk-typescript, sysml-sdk-java, sysml-sdk-csharp, sysml-sdk-cpp), in the Agent Skills format. A skill gives a coding agent what it needs to write working code against the SDK from a one-line request ("which parts does this model's vehicle have?"): how to load a model with either backend, the shape of the API, navigation recipes for common SysML questions (parts, typing, connections and ports, states, requirements, multiplicities, attribute roll-ups, expressions), tested helper functions for the reads the SysML Toolkit refuses, and how to check the result.

To use one, copy its folder into your agent's skills directory; for Claude Code that is .claude/skills/ in a project, or ~/.claude/skills/ for all projects:

cp -r skills/sysml-sdk-python ~/.claude/skills/

Building from source

The binding library (abi/) is a Rust crate that depends on the SysML Toolkit by path: clone it beside this repository, under its own name sysml-toolkit, at the tag vendor/sysml-toolkit/PIN.json names under toolkit (v0.13.1). abi/README.md has the build, the WebAssembly build, and how to move to a newer SysML Toolkit release.

git clone --branch v0.13.1 https://github.com/Open-MBEE/sysml-toolkit
git -C sysml-toolkit submodule update --init --depth 1 spec-refs/SysML-v2-Release   # the standard library, for the tests
cd sysml-sdk/abi && cargo build --release                # the native library, into abi/target/release
cargo build --release --target wasm32-unknown-unknown       # the WebAssembly build

The payload backend needs nothing but each language's own toolchain.

Layout

Path What
metamodel.json The table every language is generated from: the metaclass hierarchy, every class's properties with their types and redefinitions, and its operations with their parameters.
convenience.toml, convenience-examples.toml, convenience.json The convenience contract: the find members beside the specification's (kind lists, member lists, typing, values, multiplicity, behaviour), each with its signature and its semantics in OCL over specification members, and examples of every member (small models and the answers). The TOML files are the source; the JSON, with every member expanded and spelled in each language, is what the generators read.
python/sysml/ Python: the runtime (base.py), the SysML Toolkit backend over ctypes (toolkit.py), the generated classes.
ts/ JavaScript and TypeScript: the runtime, the SysML Toolkit backend over the WebAssembly build (toolkit.mjs, Node and browser alike), the generated declarations and metadata.
java/ Java, with no dependencies and no build tool: the runtime, the SysML Toolkit backend over the foreign function API, the generated interfaces, and checks.
csharp/ C#: the library (runtime, SysML Toolkit backend over P/Invoke, generated interfaces) and a checks project.
cpp/ C++17, header-only: the runtime, the SysML Toolkit backend loading the library at run time, the generated structs, and checks. JSON through the vendored nlohmann/json.
abi/ The binding library: the C interface over the SysML Toolkit that every language uses.
java/src/org/openmbee/sysml/pilot/ The Pilot engine: the Pilot Implementation behind the backend contract, through its own API, with no compile-time dependency on it. Java uses it directly; the other languages run it as sysml-pilot-server.jar and exchange one JSON request and answer per line with it.
tools/ The extractor, the generators, the packaging and package-check scripts, and the naming tools.
vendor/ Pinned inputs: the SysML Toolkit's property tables, the naming table of the binding library, nlohmann/json. Each PIN.json records provenance and hashes. The specification's XMI is not in the repository: vendor/sysml-toolkit/PIN.json records its URLs at the OMG and its hashes, and the extractor downloads it.
examples/ The guides and tutorials, one per language, and the query examples (examples/queries/): the same parametric queries in every language, printing the same report.
skills/ One skill per language for coding agents that write code against the SDK.
data/, python/tests/, */checks Test payloads, tests, and the generated conformance checks per language.

Regenerate

python tools/extract_metamodel.py     # the specification's XMI (downloaded on the first run) and
                                      #   the property tables -> metamodel.json
python tools/extract_convenience.py   # convenience.toml, convenience-examples.toml and metamodel.json
                                      #   -> convenience.json, every OCL name and example checked
python tools/gen_toolkit_table.py     # the dispatch table of each SysML Toolkit backend (also
                                      #   _java, _cs, _cpp, _js), from vendor/naming-table/
python tools/gen_classes.py           # the Python classes (also _ts, _cs, _java, _cpp)
python tools/gen_conformance.py       # the conformance checks of every language
python tools/gen_abi.py               # abi/src/generated.rs
python tools/gen_abi_convenience.py   # abi/src/generated_convenience.rs, the convenience members
python tools/gen_pilot_convenience.py # the Pilot engine's dispatch of the convenience members
python tools/gen_pilot_edit_table.py  # the Pilot engine's copy of the edit table
python tools/export_example.py --library <sysml.library>
                                      # the example JSON, through the SysML Toolkit: the payloads
                                      #   (examples/vehicle.full.json, examples/queries/models/*.full.json)
                                      #   and the standard library (examples/sysml.library.full.json)

Generated files are never edited by hand; CI regenerates them and fails on any difference. The example JSON is not committed at all: CI generates it once per SysML Toolkit pin and every job that reads payloads downloads it, and tools/package_library.py packages the library archive as a release asset. tools/naming.py holds every naming rule and the package names; tools/rename.py changes those names across the repository.

Test

python -m pytest -q                   # runtime, conformance, the SysML Toolkit (Annex A needs the
                                      #   sysml-toolkit checkout's spec-refs/SysML-v2-Release)
python python/demo.py
node ts/demo.mjs && node ts/conformance.generated.mjs && node ts/toolkit_checks.mjs && node ts/edit_checks.mjs
dotnet run --project csharp/OpenMBEE.SysML.Checks -c Release
javac --enable-preview --release 21 -d java/out $(find java/src -name '*.java')
java --enable-preview -cp java/out org.openmbee.sysml.checks.Checks
java --enable-preview -cp java/out org.openmbee.sysml.checks.ToolkitChecks
java --enable-preview -cp java/out org.openmbee.sysml.checks.EditChecks
g++ -std=c++17 -Wall -Werror -O0 -I cpp/include -I vendor cpp/checks/checks.cpp cpp/checks/conformance.g.cpp -o cpp/out/checks && cpp/out/checks
g++ -std=c++17 -Wall -Werror -I cpp/include -I vendor cpp/checks/toolkit_checks.cpp -o cpp/out/toolkit_checks && cpp/out/toolkit_checks
g++ -std=c++17 -Wall -Werror -I cpp/include -I vendor cpp/checks/edit_checks.cpp -o cpp/out/edit_checks && cpp/out/edit_checks
cd abi && cargo test --release --lib && python smoke.py ../examples/vehicle.sysml

The query examples print one report in every language; each run is compared with examples/queries/expected/ (see examples/queries/README.md).

Where the SysML Toolkit does not answer a member yet, the tests that need it are expected failures, not passes and not failures. python/tests/toolkit_gaps.py lists each with the member the SysML Toolkit refuses and why; pytest reports them as xfailed, a listed test that starts to pass fails until its row is removed, and one that stops on anything else fails. The SysML Toolkit check programs of the other languages mark theirs the same way (expected failure: ...). A query report read through the SysML Toolkit stops where the SysML Toolkit refuses a read; tools/compare_report.py accepts it only at a refusal the same module lists, and only when what the report printed up to there equals the expected report:

python examples/queries/python/demo.py | python tools/compare_report.py examples/queries/expected/report.txt

The SysML Toolkit checks skip themselves when the binding library is not built; with SYSML_REQUIRE_TOOLKIT=1 a skip is a failure, which is how CI runs them. On Windows with MinGW, add -static to the C++ commands, and -Wa,-mbig-obj for the conformance file. On Linux, add -ldl to the SysML Toolkit checks.

The Pilot checks (python/tests/test_pilot_backend.py, node ts/pilot_checks.mjs, org.openmbee.sysml.checks.PilotChecks, the C# checks project, cpp/checks/pilot_checks.cpp) need a Pilot at hand and skip themselves otherwise, so that they never download it on their own: SYSML_PILOT_HOME, or one already in the user's cache. With SYSML_REQUIRE_PILOT=1 they download it when absent and a skip is a failure. Outside Java they also need the engine's jar: build it with python tools/package.py pilot-server and name it in SYSML_PILOT_SERVER (the Python tests build it themselves). python tools/compare_backends.py model.sysml out.json reads one model through the SysML Toolkit and through the Pilot and counts, property by property, where their answers agree and where they differ (order and implied relationships counted apart), with examples; it decides nothing.

The packages are built with python tools/package.py <python|sdist|npm|java|csharp|cpp> and checked with python tools/check_packages.py <python|npm|java|csharp|cpp> --dist <folder>, which installs each one somewhere empty, reads the example model through it, and runs the language's guide against it. python tools/package.py pilot-server builds the Pilot engine's jar, and --pilot-server <jar> puts it into the Python, npm, NuGet and C++ packages.

License

Copyright 2026 Planetary Utilities. Apache-2.0, see LICENSE; the contributors are listed in NOTICE, which every package carries. The C++ package includes nlohmann/json, under the MIT license (vendor/nlohmann/LICENSE.MIT). The packages that carry the binding library also carry the notices of the Rust crates compiled into it (THIRD-PARTY-NOTICES.txt, RUST-STANDARD-LIBRARY-NOTICES.html).

The standard library is not covered by the SDK's license. The packages that carry its models (stdlib/ in the wheel, the npm package, the jar and the NuGet package; sysml.library/ in the C++ archive) carry the SysML v2 release's library models unmodified, under the Eclipse Public License 2.0, with that license and a NOTICE with the models' source and copyright holders beside them; the wheel, the npm package and the NuGet package declare their license as Apache-2.0 AND EPL-2.0. The standard library archive (sysml_library-<version>.zip) holds the same models and a JSON form made from them, both under the Eclipse Public License 2.0, with the same license and NOTICE.

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages