Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[basyx-dev] JSON Array in submodel ignores the array and only returns the last set for idshort

Hi Basyx community,

Good Day!

Is the array supported by AAS?

I checked adding the AllowDuplicates = true and with / without Ordered=true
After trying multiple options I found it doesn't work for arrays.

I checked posting over AKS ,where a submodel got created.
When performing Get, it reverted with a single set rather than array.

Attached herewith data files.

Best Regards,
Adwait
{
  "semanticId": {
    "keys": []
  },
  "qualifiers": [],
  "hasDataSpecification": [],
  "identification": {
    "idType": "Custom",
    "id": "Defects"
  },
  "administration": null,
  "idShort": "DefectList",
  "category": "CONSTANT",
  "modelType": {
    "name": "Submodel"
  },
  "kind": "Instance",
  "submodelElements": [
    {
      "ordered": true,
      "allowDuplicates": true,
      "semanticId": {
        "keys": [
          {
            "type": "ConceptDescription",
            "local": true,
            "value": "https://vkcvks/ids/cd/1552_0152_8012_2327";,
            "index": 0,
            "idType": "IRI"
          }
        ]
      },
      "constraints": [
        {
          "semanticId": null,
          "type": "Multiplicity",
          "valueType": "",
          "valueId": null,
          "value": "Three",
          "modelType": {
            "name": "Qualifier"
          }
        }
      ],
      "hasDataSpecification": [],
      "idShort": "Pinhole",
      "category": "CONSTANT",
      "modelType": {
        "name": "SubmodelElementCollection"
      },
      "value": [
        {
          "value": "1",
          "valueId": null,
          "semanticId": {
            "keys": [
              {
                "type": "ConceptDescription",
                "local": true,
                "value": "https://vkcvks/ids/cd/2392_0152_8012_8749";,
                "index": 0,
                "idType": "IRI"
              }
            ]
          },
          "constraints": [],
          "hasDataSpecification": [],
          "idShort": "Pin",
          "category": "CONSTANT",
          "modelType": {
            "name": "Property"
          },
          "valueType": {
            "dataObjectType": {
              "name": ""
            }
          },
          "kind": "Instance",
          "descriptions": null
        },
        {
          "value": "2",
          "valueId": null,
          "semanticId": {
            "keys": [
              {
                "type": "ConceptDescription",
                "local": true,
                "value": "https://vkcvks/ids/cd/2392_0152_8012_8749";,
                "index": 0,
                "idType": "IRI"
              }
            ]
          },
          "constraints": [],
          "hasDataSpecification": [],
          "idShort": "Pin",
          "category": "CONSTANT",
          "modelType": {
            "name": "Property"
          },
          "valueType": {
            "dataObjectType": {
              "name": ""
            }
          },
          "kind": "Instance",
          "descriptions": null
        },
        {
          "value": "3",
          "valueId": null,
          "semanticId": {
            "keys": [
              {
                "type": "ConceptDescription",
                "local": true,
                "value": "https://vkcvks/ids/cd/2392_0152_8012_8749";,
                "index": 0,
                "idType": "IRI"
              }
            ]
          },
          "constraints": [],
          "hasDataSpecification": [],
          "idShort": "Pin",
          "category": "CONSTANT",
          "modelType": {
            "name": "Property"
          },
          "valueType": {
            "dataObjectType": {
              "name": ""
            }
          },
          "kind": "Instance",
          "descriptions": null
        }
      ],
      "kind": "Instance",
      "descriptions": null
    },
    {
      "ordered": true,
      "allowDuplicates": true,
      "semanticId": {
        "keys": [
          {
            "type": "ConceptDescription",
            "local": true,
            "value": "https://vkcvks/ids/cd/1552_0152_8012_2327";,
            "index": 0,
            "idType": "IRI"
          }
        ]
      },
      "constraints": [
        {
          "semanticId": null,
          "type": "Multiplicity",
          "valueType": "",
          "valueId": null,
          "value": "Three",
          "modelType": {
            "name": "Qualifier"
          }
        }
      ],
      "hasDataSpecification": [],
      "idShort": "Pinhole",
      "category": "CONSTANT",
      "modelType": {
        "name": "SubmodelElementCollection"
      },
      "value": [
        {
          "value": "1",
          "valueId": null,
          "semanticId": {
            "keys": [
              {
                "type": "ConceptDescription",
                "local": true,
                "value": "https://vkcvks/ids/cd/2392_0152_8012_8749";,
                "index": 0,
                "idType": "IRI"
              }
            ]
          },
          "constraints": [],
          "hasDataSpecification": [],
          "idShort": "Pin",
          "category": "CONSTANT",
          "modelType": {
            "name": "Property"
          },
          "valueType": {
            "dataObjectType": {
              "name": ""
            }
          },
          "kind": "Instance",
          "descriptions": null
        },
        {
          "value": "2",
          "valueId": null,
          "semanticId": {
            "keys": [
              {
                "type": "ConceptDescription",
                "local": true,
                "value": "https://vkcvks/ids/cd/2392_0152_8012_8749";,
                "index": 0,
                "idType": "IRI"
              }
            ]
          },
          "constraints": [],
          "hasDataSpecification": [],
          "idShort": "Pin",
          "category": "CONSTANT",
          "modelType": {
            "name": "Property"
          },
          "valueType": {
            "dataObjectType": {
              "name": ""
            }
          },
          "kind": "Instance",
          "descriptions": null
        },
        {
          "value": "3",
          "valueId": null,
          "semanticId": {
            "keys": [
              {
                "type": "ConceptDescription",
                "local": true,
                "value": "https://vkcvks/ids/cd/2392_0152_8012_8749";,
                "index": 0,
                "idType": "IRI"
              }
            ]
          },
          "constraints": [],
          "hasDataSpecification": [],
          "idShort": "Pin",
          "category": "CONSTANT",
          "modelType": {
            "name": "Property"
          },
          "valueType": {
            "dataObjectType": {
              "name": ""
            }
          },
          "kind": "Instance",
          "descriptions": null
        }
      ],
      "kind": "Instance",
      "descriptions": null
    },
    {
      "ordered": true,
      "allowDuplicates": true,
      "semanticId": {
        "keys": [
          {
            "type": "ConceptDescription",
            "local": true,
            "value": "https://vkcvks/ids/cd/1552_0152_8012_2327";,
            "index": 0,
            "idType": "IRI"
          }
        ]
      },
      "constraints": [
        {
          "semanticId": null,
          "type": "Multiplicity",
          "valueType": "",
          "valueId": null,
          "value": "Three",
          "modelType": {
            "name": "Qualifier"
          }
        }
      ],
      "hasDataSpecification": [],
      "idShort": "Pinhole",
      "category": "CONSTANT",
      "modelType": {
        "name": "SubmodelElementCollection"
      },
      "value": [
        {
          "value": "1",
          "valueId": null,
          "semanticId": {
            "keys": [
              {
                "type": "ConceptDescription",
                "local": true,
                "value": "https://vkcvks/ids/cd/2392_0152_8012_8749";,
                "index": 0,
                "idType": "IRI"
              }
            ]
          },
          "constraints": [],
          "hasDataSpecification": [],
          "idShort": "Pin",
          "category": "CONSTANT",
          "modelType": {
            "name": "Property"
          },
          "valueType": {
            "dataObjectType": {
              "name": ""
            }
          },
          "kind": "Instance",
          "descriptions": null
        },
        {
          "value": "2",
          "valueId": null,
          "semanticId": {
            "keys": [
              {
                "type": "ConceptDescription",
                "local": true,
                "value": "https://vkcvks/ids/cd/2392_0152_8012_8749";,
                "index": 0,
                "idType": "IRI"
              }
            ]
          },
          "constraints": [],
          "hasDataSpecification": [],
          "idShort": "Pin",
          "category": "CONSTANT",
          "modelType": {
            "name": "Property"
          },
          "valueType": {
            "dataObjectType": {
              "name": ""
            }
          },
          "kind": "Instance",
          "descriptions": null
        },
        {
          "value": "3",
          "valueId": null,
          "semanticId": {
            "keys": [
              {
                "type": "ConceptDescription",
                "local": true,
                "value": "https://vkcvks/ids/cd/2392_0152_8012_8749";,
                "index": 0,
                "idType": "IRI"
              }
            ]
          },
          "constraints": [],
          "hasDataSpecification": [],
          "idShort": "Pin",
          "category": "CONSTANT",
          "modelType": {
            "name": "Property"
          },
          "valueType": {
            "dataObjectType": {
              "name": ""
            }
          },
          "kind": "Instance",
          "descriptions": null
        }
      ],
      "kind": "Instance",
      "descriptions": null
    }
  ],
  "descriptions": null
}
{
    "semanticId": {
        "keys": []
    },
    "identification": {
        "idType": "Custom",
        "id": "Defects"
    },
    "idShort": "DefectList",
    "hasDataSpecification": [],
    "administration": null,
    "kind": "Instance",
    "qualifiers": [],
    "modelType": {
        "name": "Submodel"
    },
    "category": "CONSTANT",
    "descriptions": null,
    "submodelElements": [
        {
            "ordered": true,
            "semanticId": {
                "keys": [
                    {
                        "idType": "IRI",
                        "index": 0,
                        "type": "ConceptDescription",
                        "value": "https://vkcvks.com/ids/cd/1552_0152_8012_2327";,
                        "local": true
                    }
                ]
            },
            "idShort": "Pinhole",
            "hasDataSpecification": [],
            "kind": "Instance",
            "modelType": {
                "name": "SubmodelElementCollection"
            },
            "category": "CONSTANT",
            "allowDuplicates": true,
            "constraints": [
                {
                    "semanticId": null,
                    "valueId": null,
                    "valueType": "",
                    "modelType": {
                        "name": "Qualifier"
                    },
                    "type": "Multiplicity",
                    "value": "Three"
                }
            ],
            "value": [
                {
                    "valueId": null,
                    "semanticId": {
                        "keys": [
                            {
                                "idType": "IRI",
                                "index": 0,
                                "type": "ConceptDescription",
                                "value": "https://vkcvks.com/ids/cd/2392_0152_8012_8749";,
                                "local": true
                            }
                        ]
                    },
                    "idShort": "Pin",
                    "hasDataSpecification": [],
                    "kind": "Instance",
                    "valueType": {
                        "dataObjectType": {
                            "name": ""
                        }
                    },
                    "modelType": {
                        "name": "Property"
                    },
                    "category": "CONSTANT",
                    "value": "3",
                    "constraints": [],
                    "descriptions": null
                }
            ],
            "descriptions": null
        }
    ]
}

Back to the top