Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AAS Registry: Descriptor contains null for specificAssetIds and submodelDescriptors #554

Open
kzoltner opened this issue Dec 3, 2024 · 0 comments

Comments

@kzoltner
Copy link

kzoltner commented Dec 3, 2024

Describe the bug
When using eclipsebasyx/aas-registry-log-mem:2.0.0-SNAPSHOT and a simple shell environment with submodels and specificAssetIds included, the descriptor list contains null instead of specificAssetIds and submodelDescriptors

To reproduce

  1. Create a docker-compose.yml using the starter kit and the following options:
    • No Discovery - No MongoDB - Include MQTT - No Time Series Data - Add Web UI - No Dashboard
  2. Place the environment (from below) into the aas folder of the environment component
  3. Start the docker-compose environment
  4. Request GET /shell-descriptors from aas-registry

Error
null values for specificAssetIds and submodelDescriptors.

Used environment.json
{
  "assetAdministrationShells": [
    {
      "extensions": [
        {
          "name": "namespace",
          "valueType": "xs:string",
          "value": "Product"
        },
        {
          "name": "shellViewId",
          "valueType": "xs:string",
          "value": "de.smartfactory.shell-view.truck"
        }
      ],
      "idShort": "Truck",
      "id": "https://smartfactory.de/shells/11a77fbf-2b30-4c8f-b191-17c6d6a5e89c",
      "assetInformation": {
        "assetKind": "Instance",
        "globalAssetId": "https://smartfactory.de/assets/3c50a3ce-7803-4af0-817e-8172bf3c0fc4",
        "assetType": "product",
        "specificAssetIds": [
          {
            "name": "DummySpecificId",
            "value": "MyOwmValu!"
          }
        ]
      },
      "submodels": [
        {
          "type": "ExternalReference",
          "referredSemanticId": {
            "keys": [
              {
                "type": "Submodel",
                "value": "https://smartfactory.de/semantics/submodel/ProductIdentification#1/0"
              }
            ],
            "type": "ExternalReference"
          },
          "keys": [
            {
              "type": "Submodel",
              "value": "https://smartfactory.de/submodels/581f632b-343c-496f-8f4e-c261b599fa01"
            }
          ]
        },
        {
          "type": "ExternalReference",
          "referredSemanticId": {
            "type": "ExternalReference",
            "keys": [
              {
                "type": "Submodel",
                "value": "https://smartfactory.de/semantics/submodel/QualityInformation#1/0"
              }
            ]
          },
          "keys": [
            {
              "type": "Submodel",
              "value": "https://smartfactory.de/submodels/947b66d0-09eb-48ac-9a91-d5401d0e42be"
            }
          ]
        }
      ],
      "modelType": "AssetAdministrationShell",
      "displayName": [
        {
          "language": "de",
          "text": "de.smartfactory.product.truck"
        }
      ]
    }
  ],
  "submodels": [
    {
      "modelType": "Submodel",
      "id": "https://smartfactory.de/submodels/581f632b-343c-496f-8f4e-c261b599fa01",
      "idShort": "ProductIdentification",
      "submodelElements": [
        {
          "modelType": "Property",
          "value": "https://smartfactory.de/shells/11a77fbf-2b30-4c8f-b191-17c6d6a5e89c",
          "valueType": "xs:string",
          "idShort": "Identifier",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        },
        {
          "modelType": "Property",
          "value": "Truck",
          "valueType": "xs:string",
          "idShort": "ProductName",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        },
        {
          "modelType": "Property",
          "value": "no-order-id",
          "valueType": "xs:string",
          "idShort": "OrderNumber",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        },
        {
          "modelType": "Property",
          "value": "no-order-id",
          "valueType": "xs:string",
          "idShort": "RootOrderNumber",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        },
        {
          "modelType": "Property",
          "value": "Truck",
          "valueType": "xs:string",
          "idShort": "ProductFamilyName",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        },
        {
          "modelType": "Property",
          "value": "GER",
          "valueType": "xs:string",
          "idShort": "ProductCountryOfOrigin",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        },
        {
          "modelType": "Property",
          "value": "http://localhost:8001/api/v3/shells/aHR0cHM6Ly9zbWFydGZhY3RvcnkuZGUvc2hlbGxzLzExYTc3ZmJmLTJiMzAtNGM4Zi1iMTkxLTE3YzZkNmE1ZTg5Yw==",
          "valueType": "xs:string",
          "idShort": "AddressOfAdditionalLink",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        },
        {
          "modelType": "Property",
          "value": "SmartFactoryKL - Shared Production",
          "valueType": "xs:string",
          "idShort": "Brand",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        },
        {
          "modelType": "Property",
          "value": "2024-12-03T16:08:30.765Z",
          "valueType": "xs:string",
          "idShort": "EffectiveDate",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        },
        {
          "modelType": "Property",
          "value": "1733242110765",
          "valueType": "xs:string",
          "idShort": "OrderTimestamp",
          "semanticId": {
            "keys": [],
            "type": "ExternalReference"
          }
        }
      ],
      "semanticId": {
        "keys": [
          {
            "type": "Submodel",
            "value": "https://smartfactory.de/semantics/submodel/ProductIdentification#1/0"
          }
        ],
        "type": "ExternalReference"
      }
    },
    {
      "idShort": "QualityInformation",
      "id": "https://smartfactory.de/submodels/947b66d0-09eb-48ac-9a91-d5401d0e42be",
      "semanticId": {
        "type": "ExternalReference",
        "keys": [
          {
            "type": "Submodel",
            "value": "https://smartfactory.de/semantics/submodel/QualityInformation#1/0"
          }
        ]
      },
      "submodelElements": [
        {
          "idShort": "LifecycleCount",
          "semanticId": {
            "type": "ExternalReference",
            "keys": []
          },
          "valueType": "xs:integer",
          "value": "0",
          "modelType": "Property"
        },
        {
          "idShort": "InspectionDate",
          "semanticId": {
            "type": "ExternalReference",
            "keys": []
          },
          "valueType": "xs:string",
          "value": "",
          "modelType": "Property"
        },
        {
          "idShort": "QualityStatus",
          "semanticId": {
            "type": "ExternalReference",
            "keys": []
          },
          "valueType": "xs:integer",
          "value": "0",
          "modelType": "Property"
        },
        {
          "idShort": "HistoricalData",
          "semanticId": {
            "type": "ExternalReference",
            "keys": []
          },
          "modelType": "SubmodelElementCollection"
        }
      ],
      "modelType": "Submodel"
    }
  ],
  "conceptDescriptions": []
}
Output for `GET /shell-descriptors` on aas-registry
{
  "paging_metadata": {
    "cursor": null
  },
  "result": [
    {
      "description": null,
      "displayName": [
        {
          "language": "de",
          "text": "de.smartfactory.product.truck"
        }
      ],
      "extensions": [
        {
          "semanticId": null,
          "supplementalSemanticIds": null,
          "name": "namespace",
          "valueType": "xs:string",
          "value": "Product",
          "refersTo": null
        },
        {
          "semanticId": null,
          "supplementalSemanticIds": null,
          "name": "shellViewId",
          "valueType": "xs:string",
          "value": "de.smartfactory.shell-view.truck",
          "refersTo": null
        }
      ],
      "administration": null,
      "assetKind": "Instance",
      "assetType": "product",
      "endpoints": [
        {
          "interface": "AAS-3.0",
          "protocolInformation": {
            "href": "http://localhost:8080/shells/aHR0cHM6Ly9zbWFydGZhY3RvcnkuZGUvc2hlbGxzLzExYTc3ZmJmLTJiMzAtNGM4Zi1iMTkxLTE3YzZkNmE1ZTg5Yw",
            "endpointProtocol": "http",
            "endpointProtocolVersion": null,
            "subprotocol": null,
            "subprotocolBody": null,
            "subprotocolBodyEncoding": null,
            "securityAttributes": null
          }
        }
      ],
      "globalAssetId": "https://smartfactory.de/assets/3c50a3ce-7803-4af0-817e-8172bf3c0fc4",
      "idShort": "Truck",
      "id": "https://smartfactory.de/shells/11a77fbf-2b30-4c8f-b191-17c6d6a5e89c",
      "specificAssetIds": null,
      "submodelDescriptors": null
    }
  ]
}
Output for `/shells/[shellId]` on aas-repository
{
  "modelType": "AssetAdministrationShell",
  "assetInformation": {
    "assetKind": "Instance",
    "assetType": "product",
    "globalAssetId": "https://smartfactory.de/assets/3c50a3ce-7803-4af0-817e-8172bf3c0fc4",
    "specificAssetIds": [
      {
        "name": "DummySpecificId",
        "value": "MyOwmValu!"
      }
    ]
  },
  "submodels": [
    {
      "keys": [
        {
          "type": "Submodel",
          "value": "https://smartfactory.de/submodels/581f632b-343c-496f-8f4e-c261b599fa01"
        }
      ],
      "referredSemanticId": {
        "keys": [
          {
            "type": "Submodel",
            "value": "https://smartfactory.de/semantics/submodel/ProductIdentification#1/0"
          }
        ],
        "type": "ExternalReference"
      },
      "type": "ExternalReference"
    },
    {
      "keys": [
        {
          "type": "Submodel",
          "value": "https://smartfactory.de/submodels/947b66d0-09eb-48ac-9a91-d5401d0e42be"
        }
      ],
      "referredSemanticId": {
        "keys": [
          {
            "type": "Submodel",
            "value": "https://smartfactory.de/semantics/submodel/QualityInformation#1/0"
          }
        ],
        "type": "ExternalReference"
      },
      "type": "ExternalReference"
    }
  ],
  "extensions": [
    {
      "name": "namespace",
      "value": "Product",
      "valueType": "xs:string"
    },
    {
      "name": "shellViewId",
      "value": "de.smartfactory.shell-view.truck",
      "valueType": "xs:string"
    }
  ],
  "id": "https://smartfactory.de/shells/11a77fbf-2b30-4c8f-b191-17c6d6a5e89c",
  "displayName": [
    {
      "language": "de",
      "text": "de.smartfactory.product.truck"
    }
  ],
  "idShort": "Truck"
}

Expected behaviour
The values for specificAssetIds and submodelDescriptors should be not null

BaSyx
Versions:

  • eclipsebasyx/aas-environment:2.0.0-SNAPSHOT
  • eclipsebasyx/aas-registry-log-mem:2.0.0-SNAPSHOT

BaSyx configuration
Created with Starter Kit as described above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant