# fluid40/aas-standard-parser architecture

> Architecture diagram of the GitHub repository fluid40/aas-standard-parser, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fluid40/aas-standard-parser
- Repository: https://github.com/fluid40/aas-standard-parser

## Overview

AAS standard Parser is a Python library for turning AAS structures and descriptor JSON into queryable, domain-specific data. A typical workflow loads or converts JSON to BaSyx model objects, then uses the relevant parser to extract submodel structure, AID interface details, AIMC mappings, or concept and shell metadata. Helpers provide semantic/reference lookup and language selection. The README also describes structured logging; implementation details for that capability were not sampled, so it is represented only as a documented subsystem. Some relationships below rely on the source index or README rather than inspected implementation excerpts.

Main entry points: [`aas_standard_parser/multi_language_parser.py`](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/multi_language_parser.py) (Language parsing), [`aas_standard_parser/concept_description_parser.py`](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/concept_description_parser.py) (Concept parser), [`aas_standard_parser/descriptor_json_helper.py`](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/descriptor_json_helper.py) (Descriptor parser), [`aas_standard_parser/utils.py`](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/utils.py) (JSON utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Input and models"]
  node_utils["JSON utilities<br/>[utils.py]"]
end

subgraph group_domain["Domain parsers"]
  node_aas_parser["AAS parser<br/>[aas_parser.py]"]
  node_aid_parser["AID parser<br/>[aid_parser.py]"]
  node_aimc_parser["AIMC parser<br/>[aimc_parser.py]"]
  node_concept_parser["Concept parser"]
  node_shell_parser["Shell parser<br/>[shell_parser.py]"]
  node_submodel_parser["Submodel parser<br/>[submodel_parser.py]"]
  node_descriptor_parser["Descriptor parser"]
  node_submodel_json["Submodel JSON"]
end

subgraph group_helpers["Parsing helpers"]
  node_collections["Collection lookup"]
  node_references["Reference lookup"]
  node_languages["Language parsing"]
  node_version["Version checks<br/>[version_check.py]"]
  node_logging["Structured logging<br/>[logging_handler.py]"]
end

subgraph group_represent["Result models"]
  node_env_data["Environment data"]
  node_mapping_types["Mapping models"]
  node_concept_types["Concept models"]
  node_descriptor_types["Descriptor models"]
end

node_python_app(("Python caller"))
node_basyx["BaSyx SDK"]

node_python_app -.->|"loads JSON"| node_utils
node_python_app -.->|"requests parsing"| node_aas_parser
node_utils -->|"decodes models"| node_basyx
node_aas_parser -->|"uses data model"| node_env_data
node_aid_parser -->|"finds elements"| node_collections
node_aimc_parser -->|"finds elements"| node_collections
node_aimc_parser -.->|"creates results"| node_mapping_types
node_concept_parser -.->|"creates results"| node_concept_types
node_concept_parser -->|"selects text"| node_languages
node_concept_parser -->|"extracts keys"| node_references
node_descriptor_parser -.->|"creates results"| node_descriptor_types
node_descriptor_parser -->|"selects text"| node_languages
node_descriptor_parser -->|"encodes identifiers"| node_utils
node_shell_parser -.->|"selects text"| node_languages
node_submodel_parser -->|"selects text"| node_languages
node_python_app -.->|"requests parsing"| node_submodel_json
node_python_app -.->|"configures logging"| node_logging

click node_aas_parser "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/aas_parser.py"
click node_aid_parser "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/aid_parser.py"
click node_aimc_parser "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/aimc_parser.py"
click node_concept_parser "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/concept_description_parser.py"
click node_shell_parser "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/shell_parser.py"
click node_submodel_parser "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/submodel_parser.py"
click node_descriptor_parser "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/descriptor_json_helper.py"
click node_submodel_json "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/submodel_json_helper.py"
click node_utils "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/utils.py"
click node_env_data "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/classes/env_parser_classes.py"
click node_mapping_types "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/classes/aimc_parser_classes.py"
click node_concept_types "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/classes/concept_description_parser_classes.py"
click node_descriptor_types "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/classes/descriptor_json_helper_classes.py"
click node_collections "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/collection_helpers.py"
click node_references "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/reference_helpers.py"
click node_languages "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/multi_language_parser.py"
click node_version "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/version_check.py"
click node_logging "https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/demo/logging_handler.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_utils toneBlue
class node_aas_parser,node_aid_parser,node_aimc_parser,node_concept_parser,node_shell_parser,node_submodel_parser,node_descriptor_parser,node_submodel_json toneAmber
class node_collections,node_references,node_languages,node_version,node_logging toneMint
class node_env_data,node_mapping_types,node_concept_types,node_descriptor_types toneRose
class node_python_app,node_basyx toneIndigo
```

## Components

### Input and models

- [JSON utilities](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/utils.py): `aas_standard_parser/utils.py`

### Domain parsers

- [AAS parser](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/aas_parser.py): `aas_standard_parser/aas_parser.py`
- [AID parser](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/aid_parser.py): `aas_standard_parser/aid_parser.py`
- [AIMC parser](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/aimc_parser.py): `aas_standard_parser/aimc_parser.py`
- [Concept parser](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/concept_description_parser.py): `aas_standard_parser/concept_description_parser.py`
- [Shell parser](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/shell_parser.py): `aas_standard_parser/shell_parser.py`
- [Submodel parser](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/submodel_parser.py): `aas_standard_parser/submodel_parser.py`
- [Descriptor parser](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/descriptor_json_helper.py): `aas_standard_parser/descriptor_json_helper.py`
- [Submodel JSON](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/submodel_json_helper.py): `aas_standard_parser/submodel_json_helper.py`

### Parsing helpers

- [Collection lookup](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/collection_helpers.py): `aas_standard_parser/collection_helpers.py`
- [Reference lookup](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/reference_helpers.py): `aas_standard_parser/reference_helpers.py`
- [Language parsing](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/multi_language_parser.py): `aas_standard_parser/multi_language_parser.py`
- [Version checks](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/version_check.py): `aas_standard_parser/version_check.py`
- [Structured logging](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/demo/logging_handler.py): `aas_standard_parser/demo/logging_handler.py`

### Result models

- [Environment data](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/classes/env_parser_classes.py): `aas_standard_parser/classes/env_parser_classes.py`
- [Mapping models](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/classes/aimc_parser_classes.py): `aas_standard_parser/classes/aimc_parser_classes.py`
- [Concept models](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/classes/concept_description_parser_classes.py): `aas_standard_parser/classes/concept_description_parser_classes.py`
- [Descriptor models](https://github.com/fluid40/aas-standard-parser/blob/main/aas_standard_parser/classes/descriptor_json_helper_classes.py): `aas_standard_parser/classes/descriptor_json_helper_classes.py`

### Other components

- **Python caller**
- **BaSyx SDK**

## Connections

- Python caller → JSON utilities: loads JSON (evidence: `README.md`)
- Python caller → AAS parser: requests parsing (evidence: `README.md`)
- JSON utilities → BaSyx SDK: decodes models (evidence: `aas_standard_parser/utils.py`)
- AAS parser → Environment data: uses data model (evidence: `aas_standard_parser/aas_parser.py`)
- AID parser → Collection lookup: finds elements (evidence: `aas_standard_parser/aid_parser.py`)
- AIMC parser → Collection lookup: finds elements (evidence: `aas_standard_parser/aimc_parser.py`)
- AIMC parser → Mapping models: creates results (evidence: `aas_standard_parser/aimc_parser.py`)
- Concept parser → Concept models: creates results (evidence: `aas_standard_parser/concept_description_parser.py`)
- Concept parser → Language parsing: selects text (evidence: `aas_standard_parser/concept_description_parser.py`)
- Concept parser → Reference lookup: extracts keys (evidence: `aas_standard_parser/concept_description_parser.py`)
- Descriptor parser → Descriptor models: creates results (evidence: `aas_standard_parser/descriptor_json_helper.py`)
- Descriptor parser → Language parsing: selects text (evidence: `aas_standard_parser/descriptor_json_helper.py`)
- Descriptor parser → JSON utilities: encodes identifiers (evidence: `aas_standard_parser/descriptor_json_helper.py`)
- Shell parser → Language parsing: selects text (evidence: `aas_standard_parser/shell_parser.py`)
- Submodel parser → Language parsing: selects text (evidence: `aas_standard_parser/submodel_parser.py`)
- Python caller → Submodel JSON: requests parsing (evidence: `README.md`)
- Python caller → Structured logging: configures logging (evidence: `README.md`)
