Tools to have ready#
An editor, the IDTA templates and one checking tool are enough to start. Version information in the table comes from each repository's README and release data.
| Tool | Use | What we checked |
|---|---|---|
| Eclipse AASX Package Explorer (github.com/eclipse-aaspe/package-explorer) | View and edit AASX (Windows) | Apache-2.0; current development is V3 only (V2 on a branch); old admin-shell-io repository archived |
| IDTA submodel-templates (published folder) | Template AASX and JSON | e.g. Digital Nameplate 3.0.3: separate AASX for metamodel v3.0 and v3.1 |
| aas-test-engines (admin-shell-io) | File and server conformance checks | 1.0.3 on PyPI; metamodel 3.0.1, API 3.0.3 |
| Eclipse BaSyx Python SDK, basyx-compliance-tool | Create, serialize, schema checks | Part 1 v3.1.2, Part 5 v3.1 (README) |
| Eclipse AAS4J | Java serializers (AASX, JSON, XML) | 3.0.0 = Part 1 V3.1; validator temporarily removed |
| aas-core3.1, aas-core3.2 (Python and others) | Metamodel v3.1 and v3.2 objects and verification | Manipulate, verify, de/serialize; aas-core3.2 is 1.0.0rc2 (release candidate) |
Building a package in AASX Package Explorer#
Menu names follow the public source code as of November 2026 and may differ slightly between releases.
- Create an empty package with File > New and switch on edit mode with Workspace > Edit (Ctrl+E).
- Add an AAS and give it a globally unique id (an IRI, for example). In assetInformation, set assetKind and globalAssetId. Having neither a globalAssetId nor a specificAssetId violates Constraint AASd-131.
- Start Submodels from templates: open the IDTA template AASX (published folder of github.com/admin-shell-io/submodel-templates) with File > Open Auxiliary AAS (Ctrl+Shift+X), then in edit mode select your AAS and use Copy recursively in the Copy from existing Submodel: panel to copy the template Submodel. The copy keeps the template id and kind=Template, so change both for your instance. Workspace > Create also offers New Submodel from plugin and New Submodel from pool of known, but their Digital Nameplate definitions are older versions (for example Digital Nameplate (IDTA) V2.0).
- Fill in missing ConceptDescriptions with Workspace > Create > Missing ConceptDescriptions from pool of known. There is also File > Import > Import Submodel Elements from Dictionary for taking elements from ECLASS or IEC CDD.
- Put files referenced by File elements into the package and make sure the value path matches their real location.
- Save with File > Save as, then run the editor's own check with File > Check, validate and fix.
Turning a template into an instance#
Submodels in IDTA template AASX files have kind=Template and a template id. The Digital Nameplate 3.0.3 template uses the id https://admin-shell.io/idta/SubmodelTemplate/DigitalNameplate/3/0 and the semanticId https://admin-shell.io/idta/nameplate/3/0/Nameplate, and for most elements the ConceptDescription id equals the element's semanticId (not for all, e.g. Markings and AssetSpecificProperties). For a real device, change the following.
- Set kind to Instance. If kind is omitted, the default is Instance.
- Give the Submodel a new globally unique id. Reusing the template id collides with other instances.
- Keep the semanticId. Server searches and template checks recognise the template by this value.
- Remove TemplateQualifiers such as SMT/Cardinality. A TemplateQualifier left on an element of a kind=Instance Submodel violates Constraint AASd-129.
- Delete optional elements you do not use and fill in values for the rest.
Checking with test tools#
IDTA aas-test-engines first checks the relationship structure of the AASX, then whether the data complies with the Part 1 and Part 3a metamodel and constraints, and finally whether submodels match the supported templates. It returns exit code 0 when compliant and non-zero otherwise, which makes it easy to use in CI.
Watch the version. Release 1.0.3 checks metamodel v3.0 only, so XML with the namespace https://admin-shell.io/aas/3/1 fails with invalid namespace. In our run, the v3.0 AASX of the Digital Nameplate 3.0.3 template passed with warnings and the v3.1 AASX failed for this reason. Check v3.1 files with the BaSyx Python SDK compliance tool or aas-core3.1, and v3.2 files with a tool that supports v3.2, such as aas-core3.2.
Copy the code, or select it to copy manually.
# IDTA aas-test-engines (v1.0.3: metamodel 3.0.1, API 3.0.3)
pip install aas_test_engines
aas_test_engines check_file my.aasx # exit code 0 = compliant
aas_test_engines check_file my.aasx --output html > report.html
aas_test_engines check_file my.json --format json
# Eclipse BaSyx compliance tool (uses the installed basyx-python-sdk)
pip install basyx-compliance-tool
aas-compliance-check --helpChecking File paths yourself#
aas-test-engines 1.0.3 verifies that relationship targets exist in the ZIP, but not that the file a File element points to exists. An AASX altered to point to a missing file still passed with exit code 0. The Python code below collects File values from a data file and compares them with the ZIP listing. Find the data file path through the aas-spec relationship.
import json, sys, zipfile
import xml.etree.ElementTree as ET
def file_values(data, is_json):
if is_json:
def walk(o):
if isinstance(o, dict):
if o.get("modelType") == "File" and o.get("value"):
yield o["value"]
for v in o.values(): yield from walk(v)
elif isinstance(o, list):
for v in o: yield from walk(v)
yield from walk(json.loads(data))
else:
for el in ET.fromstring(data).iter():
if el.tag.endswith("}file"):
v = el.find(el.tag[:-4] + "value")
if v is not None and v.text: yield v.text.strip()
# usage: python check_files.py my.aasx aasx/data.xml
with zipfile.ZipFile(sys.argv[1]) as z:
names = set(z.namelist())
for spec in sys.argv[2:]:
for v in file_values(z.read(spec), spec.endswith(".json")):
if "://" in v:
print("external :", v)
else:
print("OK :" if v.lstrip("/") in names else "MISSING :", v)Checklist of common errors#
| Error | Rule to check | Fix |
|---|---|---|
| Missing semanticId | Optional (0..1) but recommended since v3.0; without it ?semanticId= searches and template checks fail | Keep template semanticIds; give new elements an IRDI or IRI |
| idShort characters and duplicates | AASd-002: letter first, then letters, digits, _ or -, no trailing -, two or more characters (v3.1+); no - in v3.0. AASd-022: unique per level. AASd-117: required except for direct children of a SubmodelElementList | Remove spaces, dots, non-ASCII letters and #; avoid - for v3.0 tools |
| Wrong Reference type | AASd-122: ExternalReference starts with a GlobalReference key. AASd-123: ModelReference starts with an AasIdentifiables key (AssetAdministrationShell, Submodel, ConceptDescription, Identifiable) | Dictionary semanticIds: ExternalReference + GlobalReference; AAS submodels: ModelReference + Submodel |
| File path mismatch | File/value, the file in the ZIP and the aas-suppl relationship disagree | Compare with the script above; add the aas-suppl relationship |
| No asset identifier | AASd-131: globalAssetId or at least one specificAssetId required | Set globalAssetId |
| Template leftovers | TemplateQualifier in a kind=Instance Submodel (AASd-129); template id reused | Delete TemplateQualifiers, assign a new id |
| Mixing v2 and v3 | v2 Asset class, idType, ConceptDictionary and Reference/local are gone in v3.0; v3 XML namespaces 3/0, 3/1, 3/2 differ | One version per package, matching the receiving tool |
Key points#
- Tools target specific metamodel versions; make sure you create and check with the same version (3.0, 3.1 or 3.2).
- For Submodels taken from templates, change kind, id and TemplateQualifiers but keep the semanticId.
- Passing a test tool does not prove File paths or template conformance; check those separately.
Questions and answers#
Can aas-test-engines check v3.1 files?
Not with release 1.0.3, which accepts only the v3.0 namespace. Check v3.1 data files (XML or JSON) with the BaSyx compliance tool, which follows the installed basyx-python-sdk version, or with aas-core3.1.
If a file passes, does it also match its template?
Not necessarily. aas-test-engines 1.0.3 applies template rules only for Digital Nameplate 2.0 and Contact Information 1.0. Other templates, such as Digital Nameplate 3.0, get metamodel and constraint checks only, so compare the elements and cardinalities with the template document yourself.
Do I have to include ConceptDescriptions?
Not by the metamodel (Environment/conceptDescriptions is 0..*). Including them lets receivers read names, definitions and units without a dictionary; IDTA template AASX files include them.
Is AASX Package Explorer free?
Yes. It is open source under the Apache License 2.0, and Windows binaries are published as GitHub releases. Development has moved from admin-shell-io to the eclipse-aaspe organisation.
