Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [basyx-dev] JSON Array in submodel ignores the array and only returns the last set for idshort
  • From: <Frank.Schnicke@xxxxxxxxxxxxxxxxxx>
  • Date: Fri, 19 Nov 2021 11:32:23 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: basyx-dev@xxxxxxxxxxx
  • Ironport-data: A9a23:tJxXMKlXq+NxwxtuATPBAF/o5gzFIERdPkR7XQ2eYbSJt1+Wr1Gzt xIaUDuDaPuMYWH2f9EibNjjpkhVvJbRnII2SFdr/3gwFFtH+JHPbTi7wugcHM8ywunrFh8PA xA2M4GYRCwMZiaH4ErrbtANlFEkvU2ybuOU5NXsZ2YhGmeIdA970Ug6wrdg09Yx6TSEK1rlV e3a85W31GCNhmYc3lI8s8pvfzs24ZweEBtB1rAPTagjUG32zhH5P7pDTU2FFEYUd6EPdgKMq 0Yv+5nilo/R109F5tpICd8XeGVSKlLZFVDmZna7x8FOjzAazhHe3JrXO9JDcHtw0Q7Zzupe0 et/6KSbFhgRFI/TzbF1vxlwS0mSPIVF4/rBLGX5sMGIwgvIaXLxxfVpAkwse4EVkgp1KTgTr rpJdnZUNUvF3Ypaw5rjIgVoruo5Jc/oergUundhxjLUJfcrWp2FTb/D+NlY2zk9nIZCEJ4yY uJAM2owMkqRPUYn1lE/UJQDmOyEl2HDfAZjggm1n6or+ULC01kkuFTqGICMIYXRFZQ9clyjj mjP5HXpRx0XKvSSwj6E6mmhwOjVkkvGtJk6Eqb+9/NxjRud3GUODh0RW1ah5/W04qKjZz5BA xMNxg10lvhjzmOycOugZzbnv0aunAFJDrK8DNYGwA2Kz6PV5SOQCW4FUiNNZbQaWCkeGGFCO rihwomBONB/jFGGYS7MquzI81teLQBKcjBcOEfoWCNYu7HeTJcPYgXnYvsL/ESdrdT0Ajzq2 DSDsTQznbN7YSUjifrlowuvb96EnJjETwgx7wPbG1qr5wdrDLNJiqSu8h7a4O1NaoiDR0SHv H8Klt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q+qj/zEnhv5an855Cd3AQV51d
  • Ironport-sdr: s4gMi/Cv8pf1ZQRHb+v+cJ0VYm2DeW3ID6EipKI5FqCFVGt6NbriX3VqRp8W/oLFPTa04Wvw9N oEa2basTCj5w==
  • Ironport-sdr: 8MvDdkpRWoPSwgLOXtElfHx3x+yifKOuceq8RVbD2asFxkx373sI/de0Sc1A+bhUmqOlQyo8k6 kmxzAfMM6JkBx0U9UrjRj6Y3QG2XaFhW8=
  • List-archive: <https://www.eclipse.org/mailman/private/basyx-dev/>
  • List-help: <mailto:basyx-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/basyx-dev>, <mailto:basyx-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/basyx-dev>, <mailto:basyx-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHX26Zpnqy7gY1pHky2c3J3siGI46wKkdwggAAViQCAABIYoA==
  • Thread-topic: [basyx-dev] JSON Array in submodel ignores the array and only returns the last set for idshort

Dear Adwait,

 

right now, this is not explicitly supported by the AAS meta model. However, you can put a serialized JSON array as String value of a Property.

Thus, you can easily represent arrays without having to worry for IdShorts. Please note that this is not 100% conformant with the AAS metamodel.

 

Best regards,

Frank

 

--

Frank Schnicke

Expert »Industrie 4.0 System Architectures«

Dept. Virtual Engineering

 

Fraunhofer IESE

Fraunhofer-Platz 1 | 67663 Kaiserslautern

+49 631 6800-2259

frank.schnicke@xxxxxxxxxxxxxxxxxx

www.iese.fraunhofer.de

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

25 Jahre Fraunhofer IESE  –  Engineering the Digital Future

Reisen Sie mit uns in die Vergangenheit, aber vor allem in die digitale Zukunft!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 

Von: basyx-dev <basyx-dev-bounces@xxxxxxxxxxx> Im Auftrag von adwait churi
Gesendet: Freitag, 19. November 2021 12:22
An: basyx developer discussions <basyx-dev@xxxxxxxxxxx>
Betreff: Re: [basyx-dev] JSON Array in submodel ignores the array and only returns the last set for idshort

 

Thank you Frank, I have question regarding array.

 

Could you please let know, how to achieve array where one Id can have multiple values?

 

Regards,

Adwait

On Fri, Nov 19, 2021, 2:48 PM <Frank.Schnicke@xxxxxxxxxxxxxxxxxx> wrote:

Dear Adwait,

 

your PUT Request Body is defective. You have multiple elements with the same IdShort (“Pinhole”) in the Submodel.

Additionally, you have multiple elements with the same IdShort (“Pin”) in the SubmodelElementCollections.

 

Since the IdShorts need to be unique in their respective scopes(e.g. Submodel, SubmodelElementCollection), you’re getting not your expected result.

 

Best regards,

Frank

 

--

Frank Schnicke

Expert »Industrie 4.0 System Architectures«

Dept. Virtual Engineering

 

Fraunhofer IESE

Fraunhofer-Platz 1 | 67663 Kaiserslautern

+49 631 6800-2259

frank.schnicke@xxxxxxxxxxxxxxxxxx

www.iese.fraunhofer.de

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

25 Jahre Fraunhofer IESE  –  Engineering the Digital Future

Reisen Sie mit uns in die Vergangenheit, aber vor allem in die digitale Zukunft!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 

Von: basyx-dev <basyx-dev-bounces@xxxxxxxxxxx> Im Auftrag von adwait churi
Gesendet: Mittwoch, 17. November 2021 12:28
An: basyx developer discussions <basyx-dev@xxxxxxxxxxx>
Betreff: [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

_______________________________________________
basyx-dev mailing list
basyx-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/basyx-dev


Back to the top