Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit 835f1a7

Browse files
committed
updating JSON and AML examples for unit tests
1 parent 9b8c2fe commit 835f1a7

8 files changed

Lines changed: 2221 additions & 2252 deletions

File tree

dataformat-aml/src/test/resources/test_demo_full_example.aml

Lines changed: 46 additions & 34 deletions
Large diffs are not rendered by default.

dataformat-json/src/test/resources/assetAdministrationShellList.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
]
8686
},
8787
{
88-
"idShort": "",
88+
"idShort": "Test_AssetAdministrationShell_Mandatory",
8989
"modelType": {
9090
"name": "AssetAdministrationShell"
9191
},

dataformat-json/src/test/resources/jsonExample.json

Lines changed: 477 additions & 422 deletions
Large diffs are not rendered by default.
Lines changed: 128 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -1,158 +1,139 @@
1+
12
{
2-
"idShort": "Identification",
3-
"description": [
4-
{
5-
"language": "en-us",
6-
"text": "An example asset identification submodel for the test application"
7-
},
8-
{
9-
"language": "de",
10-
"text": "Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung"
11-
}
12-
],
13-
"modelType":
14-
{
15-
"name": "Submodel"
16-
},
17-
"identification":
18-
{
19-
"id": "http://acplt.org/Submodels/Assets/TestAsset/Identification",
20-
"idType": "Iri"
21-
},
22-
"kind": "Instance",
23-
"administration":
24-
{
25-
"version": "0.9",
26-
"revision": "0"
27-
},
28-
"semanticId":
29-
{
30-
"keys": [
31-
{
32-
"type": "Submodel",
33-
"idType": "Iri",
34-
"value": "http://acplt.org/SubmodelTemplates/AssetIdentification"
35-
}
36-
]
37-
},
38-
"submodelElements": [
39-
{
40-
"idShort": "ManufacturerName",
41-
"description": [
42-
{
43-
"language": "en-us",
44-
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
45-
},
46-
{
47-
"language": "de",
48-
"text": "Bezeichnung für eine natürliche oder juristische Person, die für die Auslegung, Herstellung und Verpackung sowie die Etikettierung eines Produkts im Hinblick auf das 'Inverkehrbringen' im eigenen Namen verantwortlich ist"
49-
}
50-
],
51-
"modelType":
52-
{
53-
"name": "Property"
54-
},
55-
"semanticId":
56-
{
57-
"keys": [
58-
{
59-
"type": "GlobalReference",
60-
"idType": "Iri",
61-
"value": "0173-1#02-AAO677#002"
62-
}
63-
]
64-
},
65-
"qualifiers": [
66-
{
67-
"modelType":
68-
{
69-
"name": "Qualifier"
70-
},
71-
"value": "100",
72-
"valueId":
73-
{
74-
"keys": [
75-
{
76-
"type": "GlobalReference",
3+
"modelType":
4+
{
5+
"name": "Submodel"
6+
},
7+
"kind": "Instance",
8+
"semanticId":
9+
{
10+
"keys": [
11+
{
12+
"idType": "Iri",
13+
"type": "Submodel",
14+
"value": "http://acplt.org/SubmodelTemplates/AssetIdentification"
15+
}
16+
]
17+
},
18+
"administration":
19+
{
20+
"revision": "0",
21+
"version": "0.9"
22+
},
23+
"identification":
24+
{
7725
"idType": "Iri",
78-
"value": "http://acplt.org/ValueId/ExampleValueId"
79-
}
26+
"id": "http://acplt.org/Submodels/Assets/TestAsset/Identification"
27+
},
28+
"idShort": "Identification",
29+
"submodelElements": [
30+
{
31+
"modelType":
32+
{
33+
"name": "Property"
34+
},
35+
"semanticId":
36+
{
37+
"keys": [
38+
{
39+
"idType": "Iri",
40+
"type": "GlobalReference",
41+
"value": "0173-1#02-AAO677#002"
42+
}
43+
]
44+
},
45+
"value": "http://acplt.org/ValueId/ACPLT",
46+
"valueId":
47+
{
48+
"keys": [
49+
{
50+
"idType": "Iri",
51+
"type": "GlobalReference",
52+
"value": "http://acplt.org/ValueId/ACPLT"
53+
}
54+
]
55+
},
56+
"valueType": "string",
57+
"qualifiers": [
58+
{
59+
"modelType":
60+
{
61+
"name": "Qualifier"
62+
},
63+
"type": "http://acplt.org/Qualifier/ExampleQualifier",
64+
"value": "100",
65+
"valueType": "int"
66+
},
67+
{
68+
"modelType":
69+
{
70+
"name": "Qualifier"
71+
},
72+
"type": "http://acplt.org/Qualifier/ExampleQualifier2",
73+
"value": "50",
74+
"valueType": "http://www.w3.org/2001/XMLSchema#int"
75+
}
76+
],
77+
"idShort": "ManufacturerName",
78+
"description": [
79+
{
80+
"language": "en-us",
81+
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
82+
},
83+
{
84+
"language": "de",
85+
"text": "Bezeichnung für eine natürliche oder juristische Person, die für die Auslegung, Herstellung und Verpackung sowie die Etikettierung eines Produkts im Hinblick auf das 'Inverkehrbringen' im eigenen Namen verantwortlich ist"
86+
}
8087
]
81-
},
82-
"valueType": "int",
83-
"type": "http://acplt.org/Qualifier/ExampleQualifier"
8488
},
8589
{
86-
"modelType":
87-
{
88-
"name": "Qualifier"
89-
},
90-
"value": "50",
91-
"valueId":
92-
{
93-
"keys": [
94-
{
95-
"type": "GlobalReference",
96-
"idType": "Iri",
97-
"value": "http://acplt.org/ValueId/ExampleValueId"
98-
}
90+
"modelType":
91+
{
92+
"name": "Property"
93+
},
94+
"semanticId":
95+
{
96+
"keys": [
97+
{
98+
"idType": "Iri",
99+
"type": "GlobalReference",
100+
"value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
101+
}
102+
]
103+
},
104+
"value": "978-8234-234-342",
105+
"valueId":
106+
{
107+
"keys": [
108+
{
109+
"idType": "Iri",
110+
"type": "GlobalReference",
111+
"value": "978-8234-234-342"
112+
}
113+
]
114+
},
115+
"valueType": "string",
116+
"idShort": "InstanceId",
117+
"description": [
118+
{
119+
"language": "en-us",
120+
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
121+
},
122+
{
123+
"language": "de",
124+
"text": "Bezeichnung für eine natürliche oder juristische Person, die für die Auslegung, Herstellung und Verpackung sowie die Etikettierung eines Produkts im Hinblick auf das 'Inverkehrbringen' im eigenen Namen verantwortlich ist"
125+
}
99126
]
100-
},
101-
"valueType": "int",
102-
"type": "http://acplt.org/Qualifier/ExampleQualifier2"
103127
}
104-
],
105-
"value": "ACPLT",
106-
"valueId":
107-
{
108-
"keys": [
109-
{
110-
"type": "GlobalReference",
111-
"idType": "Iri",
112-
"value": "http://acplt.org/ValueId/ExampleValueId"
113-
}
114-
]
115-
},
116-
"valueType": "string"
117-
},
118-
{
119-
"idShort": "InstanceId",
120-
"description": [
128+
],
129+
"description": [
121130
{
122-
"language": "en-us",
123-
"text": "Legally valid designation of the natural or judicial person which is directly responsible for the design, production, packaging and labeling of a product in respect to its being brought into circulation."
131+
"language": "en-us",
132+
"text": "An example asset identification submodel for the test application"
124133
},
125134
{
126-
"language": "de",
127-
"text": "Bezeichnung für eine natürliche oder juristische Person, die für die Auslegung, Herstellung und Verpackung sowie die Etikettierung eines Produkts im Hinblick auf das 'Inverkehrbringen' im eigenen Namen verantwortlich ist"
135+
"language": "de",
136+
"text": "Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung"
128137
}
129-
],
130-
"modelType":
131-
{
132-
"name": "Property"
133-
},
134-
"semanticId":
135-
{
136-
"keys": [
137-
{
138-
"type": "GlobalReference",
139-
"idType": "Iri",
140-
"value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
141-
}
142-
]
143-
},
144-
"value": "978-8234-234-342",
145-
"valueId":
146-
{
147-
"keys": [
148-
{
149-
"type": "GlobalReference",
150-
"idType": "Iri",
151-
"value": "http://acplt.org/ValueId/ExampleValueId"
152-
}
153-
]
154-
},
155-
"valueType": "string"
156-
}
157-
]
158-
}
138+
]
139+
}

0 commit comments

Comments
 (0)