Skip to content

Commit

Permalink
Improve mapping for submodel related SSPs
Browse files Browse the repository at this point in the history
  • Loading branch information
otto-ifak committed Sep 5, 2024
1 parent 52cffe9 commit 0ceb9c6
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions aas_test_engines/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,26 @@ def _extend(data: Dict[str, List[str]]) -> dict:
"Submodel Service Specification",
],
f"{SSP_PREFIX}SubmodelServiceSpecification/SSP-002": [
# Submodel API
"GetSubmodel",
"GetSubmodel-Metadata",
"GetSubmodel-Valueonly",
"GetSubmodel-Reference",
"GetSubmodel-Path",
"GetAllSubmodelElements",
"GetAllSubmodelElements-Metadata",
"GetAllSubmodelElements-Valueonly",
"GetAllSubmodelElements-Reference",
"GetAllSubmodelElements-Path",
"GetSubmodelElementByPath",
"GetSubmodelElementByPath-Metadata",
"GetSubmodelElementByPath-Valueonly",
"GetSubmodelElementByPath-Reference",
"GetSubmodelElementByPath-Path",
"GetFileByPath",
# Serialization API
"GenerateSerializationByIds",
# Description API
"GetDescription",
],
f"{SSP_PREFIX}SubmodelServiceSpecification/SSP-003": [
Expand Down Expand Up @@ -276,7 +291,7 @@ def _extend(data: Dict[str, List[str]]) -> dict:
],
f"{SSP_PREFIX}AssetAdministrationShellRepositoryServiceSpecification/SSP-002": [
# AAS Repository API:
"GetAllAssetAdministrationShells", # includes ...ByAssetId and ...ByIdShort
"GetAllAssetAdministrationShells",
"GetAllAssetAdministrationShells-Reference",
"GetAssetAdministrationShellById",
"GetAssetAdministrationShellById-Reference_AasRepository",
Expand Down Expand Up @@ -311,13 +326,32 @@ def _extend(data: Dict[str, List[str]]) -> dict:
"Submodel Repository Service Specification",
],
f"{SSP_PREFIX}SubmodelRepositoryServiceSpecification/SSP-002": [
# Submodel Repository API
"GetAllSubmodels",
'GetAllSubmodels-Metadata',
'GetAllSubmodels-ValueOnly',
'GetAllSubmodels-Reference',
'GetAllSubmodels-Path',
"GetSubmodelById",
"GetSubmodel",
"GetAllSubmodelElements",
"GetSubmodelElementByPath",
"GetFileByPath",
"GetSubmodelById-Metadata",
"GetSubmodelById-ValueOnly",
"GetSubmodelById-Reference",
"GetSubmodelById-Path",
# Submodel API
'GetAllSubmodelElements_SubmodelRepository',
'GetAllSubmodelElements-Metadata_SubmodelRepository',
'GetAllSubmodelElements-ValueOnly_SubmodelRepository',
'GetAllSubmodelElements-Reference_SubmodelRepository',
'GetAllSubmodelElements-Path_SubmodelRepository',
"GetSubmodelElementByPath_SubmodelRepo",
"GetSubmodelElementByPath-Metadata_SubmodelRepo",
"GetSubmodelElementByPath-ValueOnly_SubmodelRepo",
"GetSubmodelElementByPath-Reference_SubmodelRepo",
"GetSubmodelElementByPath-Path_SubmodelRepo",
"GetFileByPath_SubmodelRepo",
# Serialization API
"GenerateSerializationByIds",
# Description API
"GetDescription"
],
f"{SSP_PREFIX}SubmodelRepositoryServiceSpecification/SSP-003": [
Expand Down

0 comments on commit 0ceb9c6

Please sign in to comment.