diff --git a/dataformat-aml/src/test/java/io/adminshell/aas/v3/dataformat/aml/deserialize/AmlDeserializerTest.java b/dataformat-aml/src/test/java/io/adminshell/aas/v3/dataformat/aml/deserialize/AmlDeserializerTest.java
index 0b3d509c..c9f0e389 100644
--- a/dataformat-aml/src/test/java/io/adminshell/aas/v3/dataformat/aml/deserialize/AmlDeserializerTest.java
+++ b/dataformat-aml/src/test/java/io/adminshell/aas/v3/dataformat/aml/deserialize/AmlDeserializerTest.java
@@ -36,13 +36,13 @@ public class AmlDeserializerTest {
private final AmlDeserializer deserializer = new AmlDeserializer();
- AssetAdministrationShellEnvironment actual;
- AssetAdministrationShellEnvironment expected;
+ private AssetAdministrationShellEnvironment actual;
+ private AssetAdministrationShellEnvironment expected;
@Before
public void init() throws FileNotFoundException, DeserializationException {
actual = deserializer.read(FullExample.FILE);
- expected = AASFull.ENVIRONMENT;
+ expected = AASFull.createEnvironment();
}
@Test
diff --git a/dataformat-aml/src/test/resources/test_demo_full_example.aml b/dataformat-aml/src/test/resources/test_demo_full_example.aml
index a4dcbe63..147423a9 100644
--- a/dataformat-aml/src/test/resources/test_demo_full_example.aml
+++ b/dataformat-aml/src/test/resources/test_demo_full_example.aml
@@ -192,6 +192,10 @@
ExampleOperation
+
+ TEMPLATE
+
+
(GlobalReference)[IRI]http://acplt.org/Operations/ExampleOperation
@@ -224,7 +228,7 @@
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
@@ -259,7 +263,7 @@
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
@@ -294,7 +298,7 @@
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
@@ -412,7 +416,7 @@
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
@@ -708,11 +712,11 @@
- (GlobalReference)[IRI]http://acplt.org/ValueId/ExampleValueId
+ (GlobalReference)[IRI]http://acplt.org/ValueId/ExampleValue2
- exampleValue2
+ http://acplt.org/ValueId/ExampleValue2
@@ -745,7 +749,7 @@
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
@@ -846,10 +850,6 @@
http://acplt.org/Qualifier/ExampleQualifier
-
- (GlobalReference)[IRI]http://acplt.org/ValueId/ExampleValueId
-
-
100
@@ -861,10 +861,6 @@
http://acplt.org/Qualifier/ExampleQualifier2
-
- (GlobalReference)[IRI]http://acplt.org/ValueId/ExampleValueId
-
-
50
@@ -875,11 +871,11 @@
- (GlobalReference)[IRI]http://acplt.org/ValueId/ExampleValueId
+ (GlobalReference)[IRI]http://acplt.org/ValueId/ACPLT
- ACPLT
+ http://acplt.org/ValueId/ACPLT
@@ -903,7 +899,7 @@
- (GlobalReference)[IRI]http://acplt.org/ValueId/ExampleValueId
+ (GlobalReference)[IRI]978-8234-234-342
@@ -916,7 +912,7 @@
-
+
@@ -929,7 +925,7 @@
-
+ Test_AssetAdministrationShell_Mandatory
@@ -943,9 +939,9 @@
-
+
-
+ Test_Submodel_Mandatory
@@ -988,6 +984,10 @@
ExampleOperation
+
+ TEMPLATE
+
+
@@ -1125,9 +1125,9 @@
-
+
-
+ Test_Submodel2_Mandatory
@@ -1346,6 +1346,10 @@
ExampleOperation
+
+ TEMPLATE
+
+
(GlobalReference)[IRI]http://acplt.org/Operations/ExampleOperation
@@ -1844,9 +1848,9 @@
-
+
-
+ Test_ConceptDescription_Mandatory
@@ -3285,7 +3289,7 @@
-
+
@@ -3298,7 +3302,7 @@
-
+ Test_AssetAdministrationShell_Mandatory
@@ -3312,9 +3316,9 @@
-
+
-
+ Test_Submodel_Mandatory
@@ -3357,6 +3361,10 @@
ExampleOperation
+
+ TEMPLATE
+
+
@@ -3494,9 +3502,9 @@
-
+
-
+ Test_Submodel2_Mandatory
@@ -3518,9 +3526,9 @@
-
+
-
+ Test_Submodel_Mandatory
@@ -3563,6 +3571,10 @@
ExampleOperation
+
+ TEMPLATE
+
+
diff --git a/dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core/AASFull.java b/dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core/AASFull.java
index 997869d4..1f42d4f2 100644
--- a/dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core/AASFull.java
+++ b/dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core/AASFull.java
@@ -17,7 +17,6 @@
import java.util.Arrays;
import java.util.Base64;
-import java.util.List;
import io.adminshell.aas.v3.model.AssetAdministrationShell;
import io.adminshell.aas.v3.model.AssetAdministrationShellEnvironment;
@@ -64,1735 +63,1782 @@
public class AASFull {
- public static final AssetAdministrationShell AAS_1 = new DefaultAssetAdministrationShell.Builder()
- .idShort("TestAssetAdministrationShell")
- .description(new LangString("An Example Asset Administration Shell for the test application", "en-us"))
- .description(new LangString("Ein Beispiel-Verwaltungsschale für eine Test-Anwendung", "de"))
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_AssetAdministrationShell")
- .build())
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .revision("0")
- .build())
- .derivedFrom(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.ASSET_ADMINISTRATION_SHELL)
- .idType(KeyType.IRI)
- .value("https://acplt.org/TestAssetAdministrationShell2")
- .build())
- .build())
- .assetInformation(new DefaultAssetInformation.Builder()
- .assetKind(AssetKind.INSTANCE)
- .globalAssetId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.ASSET)
- .idType(KeyType.IRI)
- .value("https://acplt.org/Test_Asset")
- .build())
- .build())
- .billOfMaterial((new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .idType(KeyType.IRI)
- .value("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
- .build()))
- .build())
- .build())
- .submodel(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel")
- .idType(KeyType.IRI)
- .build())
- .build())
- .submodel(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
- .idType(KeyType.IRI)
- .build())
- .build())
- .submodel(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("http://acplt.org/Submodels/Assets/TestAsset/Identification")
- .idType(KeyType.IRI)
- .build())
- .build())
- .build();
+ public static final AssetAdministrationShell AAS_1 = createAAS1();
+ public static final AssetAdministrationShell AAS_2 = createAAS2();
+ public static final AssetAdministrationShell AAS_3 = createAAS3();
+ public static final AssetAdministrationShell AAS_4 = createAAS4();
+ public static final Submodel SUBMODEL_1 = createSubmodel1();
+ public static final Submodel SUBMODEL_2 = createSubmodel2();
+ public static final Submodel SUBMODEL_3 = createSubmodel3();
+ public static final Submodel SUBMODEL_4 = createSubmodel4();
+ public static final Submodel SUBMODEL_5 = createSubmodel5();
+ public static final Submodel SUBMODEL_6 = createSubmodel6();
+ public static final Submodel SUBMODEL_7 = createSubmodel7();
+ public final static ConceptDescription CONCEPT_DESCRIPTION_1 = createConceptDescription1();
+ public final static ConceptDescription CONCEPT_DESCRIPTION_2 = createConceptDescription2();
+ public final static ConceptDescription CONCEPT_DESCRIPTION_3 = createConceptDescription3();
+ public final static ConceptDescription CONCEPT_DESCRIPTION_4 = createConceptDescription4();
+ public static final AssetAdministrationShellEnvironment ENVIRONMENT = createEnvironment();
- public static final AssetAdministrationShell AAS_2 = new DefaultAssetAdministrationShell.Builder()
- .idShort("Test_AssetAdministrationShell_Mandatory")
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_AssetAdministrationShell_Mandatory")
- .build())
- .assetInformation(new DefaultAssetInformation.Builder()
- .assetKind(AssetKind.INSTANCE)
- .globalAssetId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.ASSET)
- .idType(KeyType.IRI)
- .value("https://acplt.org/Test_Asset_Mandatory")
- .build())
- .build())
- .build())
- .submodel(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Mandatory")
- .idType(KeyType.IRI)
- .build())
- .build())
- .submodel(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel2_Mandatory")
- .idType(KeyType.IRI)
- .build())
- .build())
- .build();
+ public static AssetAdministrationShell createAAS1() {
+ return new DefaultAssetAdministrationShell.Builder()
+ .idShort("TestAssetAdministrationShell")
+ .description(new LangString("An Example Asset Administration Shell for the test application", "en-us"))
+ .description(new LangString("Ein Beispiel-Verwaltungsschale für eine Test-Anwendung", "de"))
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_AssetAdministrationShell")
+ .build())
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .revision("0")
+ .build())
+ .derivedFrom(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.ASSET_ADMINISTRATION_SHELL)
+ .idType(KeyType.IRI)
+ .value("https://acplt.org/TestAssetAdministrationShell2")
+ .build())
+ .build())
+ .assetInformation(new DefaultAssetInformation.Builder()
+ .assetKind(AssetKind.INSTANCE)
+ .globalAssetId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.ASSET)
+ .idType(KeyType.IRI)
+ .value("https://acplt.org/Test_Asset")
+ .build())
+ .build())
+ .billOfMaterial((new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
+ .build()))
+ .build())
+ .build())
+ .submodel(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .submodel(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .submodel(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("http://acplt.org/Submodels/Assets/TestAsset/Identification")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .build();
+ }
- public static final AssetAdministrationShell AAS_3 = new DefaultAssetAdministrationShell.Builder()
- .idShort("Test_AssetAdministrationShell2_Mandatory")
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_AssetAdministrationShell2_Mandatory")
- .build())
- .assetInformation(new DefaultAssetInformation.Builder()
- .assetKind(AssetKind.INSTANCE)
- .globalAssetId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.ASSET)
- .idType(KeyType.IRI)
- .value("https://acplt.org/Test_Asset_Mandatory")
- .build())
- .build())
- .build())
- .build();
+ public static AssetAdministrationShell createAAS2() {
+ return new DefaultAssetAdministrationShell.Builder()
+ .idShort("Test_AssetAdministrationShell_Mandatory")
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_AssetAdministrationShell_Mandatory")
+ .build())
+ .assetInformation(new DefaultAssetInformation.Builder()
+ .assetKind(AssetKind.INSTANCE)
+ .globalAssetId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.ASSET)
+ .idType(KeyType.IRI)
+ .value("https://acplt.org/Test_Asset_Mandatory")
+ .build())
+ .build())
+ .build())
+ .submodel(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Mandatory")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .submodel(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel2_Mandatory")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .build();
+ }
- public static final AssetAdministrationShell AAS_4 = new DefaultAssetAdministrationShell.Builder()
- .idShort("TestAssetAdministrationShell")
- .description(new LangString("An Example Asset Administration Shell for the test application", "en-us"))
- .description(new LangString("Ein Beispiel-Verwaltungsschale für eine Test-Anwendung", "de"))
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_AssetAdministrationShell_Missing")
- .build())
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .revision("0")
- .build())
- .assetInformation(new DefaultAssetInformation.Builder()
- .assetKind(AssetKind.INSTANCE)
- .globalAssetId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.ASSET)
- .idType(KeyType.IRI)
- .value("https://acplt.org/Test_Asset_Missing")
- .build())
- .build())
- .build())
- .submodel(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Missing")
- .idType(KeyType.IRI)
- .build())
- .build())
- .view(new DefaultView.Builder()
- .idShort("ExampleView")
- .containedElement((new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Missing")
- .idType(KeyType.IRI)
- .build()))
- .build())
- .build())
- .view(new DefaultView.Builder()
- .idShort("ExampleView2")
- .build())
- .build();
+ public static AssetAdministrationShell createAAS3() {
+ return new DefaultAssetAdministrationShell.Builder()
+ .idShort("Test_AssetAdministrationShell2_Mandatory")
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_AssetAdministrationShell2_Mandatory")
+ .build())
+ .assetInformation(new DefaultAssetInformation.Builder()
+ .assetKind(AssetKind.INSTANCE)
+ .globalAssetId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.ASSET)
+ .idType(KeyType.IRI)
+ .value("https://acplt.org/Test_Asset_Mandatory")
+ .build())
+ .build())
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_1 = new DefaultSubmodel.Builder()
- .idShort("Identification")
- .description(new LangString("An example asset identification submodel for the test application", "en-us"))
- .description(new LangString("Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung", "de"))
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("http://acplt.org/Submodels/Assets/TestAsset/Identification")
- .build())
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .revision("0")
- .build())
- .kind(ModelingKind.INSTANCE)
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .idType(KeyType.IRI)
- .value("http://acplt.org/SubmodelTemplates/AssetIdentification")
- .build())
- .build())
- .submodelElement(new DefaultProperty.Builder()
- .idShort("ManufacturerName")
- .description(new LangString("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.", "en-us"))
- .description(new LangString("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", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("0173-1#02-AAO677#002")
- .idType(KeyType.IRI)
- .build())
- .build())
- .qualifier(new DefaultQualifier.Builder()
- .value("100")
+ public static AssetAdministrationShell createAAS4() {
+ return new DefaultAssetAdministrationShell.Builder()
+ .idShort("TestAssetAdministrationShell")
+ .description(new LangString("An Example Asset Administration Shell for the test application", "en-us"))
+ .description(new LangString("Ein Beispiel-Verwaltungsschale für eine Test-Anwendung", "de"))
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_AssetAdministrationShell_Missing")
+ .build())
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .revision("0")
+ .build())
+ .assetInformation(new DefaultAssetInformation.Builder()
+ .assetKind(AssetKind.INSTANCE)
+ .globalAssetId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.ASSET)
+ .idType(KeyType.IRI)
+ .value("https://acplt.org/Test_Asset_Missing")
+ .build())
+ .build())
+ .build())
+ .submodel(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Missing")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .view(new DefaultView.Builder()
+ .idShort("ExampleView")
+ .containedElement((new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Missing")
+ .idType(KeyType.IRI)
+ .build()))
+ .build())
+ .build())
+ .view(new DefaultView.Builder()
+ .idShort("ExampleView2")
+ .build())
+ .build();
+ }
- .valueType("int")
- .type("http://acplt.org/Qualifier/ExampleQualifier")
- .build())
- .qualifier(new DefaultQualifier.Builder()
- .value("50")
+ public static Submodel createSubmodel1() {
+ return new DefaultSubmodel.Builder()
+ .idShort("Identification")
+ .description(new LangString("An example asset identification submodel for the test application", "en-us"))
+ .description(new LangString("Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung", "de"))
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("http://acplt.org/Submodels/Assets/TestAsset/Identification")
+ .build())
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .revision("0")
+ .build())
+ .kind(ModelingKind.INSTANCE)
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/SubmodelTemplates/AssetIdentification")
+ .build())
+ .build())
+ .submodelElement(new DefaultProperty.Builder()
+ .idShort("ManufacturerName")
+ .description(new LangString("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.", "en-us"))
+ .description(new LangString("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", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("0173-1#02-AAO677#002")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .qualifier(new DefaultQualifier.Builder()
+ .value("100")
+ .valueType("int")
+ .type("http://acplt.org/Qualifier/ExampleQualifier")
+ .build())
+ .qualifier(new DefaultQualifier.Builder()
+ .value("50")
+ .valueType("int")
+ .type("http://acplt.org/Qualifier/ExampleQualifier2")
+ .build())
+ .value("http://acplt.org/ValueId/ACPLT")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ACPLT")
+ .build())
+ .build())
+ .valueType("string")
+ .build())
+ .submodelElement(new DefaultProperty.Builder()
+ .idShort("InstanceId")
+ .description(new LangString("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.", "en-us"))
+ .description(new LangString("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", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value("978-8234-234-342")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("978-8234-234-342")
+ .build())
+ .build())
+ .valueType("string")
+ .build())
+ .build();
+ }
- .valueType("http://www.w3.org/2001/XMLSchema#int")
- .type("http://acplt.org/Qualifier/ExampleQualifier2")
- .build())
- .value("http://acplt.org/ValueId/ACPLT")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ACPLT")
- .build())
- .build())
- .valueType("string")
- .build())
- .submodelElement(new DefaultProperty.Builder()
- .idShort("InstanceId")
- .description(new LangString("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.", "en-us"))
- .description(new LangString("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", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value("978-8234-234-342")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("978-8234-234-342")
- .build())
- .build())
- .valueType("string")
- .build())
- .build();
+ public static Submodel createSubmodel2() {
+ return new DefaultSubmodel.Builder()
+ .idShort("BillOfMaterial")
+ .description(new LangString("An example bill of material submodel for the test application", "en-us"))
+ .description(new LangString("Ein Beispiel-BillofMaterial-Submodel für eine Test-Anwendung", "de"))
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
+ .build())
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .build())
+ .kind(ModelingKind.INSTANCE)
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/SubmodelTemplates/BillOfMaterial")
+ .build())
+ .build())
+ .submodelElement(new DefaultEntity.Builder()
+ .idShort("ExampleEntity")
+ .description(new LangString("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.", "en-us"))
+ .description(new LangString("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", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .statement(new DefaultProperty.Builder()
+ .idShort("ExampleProperty2")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value("http://acplt.org/ValueId/ExampleValue2")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ExampleValue2")
+ .build())
+ .build())
+ .valueType("string")
+ .build())
+ .statement(new DefaultProperty.Builder()
+ .idShort("ExampleProperty")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .build())
+ .build())
+ .valueType("string")
+ .build())
+ .entityType(EntityType.CO_MANAGED_ENTITY)
+ .build())
+ .submodelElement(new DefaultEntity.Builder()
+ .idShort("ExampleEntity2")
+ .description(new LangString("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.", "en-us"))
+ .description(new LangString("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", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .entityType(EntityType.SELF_MANAGED_ENTITY)
+ .globalAssetId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.ASSET)
+ .idType(KeyType.IRI)
+ .value("https://acplt.org/Test_Asset2")
+ .build())
+ .build())
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_2 = new DefaultSubmodel.Builder()
- .idShort("BillOfMaterial")
- .description(new LangString("An example bill of material submodel for the test application", "en-us"))
- .description(new LangString("Ein Beispiel-BillofMaterial-Submodel für eine Test-Anwendung", "de"))
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
- .build())
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .build())
- .kind(ModelingKind.INSTANCE)
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .idType(KeyType.IRI)
- .value("http://acplt.org/SubmodelTemplates/BillOfMaterial")
- .build())
- .build())
- .submodelElement(new DefaultEntity.Builder()
- .idShort("ExampleEntity")
- .description(new LangString("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.", "en-us"))
- .description(new LangString("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", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber")
- .idType(KeyType.IRI)
- .build())
- .build())
- .statement(new DefaultProperty.Builder()
- .idShort("ExampleProperty2")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value("http://acplt.org/ValueId/ExampleValue2")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ExampleValue2")
- .build())
- .build())
- .valueType("string")
- .build())
- .statement(new DefaultProperty.Builder()
- .idShort("ExampleProperty")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value("http://acplt.org/ValueId/ExampleValueId")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ExampleValueId")
- .build())
- .build())
- .valueType("string")
- .build())
- .entityType(EntityType.CO_MANAGED_ENTITY)
- .build())
- .submodelElement(new DefaultEntity.Builder()
- .idShort("ExampleEntity2")
- .description(new LangString("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.", "en-us"))
- .description(new LangString("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", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber")
- .idType(KeyType.IRI)
- .build())
- .build())
- .entityType(EntityType.SELF_MANAGED_ENTITY)
- .globalAssetId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.ASSET)
- .idType(KeyType.IRI)
- .value("https://acplt.org/Test_Asset2")
- .build())
- .build())
- .build())
- .build();
+ public static Submodel createSubmodel3() {
+ return new DefaultSubmodel.Builder()
+ .idShort("TestSubmodel")
+ .description(new LangString("An example submodel for the test application", "en-us"))
+ .description(new LangString("Ein Beispiel-Teilmodell für eine Test-Anwendung", "de"))
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_Submodel")
+ .build())
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .revision("0")
+ .build())
+ .kind(ModelingKind.INSTANCE)
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/SubmodelTemplates/ExampleSubmodel")
+ .build())
+ .build())
+ .submodelElement(new DefaultRelationshipElement.Builder()
+ .idShort("ExampleRelationshipElement")
+ .category("Parameter")
+ .description(new LangString("Example RelationshipElement object", "en-us"))
+ .description(new LangString("Beispiel RelationshipElement Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/RelationshipElements/ExampleRelationshipElement")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .first(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .second(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.ENTITY)
+ .value("ExampleEntity")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty2")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultAnnotatedRelationshipElement.Builder()
+ .idShort("ExampleAnnotatedRelationshipElement")
+ .category("Parameter")
+ .description(new LangString("Example AnnotatedRelationshipElement object", "en-us"))
+ .description(new LangString("Beispiel AnnotatedRelationshipElement Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/RelationshipElements/ExampleAnnotatedRelationshipElement")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .first(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .second(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.ENTITY)
+ .value("ExampleEntity")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty2")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .annotation(new DefaultProperty.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .idShort("ExampleProperty3")
+ .category("Parameter")
+ .value("some example annotation")
+ .valueType("string")
+ .build())
+ .build())
+ .submodelElement(new DefaultOperation.Builder()
+ .idShort("ExampleOperation")
+ .kind(ModelingKind.TEMPLATE)
+ .category("Parameter")
+ .description(new LangString("Example Operation object", "en-us"))
+ .description(new LangString("Beispiel Operation Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Operations/ExampleOperation")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .inputVariable(new DefaultOperationVariable.Builder()
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty1")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .build())
+ .build())
+ .valueType("string")
+ .build())
+ .build())
+ .outputVariable(new DefaultOperationVariable.Builder()
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty2")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .build())
+ .build())
+ .valueType("string")
+ .build())
+ .build())
+ .inoutputVariable(new DefaultOperationVariable.Builder()
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty3")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .build())
+ .build())
+ .valueType("string")
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultCapability.Builder()
+ .idShort("ExampleCapability")
+ .category("Parameter")
+ .description(new LangString("Example Capability object", "en-us"))
+ .description(new LangString("Beispiel Capability Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Capabilities/ExampleCapability")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultBasicEvent.Builder()
+ .idShort("ExampleBasicEvent")
+ .category("Parameter")
+ .description(new LangString("Example BasicEvent object", "en-us"))
+ .description(new LangString("Beispiel BasicEvent Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Events/ExampleBasicEvent")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .observed(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .idType(KeyType.ID_SHORT)
+ .value("ExampleProperty")
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionOrdered")
+ .category("Parameter")
+ .description(new LangString("Example SubmodelElementCollectionOrdered object", "en-us"))
+ .description(new LangString("Beispiel SubmodelElementCollectionOrdered Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionOrdered")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .build())
+ .build())
+ .valueType("string")
+ .build())
+ .value(new DefaultMultiLanguageProperty.Builder()
+ .idShort("ExampleMultiLanguageProperty")
+ .category("Constant")
+ .description(new LangString("Example MultiLanguageProperty object", "en-us"))
+ .description(new LangString("Beispiel MulitLanguageProperty Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/MultiLanguageProperties/ExampleMultiLanguageProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value(new LangString("Example value of a MultiLanguageProperty element", "en-us"))
+ .value(new LangString("Beispielswert für ein MulitLanguageProperty-Element", "de"))
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ExampleMultiLanguageValueId")
+ .build())
+ .build())
+ .build())
+ .value(new DefaultRange.Builder()
+ .idShort("ExampleRange")
+ .category("Parameter")
+ .description(new LangString("Example Range object", "en-us"))
+ .description(new LangString("Beispiel Range Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Ranges/ExampleRange")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .valueType("int")
+ .min("0")
+ .max("100")
+ .build())
+ .ordered(true)
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionUnordered")
+ .category("Parameter")
+ .description(new LangString("Example SubmodelElementCollectionUnordered object", "en-us"))
+ .description(new LangString("Beispiel SubmodelElementCollectionUnordered Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value(new DefaultBlob.Builder()
+ .idShort("ExampleBlob")
+ .category("Parameter")
+ .description(new LangString("Example Blob object", "en-us"))
+ .description(new LangString("Beispiel Blob Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder().type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Blobs/ExampleBlob")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .mimeType("application/pdf")
+ .value(Base64.getDecoder().decode("AQIDBAU="))
+ .build())
+ .value(new DefaultFile.Builder()
+ .idShort("ExampleFile")
+ .category("Parameter")
+ .description(new LangString("Example File object", "en-us"))
+ .description(new LangString("Beispiel File Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Files/ExampleFile")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value("/TestFile.pdf")
+ .mimeType("application/pdf")
+ .build())
+ .value(new DefaultReferenceElement.Builder()
+ .idShort("ExampleReferenceElement")
+ .category("Parameter")
+ .description(new LangString("Example Reference Element object", "en-us"))
+ .description(new LangString("Beispiel Reference Element Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE).value(
+ "http://acplt.org/ReferenceElements/ExampleReferenceElement")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .idType(KeyType.ID_SHORT)
+ .value("ExampleProperty")
+ .build())
+ .build())
+ .build())
+ .ordered(false)
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_3 = new DefaultSubmodel.Builder()
- .idShort("TestSubmodel")
- .description(new LangString("An example submodel for the test application", "en-us"))
- .description(new LangString("Ein Beispiel-Teilmodell für eine Test-Anwendung", "de"))
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_Submodel")
- .build())
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .revision("0")
- .build())
- .kind(ModelingKind.INSTANCE)
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/SubmodelTemplates/ExampleSubmodel")
- .build())
- .build())
- .submodelElement(new DefaultRelationshipElement.Builder()
- .idShort("ExampleRelationshipElement")
- .category("Parameter")
- .description(new LangString("Example RelationshipElement object", "en-us"))
- .description(new LangString("Beispiel RelationshipElement Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/RelationshipElements/ExampleRelationshipElement")
- .idType(KeyType.IRI)
- .build())
- .build())
- .first(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .second(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.ENTITY)
- .value("ExampleEntity")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty2")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .build())
- .submodelElement(new DefaultAnnotatedRelationshipElement.Builder()
- .idShort("ExampleAnnotatedRelationshipElement")
- .category("Parameter")
- .description(new LangString("Example AnnotatedRelationshipElement object", "en-us"))
- .description(new LangString("Beispiel AnnotatedRelationshipElement Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/RelationshipElements/ExampleAnnotatedRelationshipElement")
- .idType(KeyType.IRI)
- .build())
- .build())
- .first(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .second(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.ENTITY)
- .value("ExampleEntity")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty2")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .annotation(new DefaultProperty.Builder()
- .kind(ModelingKind.INSTANCE)
- .idShort("ExampleProperty3")
- .category("Parameter")
- .value("some example annotation")
- .valueType("string")
- .build())
- .build())
- .submodelElement(new DefaultOperation.Builder()
- .idShort("ExampleOperation")
- .kind(ModelingKind.TEMPLATE)
- .category("Parameter")
- .description(new LangString("Example Operation object", "en-us"))
- .description(new LangString("Beispiel Operation Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Operations/ExampleOperation")
- .idType(KeyType.IRI)
- .build())
- .build())
- .inputVariable(new DefaultOperationVariable.Builder()
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty1")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value("http://acplt.org/ValueId/ExampleValueId")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ExampleValueId")
- .build())
- .build())
- .valueType("string")
- .build())
- .build())
- .outputVariable(new DefaultOperationVariable.Builder()
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty2")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value("http://acplt.org/ValueId/ExampleValueId")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ExampleValueId")
- .build())
- .build())
- .valueType("string")
- .build())
- .build())
- .inoutputVariable(new DefaultOperationVariable.Builder()
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty3")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value("http://acplt.org/ValueId/ExampleValueId")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ExampleValueId")
- .build())
- .build())
- .valueType("string")
- .build())
- .build())
- .build())
- .submodelElement(new DefaultCapability.Builder()
- .idShort("ExampleCapability")
- .category("Parameter")
- .description(new LangString("Example Capability object", "en-us"))
- .description(new LangString("Beispiel Capability Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Capabilities/ExampleCapability")
- .idType(KeyType.IRI)
- .build())
- .build())
- .build())
- .submodelElement(new DefaultBasicEvent.Builder()
- .idShort("ExampleBasicEvent")
- .category("Parameter")
- .description(new LangString("Example BasicEvent object", "en-us"))
- .description(new LangString("Beispiel BasicEvent Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Events/ExampleBasicEvent")
- .idType(KeyType.IRI)
- .build())
- .build())
- .observed(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .idType(KeyType.ID_SHORT)
- .value("ExampleProperty")
- .build())
- .build())
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionOrdered")
- .category("Parameter")
- .description(new LangString("Example SubmodelElementCollectionOrdered object", "en-us"))
- .description(new LangString("Beispiel SubmodelElementCollectionOrdered Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionOrdered")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value("http://acplt.org/ValueId/ExampleValueId")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ExampleValueId")
- .build())
- .build())
- .valueType("string")
- .build())
- .value(new DefaultMultiLanguageProperty.Builder()
- .idShort("ExampleMultiLanguageProperty")
- .category("Constant")
- .description(new LangString("Example MultiLanguageProperty object", "en-us"))
- .description(new LangString("Beispiel MulitLanguageProperty Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/MultiLanguageProperties/ExampleMultiLanguageProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value(new LangString("Example value of a MultiLanguageProperty element", "en-us"))
- .value(new LangString("Beispielswert für ein MulitLanguageProperty-Element", "de"))
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ExampleMultiLanguageValueId")
- .build())
- .build())
- .build())
- .value(new DefaultRange.Builder()
- .idShort("ExampleRange")
- .category("Parameter")
- .description(new LangString("Example Range object", "en-us"))
- .description(new LangString("Beispiel Range Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Ranges/ExampleRange")
- .idType(KeyType.IRI)
- .build())
- .build())
- .valueType("int")
- .min("0")
- .max("100")
- .build())
- .ordered(true)
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionUnordered")
- .category("Parameter")
- .description(new LangString("Example SubmodelElementCollectionUnordered object", "en-us"))
- .description(new LangString("Beispiel SubmodelElementCollectionUnordered Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value(new DefaultBlob.Builder()
- .idShort("ExampleBlob")
- .category("Parameter")
- .description(new LangString("Example Blob object", "en-us"))
- .description(new LangString("Beispiel Blob Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder().type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Blobs/ExampleBlob")
- .idType(KeyType.IRI)
- .build())
- .build())
- .mimeType("application/pdf")
- .value(Base64.getDecoder().decode("AQIDBAU="))
- .build())
- .value(new DefaultFile.Builder()
- .idShort("ExampleFile")
- .category("Parameter")
- .description(new LangString("Example File object", "en-us"))
- .description(new LangString("Beispiel File Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Files/ExampleFile")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value("/TestFile.pdf")
- .mimeType("application/pdf")
- .build())
- .value(new DefaultReferenceElement.Builder()
- .idShort("ExampleReferenceElement")
- .category("Parameter")
- .description(new LangString("Example Reference Element object", "en-us"))
- .description(new LangString("Beispiel Reference Element Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE).value(
- "http://acplt.org/ReferenceElements/ExampleReferenceElement")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .idType(KeyType.ID_SHORT)
- .value("ExampleProperty")
- .build())
- .build())
- .build())
- .ordered(false)
- .build())
- .build();
+ public static Submodel createSubmodel4() {
+ return new DefaultSubmodel.Builder()
+ .idShort("Test_Submodel_Mandatory")
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_Submodel_Mandatory")
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .submodelElement(new DefaultRelationshipElement.Builder()
+ .idShort("ExampleRelationshipElement")
+ .first(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Mandatory")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .second(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Mandatory")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.MULTI_LANGUAGE_PROPERTY)
+ .value("ExampleMultiLanguageProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultAnnotatedRelationshipElement.Builder()
+ .idShort("ExampleAnnotatedRelationshipElement")
+ .first(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Mandatory")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .second(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Mandatory")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.MULTI_LANGUAGE_PROPERTY)
+ .value("ExampleMultiLanguageProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultOperation.Builder()
+ .idShort("ExampleOperation")
+ .kind(ModelingKind.TEMPLATE)
+ .build())
+ .submodelElement(new DefaultCapability.Builder()
+ .idShort("ExampleCapability")
+ .build())
+ .submodelElement(new DefaultBasicEvent.Builder()
+ .idShort("ExampleBasicEvent")
+ .observed(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Mandatory")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .idType(KeyType.ID_SHORT)
+ .value("ExampleProperty")
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionOrdered")
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty")
+ .value(null)
+ .valueType("string")
+ .build())
+ .value(new DefaultMultiLanguageProperty.Builder()
+ .idShort("ExampleMultiLanguageProperty")
+ .build())
+ .value(new DefaultRange.Builder()
+ .idShort("ExampleRange")
+ .valueType("int")
+ .min(null)
+ .max(null)
+ .build())
+ .ordered(true)
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionUnordered")
+ .value(new DefaultBlob.Builder()
+ .idShort("ExampleBlob")
+ .mimeType("application/pdf")
+ .build())
+ .value(new DefaultFile.Builder()
+ .idShort("ExampleFile")
+ .value(null)
+ .mimeType("application/pdf")
+ .build())
+ .value(new DefaultReferenceElement.Builder()
+ .idShort("ExampleReferenceElement")
+ .build())
+ .ordered(false)
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionUnordered2")
+ .ordered(false)
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_4 = new DefaultSubmodel.Builder()
- .idShort("Test_Submodel_Mandatory")
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_Submodel_Mandatory")
- .build())
- .kind(ModelingKind.TEMPLATE)
- .submodelElement(new DefaultRelationshipElement.Builder()
- .idShort("ExampleRelationshipElement")
- .first(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Mandatory")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .second(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Mandatory")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.MULTI_LANGUAGE_PROPERTY)
- .value("ExampleMultiLanguageProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .build())
- .submodelElement(new DefaultAnnotatedRelationshipElement.Builder()
- .idShort("ExampleAnnotatedRelationshipElement")
- .first(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Mandatory")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .second(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Mandatory")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.MULTI_LANGUAGE_PROPERTY)
- .value("ExampleMultiLanguageProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .build())
- .submodelElement(new DefaultOperation.Builder()
- .idShort("ExampleOperation")
- .kind(ModelingKind.TEMPLATE)
- .build())
- .submodelElement(new DefaultCapability.Builder()
- .idShort("ExampleCapability")
- .build())
- .submodelElement(new DefaultBasicEvent.Builder()
- .idShort("ExampleBasicEvent")
- .observed(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Mandatory")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .idType(KeyType.ID_SHORT)
- .value("ExampleProperty")
- .build())
- .build())
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionOrdered")
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty")
- .value(null)
- .valueType("string")
- .build())
- .value(new DefaultMultiLanguageProperty.Builder()
- .idShort("ExampleMultiLanguageProperty")
- .build())
- .value(new DefaultRange.Builder()
- .idShort("ExampleRange")
- .valueType("int")
- .min(null)
- .max(null)
- .build())
- .ordered(true)
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionUnordered")
- .value(new DefaultBlob.Builder()
- .idShort("ExampleBlob")
- .mimeType("application/pdf")
- .build())
- .value(new DefaultFile.Builder()
- .idShort("ExampleFile")
- .value(null)
- .mimeType("application/pdf")
- .build())
- .value(new DefaultReferenceElement.Builder()
- .idShort("ExampleReferenceElement")
- .build())
- .ordered(false)
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionUnordered2")
- .ordered(false)
- .build())
- .build();
+ public static Submodel createSubmodel5() {
+ return new DefaultSubmodel.Builder()
+ .idShort("Test_Submodel2_Mandatory")
+ .kind(ModelingKind.INSTANCE)
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_Submodel2_Mandatory")
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_5 = new DefaultSubmodel.Builder()
- .idShort("Test_Submodel2_Mandatory")
- .kind(ModelingKind.INSTANCE)
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_Submodel2_Mandatory")
- .build())
- .build();
+ public static Submodel createSubmodel6() {
+ return new DefaultSubmodel.Builder()
+ .idShort("TestSubmodel")
+ .description(new LangString("An example submodel for the test application", "en-us"))
+ .description(new LangString("Ein Beispiel-Teilmodell für eine Test-Anwendung", "de"))
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_Submodel_Missing")
+ .build())
+ .kind(ModelingKind.INSTANCE)
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .revision("0").build())
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/SubmodelTemplates/ExampleSubmodel")
+ .build())
+ .build())
+ .submodelElement(new DefaultRelationshipElement.Builder()
+ .idShort("ExampleRelationshipElement")
+ .category("Parameter")
+ .description(new LangString("Example RelationshipElement object", "en-us"))
+ .description(new LangString("Beispiel RelationshipElement Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/RelationshipElements/ExampleRelationshipElement")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .first(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Missing")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .second(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Missing")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.MULTI_LANGUAGE_PROPERTY)
+ .value("ExampleMultiLanguageProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultAnnotatedRelationshipElement.Builder()
+ .idShort("ExampleAnnotatedRelationshipElement")
+ .category("Parameter")
+ .description(new LangString("Example AnnotatedRelationshipElement object", "en-us"))
+ .description(new LangString("Beispiel AnnotatedRelationshipElement Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/RelationshipElements/ExampleAnnotatedRelationshipElement")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .first(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Missing")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .second(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Missing")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.MULTI_LANGUAGE_PROPERTY)
+ .value("ExampleMultiLanguageProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .annotation(new DefaultProperty.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .idShort("ExampleProperty")
+ .category("Parameter")
+ .value("some example annotation")
+ .valueType("string")
+ .build())
+ .build())
+ .submodelElement(new DefaultOperation.Builder()
+ .idShort("ExampleOperation")
+ .kind(ModelingKind.TEMPLATE)
+ .category("Parameter")
+ .description(new LangString("Example Operation object", "en-us"))
+ .description(new LangString("Beispiel Operation Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Operations/ExampleOperation")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .inputVariable(new DefaultOperationVariable.Builder()
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty1")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .qualifier(new DefaultQualifier.Builder()
+ .valueType("string")
+ .type("http://acplt.org/Qualifier/ExampleQualifier")
+ .build())
+ .value("exampleValue")
+ .valueType("string")
+ .build())
+ .build())
+ .outputVariable(new DefaultOperationVariable.Builder()
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty2")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .qualifier(new DefaultQualifier.Builder()
+ .valueType("string")
+ .type("http://acplt.org/Qualifier/ExampleQualifier")
+ .build())
+ .value("exampleValue")
+ .valueType("string")
+ .build())
+ .build())
+ .inoutputVariable(new DefaultOperationVariable.Builder()
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty3")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .qualifier(new DefaultQualifier.Builder()
+ .valueType("string")
+ .type("http://acplt.org/Qualifier/ExampleQualifier")
+ .build())
+ .value("exampleValue")
+ .valueType("string")
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultCapability.Builder()
+ .idShort("ExampleCapability")
+ .category("Parameter")
+ .description(new LangString("Example Capability object", "en-us"))
+ .description(new LangString("Beispiel Capability Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Capabilities/ExampleCapability")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultBasicEvent.Builder()
+ .idShort("ExampleBasicEvent")
+ .category("Parameter")
+ .description(new LangString("Example BasicEvent object", "en-us"))
+ .description(new LangString("Beispiel BasicEvent Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Events/ExampleBasicEvent")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .observed(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Missing")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .idType(KeyType.ID_SHORT)
+ .value("ExampleProperty")
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionOrdered")
+ .category("Parameter")
+ .description(new LangString("Example SubmodelElementCollectionOrdered object", "en-us"))
+ .description(new LangString("Beispiel SubmodelElementCollectionOrdered Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionOrdered")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .qualifier(new DefaultQualifier.Builder()
+ .valueType("string")
+ .type("http://acplt.org/Qualifier/ExampleQualifier")
+ .build())
+ .value("exampleValue")
+ .valueType("string")
+ .build())
+ .value(new DefaultMultiLanguageProperty.Builder()
+ .idShort("ExampleMultiLanguageProperty")
+ .category("Constant")
+ .description(new LangString("Example MultiLanguageProperty object", "en-us"))
+ .description(new LangString("Beispiel MulitLanguageProperty Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/MultiLanguageProperties/ExampleMultiLanguageProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value(new LangString("Example value of a MultiLanguageProperty element", "en-us"))
+ .value(new LangString("Beispielswert für ein MulitLanguageProperty-Element", "de"))
+ .build())
+ .value(new DefaultRange.Builder()
+ .idShort("ExampleRange")
+ .category("Parameter")
+ .description(new LangString("Example Range object", "en-us"))
+ .description(new LangString("Beispiel Range Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Ranges/ExampleRange")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .valueType("int")
+ .min("0")
+ .max("100")
+ .build())
+ .ordered(true)
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionUnordered")
+ .category("Parameter")
+ .description(new LangString("Example SubmodelElementCollectionUnordered object", "en-us"))
+ .description(new LangString("Beispiel SubmodelElementCollectionUnordered Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value(new DefaultBlob.Builder()
+ .idShort("ExampleBlob")
+ .category("Parameter")
+ .description(new LangString("Example Blob object", "en-us"))
+ .description(new LangString("Beispiel Blob Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Blobs/ExampleBlob")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .mimeType("application/pdf")
+ .value(Base64.getDecoder().decode("AQIDBAU="))
+ .build())
+ .value(new DefaultFile.Builder()
+ .idShort("ExampleFile")
+ .category("Parameter")
+ .description(new LangString("Example File object", "en-us"))
+ .description(new LangString("Beispiel File Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Files/ExampleFile")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value("/TestFile.pdf")
+ .mimeType("application/pdf")
+ .build())
+ .value(new DefaultReferenceElement.Builder()
+ .idShort("ExampleReferenceElement")
+ .category("Parameter")
+ .description(new LangString("Example Reference Element object", "en-us"))
+ .description(new LangString("Beispiel Reference Element Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/ReferenceElements/ExampleReferenceElement")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .value(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value("https://acplt.org/Test_Submodel_Missing")
+ .idType(KeyType.IRI)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
+ .value("ExampleSubmodelCollectionOrdered")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .idType(KeyType.ID_SHORT)
+ .value("ExampleProperty")
+ .build())
+ .build())
+ .build())
+ .ordered(false)
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_6 = new DefaultSubmodel.Builder()
- .idShort("TestSubmodel")
- .description(new LangString("An example submodel for the test application", "en-us"))
- .description(new LangString("Ein Beispiel-Teilmodell für eine Test-Anwendung", "de"))
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_Submodel_Missing")
- .build())
- .kind(ModelingKind.INSTANCE)
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .revision("0").build())
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/SubmodelTemplates/ExampleSubmodel")
- .build())
- .build())
- .submodelElement(new DefaultRelationshipElement.Builder()
- .idShort("ExampleRelationshipElement")
- .category("Parameter")
- .description(new LangString("Example RelationshipElement object", "en-us"))
- .description(new LangString("Beispiel RelationshipElement Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/RelationshipElements/ExampleRelationshipElement")
- .idType(KeyType.IRI)
- .build())
- .build())
- .first(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Missing")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .second(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Missing")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.MULTI_LANGUAGE_PROPERTY)
- .value("ExampleMultiLanguageProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .build())
- .submodelElement(new DefaultAnnotatedRelationshipElement.Builder()
- .idShort("ExampleAnnotatedRelationshipElement")
- .category("Parameter")
- .description(new LangString("Example AnnotatedRelationshipElement object", "en-us"))
- .description(new LangString("Beispiel AnnotatedRelationshipElement Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/RelationshipElements/ExampleAnnotatedRelationshipElement")
- .idType(KeyType.IRI)
- .build())
- .build())
- .first(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Missing")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .second(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Missing")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.MULTI_LANGUAGE_PROPERTY)
- .value("ExampleMultiLanguageProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .annotation(new DefaultProperty.Builder()
- .kind(ModelingKind.INSTANCE)
- .idShort("ExampleProperty")
- .category("Parameter")
- .value("some example annotation")
- .valueType("string")
- .build())
- .build())
- .submodelElement(new DefaultOperation.Builder()
- .idShort("ExampleOperation")
- .kind(ModelingKind.TEMPLATE)
- .category("Parameter")
- .description(new LangString("Example Operation object", "en-us"))
- .description(new LangString("Beispiel Operation Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Operations/ExampleOperation")
- .idType(KeyType.IRI)
- .build())
- .build())
- .inputVariable(new DefaultOperationVariable.Builder()
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty1")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .qualifier(new DefaultQualifier.Builder()
- .valueType("string")
- .type("http://acplt.org/Qualifier/ExampleQualifier")
- .build())
- .value("exampleValue")
- .valueType("string")
- .build())
- .build())
- .outputVariable(new DefaultOperationVariable.Builder()
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty2")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .qualifier(new DefaultQualifier.Builder()
- .valueType("string")
- .type("http://acplt.org/Qualifier/ExampleQualifier")
- .build())
- .value("exampleValue")
- .valueType("string")
- .build())
- .build())
- .inoutputVariable(new DefaultOperationVariable.Builder()
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty3")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .qualifier(new DefaultQualifier.Builder()
- .valueType("string")
- .type("http://acplt.org/Qualifier/ExampleQualifier")
- .build())
- .value("exampleValue")
- .valueType("string")
- .build())
- .build())
- .build())
- .submodelElement(new DefaultCapability.Builder()
- .idShort("ExampleCapability")
- .category("Parameter")
- .description(new LangString("Example Capability object", "en-us"))
- .description(new LangString("Beispiel Capability Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Capabilities/ExampleCapability")
- .idType(KeyType.IRI)
- .build())
- .build())
- .build())
- .submodelElement(new DefaultBasicEvent.Builder()
- .idShort("ExampleBasicEvent")
- .category("Parameter")
- .description(new LangString("Example BasicEvent object", "en-us"))
- .description(new LangString("Beispiel BasicEvent Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Events/ExampleBasicEvent")
- .idType(KeyType.IRI)
- .build())
- .build())
- .observed(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Missing")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .idType(KeyType.ID_SHORT)
- .value("ExampleProperty")
- .build())
- .build())
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionOrdered")
- .category("Parameter")
- .description(new LangString("Example SubmodelElementCollectionOrdered object", "en-us"))
- .description(new LangString("Beispiel SubmodelElementCollectionOrdered Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionOrdered")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .qualifier(new DefaultQualifier.Builder()
- .valueType("string")
- .type("http://acplt.org/Qualifier/ExampleQualifier")
- .build())
- .value("exampleValue")
- .valueType("string")
- .build())
- .value(new DefaultMultiLanguageProperty.Builder()
- .idShort("ExampleMultiLanguageProperty")
- .category("Constant")
- .description(new LangString("Example MultiLanguageProperty object", "en-us"))
- .description(new LangString("Beispiel MulitLanguageProperty Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/MultiLanguageProperties/ExampleMultiLanguageProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value(new LangString("Example value of a MultiLanguageProperty element", "en-us"))
- .value(new LangString("Beispielswert für ein MulitLanguageProperty-Element", "de"))
- .build())
- .value(new DefaultRange.Builder()
- .idShort("ExampleRange")
- .category("Parameter")
- .description(new LangString("Example Range object", "en-us"))
- .description(new LangString("Beispiel Range Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Ranges/ExampleRange")
- .idType(KeyType.IRI)
- .build())
- .build())
- .valueType("int")
- .min("0")
- .max("100")
- .build())
- .ordered(true)
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionUnordered")
- .category("Parameter")
- .description(new LangString("Example SubmodelElementCollectionUnordered object", "en-us"))
- .description(new LangString("Beispiel SubmodelElementCollectionUnordered Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value(new DefaultBlob.Builder()
- .idShort("ExampleBlob")
- .category("Parameter")
- .description(new LangString("Example Blob object", "en-us"))
- .description(new LangString("Beispiel Blob Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Blobs/ExampleBlob")
- .idType(KeyType.IRI)
- .build())
- .build())
- .mimeType("application/pdf")
- .value(Base64.getDecoder().decode("AQIDBAU="))
- .build())
- .value(new DefaultFile.Builder()
- .idShort("ExampleFile")
- .category("Parameter")
- .description(new LangString("Example File object", "en-us"))
- .description(new LangString("Beispiel File Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Files/ExampleFile")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value("/TestFile.pdf")
- .mimeType("application/pdf")
- .build())
- .value(new DefaultReferenceElement.Builder()
- .idShort("ExampleReferenceElement")
- .category("Parameter")
- .description(new LangString("Example Reference Element object", "en-us"))
- .description(new LangString("Beispiel Reference Element Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/ReferenceElements/ExampleReferenceElement")
- .idType(KeyType.IRI)
- .build())
- .build())
- .value(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL)
- .value("https://acplt.org/Test_Submodel_Missing")
- .idType(KeyType.IRI)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.SUBMODEL_ELEMENT_COLLECTION)
- .value("ExampleSubmodelCollectionOrdered")
- .idType(KeyType.ID_SHORT)
- .build())
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .idType(KeyType.ID_SHORT)
- .value("ExampleProperty")
- .build())
- .build())
- .build())
- .ordered(false)
- .build())
- .build();
+ public static Submodel createSubmodel7() {
+ return new DefaultSubmodel.Builder()
+ .idShort("TestSubmodel")
+ .description(new LangString("An example submodel for the test application", "en-us"))
+ .description(new LangString("Ein Beispiel-Teilmodell für eine Test-Anwendung", "de"))
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_Submodel_Template")
+ .build())
+ .kind(ModelingKind.INSTANCE)
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .revision("0")
+ .build())
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/SubmodelTemplates/ExampleSubmodel")
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .submodelElement(new DefaultRelationshipElement.Builder()
+ .idShort("ExampleRelationshipElement")
+ .category("Parameter")
+ .description(new LangString("Example RelationshipElement object", "en-us"))
+ .description(new LangString("Beispiel RelationshipElement Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/RelationshipElements/ExampleRelationshipElement")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .first(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .second(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultAnnotatedRelationshipElement.Builder().idShort("ExampleAnnotatedRelationshipElement")
+ .category("Parameter")
+ .description(new LangString("Example AnnotatedRelationshipElement object", "en-us"))
+ .description(new LangString("Beispiel AnnotatedRelationshipElement Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/RelationshipElements/ExampleAnnotatedRelationshipElement")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .first(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .second(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .value("ExampleProperty")
+ .idType(KeyType.ID_SHORT)
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultOperation.Builder()
+ .idShort("ExampleOperation")
+ .kind(ModelingKind.TEMPLATE)
+ .category("Parameter")
+ .description(new LangString("Example Operation object", "en-us"))
+ .description(new LangString("Beispiel Operation Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Operations/ExampleOperation")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .inputVariable(new DefaultOperationVariable.Builder()
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .value(null)
+ .valueType("string")
+ .build())
+ .build())
+ .outputVariable(new DefaultOperationVariable.Builder()
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .value(null)
+ .valueType("string")
+ .build())
+ .build())
+ .inoutputVariable(new DefaultOperationVariable.Builder()
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .value(null)
+ .valueType("string")
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultCapability.Builder()
+ .idShort("ExampleCapability")
+ .category("Parameter")
+ .description(new LangString("Example Capability object", "en-us"))
+ .description(new LangString("Beispiel Capability Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Capabilities/ExampleCapability")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .build())
+ .submodelElement(new DefaultBasicEvent.Builder()
+ .idShort("ExampleBasicEvent")
+ .category("Parameter")
+ .description(new LangString("Example BasicEvent object", "en-us"))
+ .description(new LangString("Beispiel BasicEvent Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Events/ExampleBasicEvent")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .observed(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.PROPERTY)
+ .idType(KeyType.ID_SHORT)
+ .value("ExampleProperty")
+ .build())
+ .build())
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionOrdered")
+ .category("Parameter")
+ .description(new LangString("Example SubmodelElementCollectionOrdered object", "en-us"))
+ .description(new LangString("Beispiel SubmodelElementCollectionOrdered Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionOrdered")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .value(new DefaultProperty.Builder()
+ .idShort("ExampleProperty")
+ .category("Constant")
+ .description(new LangString("Example Property object", "en-us"))
+ .description(new LangString("Beispiel Property Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Properties/ExampleProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .value(null)
+ .valueType("string")
+ .build())
+ .value(new DefaultMultiLanguageProperty.Builder()
+ .idShort("ExampleMultiLanguageProperty")
+ .category("Constant")
+ .description(new LangString("Example MultiLanguageProperty object", "en-us"))
+ .description(new LangString("Beispiel MulitLanguageProperty Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE).value(
+ "http://acplt.org/MultiLanguageProperties/ExampleMultiLanguageProperty")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .build())
+ .value(new DefaultRange.Builder()
+ .idShort("ExampleRange")
+ .category("Parameter")
+ .description(new LangString("Example Range object", "en-us"))
+ .description(new LangString("Beispiel Range Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Ranges/ExampleRange")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .valueType("int")
+ .min(null)
+ .max("100")
+ .build())
+ .value(new DefaultRange.Builder()
+ .idShort("ExampleRange2")
+ .category("Parameter")
+ .description(new LangString("Example Range object", "en-us"))
+ .description(new LangString("Beispiel Range Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Ranges/ExampleRange")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .valueType("int")
+ .min("0")
+ .max(null)
+ .build())
+ .ordered(true)
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionUnordered")
+ .category("Parameter")
+ .description(new LangString("Example SubmodelElementCollectionUnordered object", "en-us"))
+ .description(new LangString("Beispiel SubmodelElementCollectionUnordered Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .value(new DefaultBlob.Builder()
+ .idShort("ExampleBlob")
+ .category("Parameter")
+ .description(new LangString("Example Blob object", "en-us"))
+ .description(new LangString("Beispiel Blob Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Blobs/ExampleBlob")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .mimeType("application/pdf")
+ .build())
+ .value(new DefaultFile.Builder()
+ .idShort("ExampleFile")
+ .category("Parameter")
+ .description(new LangString("Example File object", "en-us"))
+ .description(new LangString("Beispiel File Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/Files/ExampleFile")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .value(null)
+ .mimeType("application/pdf")
+ .build())
+ .value(new DefaultReferenceElement.Builder()
+ .idShort("ExampleReferenceElement")
+ .category("Parameter")
+ .description(new LangString("Example Reference Element object", "en-us"))
+ .description(new LangString("Beispiel Reference Element Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/ReferenceElements/ExampleReferenceElement")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .build())
+ .ordered(false)
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .idShort("ExampleSubmodelCollectionUnordered2")
+ .category("Parameter")
+ .description(new LangString("Example SubmodelElementCollectionUnordered object", "en-us"))
+ .description(new LangString("Beispiel SubmodelElementCollectionUnordered Element", "de"))
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered")
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .kind(ModelingKind.TEMPLATE)
+ .ordered(false)
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_7 = new DefaultSubmodel.Builder()
- .idShort("TestSubmodel")
- .description(new LangString("An example submodel for the test application", "en-us"))
- .description(new LangString("Ein Beispiel-Teilmodell für eine Test-Anwendung", "de"))
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_Submodel_Template")
- .build())
- .kind(ModelingKind.INSTANCE)
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .revision("0")
- .build())
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/SubmodelTemplates/ExampleSubmodel")
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .submodelElement(new DefaultRelationshipElement.Builder()
- .idShort("ExampleRelationshipElement")
- .category("Parameter")
- .description(new LangString("Example RelationshipElement object", "en-us"))
- .description(new LangString("Beispiel RelationshipElement Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/RelationshipElements/ExampleRelationshipElement")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .first(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .second(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .build())
- .submodelElement(new DefaultAnnotatedRelationshipElement.Builder().idShort("ExampleAnnotatedRelationshipElement")
- .category("Parameter")
- .description(new LangString("Example AnnotatedRelationshipElement object", "en-us"))
- .description(new LangString("Beispiel AnnotatedRelationshipElement Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/RelationshipElements/ExampleAnnotatedRelationshipElement")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .first(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .second(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .value("ExampleProperty")
- .idType(KeyType.ID_SHORT)
- .build())
- .build())
- .build())
- .submodelElement(new DefaultOperation.Builder()
- .idShort("ExampleOperation")
- .kind(ModelingKind.TEMPLATE)
- .category("Parameter")
- .description(new LangString("Example Operation object", "en-us"))
- .description(new LangString("Beispiel Operation Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Operations/ExampleOperation")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .inputVariable(new DefaultOperationVariable.Builder()
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .value(null)
- .valueType("string")
- .build())
- .build())
- .outputVariable(new DefaultOperationVariable.Builder()
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .value(null)
- .valueType("string")
- .build())
- .build())
- .inoutputVariable(new DefaultOperationVariable.Builder()
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .value(null)
- .valueType("string")
- .build())
- .build())
- .build())
- .submodelElement(new DefaultCapability.Builder()
- .idShort("ExampleCapability")
- .category("Parameter")
- .description(new LangString("Example Capability object", "en-us"))
- .description(new LangString("Beispiel Capability Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Capabilities/ExampleCapability")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .build())
- .submodelElement(new DefaultBasicEvent.Builder()
- .idShort("ExampleBasicEvent")
- .category("Parameter")
- .description(new LangString("Example BasicEvent object", "en-us"))
- .description(new LangString("Beispiel BasicEvent Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Events/ExampleBasicEvent")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .observed(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.PROPERTY)
- .idType(KeyType.ID_SHORT)
- .value("ExampleProperty")
- .build())
- .build())
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionOrdered")
- .category("Parameter")
- .description(new LangString("Example SubmodelElementCollectionOrdered object", "en-us"))
- .description(new LangString("Beispiel SubmodelElementCollectionOrdered Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionOrdered")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .value(new DefaultProperty.Builder()
- .idShort("ExampleProperty")
- .category("Constant")
- .description(new LangString("Example Property object", "en-us"))
- .description(new LangString("Beispiel Property Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Properties/ExampleProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .value(null)
- .valueType("string")
- .build())
- .value(new DefaultMultiLanguageProperty.Builder()
- .idShort("ExampleMultiLanguageProperty")
- .category("Constant")
- .description(new LangString("Example MultiLanguageProperty object", "en-us"))
- .description(new LangString("Beispiel MulitLanguageProperty Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE).value(
- "http://acplt.org/MultiLanguageProperties/ExampleMultiLanguageProperty")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .build())
- .value(new DefaultRange.Builder()
- .idShort("ExampleRange")
- .category("Parameter")
- .description(new LangString("Example Range object", "en-us"))
- .description(new LangString("Beispiel Range Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Ranges/ExampleRange")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .valueType("int")
- .min(null)
- .max("100")
- .build())
- .value(new DefaultRange.Builder()
- .idShort("ExampleRange2")
- .category("Parameter")
- .description(new LangString("Example Range object", "en-us"))
- .description(new LangString("Beispiel Range Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Ranges/ExampleRange")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .valueType("int")
- .min("0")
- .max(null)
- .build())
- .ordered(true)
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionUnordered")
- .category("Parameter")
- .description(new LangString("Example SubmodelElementCollectionUnordered object", "en-us"))
- .description(new LangString("Beispiel SubmodelElementCollectionUnordered Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .value(new DefaultBlob.Builder()
- .idShort("ExampleBlob")
- .category("Parameter")
- .description(new LangString("Example Blob object", "en-us"))
- .description(new LangString("Beispiel Blob Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Blobs/ExampleBlob")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .mimeType("application/pdf")
- .build())
- .value(new DefaultFile.Builder()
- .idShort("ExampleFile")
- .category("Parameter")
- .description(new LangString("Example File object", "en-us"))
- .description(new LangString("Beispiel File Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/Files/ExampleFile")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .value(null)
- .mimeType("application/pdf")
- .build())
- .value(new DefaultReferenceElement.Builder()
- .idShort("ExampleReferenceElement")
- .category("Parameter")
- .description(new LangString("Example Reference Element object", "en-us"))
- .description(new LangString("Beispiel Reference Element Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/ReferenceElements/ExampleReferenceElement")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .build())
- .ordered(false)
- .build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder()
- .idShort("ExampleSubmodelCollectionUnordered2")
- .category("Parameter")
- .description(new LangString("Example SubmodelElementCollectionUnordered object", "en-us"))
- .description(new LangString("Beispiel SubmodelElementCollectionUnordered Element", "de"))
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .value("http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered")
- .idType(KeyType.IRI)
- .build())
- .build())
- .kind(ModelingKind.TEMPLATE)
- .ordered(false)
- .build())
- .build();
+ public static ConceptDescription createConceptDescription1() {
+ return new DefaultConceptDescription.Builder()
+ .idShort("TestConceptDescription")
+ .description(new LangString("An example concept description for the test application", "en-us"))
+ .description(new LangString("Ein Beispiel-ConceptDescription für eine Test-Anwendung", "de"))
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_ConceptDescription")
+ .build())
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .revision("0")
+ .build())
+ .isCaseOf(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/DataSpecifications/ConceptDescriptions/TestConceptDescription")
+ .build())
+ .build())
+ .build();
+ }
- public final static ConceptDescription CONCEPT_DESCRIPTION_1 = new DefaultConceptDescription.Builder()
- .idShort("TestConceptDescription")
- .description(new LangString("An example concept description for the test application", "en-us"))
- .description(new LangString("Ein Beispiel-ConceptDescription für eine Test-Anwendung", "de"))
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_ConceptDescription")
- .build())
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .revision("0")
- .build())
- .isCaseOf(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/DataSpecifications/ConceptDescriptions/TestConceptDescription")
- .build())
- .build())
- .build();
+ public static ConceptDescription createConceptDescription2() {
+ return new DefaultConceptDescription.Builder()
+ .idShort("Test_ConceptDescription_Mandatory")
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_ConceptDescription_Mandatory")
+ .build())
+ .build();
+ }
- public final static ConceptDescription CONCEPT_DESCRIPTION_2 = new DefaultConceptDescription.Builder()
- .idShort("Test_ConceptDescription_Mandatory")
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_ConceptDescription_Mandatory")
- .build())
- .build();
+ public static ConceptDescription createConceptDescription3() {
+ return new DefaultConceptDescription.Builder()
+ .idShort("TestConceptDescription1")
+ .description(new LangString("An example concept description for the test application", "en-us"))
+ .description(new LangString("Ein Beispiel-ConceptDescription für eine Test-Anwendung", "de"))
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("https://acplt.org/Test_ConceptDescription_Missing")
+ .build())
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .revision("0")
+ .build())
+ .build();
+ }
- public final static ConceptDescription CONCEPT_DESCRIPTION_3 = new DefaultConceptDescription.Builder()
- .idShort("TestConceptDescription1")
- .description(new LangString("An example concept description for the test application", "en-us"))
- .description(new LangString("Ein Beispiel-ConceptDescription für eine Test-Anwendung", "de"))
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("https://acplt.org/Test_ConceptDescription_Missing")
- .build())
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .revision("0")
- .build())
- .build();
+ public static ConceptDescription createConceptDescription4() {
+ return new DefaultConceptDescription.Builder()
+ .idShort("TestSpec_01")
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier("http://acplt.org/DataSpecifciations/Example/Identification")
+ .build())
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("0.9")
+ .revision("0")
+ .build())
+ .isCaseOf(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ReferenceElements/ConceptDescriptionX")
+ .build())
+ .build())
+ .embeddedDataSpecification(new DefaultEmbeddedDataSpecification.Builder()
+ .dataSpecificationContent(new DefaultDataSpecificationIEC61360.Builder()
+ .preferredName(new LangString("Test Specification", "de"))
+ .preferredName(new LangString("TestSpecification", "en-us"))
+ .dataType(DataTypeIEC61360.REAL_MEASURE)
+ .definition(new LangString("Dies ist eine Data Specification für Testzwecke", "de"))
+ .definition(new LangString("This is a DataSpecification for testing purposes", "en-us"))
+ .shortName(new LangString("Test Spec", "de"))
+ .shortName(new LangString("TestSpec", "en-us"))
+ .unit("SpaceUnit")
+ .unitId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/Units/SpaceUnit")
+ .build())
+ .build())
+ .sourceOfDefinition("http://acplt.org/DataSpec/ExampleDef")
+ .symbol("SU")
+ .valueFormat("string")
+ .value("TEST")
+ .levelType(LevelType.MIN)
+ .levelType(LevelType.MAX)
+ .valueList(new DefaultValueList.Builder()
+ .valueReferencePairTypes(new DefaultValueReferencePair.Builder()
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ExampleValueId")
+ .build())
+ .build())
+ // TODO valueType
+ .build())
+ .valueReferencePairTypes(new DefaultValueReferencePair.Builder()
+ .value("http://acplt.org/ValueId/ExampleValueId2")
+ .valueId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .idType(KeyType.IRI)
+ .value("http://acplt.org/ValueId/ExampleValueId2")
+ .build())
+ .build())
+ // TODO valueType
+ .build())
+ .build())
+ .build())
+ .build())
+ .build();
+ }
- public final static ConceptDescription CONCEPT_DESCRIPTION_4 = new DefaultConceptDescription.Builder()
- .idShort("TestSpec_01")
- .identification(new DefaultIdentifier.Builder()
- .idType(IdentifierType.IRI)
- .identifier("http://acplt.org/DataSpecifciations/Example/Identification")
- .build())
- .administration(new DefaultAdministrativeInformation.Builder()
- .version("0.9")
- .revision("0")
- .build())
- .isCaseOf(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ReferenceElements/ConceptDescriptionX")
- .build())
- .build())
- .embeddedDataSpecification(new DefaultEmbeddedDataSpecification.Builder()
- .dataSpecificationContent(new DefaultDataSpecificationIEC61360.Builder()
- .preferredName(new LangString("Test Specification", "de"))
- .preferredName(new LangString("TestSpecification", "en-us"))
- .dataType(DataTypeIEC61360.REAL_MEASURE)
- .definition(new LangString("Dies ist eine Data Specification für Testzwecke", "de"))
- .definition(new LangString("This is a DataSpecification for testing purposes", "en-us"))
- .shortName(new LangString("Test Spec", "de"))
- .shortName(new LangString("TestSpec", "en-us"))
- .unit("SpaceUnit")
- .unitId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/Units/SpaceUnit")
- .build())
- .build())
- .sourceOfDefinition("http://acplt.org/DataSpec/ExampleDef")
- .symbol("SU")
- .valueFormat("string")
- .value("TEST")
- .levelType(LevelType.MIN)
- .levelType(LevelType.MAX)
- .valueList(new DefaultValueList.Builder()
- .valueReferencePairTypes(new DefaultValueReferencePair.Builder()
- .value("http://acplt.org/ValueId/ExampleValueId")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ExampleValueId")
- .build())
- .build())
- // TODO valueType
- .build())
- .valueReferencePairTypes(new DefaultValueReferencePair.Builder()
- .value("http://acplt.org/ValueId/ExampleValueId2")
- .valueId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder()
- .type(KeyElements.GLOBAL_REFERENCE)
- .idType(KeyType.IRI)
- .value("http://acplt.org/ValueId/ExampleValueId2")
- .build())
- .build())
- // TODO valueType
- .build())
- .build())
- .build())
- .build()
- )
- .build();
+ public static AssetAdministrationShellEnvironment createEnvironment() {
+ return new DefaultAssetAdministrationShellEnvironment.Builder()
+ .assetAdministrationShells(Arrays.asList(
+ createAAS1(),
+ createAAS2(),
+ createAAS3(),
+ createAAS4()))
+ .submodels(Arrays.asList(
+ createSubmodel1(),
+ createSubmodel2(),
+ createSubmodel3(),
+ createSubmodel4(),
+ createSubmodel5(),
+ createSubmodel6(),
+ createSubmodel7()))
+ .conceptDescriptions(Arrays.asList(
+ createConceptDescription1(),
+ createConceptDescription2(),
+ createConceptDescription3(),
+ createConceptDescription4()))
+ .build();
+ }
- public static final AssetAdministrationShellEnvironment ENVIRONMENT = new DefaultAssetAdministrationShellEnvironment.Builder()
- .assetAdministrationShells(Arrays.asList(
- AAS_1,
- AAS_2,
- AAS_3,
- AAS_4))
- .submodels(Arrays.asList(
- SUBMODEL_1,
- SUBMODEL_2,
- SUBMODEL_3,
- SUBMODEL_4,
- SUBMODEL_5,
- SUBMODEL_6,
- SUBMODEL_7))
- .conceptDescriptions(Arrays.asList(
- CONCEPT_DESCRIPTION_1,
- CONCEPT_DESCRIPTION_2,
- CONCEPT_DESCRIPTION_3,
- CONCEPT_DESCRIPTION_4))
- .build();
}
diff --git a/dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core/AASSimple.java b/dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core/AASSimple.java
index b1900618..821894a0 100644
--- a/dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core/AASSimple.java
+++ b/dataformat-core/src/test/java/io/adminshell/aas/v3/dataformat/core/AASSimple.java
@@ -69,7 +69,7 @@ public class AASSimple {
private static final String _0173_1_02_BAA120_008 = "0173-1#02-BAA120#008";
private static final String PROPERTY = "PROPERTY";
private static final String MAX_ROTATION_SPEED = "MaxRotationSpeed";
- private static final String DIGITAL_FILE_DEFINITION = "Eine Datei, die die Document Version repräsentiert. Neben der obligatorischen PDF Datei können weitere Dateien angegeben werden.";
+ private static final String DIGITAL_FILE_DEFINITION = "A file representing the document version. In addition to the mandatory PDF file, other files can be specified."; //"Eine Datei, die die Document Version repräsentiert. Neben der obligatorischen PDF Datei können weitere Dateien angegeben werden.";
private static final String DIGITALE_DATEI = "DigitaleDatei";
private static final String WWW_VDI2770_COM_BLATT1_ENTWURF_OKT18_CD_STORED_DOCUMENT_REPRESENTATION_DIGITAL_FILE = "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/StoredDocumentRepresentation/DigitalFile";
private static final String DIGITAL_FILE = "DigitalFile";
@@ -128,207 +128,348 @@ public class AASSimple {
public AASSimple() {
}
- public static final AssetAdministrationShell AAS = new DefaultAssetAdministrationShell.Builder().idShort(AAS_ID)
- .identification(
- new DefaultIdentifier.Builder().idType(IdentifierType.IRI).identifier(AAS_IDENTIFIER).build())
- .assetInformation(new DefaultAssetInformation.Builder().assetKind(AssetKind.INSTANCE)
- .globalAssetId(new DefaultReference.Builder().key(new DefaultKey.Builder().type(KeyElements.ASSET)
- .value(HTTP_CUSTOMER_COM_ASSETS_KHBVZJSQKIY).idType(KeyType.IRI).build()).build())
- .specificAssetId(new DefaultIdentifierKeyValuePair.Builder().key(EQUIPMENT_ID)
- .value(_538FD1B3_F99F_4A52_9C75_72E9FA921270)
- .externalSubjectId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder().type(KeyElements.GLOBAL_REFERENCE)
- .value(HTTP_CUSTOMER_COM_SYSTEMS_ERP_012).idType(KeyType.IRI).build())
- .build())
- .build())
- .specificAssetId(new DefaultIdentifierKeyValuePair.Builder().key(DEVICE_ID)
- .value(QJ_YG_PGGJWKI_HK4_RR_QI_YS_LG)
- .externalSubjectId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder().type(KeyElements.GLOBAL_REFERENCE)
- .value(HTTP_CUSTOMER_COM_SYSTEMS_IO_T_1).idType(KeyType.IRI).build())
- .build())
- .build())
- .defaultThumbnail(new DefaultFile.Builder().kind(ModelingKind.INSTANCE).idShort(THUMBNAIL)
- .mimeType(IMAGE_PNG)
- .value(HTTPS_GITHUB_COM_ADMIN_SHELL_IO_BLOB_MASTER_VERWALTUNGSSCHALE_DETAIL_PART1_PNG)
- .build())
- .build())
- .submodel(new DefaultReference.Builder().key(new DefaultKey.Builder().type(KeyElements.SUBMODEL)
- .value(SUBMODEL_TECHNICAL_DATA_ID).idType(KeyType.IRI).build()).build())
- .submodel(
- new DefaultReference.Builder()
- .key(new DefaultKey.Builder().type(KeyElements.SUBMODEL).value(SUBMODEL_OPERATIONAL_DATA_ID)
- .idType(KeyType.IRI).build())
- .build())
- .submodel(new DefaultReference.Builder().key(new DefaultKey.Builder().type(KeyElements.SUBMODEL)
- .value(SUBMODEL_DOCUMENTATION_ID).idType(KeyType.IRI).build()).build())
- .build();
+ public static final AssetAdministrationShell AAS = createAAS();
+ public static final Asset ASSET = createAsset();
+ public static final Submodel SUBMODEL_TECHNICAL_DATA = createSubmodelTechnicalData();
+ public static final Submodel SUBMODEL_OPERATIONAL_DATA = createSubmodelOperationalData();
+ public static final Submodel SUBMODEL_DOCUMENTATION = createSubmodelDocumentation();
+ public static final ConceptDescription CONCEPT_DESCRIPTION_TITLE = createConceptDescriptionTitle();
+ public static final ConceptDescription CONCEPT_DESCRIPTION_DIGITALFILE = createConceptDescriptionDigitalFile();
+ public static final ConceptDescription CONCEPT_DESCRIPTION_MAXROTATIONSPEED = createConceptDescriptionMaxRotationSpeed();
+ public static final ConceptDescription CONCEPT_DESCRIPTION_ROTATIONSPEED = createConceptDescriptionRotationSpeed();
+ public static final ConceptDescription CONCEPT_DESCRIPTION_DOCUMENT = createConceptDescriptionDocument();
+ public static final AssetAdministrationShellEnvironment ENVIRONMENT = createEnvironment();
- public static final Asset ASSET = new DefaultAsset.Builder().idShort(SERVO_DC_MOTOR)
- .identification(new DefaultIdentifier.Builder().idType(IdentifierType.IRI)
- .identifier(HTTP_CUSTOMER_COM_ASSETS_KHBVZJSQKIY).build())
- .build();
+ public static AssetAdministrationShell createAAS() {
+ return new DefaultAssetAdministrationShell.Builder()
+ .idShort(AAS_ID)
+ .identification(
+ new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier(AAS_IDENTIFIER)
+ .build())
+ .assetInformation(new DefaultAssetInformation.Builder()
+ .assetKind(AssetKind.INSTANCE)
+ .globalAssetId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.ASSET)
+ .value(HTTP_CUSTOMER_COM_ASSETS_KHBVZJSQKIY)
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .specificAssetId(new DefaultIdentifierKeyValuePair.Builder()
+ .key(EQUIPMENT_ID)
+ .value(_538FD1B3_F99F_4A52_9C75_72E9FA921270)
+ .externalSubjectId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value(HTTP_CUSTOMER_COM_SYSTEMS_ERP_012)
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .build())
+ .specificAssetId(new DefaultIdentifierKeyValuePair.Builder()
+ .key(DEVICE_ID)
+ .value(QJ_YG_PGGJWKI_HK4_RR_QI_YS_LG)
+ .externalSubjectId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value(HTTP_CUSTOMER_COM_SYSTEMS_IO_T_1)
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .build())
+ .defaultThumbnail(new DefaultFile.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .idShort(THUMBNAIL)
+ .mimeType(IMAGE_PNG)
+ .value(HTTPS_GITHUB_COM_ADMIN_SHELL_IO_BLOB_MASTER_VERWALTUNGSSCHALE_DETAIL_PART1_PNG)
+ .build())
+ .build())
+ .submodel(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value(SUBMODEL_TECHNICAL_DATA_ID)
+ .idType(KeyType.IRI).build())
+ .build())
+ .submodel(
+ new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value(SUBMODEL_OPERATIONAL_DATA_ID)
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .submodel(new DefaultReference.Builder().key(new DefaultKey.Builder()
+ .type(KeyElements.SUBMODEL)
+ .value(SUBMODEL_DOCUMENTATION_ID)
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .build();
+ }
+
+ public static Asset createAsset() {
+ return new DefaultAsset.Builder().idShort(SERVO_DC_MOTOR)
+ .identification(new DefaultIdentifier.Builder()
+ .idType(IdentifierType.IRI)
+ .identifier(HTTP_CUSTOMER_COM_ASSETS_KHBVZJSQKIY)
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_TECHNICAL_DATA = new DefaultSubmodel.Builder()
- .semanticId(new DefaultReference.Builder().key(new DefaultKey.Builder().type(KeyElements.GLOBAL_REFERENCE)
- .value(SUBMODEL_TECHNICAL_DATA_SEMANTIC_ID).idType(KeyType.IRDI).build()).build())
- .kind(ModelingKind.INSTANCE).idShort(SUBMODEL_TECHNICAL_DATA_ID_SHORT)
- .identification(new DefaultIdentifier.Builder().identifier(SUBMODEL_TECHNICAL_DATA_ID)
- .idType(IdentifierType.IRI).build())
- .submodelElement(new DefaultProperty.Builder().kind(ModelingKind.INSTANCE)
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder().type(KeyElements.CONCEPT_DESCRIPTION)
- .value(SUBMODEL_TECHNICAL_DATA_SEMANTIC_ID_PROPERTY).idType(KeyType.IRDI).build())
- .build())
- .idShort(SUBMODEL_TECHNICAL_DATA_PROPERTY_ID_SHORT)
- .category(SUBMODEL_TECHNICAL_DATA_PROPERTY_CATEGORY).value(SUBMODEL_TECHNICAL_DATA_PROPERTY_VALUE)
- .valueType(SUBMODEL_TECHNICAL_DATA_PROPERTY_VALUETYPE).build())
- .build();
+ public static Submodel createSubmodelTechnicalData() {
+ return new DefaultSubmodel.Builder()
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value(SUBMODEL_TECHNICAL_DATA_SEMANTIC_ID)
+ .idType(KeyType.IRDI)
+ .build())
+ .build())
+ .kind(ModelingKind.INSTANCE)
+ .idShort(SUBMODEL_TECHNICAL_DATA_ID_SHORT)
+ .identification(new DefaultIdentifier.Builder()
+ .identifier(SUBMODEL_TECHNICAL_DATA_ID)
+ .idType(IdentifierType.IRI)
+ .build())
+ .submodelElement(new DefaultProperty.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.CONCEPT_DESCRIPTION)
+ .value(SUBMODEL_TECHNICAL_DATA_SEMANTIC_ID_PROPERTY)
+ .idType(KeyType.IRDI)
+ .build())
+ .build())
+ .idShort(SUBMODEL_TECHNICAL_DATA_PROPERTY_ID_SHORT)
+ .category(SUBMODEL_TECHNICAL_DATA_PROPERTY_CATEGORY)
+ .value(SUBMODEL_TECHNICAL_DATA_PROPERTY_VALUE)
+ .valueType(SUBMODEL_TECHNICAL_DATA_PROPERTY_VALUETYPE)
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_OPERATIONAL_DATA = new DefaultSubmodel.Builder().kind(ModelingKind.INSTANCE)
- .idShort(SUBMODEL_OPERATIONAL_DATA_ID_SHORT)
- .identification(new DefaultIdentifier.Builder().identifier(SUBMODEL_OPERATIONAL_DATA_ID)
- .idType(IdentifierType.IRI).build())
- .submodelElement(new DefaultProperty.Builder().kind(ModelingKind.INSTANCE)
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder().type(KeyElements.CONCEPT_DESCRIPTION)
- .value(SUBMODEL_OPERATIONAL_DATA_SEMANTIC_ID_PROPERTY).idType(KeyType.IRI).build())
- .build())
- .idShort(SUBMODEL_OPERATIONAL_DATA_PROPERTY_ID_SHORT)
- .category(SUBMODEL_OPERATIONAL_DATA_PROPERTY_CATEGORY)
- .value(SUBMODEL_OPERATIONAL_DATA_PROPERTY_VALUE)
- .valueType(SUBMODEL_OPERATIONAL_DATA_PROPERTY_VALUETYPE).build())
- .build();
+ public static Submodel createSubmodelOperationalData() {
+ return new DefaultSubmodel.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .idShort(SUBMODEL_OPERATIONAL_DATA_ID_SHORT)
+ .identification(new DefaultIdentifier.Builder()
+ .identifier(SUBMODEL_OPERATIONAL_DATA_ID)
+ .idType(IdentifierType.IRI)
+ .build())
+ .submodelElement(new DefaultProperty.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.CONCEPT_DESCRIPTION)
+ .value(SUBMODEL_OPERATIONAL_DATA_SEMANTIC_ID_PROPERTY)
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .idShort(SUBMODEL_OPERATIONAL_DATA_PROPERTY_ID_SHORT)
+ .category(SUBMODEL_OPERATIONAL_DATA_PROPERTY_CATEGORY)
+ .value(SUBMODEL_OPERATIONAL_DATA_PROPERTY_VALUE)
+ .valueType(SUBMODEL_OPERATIONAL_DATA_PROPERTY_VALUETYPE)
+ .build())
+ .build();
+ }
- public static final Submodel SUBMODEL_DOCUMENTATION = new DefaultSubmodel.Builder().kind(ModelingKind.INSTANCE)
- .idShort(SUBMODEL_DOCUMENTATION_ID_SHORT)
- .identification(new DefaultIdentifier.Builder().identifier(SUBMODEL_DOCUMENTATION_ID)
- .idType(IdentifierType.IRI).build())
- .submodelElement(new DefaultSubmodelElementCollection.Builder().kind(ModelingKind.INSTANCE)
- .semanticId(new DefaultReference.Builder().key(new DefaultKey.Builder()
- .type(KeyElements.CONCEPT_DESCRIPTION)
- .value(SUBMODEL_DOCUMENTATION_ELEMENTCOLLECTION_SEMANTIC_ID).idType(KeyType.IRI).build())
- .build())
- .idShort(SUBMODEL_DOCUMENTATION_ELEMENTCOLLECTION_ID_SHORT)
- .value(new DefaultProperty.Builder().kind(ModelingKind.INSTANCE)
- .semanticId(new DefaultReference.Builder().key(new DefaultKey.Builder()
- .type(KeyElements.CONCEPT_DESCRIPTION)
- .value(SUBMODEL_DOCUMENTATION_PROPERTY_SEMANTIC_ID).idType(KeyType.IRI).build())
- .build())
- .idShort(SUBMODEL_DOCUMENTATION_PROPERTY_ID_SHORT)
- .value(SUBMODEL_DOCUMENTATION_PROPERTY_VALUE)
- .valueType(SUBMODEL_DOCUMENTATION_PROPERTY_VALUETYPE).build())
- .value(new DefaultFile.Builder().kind(ModelingKind.INSTANCE)
- .semanticId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder().type(KeyElements.CONCEPT_DESCRIPTION)
- .value(SUBMODEL_DOCUMENTATION_FILE_SEMANTIC_ID).idType(KeyType.IRI).build())
- .build())
- .idShort(SUBMODEL_DOCUMENTATION_FILE_ID_SHORT)
- .mimeType(SUBMODEL_DOCUMENTATION_FILE_MIMETYPE).value(SUBMODEL_DOCUMENTATION_FILE_VALUE)
- .build())
- .ordered(false).allowDuplicates(false).build())
- .build();
+ public static Submodel createSubmodelDocumentation() {
+ return new DefaultSubmodel.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .idShort(SUBMODEL_DOCUMENTATION_ID_SHORT)
+ .identification(new DefaultIdentifier.Builder()
+ .identifier(SUBMODEL_DOCUMENTATION_ID)
+ .idType(IdentifierType.IRI)
+ .build())
+ .submodelElement(new DefaultSubmodelElementCollection.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.CONCEPT_DESCRIPTION)
+ .value(SUBMODEL_DOCUMENTATION_ELEMENTCOLLECTION_SEMANTIC_ID)
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .idShort(SUBMODEL_DOCUMENTATION_ELEMENTCOLLECTION_ID_SHORT)
+ .value(new DefaultProperty.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.CONCEPT_DESCRIPTION)
+ .value(SUBMODEL_DOCUMENTATION_PROPERTY_SEMANTIC_ID)
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .idShort(SUBMODEL_DOCUMENTATION_PROPERTY_ID_SHORT)
+ .value(SUBMODEL_DOCUMENTATION_PROPERTY_VALUE)
+ .valueType(SUBMODEL_DOCUMENTATION_PROPERTY_VALUETYPE)
+ .build())
+ .value(new DefaultFile.Builder()
+ .kind(ModelingKind.INSTANCE)
+ .semanticId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.CONCEPT_DESCRIPTION)
+ .value(SUBMODEL_DOCUMENTATION_FILE_SEMANTIC_ID)
+ .idType(KeyType.IRI)
+ .build())
+ .build())
+ .idShort(SUBMODEL_DOCUMENTATION_FILE_ID_SHORT)
+ .mimeType(SUBMODEL_DOCUMENTATION_FILE_MIMETYPE)
+ .value(SUBMODEL_DOCUMENTATION_FILE_VALUE)
+ .build())
+ .ordered(false)
+ .allowDuplicates(false)
+ .build())
+ .build();
+ }
- public static final ConceptDescription CONCEPT_DESCRIPTION_TITLE = new DefaultConceptDescription.Builder()
- .idShort(TITLE)
- .identification(new DefaultIdentifier.Builder()
- .identifier(WWW_VDI2770_COM_BLATT1_ENTWURF_OKT18_CD_DESCRIPTION_TITLE).idType(IdentifierType.IRI)
- .build())
- .embeddedDataSpecification(new DefaultEmbeddedDataSpecification.Builder()
- .dataSpecificationContent(new DefaultDataSpecificationIEC61360.Builder()
- .preferredName(new LangString(TITLE, "EN")).preferredName(new LangString(TITEL, "DE"))
- .shortName(new LangString(TITLE, "EN")).shortName(new LangString(TITEL, "DE")).unit("ExampleString")
- .sourceOfDefinition("ExampleString").dataType(DataTypeIEC61360.STRING_TRANSLATABLE)
- .definition(new LangString(SPRACHABHÄNGIGER_TITELDES_DOKUMENTS, "EN")).build())
- .build())
- .build();
+ public static ConceptDescription createConceptDescriptionTitle() {
+ return new DefaultConceptDescription.Builder()
+ .idShort(TITLE)
+ .identification(new DefaultIdentifier.Builder()
+ .identifier(WWW_VDI2770_COM_BLATT1_ENTWURF_OKT18_CD_DESCRIPTION_TITLE)
+ .idType(IdentifierType.IRI)
+ .build())
+ .embeddedDataSpecification(new DefaultEmbeddedDataSpecification.Builder()
+ .dataSpecificationContent(new DefaultDataSpecificationIEC61360.Builder()
+ .preferredName(new LangString(TITLE, "EN"))
+ .preferredName(new LangString(TITEL, "DE"))
+ .shortName(new LangString(TITLE, "EN"))
+ .shortName(new LangString(TITEL, "DE"))
+ .unit("ExampleString")
+ .sourceOfDefinition("ExampleString")
+ .dataType(DataTypeIEC61360.STRING_TRANSLATABLE)
+ .definition(new LangString(SPRACHABHÄNGIGER_TITELDES_DOKUMENTS, "EN"))
+ .build())
+ .build())
+ .build();
+ }
- public static final ConceptDescription CONCEPT_DESCRIPTION_DIGITALFILE = new DefaultConceptDescription.Builder()
- .idShort(DIGITAL_FILE)
- .identification(new DefaultIdentifier.Builder()
- .identifier(WWW_VDI2770_COM_BLATT1_ENTWURF_OKT18_CD_STORED_DOCUMENT_REPRESENTATION_DIGITAL_FILE)
- .idType(IdentifierType.IRI).build())
- .embeddedDataSpecification(new DefaultEmbeddedDataSpecification.Builder()
- .dataSpecificationContent(
- new DefaultDataSpecificationIEC61360.Builder().preferredName(new LangString(DIGITAL_FILE, "EN"))
- .preferredName(new LangString(DIGITAL_FILE, "EN"))
- .shortName(new LangString(DIGITAL_FILE, "EN"))
- .shortName(new LangString(DIGITALE_DATEI, "DE")).unit("ExampleString").sourceOfDefinition("ExampleString")
- .dataType(DataTypeIEC61360.STRING).definition(new LangString(DIGITAL_FILE_DEFINITION, "EN"))
- .build())
- .build())
- .build();
+ public static ConceptDescription createConceptDescriptionDigitalFile() {
+ return new DefaultConceptDescription.Builder()
+ .idShort(DIGITAL_FILE)
+ .identification(new DefaultIdentifier.Builder()
+ .identifier(WWW_VDI2770_COM_BLATT1_ENTWURF_OKT18_CD_STORED_DOCUMENT_REPRESENTATION_DIGITAL_FILE)
+ .idType(IdentifierType.IRI)
+ .build())
+ .embeddedDataSpecification(new DefaultEmbeddedDataSpecification.Builder()
+ .dataSpecificationContent(
+ new DefaultDataSpecificationIEC61360.Builder()
+ .preferredName(new LangString(DIGITAL_FILE, "EN"))
+ .preferredName(new LangString(DIGITAL_FILE, "EN"))
+ .shortName(new LangString(DIGITAL_FILE, "EN"))
+ .shortName(new LangString(DIGITALE_DATEI, "DE"))
+ .unit("ExampleString")
+ .sourceOfDefinition("ExampleString")
+ .dataType(DataTypeIEC61360.STRING)
+ .definition(new LangString(DIGITAL_FILE_DEFINITION, "EN"))
+ .build())
+ .build())
+ .build();
+ }
- public static final ConceptDescription CONCEPT_DESCRIPTION_MAXROTATIONSPEED = new DefaultConceptDescription.Builder()
- .idShort(MAX_ROTATION_SPEED).category(PROPERTY)
- .administration(new DefaultAdministrativeInformation.Builder().version("2").revision("2.1").build())
- .identification(new DefaultIdentifier.Builder().identifier(_0173_1_02_BAA120_008)
- .idType(IdentifierType.IRDI).build())
- .embeddedDataSpecifications(
- Arrays.asList(
- new DefaultEmbeddedDataSpecification.Builder()
- .dataSpecificationContent(new DefaultDataSpecificationIEC61360.Builder()
- .preferredName(new LangString(MAX_DREHZAHL, "de"))
- .preferredName(new LangString(MAX_ROTATIONSPEED, "en")).unit(_1_MIN)
- .unitId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder().type(KeyElements.GLOBAL_REFERENCE)
- .value(_0173_1_05_AAA650_002).idType(KeyType.IRDI).build())
- .build())
- .sourceOfDefinition("ExampleString").dataType(DataTypeIEC61360.REAL_MEASURE)
- .definition(new LangString(MAX_ROTATE_DEF_DE, "de"))
- .definition(new LangString(MAX_ROTATE_DEF_EN, "EN")).build())
- .build()))
- .build();
+ public static ConceptDescription createConceptDescriptionMaxRotationSpeed() {
+ return new DefaultConceptDescription.Builder()
+ .idShort(MAX_ROTATION_SPEED).category(PROPERTY)
+ .administration(new DefaultAdministrativeInformation.Builder()
+ .version("2")
+ .revision("2.1")
+ .build())
+ .identification(new DefaultIdentifier.Builder()
+ .identifier(_0173_1_02_BAA120_008)
+ .idType(IdentifierType.IRDI)
+ .build())
+ .embeddedDataSpecifications(
+ Arrays.asList(
+ new DefaultEmbeddedDataSpecification.Builder()
+ .dataSpecificationContent(new DefaultDataSpecificationIEC61360.Builder()
+ .preferredName(new LangString(MAX_DREHZAHL, "de"))
+ .preferredName(new LangString(MAX_ROTATIONSPEED, "en"))
+ .unit(_1_MIN)
+ .unitId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value(_0173_1_05_AAA650_002)
+ .idType(KeyType.IRDI)
+ .build())
+ .build())
+ .sourceOfDefinition("ExampleString")
+ .dataType(DataTypeIEC61360.REAL_MEASURE)
+ .definition(new LangString(MAX_ROTATE_DEF_DE, "de"))
+ .definition(new LangString(MAX_ROTATE_DEF_EN, "EN"))
+ .build())
+ .build()))
+ .build();
+ }
- public static final ConceptDescription CONCEPT_DESCRIPTION_ROTATIONSPEED = new DefaultConceptDescription.Builder()
- .idShort(ROTATION_SPEED).category(PROPERTY)
- .identification(new DefaultIdentifier.Builder().identifier(HTTP_CUSTOMER_COM_CD_1_1_18EBD56F6B43D895)
- .idType(IdentifierType.IRI).build())
- .embeddedDataSpecification(
- new DefaultEmbeddedDataSpecification.Builder()
- .dataSpecificationContent(
- new DefaultDataSpecificationIEC61360.Builder()
- .preferredName(new LangString(AKTUELLE_DREHZAHL, "DE"))
- .preferredName(new LangString(ACTUALROTATIONSPEED, "EN"))
- .shortName(new LangString(AKTUELLE_DREHZAHL, "DE"))
- .shortName(new LangString(ACTUAL_ROTATION_SPEED, "EN")).unit(_1_MIN)
- .unitId(new DefaultReference.Builder()
- .key(new DefaultKey.Builder().type(KeyElements.GLOBAL_REFERENCE)
- .value(_0173_1_05_AAA650_002).idType(KeyType.IRDI).build())
- .build())
- .sourceOfDefinition("ExampleString").dataType(DataTypeIEC61360.REAL_MEASURE)
- .definition(new LangString(
- AKTUELLE_DREHZAHL_MITWELCHER_DER_MOTOR_ODER_DIE_SPEISEINHEIT_BETRIEBEN_WIRD,
- "DE"))
- .definition(new LangString(
- ACTUAL_ROTATIONSPEED_WITH_WHICH_THE_MOTOR_OR_FEEDINGUNIT_IS_OPERATED,
- "EN"))
- .build())
- .build())
- .build();
+ public static ConceptDescription createConceptDescriptionRotationSpeed() {
+ return new DefaultConceptDescription.Builder()
+ .idShort(ROTATION_SPEED)
+ .category(PROPERTY)
+ .identification(new DefaultIdentifier.Builder()
+ .identifier(HTTP_CUSTOMER_COM_CD_1_1_18EBD56F6B43D895)
+ .idType(IdentifierType.IRI)
+ .build())
+ .embeddedDataSpecification(
+ new DefaultEmbeddedDataSpecification.Builder()
+ .dataSpecificationContent(
+ new DefaultDataSpecificationIEC61360.Builder()
+ .preferredName(new LangString(AKTUELLE_DREHZAHL, "DE"))
+ .preferredName(new LangString(ACTUALROTATIONSPEED, "EN"))
+ .shortName(new LangString(AKTUELLE_DREHZAHL, "DE"))
+ .shortName(new LangString(ACTUAL_ROTATION_SPEED, "EN"))
+ .unit(_1_MIN)
+ .unitId(new DefaultReference.Builder()
+ .key(new DefaultKey.Builder()
+ .type(KeyElements.GLOBAL_REFERENCE)
+ .value(_0173_1_05_AAA650_002)
+ .idType(KeyType.IRDI)
+ .build())
+ .build())
+ .sourceOfDefinition("ExampleString")
+ .dataType(DataTypeIEC61360.REAL_MEASURE)
+ .definition(new LangString(AKTUELLE_DREHZAHL_MITWELCHER_DER_MOTOR_ODER_DIE_SPEISEINHEIT_BETRIEBEN_WIRD, "DE"))
+ .definition(new LangString(ACTUAL_ROTATIONSPEED_WITH_WHICH_THE_MOTOR_OR_FEEDINGUNIT_IS_OPERATED, "EN"))
+ .build())
+ .build())
+ .build();
+ }
- public static final ConceptDescription CONCEPT_DESCRIPTION_DOCUMENT = new DefaultConceptDescription.Builder()
- .idShort(DOCUMENT)
- .identification(new DefaultIdentifier.Builder().identifier(WWW_VDI2770_COM_BLATT1_ENTWURF_OKT18_CD_DOCUMENT)
- .idType(IdentifierType.IRI).build())
- .embeddedDataSpecification(new DefaultEmbeddedDataSpecification.Builder()
- .dataSpecificationContent(new DefaultDataSpecificationIEC61360.Builder()
- .preferredName(new LangString(DOCUMENT, "EN"))
- .shortName(new LangString(DOCUMENT, "EN")).shortName(new LangString(DOKUMENT, "DE"))
- .unit("ExampleString").sourceOfDefinition(ISO15519_1_2010).dataType(DataTypeIEC61360.STRING)
- .definition(new LangString(
- DOCUMENT_DEF,
- "EN"))
- .build())
- .build())
- .build();
+ public static ConceptDescription createConceptDescriptionDocument() {
+ return new DefaultConceptDescription.Builder()
+ .idShort(DOCUMENT)
+ .identification(new DefaultIdentifier.Builder()
+ .identifier(WWW_VDI2770_COM_BLATT1_ENTWURF_OKT18_CD_DOCUMENT)
+ .idType(IdentifierType.IRI)
+ .build())
+ .embeddedDataSpecification(new DefaultEmbeddedDataSpecification.Builder()
+ .dataSpecificationContent(new DefaultDataSpecificationIEC61360.Builder()
+ .preferredName(new LangString(DOCUMENT, "EN"))
+ .shortName(new LangString(DOCUMENT, "EN"))
+ .shortName(new LangString(DOKUMENT, "DE"))
+ .unit("ExampleString")
+ .sourceOfDefinition(ISO15519_1_2010)
+ .dataType(DataTypeIEC61360.STRING)
+ .definition(new LangString(DOCUMENT_DEF, "EN"))
+ .build())
+ .build())
+ .build();
+ }
- public static final AssetAdministrationShellEnvironment ENVIRONMENT = new DefaultAssetAdministrationShellEnvironment.Builder()
- .assetAdministrationShells(AAS).submodels(SUBMODEL_TECHNICAL_DATA).submodels(SUBMODEL_DOCUMENTATION)
- .submodels(SUBMODEL_OPERATIONAL_DATA).conceptDescriptions(CONCEPT_DESCRIPTION_TITLE)
- .conceptDescriptions(CONCEPT_DESCRIPTION_DIGITALFILE)
- .conceptDescriptions(CONCEPT_DESCRIPTION_MAXROTATIONSPEED)
- .conceptDescriptions(CONCEPT_DESCRIPTION_ROTATIONSPEED).conceptDescriptions(CONCEPT_DESCRIPTION_DOCUMENT)
- .assets(ASSET)
- .build();
+ public static AssetAdministrationShellEnvironment createEnvironment() {
+ return new DefaultAssetAdministrationShellEnvironment.Builder()
+ .assetAdministrationShells(createAAS())
+ .submodels(createSubmodelTechnicalData())
+ .submodels(createSubmodelDocumentation())
+ .submodels(createSubmodelOperationalData())
+ .conceptDescriptions(createConceptDescriptionTitle())
+ .conceptDescriptions(createConceptDescriptionDigitalFile())
+ .conceptDescriptions(createConceptDescriptionMaxRotationSpeed())
+ .conceptDescriptions(createConceptDescriptionRotationSpeed())
+ .conceptDescriptions(createConceptDescriptionDocument())
+ .assets(createAsset())
+ .build();
+ }
}
diff --git a/dataformat-json/src/test/resources/assetAdministrationShellList.json b/dataformat-json/src/test/resources/assetAdministrationShellList.json
index 1f85d38f..31a549f1 100644
--- a/dataformat-json/src/test/resources/assetAdministrationShellList.json
+++ b/dataformat-json/src/test/resources/assetAdministrationShellList.json
@@ -85,7 +85,7 @@
]
},
{
- "idShort": "",
+ "idShort": "Test_AssetAdministrationShell_Mandatory",
"modelType": {
"name": "AssetAdministrationShell"
},
diff --git a/dataformat-json/src/test/resources/jsonExample.json b/dataformat-json/src/test/resources/jsonExample.json
index 5a4a7d47..77d6e8ca 100644
--- a/dataformat-json/src/test/resources/jsonExample.json
+++ b/dataformat-json/src/test/resources/jsonExample.json
@@ -1,530 +1,585 @@
+
{
"assetAdministrationShells": [
{
- "modelType": {
- "name": "AssetAdministrationShell"
- },
- "idShort": "ExampleMotor",
- "identification": {
- "idType": "Iri",
- "id": "http://customer.com/aas/9175_7013_7091_9168"
- },
- "assetInformation": {
- "assetKind": "Instance",
- "globalAssetId": {
- "keys": [
- {
- "type": "Asset",
- "value": "http://customer.com/assets/KHBVZJSQKIY",
- "idType": "Iri"
- }
- ]
- },
- "specificAssetIds": [
+ "modelType":
{
- "key": "EquipmentID",
- "value": "538fd1b3-f99f-4a52-9c75-72e9fa921270",
- "subjectId": {
- "keys": [
- {
- "type": "GlobalReference",
- "value": "http://customer.com/Systems/ERP/012",
- "idType": "Iri"
- }
- ]
- }
+ "name": "AssetAdministrationShell"
},
+ "assetInformation":
{
- "key": "DeviceID",
- "value": "QjYgPggjwkiHk4RrQiYSLg==",
- "subjectId": {
- "keys": [
+ "assetKind": "Instance",
+ "globalAssetId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "Asset",
+ "value": "http://customer.com/assets/KHBVZJSQKIY"
+ }
+ ]
+ },
+ "specificAssetIds": [
+ {
+ "key": "EquipmentID",
+ "value": "538fd1b3-f99f-4a52-9c75-72e9fa921270",
+ "subjectId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://customer.com/Systems/ERP/012"
+ }
+ ]
+ }
+ },
+ {
+ "key": "DeviceID",
+ "value": "QjYgPggjwkiHk4RrQiYSLg==",
+ "subjectId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://customer.com/Systems/IoT/1"
+ }
+ ]
+ }
+ }
+ ],
+ "thumbnail":
{
- "type": "GlobalReference",
- "value": "http://customer.com/Systems/IoT/1",
- "idType": "Iri"
+ "modelType":
+ {
+ "name": "File"
+ },
+ "mimeType": "image/png",
+ "value": "https://github.com/admin-shell/io/blob/master/verwaltungsschale-detail-part1.png",
+ "kind": "Instance",
+ "idShort": "thumbnail"
}
- ]
- }
- }
- ],
- "thumbnail": {
- "modelType": {
- "name": "File"
},
- "kind": "Instance",
- "idShort": "thumbnail",
- "mimeType": "image/png",
- "value": "https://github.com/admin-shell/io/blob/master/verwaltungsschale-detail-part1.png"
- }
- },
"submodels": [
{
"keys": [
{
+ "idType": "Iri",
"type": "Submodel",
- "value": "http://i40.customer.com/type/1/1/7A7104BDAB57E184",
- "idType": "Iri"
+ "value": "http://i40.customer.com/type/1/1/7A7104BDAB57E184"
}
]
},
{
"keys": [
{
+ "idType": "Iri",
"type": "Submodel",
- "value": "http://i40.customer.com/instance/1/1/AC69B1CB44F07935",
- "idType": "Iri"
+ "value": "http://i40.customer.com/instance/1/1/AC69B1CB44F07935"
}
]
},
{
"keys": [
{
+ "idType": "Iri",
"type": "Submodel",
- "value": "http://i40.customer.com/type/1/1/1A7B62B529F19152",
- "idType": "Iri"
+ "value": "http://i40.customer.com/type/1/1/1A7B62B529F19152"
}
]
}
- ]
+ ],
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://customer.com/aas/9175_7013_7091_9168"
+ },
+ "idShort": "ExampleMotor"
}
],
- "assets": [
- {
- "modelType": {
- "name": "Asset"
- },
- "idShort": "ServoDCMotor",
- "identification": {
- "idType": "Iri",
- "id": "http://customer.com/assets/KHBVZJSQKIY"
- }
- }
- ],
- "submodels": [
+ "assets": [
{
- "modelType": {
- "name": "Submodel"
- },
- "semanticId": {
- "keys": [
+ "modelType":
{
- "type": "GlobalReference",
- "value": "0173-1#01-AFZ615#016",
- "idType": "Irdi"
- }
- ]
- },
- "kind": "Instance",
- "idShort": "TechnicalData",
- "identification": {
- "idType": "Iri",
- "id": "http://i40.customer.com/type/1/1/7A7104BDAB57E184"
- },
- "submodelElements": [
- {
- "modelType": {
- "name": "Property"
+ "name": "Asset"
},
- "kind": "Instance",
- "semanticId": {
- "keys": [
- {
- "type": "ConceptDescription",
- "value": "0173-1#02-BAA120#008",
- "idType": "Irdi"
- }
- ]
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://customer.com/assets/KHBVZJSQKIY"
},
- "idShort": "MaxRotationSpeed",
- "category": "Parameter",
- "value": "5000",
- "valueType": "integer"
- }
- ]
- },
+ "idShort": "ServoDCMotor"
+ }
+ ],
+ "conceptDescriptions": [
{
- "modelType": {
- "name": "Submodel"
- },
- "kind": "Instance",
- "idShort": "Documentation",
- "identification": {
- "idType": "Iri",
- "id": "http://i40.customer.com/type/1/1/1A7B62B529F19152"
- },
- "submodelElements": [
- {
- "modelType": {
- "name": "SubmodelElementCollection"
+ "modelType":
+ {
+ "name": "ConceptDescription"
},
- "kind": "Instance",
- "semanticId": {
- "keys": [
+ "embeddedDataSpecifications": [
+ {
+ "dataSpecification":
{
- "type": "ConceptDescription",
- "value": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Document",
- "idType": "Iri"
- }
- ]
- },
- "idShort": "OperatingManual",
- "value": [
- {
- "modelType": {
- "name": "Property"
- },
- "kind": "Instance",
- "semanticId": {
"keys": [
{
- "type": "ConceptDescription",
- "value": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Description/Title",
- "idType": "Iri"
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0"
}
]
},
- "idShort": "Title",
- "value": "OperatingManual",
- "valueType": "langString"
- },
- {
- "modelType": {
- "name": "File"
- },
- "kind": "Instance",
- "semanticId": {
- "keys": [
+ "dataSpecificationContent":
+ {
+ "dataType": "StringTranslatable",
+ "sourceOfDefinition": "ExampleString",
+ "unit": "ExampleString",
+ "definition": [
{
- "type": "ConceptDescription",
- "value": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/StoredDocumentRepresentation/DigitalFile",
- "idType": "Iri"
+ "language": "EN",
+ "text": "SprachabhängigerTiteldesDokuments."
+ }
+ ],
+ "preferredName": [
+ {
+ "language": "EN",
+ "text": "Title"
+ },
+ {
+ "language": "DE",
+ "text": "Titel"
+ }
+ ],
+ "shortName": [
+ {
+ "language": "EN",
+ "text": "Title"
+ },
+ {
+ "language": "DE",
+ "text": "Titel"
}
]
- },
- "idShort": "DigitalFile_PDF",
- "mimeType": "application/pdf",
- "value": "/aasx/OperatingManual.pdf"
- }
- ]
+ }
}
- ]
+ ],
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Description/Title"
+ },
+ "idShort": "Title"
},
{
- "modelType": {
- "name": "Submodel"
- },
- "kind": "Instance",
- "idShort": "OperationalData",
- "identification": {
- "idType": "Iri",
- "id": "http://i40.customer.com/instance/1/1/AC69B1CB44F07935"
- },
- "submodelElements": [
- {
- "modelType": {
- "name": "Property"
- },
- "kind": "Instance",
- "semanticId": {
- "keys": [
- {
- "type": "ConceptDescription",
- "value": "http://customer.com/cd/1/1/18EBD56F6B43D895",
- "idType": "Iri"
- }
- ]
+ "modelType":
+ {
+ "name": "ConceptDescription"
},
- "idShort": "RotationSpeed",
- "category": "VARIABLE",
- "value": "4370",
- "valueType": "integer"
- }
- ]
- }
- ],
- "conceptDescriptions": [
- {
- "modelType": {
- "name": "ConceptDescription"
- },
- "idShort": "Title",
- "identification": {
- "idType": "Iri",
- "id": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Description/Title"
- },
"embeddedDataSpecifications": [
{
- "dataSpecification": {
- "keys": [
- {
- "type": "GlobalReference",
- "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0",
- "idType": "Iri"
- }
- ]
- },
- "dataSpecificationContent": {
- "preferredName": [
+ "dataSpecification":
{
- "language": "EN",
- "text": "Title"
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0"
+ }
+ ]
},
+ "dataSpecificationContent":
{
- "language": "DE",
- "text": "Titel"
+ "dataType": "String",
+ "sourceOfDefinition": "ExampleString",
+ "unit": "ExampleString",
+ "definition": [
+ {
+ "language": "EN",
+ "text": "A file representing the document version. In addition to the mandatory PDF file, other files can be specified."
+ }
+ ],
+ "preferredName": [
+ {
+ "language": "EN",
+ "text": "DigitalFile"
+ },
+ {
+ "language": "EN",
+ "text": "DigitalFile"
+ }
+ ],
+ "shortName": [
+ {
+ "language": "EN",
+ "text": "DigitalFile"
+ },
+ {
+ "language": "DE",
+ "text": "DigitaleDatei"
+ }
+ ]
}
- ],
- "shortName": [
+ }
+ ],
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/StoredDocumentRepresentation/DigitalFile"
+ },
+ "idShort": "DigitalFile"
+ },
+ {
+ "modelType":
+ {
+ "name": "ConceptDescription"
+ },
+ "embeddedDataSpecifications": [
+ {
+ "dataSpecification":
{
- "language": "EN",
- "text": "Title"
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0"
+ }
+ ]
},
+ "dataSpecificationContent":
{
- "language": "DE",
- "text": "Titel"
- }
- ],
- "unit": "",
- "sourceOfDefinition": "",
- "dataType": "StringTranslatable",
- "definition": [
- {
- "language": "DE",
- "text": "SprachabhängigerTiteldesDokuments."
+ "dataType": "RealMeasure",
+ "sourceOfDefinition": "ExampleString",
+ "unit": "1/min",
+ "unitId":
+ {
+ "keys": [
+ {
+ "idType": "Irdi",
+ "type": "GlobalReference",
+ "value": "0173-1#05-AAA650#002"
+ }
+ ]
+ },
+ "definition": [
+ {
+ "language": "de",
+ "text": "HöchstezulässigeDrehzahl,mitwelcherderMotoroderdieSpeiseinheitbetriebenwerdendarf"
+ },
+ {
+ "language": "EN",
+ "text": "Greatestpermissiblerotationspeedwithwhichthemotororfeedingunitmaybeoperated"
+ }
+ ],
+ "preferredName": [
+ {
+ "language": "de",
+ "text": "max.Drehzahl"
+ },
+ {
+ "language": "en",
+ "text": "Max.rotationspeed"
+ }
+ ]
}
- ]
- }
}
- ]
+ ],
+ "administration":
+ {
+ "revision": "2.1",
+ "version": "2"
+ },
+ "identification":
+ {
+ "idType": "Irdi",
+ "id": "0173-1#02-BAA120#008"
+ },
+ "category": "PROPERTY",
+ "idShort": "MaxRotationSpeed"
},
{
- "modelType": {
- "name": "ConceptDescription"
- },
- "idShort": "DigitalFile",
- "identification": {
- "idType": "Iri",
- "id": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/StoredDocumentRepresentation/DigitalFile"
- },
+ "modelType":
+ {
+ "name": "ConceptDescription"
+ },
"embeddedDataSpecifications": [
{
- "dataSpecification": {
- "keys": [
- {
- "type": "GlobalReference",
- "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0",
- "idType": "Iri"
- }
- ]
- },
- "dataSpecificationContent": {
- "preferredName": [
+ "dataSpecification":
{
- "language": "EN",
- "text": "DigitalFile"
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0"
+ }
+ ]
},
+ "dataSpecificationContent":
{
- "language": "DE",
- "text": "DigitaleDatei"
+ "dataType": "RealMeasure",
+ "sourceOfDefinition": "ExampleString",
+ "unit": "1/min",
+ "unitId":
+ {
+ "keys": [
+ {
+ "idType": "Irdi",
+ "type": "GlobalReference",
+ "value": "0173-1#05-AAA650#002"
+ }
+ ]
+ },
+ "definition": [
+ {
+ "language": "DE",
+ "text": "Aktuelle Drehzahl, mitwelcher der Motor oder die Speiseinheit betrieben wird"
+ },
+ {
+ "language": "EN",
+ "text": "Actual rotationspeed with which the motor or feedingunit is operated"
+ }
+ ],
+ "preferredName": [
+ {
+ "language": "DE",
+ "text": "AktuelleDrehzahl"
+ },
+ {
+ "language": "EN",
+ "text": "Actualrotationspeed"
+ }
+ ],
+ "shortName": [
+ {
+ "language": "DE",
+ "text": "AktuelleDrehzahl"
+ },
+ {
+ "language": "EN",
+ "text": "ActualRotationSpeed"
+ }
+ ]
}
- ],
- "shortName": [
+ }
+ ],
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://customer.com/cd/1/1/18EBD56F6B43D895"
+ },
+ "category": "PROPERTY",
+ "idShort": "RotationSpeed"
+ },
+ {
+ "modelType":
+ {
+ "name": "ConceptDescription"
+ },
+ "embeddedDataSpecifications": [
+ {
+ "dataSpecification":
{
- "language": "EN",
- "text": "DigitalFile"
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0"
+ }
+ ]
},
+ "dataSpecificationContent":
{
- "language": "DE",
- "text": "DigitaleDatei"
- }
- ],
- "unit": "",
- "sourceOfDefinition": "",
- "dataType": "String",
- "definition": [
- {
- "language": "DE",
- "text": "Eine Datei, die die Document Version repräsentiert. Neben der obligatorischen PDF Datei können weitere Dateien angegeben werden."
+ "dataType": "String",
+ "sourceOfDefinition": "[ISO15519-1:2010]",
+ "unit": "ExampleString",
+ "definition": [
+ {
+ "language": "EN",
+ "text": "Feste und geordnete Menge von für die Verwendung durch Personen bestimmte Informationen, die verwaltet und als Einheit zwischen Benutzern und System ausgetauscht werden kann."
+ }
+ ],
+ "preferredName": [
+ {
+ "language": "EN",
+ "text": "Document"
+ }
+ ],
+ "shortName": [
+ {
+ "language": "EN",
+ "text": "Document"
+ },
+ {
+ "language": "DE",
+ "text": "Dokument"
+ }
+ ]
}
- ]
- }
}
- ]
- },
+ ],
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Document"
+ },
+ "idShort": "Document"
+ }
+ ],
+ "submodels": [
{
- "modelType": {
- "name": "ConceptDescription"
- },
- "idShort": "MaxRotationSpeed",
- "category": "PROPERTY",
- "administration": {
- "version": "",
- "revision": "2"
- },
- "identification": {
- "idType": "Irdi",
- "id": "0173-1#02-BAA120#008"
- },
- "embeddedDataSpecifications": [
- {
- "dataSpecification": {
+ "modelType":
+ {
+ "name": "Submodel"
+ },
+ "kind": "Instance",
+ "semanticId":
+ {
"keys": [
{
+ "idType": "Irdi",
"type": "GlobalReference",
- "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0",
- "idType": "Iri"
+ "value": "0173-1#01-AFZ615#016"
}
]
},
- "dataSpecificationContent": {
- "preferredName": [
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://i40.customer.com/type/1/1/7A7104BDAB57E184"
+ },
+ "idShort": "TechnicalData",
+ "submodelElements": [
+ {
+ "modelType":
{
- "language": "de",
- "text": "max.Drehzahl"
+ "name": "Property"
},
+ "kind": "Instance",
+ "semanticId":
{
- "language": "en",
- "text": "Max.rotationspeed"
- }
- ],
- "unit": "1/min",
- "unitId": {
- "keys": [
- {
- "type": "GlobalReference",
- "value": "0173-1#05-AAA650#002",
- "idType": "Irdi"
- }
- ]
- },
- "sourceOfDefinition": "",
- "dataType": "RealMeasure",
- "definition": [
- {
- "language": "de",
- "text": "HöchstezulässigeDrehzahl,mitwelcherderMotoroderdieSpeiseinheitbetriebenwerdendarf"
+ "keys": [
+ {
+ "idType": "Irdi",
+ "type": "ConceptDescription",
+ "value": "0173-1#02-BAA120#008"
+ }
+ ]
},
- {
- "language": "en",
- "text": "Greatestpermissiblerotationspeedwithwhichthemotororfeedingunitmaybeoperated"
- }
- ]
- }
+ "value": "5000",
+ "valueType": "integer",
+ "category": "Parameter",
+ "idShort": "MaxRotationSpeed"
}
]
},
{
- "modelType": {
- "name": "ConceptDescription"
- },
- "idShort": "RotationSpeed",
- "category": "PROPERTY",
- "identification": {
- "idType": "Iri",
- "id": "http://customer.com/cd/1/1/18EBD56F6B43D895"
- },
- "embeddedDataSpecifications": [
- {
- "dataSpecification": {
- "keys": [
- {
- "type": "GlobalReference",
- "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0",
- "idType": "Iri"
- }
- ]
+ "modelType":
+ {
+ "name": "Submodel"
+ },
+ "kind": "Instance",
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://i40.customer.com/type/1/1/1A7B62B529F19152"
},
- "dataSpecificationContent": {
- "preferredName": [
+ "idShort": "Documentation",
+ "submodelElements": [
+ {
+ "modelType":
{
- "language": "DE",
- "text": "AktuelleDrehzahl"
+ "name": "SubmodelElementCollection"
},
+ "kind": "Instance",
+ "semanticId":
{
- "language": "EN",
- "text": "Actualrotationspeed"
- }
- ],
- "shortName": [
- {
- "language": "DE",
- "text": "AktuelleDrehzahl"
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "ConceptDescription",
+ "value": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Document"
+ }
+ ]
},
- {
- "language": "EN",
- "text": "ActualRotationSpeed"
- }
- ],
- "unit": "1/min",
- "unitId": {
- "keys": [
- {
- "type": "GlobalReference",
- "value": "0173-1#05-AAA650#002",
- "idType": "Irdi"
- }
- ]
+ "idShort": "OperatingManual",
+ "value": [
+ {
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "kind": "Instance",
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "ConceptDescription",
+ "value": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Description/Title"
+ }
+ ]
+ },
+ "value": "OperatingManual",
+ "valueType": "langString",
+ "idShort": "Title"
},
- "sourceOfDefinition": "",
- "dataType": "RealMeasure",
- "definition": [
- {
- "language": "DE",
- "text": "Aktuelle Drehzahl, mitwelcher der Motor oder die Speiseinheit betrieben wird"
- },
- {
- "language": "EN",
- "text": "Actual rotationspeed with which the motor or feedingunit is operated"
- }
- ]
- }
+ {
+ "modelType":
+ {
+ "name": "File"
+ },
+ "mimeType": "application/pdf",
+ "value": "/aasx/OperatingManual.pdf",
+ "kind": "Instance",
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "ConceptDescription",
+ "value": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/StoredDocumentRepresentation/DigitalFile"
+ }
+ ]
+ },
+ "idShort": "DigitalFile_PDF"
+ }
+ ]
}
]
},
{
- "modelType": {
- "name": "ConceptDescription"
- },
- "idShort": "Document",
- "identification": {
- "idType": "Iri",
- "id": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Document"
- },
- "embeddedDataSpecifications": [
- {
- "dataSpecification": {
- "keys": [
- {
- "type": "GlobalReference",
- "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0",
- "idType": "Iri"
- }
- ]
+ "modelType":
+ {
+ "name": "Submodel"
},
- "dataSpecificationContent": {
- "preferredName": [
- ],
- "shortName": [
+ "kind": "Instance",
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://i40.customer.com/instance/1/1/AC69B1CB44F07935"
+ },
+ "idShort": "OperationalData",
+ "submodelElements": [
+ {
+ "modelType":
{
- "language": "EN",
- "text": "Document"
+ "name": "Property"
},
+ "kind": "Instance",
+ "semanticId":
{
- "language": "DE",
- "text": "Dokument"
- }
- ],
- "unit": "",
- "sourceOfDefinition": "[ISO15519-1:2010]",
- "dataType": "String",
- "definition": [
- {
- "language": "DE",
- "text": "Feste und geordnete Menge von für die Verwendung durch Personen bestimmte Informationen, die verwaltet und als Einheit zwischen Benutzern und System ausgetauscht werden kann."
- }
- ]
- }
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "ConceptDescription",
+ "value": "http://customer.com/cd/1/1/18EBD56F6B43D895"
+ }
+ ]
+ },
+ "value": "4370",
+ "valueType": "integer",
+ "category": "Variable",
+ "idShort": "RotationSpeed"
}
]
}
diff --git a/dataformat-json/src/test/resources/submodel.json b/dataformat-json/src/test/resources/submodel.json
index a0f1c77b..1c778145 100644
--- a/dataformat-json/src/test/resources/submodel.json
+++ b/dataformat-json/src/test/resources/submodel.json
@@ -1,158 +1,139 @@
+
{
- "idShort": "Identification",
- "description": [
- {
- "language": "en-us",
- "text": "An example asset identification submodel for the test application"
- },
- {
- "language": "de",
- "text": "Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung"
- }
- ],
- "modelType":
- {
- "name": "Submodel"
- },
- "identification":
- {
- "id": "http://acplt.org/Submodels/Assets/TestAsset/Identification",
- "idType": "Iri"
- },
- "kind": "Instance",
- "administration":
- {
- "version": "0.9",
- "revision": "0"
- },
- "semanticId":
- {
- "keys": [
- {
- "type": "Submodel",
- "idType": "Iri",
- "value": "http://acplt.org/SubmodelTemplates/AssetIdentification"
- }
- ]
- },
- "submodelElements": [
- {
- "idShort": "ManufacturerName",
- "description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
- ],
- "modelType":
- {
- "name": "Property"
- },
- "semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "0173-1#02-AAO677#002"
- }
- ]
- },
- "qualifiers": [
- {
- "modelType":
- {
- "name": "Qualifier"
- },
- "value": "100",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
+ "modelType":
+ {
+ "name": "Submodel"
+ },
+ "kind": "Instance",
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "Submodel",
+ "value": "http://acplt.org/SubmodelTemplates/AssetIdentification"
+ }
+ ]
+ },
+ "administration":
+ {
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
"idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
+ "id": "http://acplt.org/Submodels/Assets/TestAsset/Identification"
+ },
+ "idShort": "Identification",
+ "submodelElements": [
+ {
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "0173-1#02-AAO677#002"
+ }
+ ]
+ },
+ "value": "http://acplt.org/ValueId/ACPLT",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ACPLT"
+ }
+ ]
+ },
+ "valueType": "string",
+ "qualifiers": [
+ {
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier",
+ "value": "100",
+ "valueType": "int"
+ },
+ {
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier2",
+ "value": "50",
+ "valueType": "int"
+ }
+ ],
+ "idShort": "ManufacturerName",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
]
- },
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier"
},
{
- "modelType":
- {
- "name": "Qualifier"
- },
- "value": "50",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
+ }
+ ]
+ },
+ "value": "978-8234-234-342",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "978-8234-234-342"
+ }
+ ]
+ },
+ "valueType": "string",
+ "idShort": "InstanceId",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
]
- },
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier2"
}
- ],
- "value": "ACPLT",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "string"
- },
- {
- "idShort": "InstanceId",
- "description": [
+ ],
+ "description": [
{
- "language": "en-us",
- "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."
+ "language": "en-us",
+ "text": "An example asset identification submodel for the test application"
},
{
- "language": "de",
- "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"
+ "language": "de",
+ "text": "Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung"
}
- ],
- "modelType":
- {
- "name": "Property"
- },
- "semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
- }
- ]
- },
- "value": "978-8234-234-342",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "string"
- }
- ]
-}
\ No newline at end of file
+ ]
+}
diff --git a/dataformat-json/src/test/resources/submodelElement.json b/dataformat-json/src/test/resources/submodelElement.json
index 67ea2d3a..7b8693e7 100644
--- a/dataformat-json/src/test/resources/submodelElement.json
+++ b/dataformat-json/src/test/resources/submodelElement.json
@@ -1,79 +1,60 @@
+
{
- "idShort": "ManufacturerName",
- "description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
- ],
- "modelType":
- {
- "name": "Property"
- },
- "semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "0173-1#02-AAO677#002"
- }
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "0173-1#02-AAO677#002"
+ }
+ ]
+ },
+ "value": "http://acplt.org/ValueId/ACPLT",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ACPLT"
+ }
+ ]
+ },
+ "valueType": "string",
+ "qualifiers": [
+ {
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier",
+ "value": "100",
+ "valueType": "int"
+ },
+ {
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier2",
+ "value": "50",
+ "valueType": "int"
+ }
+ ],
+ "idShort": "ManufacturerName",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
]
- },
- "qualifiers": [
- {
- "modelType":
- {
- "name": "Qualifier"
- },
- "value": "100",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier"
- },
- {
- "modelType":
- {
- "name": "Qualifier"
- },
- "value": "50",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier2"
- }
- ],
- "value": "ACPLT",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "string"
-}
\ No newline at end of file
+}
diff --git a/dataformat-json/src/test/resources/submodelElementList.json b/dataformat-json/src/test/resources/submodelElementList.json
index b120f35e..4a268309 100644
--- a/dataformat-json/src/test/resources/submodelElementList.json
+++ b/dataformat-json/src/test/resources/submodelElementList.json
@@ -1,120 +1,100 @@
[
- {
- "idShort": "ManufacturerName",
- "description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
- ],
- "modelType":
{
- "name": "Property"
- },
- "semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "0173-1#02-AAO677#002"
- }
- ]
- },
- "qualifiers": [
- {
"modelType":
- {
- "name": "Qualifier"
- },
- "value": "100",
+ {
+ "name": "Property"
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "0173-1#02-AAO677#002"
+ }
+ ]
+ },
+ "value": "http://acplt.org/ValueId/ACPLT",
"valueId":
- {
- "keys": [
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ACPLT"
+ }
+ ]
+ },
+ "valueType": "string",
+ "qualifiers": [
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier",
+ "value": "100",
+ "valueType": "int"
+ },
+ {
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier2",
+ "value": "50",
+ "valueType": "int"
}
- ]
- },
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier"
- },
- {
- "modelType":
- {
- "name": "Qualifier"
- },
- "value": "50",
- "valueId":
- {
- "keys": [
+ ],
+ "idShort": "ManufacturerName",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
+ "language": "de",
+ "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"
}
- ]
- },
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier2"
- }
- ],
- "value": "ACPLT",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "string"
- },
- {
- "idShort": "InstanceId",
- "description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
- ],
- "modelType":
- {
- "name": "Property"
- },
- "semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
- }
- ]
+ ]
},
- "value": "978-8234-234-342",
- "valueId":
{
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "string"
- }
-]
\ No newline at end of file
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
+ }
+ ]
+ },
+ "value": "978-8234-234-342",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "978-8234-234-342"
+ }
+ ]
+ },
+ "valueType": "string",
+ "idShort": "InstanceId",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
+ ]
+ }
+]
diff --git a/dataformat-json/src/test/resources/submodelList.json b/dataformat-json/src/test/resources/submodelList.json
index 51723969..87770139 100644
--- a/dataformat-json/src/test/resources/submodelList.json
+++ b/dataformat-json/src/test/resources/submodelList.json
@@ -1,347 +1,327 @@
[
- {
- "idShort": "Identification",
- "description": [
- {
- "language": "en-us",
- "text": "An example asset identification submodel for the test application"
- },
- {
- "language": "de",
- "text": "Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung"
- }
- ],
- "modelType":
{
- "name": "Submodel"
- },
- "identification":
- {
- "id": "http://acplt.org/Submodels/Assets/TestAsset/Identification",
- "idType": "Iri"
- },
- "kind": "Instance",
- "administration":
- {
- "version": "0.9",
- "revision": "0"
- },
- "semanticId":
- {
- "keys": [
- {
- "type": "Submodel",
- "idType": "Iri",
- "value": "http://acplt.org/SubmodelTemplates/AssetIdentification"
- }
- ]
- },
- "submodelElements": [
- {
- "idShort": "ManufacturerName",
- "description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
- ],
"modelType":
- {
- "name": "Property"
- },
+ {
+ "name": "Submodel"
+ },
+ "kind": "Instance",
"semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "0173-1#02-AAO677#002"
- }
- ]
- },
- "qualifiers": [
- {
- "modelType":
- {
- "name": "Qualifier"
- },
- "value": "100",
- "valueId":
- {
- "keys": [
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier"
- },
- {
- "modelType":
- {
- "name": "Qualifier"
- },
- "value": "50",
- "valueId":
- {
- "keys": [
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "Submodel",
+ "value": "http://acplt.org/SubmodelTemplates/AssetIdentification"
+ }
+ ]
+ },
+ "administration":
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://acplt.org/Submodels/Assets/TestAsset/Identification"
+ },
+ "idShort": "Identification",
+ "submodelElements": [
+ {
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "0173-1#02-AAO677#002"
+ }
+ ]
+ },
+ "value": "http://acplt.org/ValueId/ACPLT",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ACPLT"
+ }
+ ]
+ },
+ "valueType": "string",
+ "qualifiers": [
+ {
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier",
+ "value": "100",
+ "valueType": "int"
+ },
+ {
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier2",
+ "value": "50",
+ "valueType": "int"
+ }
+ ],
+ "idShort": "ManufacturerName",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
+ ]
},
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier2"
- }
- ],
- "value": "ACPLT",
- "valueId":
- {
- "keys": [
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
+ }
+ ]
+ },
+ "value": "978-8234-234-342",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "978-8234-234-342"
+ }
+ ]
+ },
+ "valueType": "string",
+ "idShort": "InstanceId",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
+ ]
}
- ]
- },
- "valueType": "string"
- },
- {
- "idShort": "InstanceId",
- "description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
],
- "modelType":
- {
- "name": "Property"
- },
- "semanticId":
- {
- "keys": [
+ "description": [
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
- }
- ]
- },
- "value": "978-8234-234-342",
- "valueId":
- {
- "keys": [
+ "language": "en-us",
+ "text": "An example asset identification submodel for the test application"
+ },
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
+ "language": "de",
+ "text": "Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung"
}
- ]
- },
- "valueType": "string"
- }
- ]
- },
- {
- "idShort": "BillOfMaterial",
- "description": [
- {
- "language": "en-us",
- "text": "An example bill of material submodel for the test application"
- },
- {
- "language": "de",
- "text": "Ein Beispiel-BillofMaterial-Submodel für eine Test-Anwendung"
- }
- ],
- "modelType":
- {
- "name": "Submodel"
- },
- "identification":
- {
- "id": "http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial",
- "idType": "Iri"
+ ]
},
- "kind": "Instance",
- "administration":
{
- "version": "0.9"
- },
- "semanticId":
- {
- "keys": [
- {
- "type": "Submodel",
- "idType": "Iri",
- "value": "http://acplt.org/SubmodelTemplates/BillOfMaterial"
- }
- ]
- },
- "submodelElements": [
- {
- "idShort": "ExampleEntity",
- "description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
- ],
"modelType":
- {
- "name": "Entity"
- },
+ {
+ "name": "Submodel"
+ },
+ "kind": "Instance",
"semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
- }
- ]
- },
- "statements": [
- {
- "idShort": "ExampleProperty2",
- "category": "Constant",
- "description": [
- {
- "language": "en-us",
- "text": "Example Property object"
- },
- {
- "language": "de",
- "text": "Beispiel Property Element"
- }
- ],
- "modelType":
- {
- "name": "Property"
- },
- "semanticId":
- {
- "keys": [
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/Properties/ExampleProperty"
- }
- ]
- },
- "value": "exampleValue2",
- "valueId":
- {
- "keys": [
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "Submodel",
+ "value": "http://acplt.org/SubmodelTemplates/BillOfMaterial"
+ }
+ ]
+ },
+ "administration":
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "string"
- },
- {
- "idShort": "ExampleProperty",
- "category": "Constant",
- "description": [
- {
- "language": "en-us",
- "text": "Example Property object"
- },
- {
- "language": "de",
- "text": "Beispiel Property Element"
- }
- ],
- "modelType":
- {
- "name": "Property"
- },
- "semanticId":
- {
- "keys": [
+ "version": "0.9"
+ },
+ "identification":
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/Properties/ExampleProperty"
- }
- ]
- },
- "value": "exampleValue",
- "valueId":
+ "idType": "Iri",
+ "id": "http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial"
+ },
+ "idShort": "BillOfMaterial",
+ "submodelElements": [
{
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
+ "modelType":
+ {
+ "name": "Entity"
+ },
+ "entityType": "CoManagedEntity",
+ "statements": [
+ {
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/Properties/ExampleProperty"
+ }
+ ]
+ },
+ "value": "http://acplt.org/ValueId/ExampleValue2",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ExampleValue2"
+ }
+ ]
+ },
+ "valueType": "string",
+ "category": "Constant",
+ "idShort": "ExampleProperty2",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Property object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Property Element"
+ }
+ ]
+ },
+ {
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/Properties/ExampleProperty"
+ }
+ ]
+ },
+ "value": "http://acplt.org/ValueId/ExampleValueId",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ExampleValueId"
+ }
+ ]
+ },
+ "valueType": "string",
+ "category": "Constant",
+ "idShort": "ExampleProperty",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Property object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Property Element"
+ }
+ ]
+ }
+ ],
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
+ }
+ ]
+ },
+ "idShort": "ExampleEntity",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
+ ]
},
- "valueType": "string"
- }
+ {
+ "modelType":
+ {
+ "name": "Entity"
+ },
+ "entityType": "SelfManagedEntity",
+ "globalAssetId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "Asset",
+ "value": "https://acplt.org/Test_Asset2"
+ }
+ ]
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
+ }
+ ]
+ },
+ "idShort": "ExampleEntity2",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
+ ]
+ }
],
- "entityType": "CoManagedEntity"
- },
- {
- "idShort": "ExampleEntity2",
"description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
- ],
- "modelType":
- {
- "name": "Entity"
- },
- "semanticId":
- {
- "keys": [
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
- }
- ]
- },
- "entityType": "SelfManagedEntity",
- "globalAssetId":
- {
- "keys": [
+ "language": "en-us",
+ "text": "An example bill of material submodel for the test application"
+ },
{
- "type": "Asset",
- "idType": "Iri",
- "value": "https://acplt.org/Test_Asset2"
+ "language": "de",
+ "text": "Ein Beispiel-BillofMaterial-Submodel für eine Test-Anwendung"
}
- ]
- }
- }
- ]
- }
-]
\ No newline at end of file
+ ]
+ }
+]
diff --git a/dataformat-json/src/test/resources/test_demo_full_example.json b/dataformat-json/src/test/resources/test_demo_full_example.json
index 8bb8f40a..c10f5f78 100644
--- a/dataformat-json/src/test/resources/test_demo_full_example.json
+++ b/dataformat-json/src/test/resources/test_demo_full_example.json
@@ -2,41 +2,10 @@
{
"assetAdministrationShells": [
{
- "idShort": "TestAssetAdministrationShell",
- "description": [
- {
- "language": "en-us",
- "text": "An Example Asset Administration Shell for the test application"
- },
- {
- "language": "de",
- "text": "Ein Beispiel-Verwaltungsschale für eine Test-Anwendung"
- }
- ],
"modelType":
{
"name": "AssetAdministrationShell"
},
- "identification":
- {
- "id": "https://acplt.org/Test_AssetAdministrationShell",
- "idType": "Iri"
- },
- "administration":
- {
- "version": "0.9",
- "revision": "0"
- },
- "derivedFrom":
- {
- "keys": [
- {
- "type": "AssetAdministrationShell",
- "idType": "Iri",
- "value": "https://acplt.org/TestAssetAdministrationShell2"
- }
- ]
- },
"assetInformation":
{
"assetKind": "Instance",
@@ -44,8 +13,8 @@
{
"keys": [
{
- "type": "Asset",
"idType": "Iri",
+ "type": "Asset",
"value": "https://acplt.org/Test_Asset"
}
]
@@ -54,20 +23,30 @@
{
"keys": [
{
- "type": "Submodel",
"idType": "Iri",
+ "type": "Submodel",
"value": "http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial"
}
]
}
]
},
+ "derivedFrom":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "AssetAdministrationShell",
+ "value": "https://acplt.org/TestAssetAdministrationShell2"
+ }
+ ]
+ },
"submodels": [
{
"keys": [
{
- "type": "Submodel",
"idType": "Iri",
+ "type": "Submodel",
"value": "https://acplt.org/Test_Submodel"
}
]
@@ -75,8 +54,8 @@
{
"keys": [
{
- "type": "Submodel",
"idType": "Iri",
+ "type": "Submodel",
"value": "http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial"
}
]
@@ -84,25 +63,40 @@
{
"keys": [
{
- "type": "Submodel",
"idType": "Iri",
+ "type": "Submodel",
"value": "http://acplt.org/Submodels/Assets/TestAsset/Identification"
}
]
}
+ ],
+ "administration":
+ {
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_AssetAdministrationShell"
+ },
+ "idShort": "TestAssetAdministrationShell",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "An Example Asset Administration Shell for the test application"
+ },
+ {
+ "language": "de",
+ "text": "Ein Beispiel-Verwaltungsschale für eine Test-Anwendung"
+ }
]
},
{
- "idShort": "",
"modelType":
{
"name": "AssetAdministrationShell"
},
- "identification":
- {
- "id": "https://acplt.org/Test_AssetAdministrationShell_Mandatory",
- "idType": "Iri"
- },
"assetInformation":
{
"assetKind": "Instance",
@@ -110,8 +104,8 @@
{
"keys": [
{
- "type": "Asset",
"idType": "Iri",
+ "type": "Asset",
"value": "https://acplt.org/Test_Asset_Mandatory"
}
]
@@ -121,8 +115,8 @@
{
"keys": [
{
- "type": "Submodel",
"idType": "Iri",
+ "type": "Submodel",
"value": "https://acplt.org/Test_Submodel_Mandatory"
}
]
@@ -130,25 +124,25 @@
{
"keys": [
{
- "type": "Submodel",
"idType": "Iri",
+ "type": "Submodel",
"value": "https://acplt.org/Test_Submodel2_Mandatory"
}
]
}
- ]
+ ],
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_AssetAdministrationShell_Mandatory"
+ },
+ "idShort": "Test_AssetAdministrationShell_Mandatory"
},
{
- "idShort": "",
"modelType":
{
"name": "AssetAdministrationShell"
},
- "identification":
- {
- "id": "https://acplt.org/Test_AssetAdministrationShell2_Mandatory",
- "idType": "Iri"
- },
"assetInformation":
{
"assetKind": "Instance",
@@ -156,39 +150,24 @@
{
"keys": [
{
- "type": "Asset",
"idType": "Iri",
+ "type": "Asset",
"value": "https://acplt.org/Test_Asset_Mandatory"
}
]
}
- }
- },
- {
- "idShort": "TestAssetAdministrationShell",
- "description": [
- {
- "language": "en-us",
- "text": "An Example Asset Administration Shell for the test application"
- },
- {
- "language": "de",
- "text": "Ein Beispiel-Verwaltungsschale für eine Test-Anwendung"
- }
- ],
- "modelType":
- {
- "name": "AssetAdministrationShell"
},
"identification":
{
- "id": "https://acplt.org/Test_AssetAdministrationShell_Missing",
- "idType": "Iri"
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_AssetAdministrationShell2_Mandatory"
},
- "administration":
+ "idShort": "Test_AssetAdministrationShell2_Mandatory"
+ },
+ {
+ "modelType":
{
- "version": "0.9",
- "revision": "0"
+ "name": "AssetAdministrationShell"
},
"assetInformation":
{
@@ -197,8 +176,8 @@
{
"keys": [
{
- "type": "Asset",
"idType": "Iri",
+ "type": "Asset",
"value": "https://acplt.org/Test_Asset_Missing"
}
]
@@ -208,8 +187,8 @@
{
"keys": [
{
- "type": "Submodel",
"idType": "Iri",
+ "type": "Submodel",
"value": "https://acplt.org/Test_Submodel_Missing"
}
]
@@ -217,17 +196,17 @@
],
"views": [
{
- "idShort": "ExampleView",
"modelType":
{
"name": "View"
},
+ "idShort": "ExampleView",
"containedElements": [
{
"keys": [
{
- "type": "Submodel",
"idType": "Iri",
+ "type": "Submodel",
"value": "https://acplt.org/Test_Submodel_Missing"
}
]
@@ -235,135 +214,315 @@
]
},
{
- "idShort": "ExampleView2",
"modelType":
{
"name": "View"
- }
+ },
+ "idShort": "ExampleView2"
+ }
+ ],
+ "administration":
+ {
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_AssetAdministrationShell_Missing"
+ },
+ "idShort": "TestAssetAdministrationShell",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "An Example Asset Administration Shell for the test application"
+ },
+ {
+ "language": "de",
+ "text": "Ein Beispiel-Verwaltungsschale für eine Test-Anwendung"
}
]
}
],
- "submodels": [
+ "conceptDescriptions": [
{
- "idShort": "Identification",
+ "modelType":
+ {
+ "name": "ConceptDescription"
+ },
+ "administration":
+ {
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_ConceptDescription"
+ },
+ "idShort": "TestConceptDescription",
+ "isCaseOf": [
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/DataSpecifications/ConceptDescriptions/TestConceptDescription"
+ }
+ ]
+ }
+ ],
"description": [
{
"language": "en-us",
- "text": "An example asset identification submodel for the test application"
+ "text": "An example concept description for the test application"
},
{
"language": "de",
- "text": "Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung"
+ "text": "Ein Beispiel-ConceptDescription für eine Test-Anwendung"
}
- ],
+ ]
+ },
+ {
"modelType":
{
- "name": "Submodel"
+ "name": "ConceptDescription"
},
"identification":
{
- "id": "http://acplt.org/Submodels/Assets/TestAsset/Identification",
- "idType": "Iri"
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_ConceptDescription_Mandatory"
+ },
+ "idShort": "Test_ConceptDescription_Mandatory"
+ },
+ {
+ "modelType":
+ {
+ "name": "ConceptDescription"
},
- "kind": "Instance",
"administration":
{
- "version": "0.9",
- "revision": "0"
+ "revision": "0",
+ "version": "0.9"
},
- "semanticId":
+ "identification":
{
- "keys": [
- {
- "type": "Submodel",
- "idType": "Iri",
- "value": "http://acplt.org/SubmodelTemplates/AssetIdentification"
- }
- ]
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_ConceptDescription_Missing"
},
- "submodelElements": [
+ "idShort": "TestConceptDescription1",
+ "description": [
{
- "idShort": "ManufacturerName",
- "description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
- ],
- "modelType":
- {
- "name": "Property"
- },
- "semanticId":
+ "language": "en-us",
+ "text": "An example concept description for the test application"
+ },
+ {
+ "language": "de",
+ "text": "Ein Beispiel-ConceptDescription für eine Test-Anwendung"
+ }
+ ]
+ },
+ {
+ "modelType":
+ {
+ "name": "ConceptDescription"
+ },
+ "embeddedDataSpecifications": [
+ {
+ "dataSpecification":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
- "value": "0173-1#02-AAO677#002"
+ "type": "GlobalReference",
+ "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0"
}
]
},
- "qualifiers": [
- {
- "modelType":
- {
- "name": "Qualifier"
- },
- "value": "100",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- },
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier"
- },
- {
- "modelType":
- {
- "name": "Qualifier"
- },
- "value": "50",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
+ "dataSpecificationContent":
+ {
+ "dataType": "RealMeasure",
+ "sourceOfDefinition": "http://acplt.org/DataSpec/ExampleDef",
+ "symbol": "SU",
+ "unit": "SpaceUnit",
+ "unitId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/Units/SpaceUnit"
+ }
+ ]
+ },
+ "value": "TEST",
+ "valueFormat": "string",
+ "valueList":
+ {
+ "valueReferencePairTypes": [
+ {
+ "value": "http://acplt.org/ValueId/ExampleValueId",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ExampleValueId"
+ }
+ ]
+ }
+ },
+ {
+ "value": "http://acplt.org/ValueId/ExampleValueId2",
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ExampleValueId2"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "definition": [
+ {
+ "language": "de",
+ "text": "Dies ist eine Data Specification für Testzwecke"
},
- "valueType": "int",
- "type": "http://acplt.org/Qualifier/ExampleQualifier2"
+ {
+ "language": "en-us",
+ "text": "This is a DataSpecification for testing purposes"
+ }
+ ],
+ "levelType": ["Min", "Max"],
+ "preferredName": [
+ {
+ "language": "de",
+ "text": "Test Specification"
+ },
+ {
+ "language": "en-us",
+ "text": "TestSpecification"
+ }
+ ],
+ "shortName": [
+ {
+ "language": "de",
+ "text": "Test Spec"
+ },
+ {
+ "language": "en-us",
+ "text": "TestSpec"
+ }
+ ]
+ }
+ }
+ ],
+ "administration":
+ {
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://acplt.org/DataSpecifciations/Example/Identification"
+ },
+ "idShort": "TestSpec_01",
+ "isCaseOf": [
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ReferenceElements/ConceptDescriptionX"
}
- ],
- "value": "ACPLT",
- "valueId":
+ ]
+ }
+ ]
+ }
+ ],
+ "submodels": [
+ {
+ "modelType":
+ {
+ "name": "Submodel"
+ },
+ "kind": "Instance",
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "Submodel",
+ "value": "http://acplt.org/SubmodelTemplates/AssetIdentification"
+ }
+ ]
+ },
+ "administration":
+ {
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://acplt.org/Submodels/Assets/TestAsset/Identification"
+ },
+ "idShort": "Identification",
+ "submodelElements": [
+ {
+ "modelType":
+ {
+ "name": "Property"
+ },
+ "semanticId":
{
"keys": [
{
+ "idType": "Iri",
"type": "GlobalReference",
+ "value": "0173-1#02-AAO677#002"
+ }
+ ]
+ },
+ "value": "http://acplt.org/ValueId/ACPLT",
+ "valueId":
+ {
+ "keys": [
+ {
"idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ACPLT"
}
]
},
- "valueType": "string"
- },
- {
- "idShort": "InstanceId",
+ "valueType": "string",
+ "qualifiers": [
+ {
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier",
+ "value": "100",
+ "valueType": "int"
+ },
+ {
+ "modelType":
+ {
+ "name": "Qualifier"
+ },
+ "type": "http://acplt.org/Qualifier/ExampleQualifier2",
+ "value": "50",
+ "valueType": "int"
+ }
+ ],
+ "idShort": "ManufacturerName",
"description": [
{
"language": "en-us",
@@ -373,7 +532,9 @@
"language": "de",
"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"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Property"
@@ -382,8 +543,8 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
}
]
@@ -393,93 +554,72 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
+ "type": "GlobalReference",
+ "value": "978-8234-234-342"
}
]
},
- "valueType": "string"
+ "valueType": "string",
+ "idShort": "InstanceId",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
+ ]
}
- ]
- },
- {
- "idShort": "BillOfMaterial",
+ ],
"description": [
{
"language": "en-us",
- "text": "An example bill of material submodel for the test application"
+ "text": "An example asset identification submodel for the test application"
},
{
"language": "de",
- "text": "Ein Beispiel-BillofMaterial-Submodel für eine Test-Anwendung"
+ "text": "Ein Beispiel-Identifikations-Submodel für eine Test-Anwendung"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Submodel"
},
- "identification":
- {
- "id": "http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial",
- "idType": "Iri"
- },
"kind": "Instance",
- "administration":
- {
- "version": "0.9"
- },
"semanticId":
{
"keys": [
{
- "type": "Submodel",
"idType": "Iri",
+ "type": "Submodel",
"value": "http://acplt.org/SubmodelTemplates/BillOfMaterial"
}
]
},
+ "administration":
+ {
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "http://acplt.org/Submodels/Assets/TestAsset/BillOfMaterial"
+ },
+ "idShort": "BillOfMaterial",
"submodelElements": [
{
- "idShort": "ExampleEntity",
- "description": [
- {
- "language": "en-us",
- "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."
- },
- {
- "language": "de",
- "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"
- }
- ],
"modelType":
{
"name": "Entity"
},
- "semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
- }
- ]
- },
+ "entityType": "CoManagedEntity",
"statements": [
{
- "idShort": "ExampleProperty2",
- "category": "Constant",
- "description": [
- {
- "language": "en-us",
- "text": "Example Property object"
- },
- {
- "language": "de",
- "text": "Beispiel Property Element"
- }
- ],
"modelType":
{
"name": "Property"
@@ -488,28 +628,26 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "value": "exampleValue2",
+ "value": "http://acplt.org/ValueId/ExampleValue2",
"valueId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ExampleValue2"
}
]
},
- "valueType": "string"
- },
- {
- "idShort": "ExampleProperty",
+ "valueType": "string",
"category": "Constant",
+ "idShort": "ExampleProperty2",
"description": [
{
"language": "en-us",
@@ -519,7 +657,9 @@
"language": "de",
"text": "Beispiel Property Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Property"
@@ -528,30 +668,49 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "value": "exampleValue",
+ "value": "http://acplt.org/ValueId/ExampleValueId",
"valueId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/ValueId/ExampleValueId"
}
]
},
- "valueType": "string"
+ "valueType": "string",
+ "category": "Constant",
+ "idShort": "ExampleProperty",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Property object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Property Element"
+ }
+ ]
}
],
- "entityType": "CoManagedEntity"
- },
- {
- "idShort": "ExampleEntity2",
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
+ }
+ ]
+ },
+ "idShort": "ExampleEntity",
"description": [
{
"language": "en-us",
@@ -561,86 +720,87 @@
"language": "de",
"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"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Entity"
},
- "semanticId":
+ "entityType": "SelfManagedEntity",
+ "globalAssetId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
- "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
+ "type": "Asset",
+ "value": "https://acplt.org/Test_Asset2"
}
]
},
- "entityType": "SelfManagedEntity",
- "globalAssetId":
+ "semanticId":
{
"keys": [
{
- "type": "Asset",
"idType": "Iri",
- "value": "https://acplt.org/Test_Asset2"
+ "type": "GlobalReference",
+ "value": "http://opcfoundation.org/UA/DI/1.1/DeviceType/Serialnumber"
}
]
- }
+ },
+ "idShort": "ExampleEntity2",
+ "description": [
+ {
+ "language": "en-us",
+ "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."
+ },
+ {
+ "language": "de",
+ "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"
+ }
+ ]
}
- ]
- },
- {
- "idShort": "TestSubmodel",
+ ],
"description": [
{
"language": "en-us",
- "text": "An example submodel for the test application"
+ "text": "An example bill of material submodel for the test application"
},
{
"language": "de",
- "text": "Ein Beispiel-Teilmodell für eine Test-Anwendung"
+ "text": "Ein Beispiel-BillofMaterial-Submodel für eine Test-Anwendung"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Submodel"
},
- "identification":
- {
- "id": "https://acplt.org/Test_Submodel",
- "idType": "Iri"
- },
"kind": "Instance",
- "administration":
- {
- "version": "0.9",
- "revision": "0"
- },
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelTemplates/ExampleSubmodel"
}
]
},
+ "administration":
+ {
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_Submodel"
+ },
+ "idShort": "TestSubmodel",
"submodelElements": [
{
- "idShort": "ExampleRelationshipElement",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example RelationshipElement object"
- },
- {
- "language": "de",
- "text": "Beispiel RelationshipElement Element"
- }
- ],
"modelType":
{
"name": "RelationshipElement"
@@ -649,12 +809,14 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/RelationshipElements/ExampleRelationshipElement"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleRelationshipElement",
"first":
{
"keys": [
@@ -694,21 +856,19 @@
"value": "ExampleProperty2"
}
]
- }
- },
- {
- "idShort": "ExampleAnnotatedRelationshipElement",
- "category": "Parameter",
+ },
"description": [
{
"language": "en-us",
- "text": "Example AnnotatedRelationshipElement object"
+ "text": "Example RelationshipElement object"
},
{
"language": "de",
- "text": "Beispiel AnnotatedRelationshipElement Element"
+ "text": "Beispiel RelationshipElement Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "AnnotatedRelationshipElement"
@@ -717,12 +877,14 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/RelationshipElements/ExampleAnnotatedRelationshipElement"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleAnnotatedRelationshipElement",
"first":
{
"keys": [
@@ -770,56 +932,45 @@
"name": "Property"
},
"kind": "Instance",
- "idShort": "ExampleProperty3",
- "category": "Parameter",
"value": "some example annotation",
- "valueType": "string"
+ "valueType": "string",
+ "category": "Parameter",
+ "idShort": "ExampleProperty3"
}
- ]
- },
- {
- "idShort": "ExampleOperation",
- "category": "Parameter",
+ ],
"description": [
{
"language": "en-us",
- "text": "Example Operation object"
+ "text": "Example AnnotatedRelationshipElement object"
},
{
"language": "de",
- "text": "Beispiel Operation Element"
+ "text": "Beispiel AnnotatedRelationshipElement Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Operation"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Operations/ExampleOperation"
}
]
},
- "inputVariable": [
+ "category": "Parameter",
+ "idShort": "ExampleOperation",
+ "inoutputVariable": [
{
"value":
{
- "idShort": "ExampleProperty1",
- "category": "Constant",
- "description": [
- {
- "language": "en-us",
- "text": "Example Property object"
- },
- {
- "language": "de",
- "text": "Beispiel Property Element"
- }
- ],
"modelType":
{
"name": "Property"
@@ -828,33 +979,26 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "value": "exampleValue",
+ "value": "http://acplt.org/ValueId/ExampleValueId",
"valueId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/ValueId/ExampleValueId"
}
]
},
- "valueType": "string"
- }
- }
- ],
- "outputVariable": [
- {
- "value":
- {
- "idShort": "ExampleProperty2",
+ "valueType": "string",
"category": "Constant",
+ "idShort": "ExampleProperty3",
"description": [
{
"language": "en-us",
@@ -864,7 +1008,14 @@
"language": "de",
"text": "Beispiel Property Element"
}
- ],
+ ]
+ }
+ }
+ ],
+ "inputVariable": [
+ {
+ "value":
+ {
"modelType":
{
"name": "Property"
@@ -873,33 +1024,26 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "value": "exampleValue",
+ "value": "http://acplt.org/ValueId/ExampleValueId",
"valueId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/ValueId/ExampleValueId"
}
]
},
- "valueType": "string"
- }
- }
- ],
- "inoutputVariable": [
- {
- "value":
- {
- "idShort": "ExampleProperty3",
+ "valueType": "string",
"category": "Constant",
+ "idShort": "ExampleProperty1",
"description": [
{
"language": "en-us",
@@ -909,7 +1053,14 @@
"language": "de",
"text": "Beispiel Property Element"
}
- ],
+ ]
+ }
+ }
+ ],
+ "outputVariable": [
+ {
+ "value":
+ {
"modelType":
{
"name": "Property"
@@ -918,41 +1069,51 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "value": "exampleValue",
+ "value": "http://acplt.org/ValueId/ExampleValueId",
"valueId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/ValueId/ExampleValueId"
}
]
},
- "valueType": "string"
+ "valueType": "string",
+ "category": "Constant",
+ "idShort": "ExampleProperty2",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Property object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Property Element"
+ }
+ ]
}
}
- ]
- },
- {
- "idShort": "ExampleCapability",
- "category": "Parameter",
+ ],
"description": [
{
"language": "en-us",
- "text": "Example Capability object"
+ "text": "Example Operation object"
},
{
"language": "de",
- "text": "Beispiel Capability Element"
+ "text": "Beispiel Operation Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Capability"
@@ -961,40 +1122,30 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Capabilities/ExampleCapability"
}
]
- }
- },
- {
- "idShort": "ExampleBasicEvent",
+ },
"category": "Parameter",
+ "idShort": "ExampleCapability",
"description": [
{
"language": "en-us",
- "text": "Example BasicEvent object"
+ "text": "Example Capability object"
},
{
"language": "de",
- "text": "Beispiel BasicEvent Element"
+ "text": "Beispiel Capability Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "BasicEvent"
},
- "semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/Events/ExampleBasicEvent"
- }
- ]
- },
"observed":
{
"keys": [
@@ -1014,21 +1165,31 @@
"value": "ExampleProperty"
}
]
- }
- },
- {
- "idShort": "ExampleSubmodelCollectionOrdered",
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/Events/ExampleBasicEvent"
+ }
+ ]
+ },
"category": "Parameter",
+ "idShort": "ExampleBasicEvent",
"description": [
{
"language": "en-us",
- "text": "Example SubmodelElementCollectionOrdered object"
+ "text": "Example BasicEvent object"
},
{
"language": "de",
- "text": "Beispiel SubmodelElementCollectionOrdered Element"
+ "text": "Beispiel BasicEvent Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "SubmodelElementCollection"
@@ -1037,26 +1198,27 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionOrdered"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleSubmodelCollectionOrdered",
+ "ordered": true,
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example SubmodelElementCollectionOrdered object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel SubmodelElementCollectionOrdered Element"
+ }
+ ],
"value": [
{
- "idShort": "ExampleProperty",
- "category": "Constant",
- "description": [
- {
- "language": "en-us",
- "text": "Example Property object"
- },
- {
- "language": "de",
- "text": "Beispiel Property Element"
- }
- ],
"modelType":
{
"name": "Property"
@@ -1065,38 +1227,38 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "value": "exampleValue",
+ "value": "http://acplt.org/ValueId/ExampleValueId",
"valueId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/ValueId/ExampleValueId"
}
]
},
- "valueType": "string"
- },
- {
- "idShort": "ExampleMultiLanguageProperty",
+ "valueType": "string",
"category": "Constant",
+ "idShort": "ExampleProperty",
"description": [
{
"language": "en-us",
- "text": "Example MultiLanguageProperty object"
+ "text": "Example Property object"
},
{
"language": "de",
- "text": "Beispiel MulitLanguageProperty Element"
+ "text": "Beispiel Property Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "MultiLanguageProperty"
@@ -1105,12 +1267,24 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/MultiLanguageProperties/ExampleMultiLanguageProperty"
}
]
},
+ "valueId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/ValueId/ExampleMultiLanguageValueId"
+ }
+ ]
+ },
+ "category": "Constant",
+ "idShort": "ExampleMultiLanguageProperty",
"value": [
{
"language": "en-us",
@@ -1121,30 +1295,18 @@
"text": "Beispielswert für ein MulitLanguageProperty-Element"
}
],
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleMultiLanguageValueId"
- }
- ]
- }
- },
- {
- "idShort": "ExampleRange",
- "category": "Parameter",
"description": [
{
"language": "en-us",
- "text": "Example Range object"
+ "text": "Example MultiLanguageProperty object"
},
{
"language": "de",
- "text": "Beispiel Range Element"
+ "text": "Beispiel MulitLanguageProperty Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Range"
@@ -1153,32 +1315,31 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Ranges/ExampleRange"
}
]
},
- "valueType": "int",
+ "max": "100",
"min": "0",
- "max": "100"
+ "valueType": "int",
+ "category": "Parameter",
+ "idShort": "ExampleRange",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Range object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Range Element"
+ }
+ ]
}
- ],
- "ordered": true
+ ]
},
{
- "idShort": "ExampleSubmodelCollectionUnordered",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example SubmodelElementCollectionUnordered object"
- },
- {
- "language": "de",
- "text": "Beispiel SubmodelElementCollectionUnordered Element"
- }
- ],
"modelType":
{
"name": "SubmodelElementCollection"
@@ -1187,86 +1348,86 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleSubmodelCollectionUnordered",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example SubmodelElementCollectionUnordered object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel SubmodelElementCollectionUnordered Element"
+ }
+ ],
"value": [
{
- "idShort": "ExampleBlob",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example Blob object"
- },
- {
- "language": "de",
- "text": "Beispiel Blob Element"
- }
- ],
"modelType":
{
"name": "Blob"
},
+ "mimeType": "application/pdf",
+ "value": "AQIDBAU=",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Blobs/ExampleBlob"
}
]
},
- "mimeType": "application/pdf",
- "value": "AQIDBAU="
- },
- {
- "idShort": "ExampleFile",
"category": "Parameter",
+ "idShort": "ExampleBlob",
"description": [
{
"language": "en-us",
- "text": "Example File object"
+ "text": "Example Blob object"
},
{
"language": "de",
- "text": "Beispiel File Element"
+ "text": "Beispiel Blob Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "File"
},
+ "mimeType": "application/pdf",
+ "value": "/TestFile.pdf",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Files/ExampleFile"
}
]
},
- "value": "/TestFile.pdf",
- "mimeType": "application/pdf"
- },
- {
- "idShort": "ExampleReferenceElement",
"category": "Parameter",
+ "idShort": "ExampleFile",
"description": [
{
"language": "en-us",
- "text": "Example Reference Element object"
+ "text": "Example File object"
},
{
"language": "de",
- "text": "Beispiel Reference Element Element"
+ "text": "Beispiel File Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "ReferenceElement"
@@ -1275,12 +1436,14 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/ReferenceElements/ExampleReferenceElement"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleReferenceElement",
"value":
{
"keys": [
@@ -1300,31 +1463,51 @@
"value": "ExampleProperty"
}
]
- }
+ },
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Reference Element object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Reference Element Element"
+ }
+ ]
}
]
}
+ ],
+ "description": [
+ {
+ "language": "en-us",
+ "text": "An example submodel for the test application"
+ },
+ {
+ "language": "de",
+ "text": "Ein Beispiel-Teilmodell für eine Test-Anwendung"
+ }
]
},
{
- "idShort": "",
"modelType":
{
"name": "Submodel"
},
+ "kind": "Template",
"identification":
{
- "id": "https://acplt.org/Test_Submodel_Mandatory",
- "idType": "Iri"
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_Submodel_Mandatory"
},
- "kind": "Template",
+ "idShort": "Test_Submodel_Mandatory",
"submodelElements": [
{
- "idShort": "ExampleRelationshipElement",
"modelType":
{
"name": "RelationshipElement"
},
+ "idShort": "ExampleRelationshipElement",
"first":
{
"keys": [
@@ -1367,11 +1550,11 @@
}
},
{
- "idShort": "ExampleAnnotatedRelationshipElement",
"modelType":
{
"name": "AnnotatedRelationshipElement"
},
+ "idShort": "ExampleAnnotatedRelationshipElement",
"first":
{
"keys": [
@@ -1414,21 +1597,21 @@
}
},
{
- "idShort": "ExampleOperation",
"modelType":
{
"name": "Operation"
- }
+ },
+ "kind": "Template",
+ "idShort": "ExampleOperation"
},
{
- "idShort": "ExampleCapability",
"modelType":
{
"name": "Capability"
- }
+ },
+ "idShort": "ExampleCapability"
},
{
- "idShort": "ExampleBasicEvent",
"modelType":
{
"name": "BasicEvent"
@@ -1452,146 +1635,125 @@
"value": "ExampleProperty"
}
]
- }
+ },
+ "idShort": "ExampleBasicEvent"
},
{
- "idShort": "ExampleSubmodelCollectionOrdered",
"modelType":
{
"name": "SubmodelElementCollection"
},
+ "idShort": "ExampleSubmodelCollectionOrdered",
+ "ordered": true,
"value": [
{
- "idShort": "ExampleProperty",
"modelType":
{
"name": "Property"
},
- "valueType": "string"
+ "valueType": "string",
+ "idShort": "ExampleProperty"
},
{
- "idShort": "ExampleMultiLanguageProperty",
"modelType":
{
"name": "MultiLanguageProperty"
- }
+ },
+ "idShort": "ExampleMultiLanguageProperty"
},
{
- "idShort": "ExampleRange",
"modelType":
{
"name": "Range"
},
- "valueType": "int"
+ "valueType": "int",
+ "idShort": "ExampleRange"
}
- ],
- "ordered": true
+ ]
},
{
- "idShort": "ExampleSubmodelCollectionUnordered",
"modelType":
{
"name": "SubmodelElementCollection"
},
+ "idShort": "ExampleSubmodelCollectionUnordered",
"value": [
{
- "idShort": "ExampleBlob",
"modelType":
{
"name": "Blob"
},
- "mimeType": "application/pdf"
+ "mimeType": "application/pdf",
+ "idShort": "ExampleBlob"
},
{
- "idShort": "ExampleFile",
"modelType":
{
"name": "File"
},
- "mimeType": "application/pdf"
+ "mimeType": "application/pdf",
+ "idShort": "ExampleFile"
},
{
- "idShort": "ExampleReferenceElement",
"modelType":
{
"name": "ReferenceElement"
- }
+ },
+ "idShort": "ExampleReferenceElement"
}
]
},
{
- "idShort": "ExampleSubmodelCollectionUnordered2",
"modelType":
{
"name": "SubmodelElementCollection"
- }
+ },
+ "idShort": "ExampleSubmodelCollectionUnordered2"
}
]
},
{
- "idShort": "",
"modelType":
{
"name": "Submodel"
},
+ "kind": "Instance",
"identification":
{
- "id": "https://acplt.org/Test_Submodel2_Mandatory",
- "idType": "Iri"
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_Submodel2_Mandatory"
},
- "kind": "Instance"
+ "idShort": "Test_Submodel2_Mandatory"
},
{
- "idShort": "TestSubmodel",
- "description": [
- {
- "language": "en-us",
- "text": "An example submodel for the test application"
- },
- {
- "language": "de",
- "text": "Ein Beispiel-Teilmodell für eine Test-Anwendung"
- }
- ],
"modelType":
{
"name": "Submodel"
},
- "identification":
- {
- "id": "https://acplt.org/Test_Submodel_Missing",
- "idType": "Iri"
- },
"kind": "Instance",
- "administration":
- {
- "version": "0.9",
- "revision": "0"
- },
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelTemplates/ExampleSubmodel"
}
]
},
+ "administration":
+ {
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_Submodel_Missing"
+ },
+ "idShort": "TestSubmodel",
"submodelElements": [
{
- "idShort": "ExampleRelationshipElement",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example RelationshipElement object"
- },
- {
- "language": "de",
- "text": "Beispiel RelationshipElement Element"
- }
- ],
"modelType":
{
"name": "RelationshipElement"
@@ -1600,12 +1762,14 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/RelationshipElements/ExampleRelationshipElement"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleRelationshipElement",
"first":
{
"keys": [
@@ -1645,21 +1809,19 @@
"value": "ExampleMultiLanguageProperty"
}
]
- }
- },
- {
- "idShort": "ExampleAnnotatedRelationshipElement",
- "category": "Parameter",
+ },
"description": [
{
"language": "en-us",
- "text": "Example AnnotatedRelationshipElement object"
+ "text": "Example RelationshipElement object"
},
{
"language": "de",
- "text": "Beispiel AnnotatedRelationshipElement Element"
+ "text": "Beispiel RelationshipElement Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "AnnotatedRelationshipElement"
@@ -1668,12 +1830,14 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/RelationshipElements/ExampleAnnotatedRelationshipElement"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleAnnotatedRelationshipElement",
"first":
{
"keys": [
@@ -1721,56 +1885,45 @@
"name": "Property"
},
"kind": "Instance",
- "idShort": "ExampleProperty",
- "category": "Parameter",
"value": "some example annotation",
- "valueType": "string"
+ "valueType": "string",
+ "category": "Parameter",
+ "idShort": "ExampleProperty"
}
- ]
- },
- {
- "idShort": "ExampleOperation",
- "category": "Parameter",
+ ],
"description": [
{
"language": "en-us",
- "text": "Example Operation object"
+ "text": "Example AnnotatedRelationshipElement object"
},
{
"language": "de",
- "text": "Beispiel Operation Element"
+ "text": "Beispiel AnnotatedRelationshipElement Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Operation"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Operations/ExampleOperation"
}
]
},
- "inputVariable": [
+ "category": "Parameter",
+ "idShort": "ExampleOperation",
+ "inoutputVariable": [
{
"value":
{
- "idShort": "ExampleProperty1",
- "category": "Constant",
- "description": [
- {
- "language": "en-us",
- "text": "Example Property object"
- },
- {
- "language": "de",
- "text": "Beispiel Property Element"
- }
- ],
"modelType":
{
"name": "Property"
@@ -1779,33 +1932,26 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
+ "value": "exampleValue",
+ "valueType": "string",
"qualifiers": [
{
"modelType":
{
"name": "Qualifier"
},
- "valueType": "string",
- "type": "http://acplt.org/Qualifier/ExampleQualifier"
+ "type": "http://acplt.org/Qualifier/ExampleQualifier",
+ "valueType": "string"
}
],
- "value": "exampleValue",
- "valueType": "string"
- }
- }
- ],
- "outputVariable": [
- {
- "value":
- {
- "idShort": "ExampleProperty2",
"category": "Constant",
+ "idShort": "ExampleProperty3",
"description": [
{
"language": "en-us",
@@ -1815,7 +1961,14 @@
"language": "de",
"text": "Beispiel Property Element"
}
- ],
+ ]
+ }
+ }
+ ],
+ "inputVariable": [
+ {
+ "value":
+ {
"modelType":
{
"name": "Property"
@@ -1824,33 +1977,26 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
+ "value": "exampleValue",
+ "valueType": "string",
"qualifiers": [
{
"modelType":
{
"name": "Qualifier"
},
- "valueType": "string",
- "type": "http://acplt.org/Qualifier/ExampleQualifier"
+ "type": "http://acplt.org/Qualifier/ExampleQualifier",
+ "valueType": "string"
}
],
- "value": "exampleValue",
- "valueType": "string"
- }
- }
- ],
- "inoutputVariable": [
- {
- "value":
- {
- "idShort": "ExampleProperty3",
"category": "Constant",
+ "idShort": "ExampleProperty1",
"description": [
{
"language": "en-us",
@@ -1860,7 +2006,14 @@
"language": "de",
"text": "Beispiel Property Element"
}
- ],
+ ]
+ }
+ }
+ ],
+ "outputVariable": [
+ {
+ "value":
+ {
"modelType":
{
"name": "Property"
@@ -1869,41 +2022,51 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
+ "value": "exampleValue",
+ "valueType": "string",
"qualifiers": [
{
"modelType":
{
"name": "Qualifier"
},
- "valueType": "string",
- "type": "http://acplt.org/Qualifier/ExampleQualifier"
+ "type": "http://acplt.org/Qualifier/ExampleQualifier",
+ "valueType": "string"
}
],
- "value": "exampleValue",
- "valueType": "string"
+ "category": "Constant",
+ "idShort": "ExampleProperty2",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Property object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Property Element"
+ }
+ ]
}
}
- ]
- },
- {
- "idShort": "ExampleCapability",
- "category": "Parameter",
+ ],
"description": [
{
"language": "en-us",
- "text": "Example Capability object"
+ "text": "Example Operation object"
},
{
"language": "de",
- "text": "Beispiel Capability Element"
+ "text": "Beispiel Operation Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Capability"
@@ -1912,40 +2075,30 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Capabilities/ExampleCapability"
}
]
- }
- },
- {
- "idShort": "ExampleBasicEvent",
+ },
"category": "Parameter",
+ "idShort": "ExampleCapability",
"description": [
{
"language": "en-us",
- "text": "Example BasicEvent object"
+ "text": "Example Capability object"
},
{
"language": "de",
- "text": "Beispiel BasicEvent Element"
+ "text": "Beispiel Capability Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "BasicEvent"
},
- "semanticId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/Events/ExampleBasicEvent"
- }
- ]
- },
"observed":
{
"keys": [
@@ -1965,21 +2118,31 @@
"value": "ExampleProperty"
}
]
- }
- },
- {
- "idShort": "ExampleSubmodelCollectionOrdered",
+ },
+ "semanticId":
+ {
+ "keys": [
+ {
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/Events/ExampleBasicEvent"
+ }
+ ]
+ },
"category": "Parameter",
+ "idShort": "ExampleBasicEvent",
"description": [
{
"language": "en-us",
- "text": "Example SubmodelElementCollectionOrdered object"
+ "text": "Example BasicEvent object"
},
{
"language": "de",
- "text": "Beispiel SubmodelElementCollectionOrdered Element"
+ "text": "Beispiel BasicEvent Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "SubmodelElementCollection"
@@ -1988,26 +2151,27 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionOrdered"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleSubmodelCollectionOrdered",
+ "ordered": true,
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example SubmodelElementCollectionOrdered object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel SubmodelElementCollectionOrdered Element"
+ }
+ ],
"value": [
{
- "idShort": "ExampleProperty",
- "category": "Constant",
- "description": [
- {
- "language": "en-us",
- "text": "Example Property object"
- },
- {
- "language": "de",
- "text": "Beispiel Property Element"
- }
- ],
"modelType":
{
"name": "Property"
@@ -2016,38 +2180,38 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
+ "value": "exampleValue",
+ "valueType": "string",
"qualifiers": [
{
"modelType":
{
"name": "Qualifier"
},
- "valueType": "string",
- "type": "http://acplt.org/Qualifier/ExampleQualifier"
+ "type": "http://acplt.org/Qualifier/ExampleQualifier",
+ "valueType": "string"
}
],
- "value": "exampleValue",
- "valueType": "string"
- },
- {
- "idShort": "ExampleMultiLanguageProperty",
"category": "Constant",
+ "idShort": "ExampleProperty",
"description": [
{
"language": "en-us",
- "text": "Example MultiLanguageProperty object"
+ "text": "Example Property object"
},
{
"language": "de",
- "text": "Beispiel MulitLanguageProperty Element"
+ "text": "Beispiel Property Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "MultiLanguageProperty"
@@ -2056,12 +2220,14 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/MultiLanguageProperties/ExampleMultiLanguageProperty"
}
]
},
+ "category": "Constant",
+ "idShort": "ExampleMultiLanguageProperty",
"value": [
{
"language": "en-us",
@@ -2071,21 +2237,19 @@
"language": "de",
"text": "Beispielswert für ein MulitLanguageProperty-Element"
}
- ]
- },
- {
- "idShort": "ExampleRange",
- "category": "Parameter",
+ ],
"description": [
{
"language": "en-us",
- "text": "Example Range object"
+ "text": "Example MultiLanguageProperty object"
},
{
"language": "de",
- "text": "Beispiel Range Element"
+ "text": "Beispiel MulitLanguageProperty Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Range"
@@ -2094,32 +2258,31 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Ranges/ExampleRange"
}
]
},
- "valueType": "int",
+ "max": "100",
"min": "0",
- "max": "100"
+ "valueType": "int",
+ "category": "Parameter",
+ "idShort": "ExampleRange",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Range object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Range Element"
+ }
+ ]
}
- ],
- "ordered": true
+ ]
},
{
- "idShort": "ExampleSubmodelCollectionUnordered",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example SubmodelElementCollectionUnordered object"
- },
- {
- "language": "de",
- "text": "Beispiel SubmodelElementCollectionUnordered Element"
- }
- ],
"modelType":
{
"name": "SubmodelElementCollection"
@@ -2128,86 +2291,86 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleSubmodelCollectionUnordered",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example SubmodelElementCollectionUnordered object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel SubmodelElementCollectionUnordered Element"
+ }
+ ],
"value": [
{
- "idShort": "ExampleBlob",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example Blob object"
- },
- {
- "language": "de",
- "text": "Beispiel Blob Element"
- }
- ],
"modelType":
{
"name": "Blob"
},
+ "mimeType": "application/pdf",
+ "value": "AQIDBAU=",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Blobs/ExampleBlob"
}
]
},
- "mimeType": "application/pdf",
- "value": "AQIDBAU="
- },
- {
- "idShort": "ExampleFile",
"category": "Parameter",
+ "idShort": "ExampleBlob",
"description": [
{
"language": "en-us",
- "text": "Example File object"
+ "text": "Example Blob object"
},
{
"language": "de",
- "text": "Beispiel File Element"
+ "text": "Beispiel Blob Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "File"
},
+ "mimeType": "application/pdf",
+ "value": "/TestFile.pdf",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Files/ExampleFile"
}
]
},
- "value": "/TestFile.pdf",
- "mimeType": "application/pdf"
- },
- {
- "idShort": "ExampleReferenceElement",
"category": "Parameter",
+ "idShort": "ExampleFile",
"description": [
{
"language": "en-us",
- "text": "Example Reference Element object"
+ "text": "Example File object"
},
{
"language": "de",
- "text": "Beispiel Reference Element Element"
+ "text": "Beispiel File Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "ReferenceElement"
@@ -2216,12 +2379,14 @@
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/ReferenceElements/ExampleReferenceElement"
}
]
},
+ "category": "Parameter",
+ "idShort": "ExampleReferenceElement",
"value":
{
"keys": [
@@ -2241,14 +2406,21 @@
"value": "ExampleProperty"
}
]
- }
+ },
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Reference Element object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Reference Element Element"
+ }
+ ]
}
]
}
- ]
- },
- {
- "idShort": "TestSubmodel",
+ ],
"description": [
{
"language": "en-us",
@@ -2258,67 +2430,60 @@
"language": "de",
"text": "Ein Beispiel-Teilmodell für eine Test-Anwendung"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Submodel"
},
- "identification":
- {
- "id": "https://acplt.org/Test_Submodel_Template",
- "idType": "Iri"
- },
- "administration":
- {
- "version": "0.9",
- "revision": "0"
- },
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelTemplates/ExampleSubmodel"
}
]
},
- "kind": "Template",
+ "administration":
+ {
+ "revision": "0",
+ "version": "0.9"
+ },
+ "identification":
+ {
+ "idType": "Iri",
+ "id": "https://acplt.org/Test_Submodel_Template"
+ },
+ "idShort": "TestSubmodel",
"submodelElements": [
{
- "idShort": "ExampleRelationshipElement",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example RelationshipElement object"
- },
- {
- "language": "de",
- "text": "Beispiel RelationshipElement Element"
- }
- ],
"modelType":
{
"name": "RelationshipElement"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/RelationshipElements/ExampleRelationshipElement"
}
]
},
- "kind": "Template",
+ "category": "Parameter",
+ "idShort": "ExampleRelationshipElement",
"first":
{
"keys": [
{
- "type": "Property",
"idType": "IdShort",
+ "type": "Property",
"value": "ExampleProperty"
}
]
@@ -2327,47 +2492,47 @@
{
"keys": [
{
- "type": "Property",
"idType": "IdShort",
+ "type": "Property",
"value": "ExampleProperty"
}
]
- }
- },
- {
- "idShort": "ExampleAnnotatedRelationshipElement",
- "category": "Parameter",
+ },
"description": [
{
"language": "en-us",
- "text": "Example AnnotatedRelationshipElement object"
+ "text": "Example RelationshipElement object"
},
{
"language": "de",
- "text": "Beispiel AnnotatedRelationshipElement Element"
+ "text": "Beispiel RelationshipElement Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "AnnotatedRelationshipElement"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/RelationshipElements/ExampleAnnotatedRelationshipElement"
}
]
},
- "kind": "Template",
+ "category": "Parameter",
+ "idShort": "ExampleAnnotatedRelationshipElement",
"first":
{
"keys": [
{
- "type": "Property",
"idType": "IdShort",
+ "type": "Property",
"value": "ExampleProperty"
}
]
@@ -2376,82 +2541,63 @@
{
"keys": [
{
- "type": "Property",
"idType": "IdShort",
+ "type": "Property",
"value": "ExampleProperty"
}
]
- }
- },
- {
- "idShort": "ExampleOperation",
- "category": "Parameter",
+ },
"description": [
{
"language": "en-us",
- "text": "Example Operation object"
+ "text": "Example AnnotatedRelationshipElement object"
},
{
"language": "de",
- "text": "Beispiel Operation Element"
+ "text": "Beispiel AnnotatedRelationshipElement Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Operation"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Operations/ExampleOperation"
}
]
},
- "kind": "Template",
- "inputVariable": [
+ "category": "Parameter",
+ "idShort": "ExampleOperation",
+ "inoutputVariable": [
{
"value":
{
- "idShort": "ExampleProperty",
- "category": "Constant",
- "description": [
- {
- "language": "en-us",
- "text": "Example Property object"
- },
- {
- "language": "de",
- "text": "Beispiel Property Element"
- }
- ],
"modelType":
{
"name": "Property"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "kind": "Template",
- "valueType": "string"
- }
- }
- ],
- "outputVariable": [
- {
- "value":
- {
- "idShort": "ExampleProperty",
+ "valueType": "string",
"category": "Constant",
+ "idShort": "ExampleProperty",
"description": [
{
"language": "en-us",
@@ -2461,32 +2607,32 @@
"language": "de",
"text": "Beispiel Property Element"
}
- ],
+ ]
+ }
+ }
+ ],
+ "inputVariable": [
+ {
+ "value":
+ {
"modelType":
{
"name": "Property"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "kind": "Template",
- "valueType": "string"
- }
- }
- ],
- "inoutputVariable": [
- {
- "value":
- {
- "idShort": "ExampleProperty",
+ "valueType": "string",
"category": "Constant",
+ "idShort": "ExampleProperty",
"description": [
{
"language": "en-us",
@@ -2496,217 +2642,233 @@
"language": "de",
"text": "Beispiel Property Element"
}
- ],
+ ]
+ }
+ }
+ ],
+ "outputVariable": [
+ {
+ "value":
+ {
"modelType":
{
"name": "Property"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "kind": "Template",
- "valueType": "string"
+ "valueType": "string",
+ "category": "Constant",
+ "idShort": "ExampleProperty",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Property object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Property Element"
+ }
+ ]
}
}
- ]
- },
- {
- "idShort": "ExampleCapability",
- "category": "Parameter",
+ ],
"description": [
{
"language": "en-us",
- "text": "Example Capability object"
+ "text": "Example Operation object"
},
{
"language": "de",
- "text": "Beispiel Capability Element"
+ "text": "Beispiel Operation Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Capability"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Capabilities/ExampleCapability"
}
]
},
- "kind": "Template"
- },
- {
- "idShort": "ExampleBasicEvent",
"category": "Parameter",
+ "idShort": "ExampleCapability",
"description": [
{
"language": "en-us",
- "text": "Example BasicEvent object"
+ "text": "Example Capability object"
},
{
"language": "de",
- "text": "Beispiel BasicEvent Element"
+ "text": "Beispiel Capability Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "BasicEvent"
},
- "semanticId":
+ "observed":
{
"keys": [
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/Events/ExampleBasicEvent"
+ "idType": "IdShort",
+ "type": "Property",
+ "value": "ExampleProperty"
}
]
},
"kind": "Template",
- "observed":
+ "semanticId":
{
"keys": [
{
- "idType": "IdShort",
- "type": "Property",
- "value": "ExampleProperty"
+ "idType": "Iri",
+ "type": "GlobalReference",
+ "value": "http://acplt.org/Events/ExampleBasicEvent"
}
]
- }
- },
- {
- "idShort": "ExampleSubmodelCollectionOrdered",
+ },
"category": "Parameter",
+ "idShort": "ExampleBasicEvent",
"description": [
{
"language": "en-us",
- "text": "Example SubmodelElementCollectionOrdered object"
+ "text": "Example BasicEvent object"
},
{
"language": "de",
- "text": "Beispiel SubmodelElementCollectionOrdered Element"
+ "text": "Beispiel BasicEvent Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "SubmodelElementCollection"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionOrdered"
}
]
},
- "kind": "Template",
+ "category": "Parameter",
+ "idShort": "ExampleSubmodelCollectionOrdered",
+ "ordered": true,
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example SubmodelElementCollectionOrdered object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel SubmodelElementCollectionOrdered Element"
+ }
+ ],
"value": [
{
- "idShort": "ExampleProperty",
- "category": "Constant",
- "description": [
- {
- "language": "en-us",
- "text": "Example Property object"
- },
- {
- "language": "de",
- "text": "Beispiel Property Element"
- }
- ],
"modelType":
{
"name": "Property"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Properties/ExampleProperty"
}
]
},
- "kind": "Template",
- "valueType": "string"
- },
- {
- "idShort": "ExampleMultiLanguageProperty",
+ "valueType": "string",
"category": "Constant",
+ "idShort": "ExampleProperty",
"description": [
{
"language": "en-us",
- "text": "Example MultiLanguageProperty object"
+ "text": "Example Property object"
},
{
"language": "de",
- "text": "Beispiel MulitLanguageProperty Element"
+ "text": "Beispiel Property Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "MultiLanguageProperty"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/MultiLanguageProperties/ExampleMultiLanguageProperty"
}
]
},
- "kind": "Template"
- },
- {
- "idShort": "ExampleRange",
- "category": "Parameter",
+ "category": "Constant",
+ "idShort": "ExampleMultiLanguageProperty",
"description": [
{
"language": "en-us",
- "text": "Example Range object"
+ "text": "Example MultiLanguageProperty object"
},
{
"language": "de",
- "text": "Beispiel Range Element"
+ "text": "Beispiel MulitLanguageProperty Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Range"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Ranges/ExampleRange"
}
]
},
- "kind": "Template",
+ "max": "100",
"valueType": "int",
- "max": "100"
- },
- {
- "idShort": "ExampleRange2",
"category": "Parameter",
+ "idShort": "ExampleRange",
"description": [
{
"language": "en-us",
@@ -2716,381 +2878,199 @@
"language": "de",
"text": "Beispiel Range Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "Range"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Ranges/ExampleRange"
}
]
},
- "kind": "Template",
+ "min": "0",
"valueType": "int",
- "min": "0"
+ "category": "Parameter",
+ "idShort": "ExampleRange2",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Range object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Range Element"
+ }
+ ]
}
- ],
- "ordered": true
+ ]
},
{
- "idShort": "ExampleSubmodelCollectionUnordered",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example SubmodelElementCollectionUnordered object"
- },
- {
- "language": "de",
- "text": "Beispiel SubmodelElementCollectionUnordered Element"
- }
- ],
"modelType":
{
"name": "SubmodelElementCollection"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered"
}
]
},
- "kind": "Template",
+ "category": "Parameter",
+ "idShort": "ExampleSubmodelCollectionUnordered",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example SubmodelElementCollectionUnordered object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel SubmodelElementCollectionUnordered Element"
+ }
+ ],
"value": [
{
- "idShort": "ExampleBlob",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example Blob object"
- },
- {
- "language": "de",
- "text": "Beispiel Blob Element"
- }
- ],
"modelType":
{
"name": "Blob"
},
+ "mimeType": "application/pdf",
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Blobs/ExampleBlob"
}
]
},
- "kind": "Template",
- "mimeType": "application/pdf"
- },
- {
- "idShort": "ExampleFile",
"category": "Parameter",
+ "idShort": "ExampleBlob",
"description": [
{
"language": "en-us",
- "text": "Example File object"
+ "text": "Example Blob object"
},
{
"language": "de",
- "text": "Beispiel File Element"
+ "text": "Beispiel Blob Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "File"
},
+ "mimeType": "application/pdf",
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/Files/ExampleFile"
}
]
},
- "kind": "Template",
- "mimeType": "application/pdf"
- },
- {
- "idShort": "ExampleReferenceElement",
"category": "Parameter",
+ "idShort": "ExampleFile",
"description": [
{
"language": "en-us",
- "text": "Example Reference Element object"
+ "text": "Example File object"
},
{
"language": "de",
- "text": "Beispiel Reference Element Element"
+ "text": "Beispiel File Element"
}
- ],
+ ]
+ },
+ {
"modelType":
{
"name": "ReferenceElement"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/ReferenceElements/ExampleReferenceElement"
}
]
},
- "kind": "Template"
+ "category": "Parameter",
+ "idShort": "ExampleReferenceElement",
+ "description": [
+ {
+ "language": "en-us",
+ "text": "Example Reference Element object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel Reference Element Element"
+ }
+ ]
}
]
},
{
- "idShort": "ExampleSubmodelCollectionUnordered2",
- "category": "Parameter",
- "description": [
- {
- "language": "en-us",
- "text": "Example SubmodelElementCollectionUnordered object"
- },
- {
- "language": "de",
- "text": "Beispiel SubmodelElementCollectionUnordered Element"
- }
- ],
"modelType":
{
"name": "SubmodelElementCollection"
},
+ "kind": "Template",
"semanticId":
{
"keys": [
{
- "type": "GlobalReference",
"idType": "Iri",
+ "type": "GlobalReference",
"value": "http://acplt.org/SubmodelElementCollections/ExampleSubmodelElementCollectionUnordered"
}
]
},
- "kind": "Template"
- }
- ]
- }
- ],
- "conceptDescriptions": [
- {
- "idShort": "TestConceptDescription",
- "description": [
- {
- "language": "en-us",
- "text": "An example concept description for the test application"
- },
- {
- "language": "de",
- "text": "Ein Beispiel-ConceptDescription für eine Test-Anwendung"
- }
- ],
- "modelType":
- {
- "name": "ConceptDescription"
- },
- "identification":
- {
- "id": "https://acplt.org/Test_ConceptDescription",
- "idType": "Iri"
- },
- "administration":
- {
- "version": "0.9",
- "revision": "0"
- },
- "isCaseOf": [
- {
- "keys": [
+ "category": "Parameter",
+ "idShort": "ExampleSubmodelCollectionUnordered2",
+ "description": [
{
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/DataSpecifications/ConceptDescriptions/TestConceptDescription"
+ "language": "en-us",
+ "text": "Example SubmodelElementCollectionUnordered object"
+ },
+ {
+ "language": "de",
+ "text": "Beispiel SubmodelElementCollectionUnordered Element"
}
]
}
- ]
- },
- {
- "idShort": "",
- "modelType":
- {
- "name": "ConceptDescription"
- },
- "identification":
- {
- "id": "https://acplt.org/Test_ConceptDescription_Mandatory",
- "idType": "Iri"
- }
- },
- {
- "idShort": "TestConceptDescription1",
+ ],
"description": [
{
"language": "en-us",
- "text": "An example concept description for the test application"
+ "text": "An example submodel for the test application"
},
{
"language": "de",
- "text": "Ein Beispiel-ConceptDescription für eine Test-Anwendung"
- }
- ],
- "modelType":
- {
- "name": "ConceptDescription"
- },
- "identification":
- {
- "id": "https://acplt.org/Test_ConceptDescription_Missing",
- "idType": "Iri"
- },
- "administration":
- {
- "version": "0.9",
- "revision": "0"
- }
- },
- {
- "idShort": "TestSpec_01",
- "modelType":
- {
- "name": "ConceptDescription"
- },
- "identification":
- {
- "id": "http://acplt.org/DataSpecifciations/Example/Identification",
- "idType": "Iri"
- },
- "administration":
- {
- "version": "0.9",
- "revision": "0"
- },
- "isCaseOf": [
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ReferenceElements/ConceptDescriptionX"
- }
- ]
- }
- ],
- "embeddedDataSpecifications": [
- {
- "dataSpecification":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0"
- }
- ]
- },
- "dataSpecificationContent":
- {
- "preferredName": [
- {
- "language": "de",
- "text": "Test Specification"
- },
- {
- "language": "en-us",
- "text": "TestSpecification"
- }
- ],
- "dataType": "RealMeasure",
- "definition": [
- {
- "language": "de",
- "text": "Dies ist eine Data Specification für Testzwecke"
- },
- {
- "language": "en-us",
- "text": "This is a DataSpecification for testing purposes"
- }
- ],
- "shortName": [
- {
- "language": "de",
- "text": "Test Spec"
- },
- {
- "language": "en-us",
- "text": "TestSpec"
- }
- ],
- "unit": "SpaceUnit",
- "unitId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/Units/SpaceUnit"
- }
- ]
- },
- "sourceOfDefinition": "http://acplt.org/DataSpec/ExampleDef",
- "symbol": "SU",
- "valueFormat": "string",
- "valueList":
- {
- "valueReferencePairTypes": [
- {
- "value": "exampleValue",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId"
- }
- ]
- }
- },
- {
- "value": "exampleValue2",
- "valueId":
- {
- "keys": [
- {
- "type": "GlobalReference",
- "idType": "Iri",
- "value": "http://acplt.org/ValueId/ExampleValueId2"
- }
- ]
- }
- }
- ]
- },
- "value": "TEST",
- "levelType": [
- "Min",
- "Max"
- ]
- }
+ "text": "Ein Beispiel-Teilmodell für eine Test-Anwendung"
}
]
}
diff --git a/dataformat-xml/src/test/resources/test_demo_full_example.xml b/dataformat-xml/src/test/resources/test_demo_full_example.xml
index 424bc8d2..4b24d430 100644
--- a/dataformat-xml/src/test/resources/test_demo_full_example.xml
+++ b/dataformat-xml/src/test/resources/test_demo_full_example.xml
@@ -54,7 +54,7 @@
-
+ Test_AssetAdministrationShell_Mandatory
https://acplt.org/Test_AssetAdministrationShell_Mandatory
@@ -78,7 +78,7 @@
-
+ Test_AssetAdministrationShell2_Mandatory
https://acplt.org/Test_AssetAdministrationShell2_Mandatory
@@ -152,7 +152,7 @@
-
+ Test_ConceptDescription_Mandatory
https://acplt.org/Test_ConceptDescription_Mandatory
@@ -206,7 +206,7 @@
http://acplt.org/ValueId/ExampleValueId
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
@@ -214,7 +214,7 @@
http://acplt.org/ValueId/ExampleValueId2
- exampleValue2
+ http://acplt.org/ValueId/ExampleValueId2
TEST
@@ -268,21 +268,11 @@
-
-
- http://acplt.org/ValueId/ExampleValueId
-
-
100
http://acplt.org/Qualifier/ExampleQualifier
int
-
-
- http://acplt.org/ValueId/ExampleValueId
-
-
50
http://acplt.org/Qualifier/ExampleQualifier2
int
@@ -290,10 +280,10 @@
- http://acplt.org/ValueId/ExampleValueId
+ http://acplt.org/ValueId/ACPLT
- ACPLT
+ http://acplt.org/ValueId/ACPLT
string
@@ -311,7 +301,7 @@
- http://acplt.org/ValueId/ExampleValueId
+ 978-8234-234-342
978-8234-234-342
@@ -366,10 +356,10 @@
- http://acplt.org/ValueId/ExampleValueId
+ http://acplt.org/ValueId/ExampleValue2
- exampleValue2
+ http://acplt.org/ValueId/ExampleValue2
string
@@ -391,7 +381,7 @@
http://acplt.org/ValueId/ExampleValueId
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
string
@@ -516,6 +506,7 @@
Example Operation object
Beispiel Operation Element
+ Template
http://acplt.org/Operations/ExampleOperation
@@ -540,7 +531,7 @@
http://acplt.org/ValueId/ExampleValueId
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
string
@@ -564,7 +555,7 @@
http://acplt.org/ValueId/ExampleValueId
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
string
@@ -588,7 +579,7 @@
http://acplt.org/ValueId/ExampleValueId
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
string
@@ -666,7 +657,7 @@
http://acplt.org/ValueId/ExampleValueId
- exampleValue
+ http://acplt.org/ValueId/ExampleValueId
string
@@ -793,7 +784,7 @@
-
+ Test_Submodel_Mandatory
https://acplt.org/Test_Submodel_Mandatory
Template
@@ -839,6 +830,7 @@
ExampleOperation
+ Template
@@ -921,7 +913,7 @@
-
+ Test_Submodel2_Mandatory
https://acplt.org/Test_Submodel2_Mandatory
Instance
@@ -1021,6 +1013,7 @@
Example Operation object
Beispiel Operation Element
+ Template
http://acplt.org/Operations/ExampleOperation
diff --git a/dataformat-xml/src/test/resources/xmlExample.xml b/dataformat-xml/src/test/resources/xmlExample.xml
index 979d9d61..22066404 100644
--- a/dataformat-xml/src/test/resources/xmlExample.xml
+++ b/dataformat-xml/src/test/resources/xmlExample.xml
@@ -73,10 +73,6 @@
- StringTranslatable
-
- SprachabhängigerTiteldesDokuments.
-
Title
Titel
@@ -85,8 +81,12 @@
Title
Titel
-
-
+ ExampleString
+ ExampleString
+ StringTranslatable
+
+ SprachabhängigerTiteldesDokuments.
+
@@ -102,20 +102,20 @@
- String
-
- Eine Datei, die die Document Version repräsentiert. Neben der obligatorischen PDF Datei können weitere Dateien angegeben werden.
-
DigitalFile
- DigitaleDatei
+ DigitalFile
DigitalFile
DigitaleDatei
-
-
+ ExampleString
+ ExampleString
+ String
+
+ A file representing the document version. In addition to the mandatory PDF file, other files can be specified.
+
@@ -129,8 +129,8 @@
MaxRotationSpeed
PROPERTY
-
- 2
+ 2
+ 2.1
0173-1#02-BAA120#008
@@ -142,11 +142,11 @@
0173-1#05-AAA650#002
-
+ ExampleString
RealMeasure
HöchstezulässigeDrehzahl,mitwelcherderMotoroderdieSpeiseinheitbetriebenwerdendarf
- Greatestpermissiblerotationspeedwithwhichthemotororfeedingunitmaybeoperated
+ Greatestpermissiblerotationspeedwithwhichthemotororfeedingunitmaybeoperated
max.Drehzahl
@@ -174,7 +174,7 @@
0173-1#05-AAA650#002
-
+ ExampleString
RealMeasure
Aktuelle Drehzahl, mitwelcher der Motor oder die Speiseinheit betrieben wird
@@ -203,11 +203,14 @@
-
+
+ Document
+
+ ExampleString
[ISO15519-1:2010]
String
- Feste und geordnete Menge von für die Verwendung durch Personen bestimmte Informationen, die verwaltet und als Einheit zwischen Benutzern und System ausgetauscht werden kann.
+ Feste und geordnete Menge von für die Verwendung durch Personen bestimmte Informationen, die verwaltet und als Einheit zwischen Benutzern und System ausgetauscht werden kann.
Document
@@ -306,7 +309,7 @@
RotationSpeed
- VARIABLE
+ Variable
Instance
diff --git a/dataformat-xml/src/test/resources/xmlExampleWithModifiedPrefix.xml b/dataformat-xml/src/test/resources/xmlExampleWithModifiedPrefix.xml
index 8d1f7572..62cb6a08 100644
--- a/dataformat-xml/src/test/resources/xmlExampleWithModifiedPrefix.xml
+++ b/dataformat-xml/src/test/resources/xmlExampleWithModifiedPrefix.xml
@@ -62,12 +62,8 @@
-
- ServoDCMotor
-
-
- http://customer.com/assets/KHBVZJSQKIY
-
+ ServoDCMotor
+ http://customer.com/assets/KHBVZJSQKIY
@@ -77,10 +73,6 @@
- StringTranslatable
-
- SprachabhängigerTiteldesDokuments.
-
Title
Titel
@@ -89,8 +81,12 @@
Title
Titel
-
-
+ ExampleString
+ ExampleString
+ StringTranslatable
+
+ SprachabhängigerTiteldesDokuments.
+
@@ -106,20 +102,20 @@
- String
-
- Eine Datei, die die Document Version repräsentiert. Neben der obligatorischen PDF Datei können weitere Dateien angegeben werden.
-
DigitalFile
- DigitaleDatei
+ DigitalFile
DigitalFile
DigitaleDatei
-
-
+ ExampleString
+ ExampleString
+ String
+
+ A file representing the document version. In addition to the mandatory PDF file, other files can be specified.
+
@@ -133,8 +129,8 @@
MaxRotationSpeed
PROPERTY
-
- 2
+ 2
+ 2.1
0173-1#02-BAA120#008
@@ -146,11 +142,11 @@
0173-1#05-AAA650#002
-
+ ExampleString
RealMeasure
HöchstezulässigeDrehzahl,mitwelcherderMotoroderdieSpeiseinheitbetriebenwerdendarf
- Greatestpermissiblerotationspeedwithwhichthemotororfeedingunitmaybeoperated
+ Greatestpermissiblerotationspeedwithwhichthemotororfeedingunitmaybeoperated
max.Drehzahl
@@ -178,7 +174,7 @@
0173-1#05-AAA650#002
-
+ ExampleString
RealMeasure
Aktuelle Drehzahl, mitwelcher der Motor oder die Speiseinheit betrieben wird
@@ -207,11 +203,14 @@
-
+
+ Document
+
+ ExampleString
[ISO15519-1:2010]
String
- Feste und geordnete Menge von für die Verwendung durch Personen bestimmte Informationen, die verwaltet und als Einheit zwischen Benutzern und System ausgetauscht werden kann.
+ Feste und geordnete Menge von für die Verwendung durch Personen bestimmte Informationen, die verwaltet und als Einheit zwischen Benutzern und System ausgetauscht werden kann.
Document
@@ -310,7 +309,7 @@
RotationSpeed
- VARIABLE
+ Variable
Instance
diff --git a/validator/src/main/resources/jsonExample.json b/validator/src/main/resources/jsonExample.json
index 595aaa72..e5e122bf 100644
--- a/validator/src/main/resources/jsonExample.json
+++ b/validator/src/main/resources/jsonExample.json
@@ -162,7 +162,7 @@
"keys": [
{
"type": "ConceptDescription",
- "value": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Document",
+ "value": "http://www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Document",
"idType": "Iri"
}
]
@@ -178,7 +178,7 @@
"keys": [
{
"type": "ConceptDescription",
- "value": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Description/Title",
+ "value": "http://www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Description/Title",
"idType": "Iri"
}
]
@@ -196,7 +196,7 @@
"keys": [
{
"type": "ConceptDescription",
- "value": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/StoredDocumentRepresentation/DigitalFile",
+ "value": "http://www.vdi2770.com/blatt1/Entwurf/Okt18/cd/StoredDocumentRepresentation/DigitalFile",
"idType": "Iri"
}
]
@@ -252,7 +252,7 @@
"idShort": "Title",
"identification": {
"idType": "Iri",
- "id": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Description/Title"
+ "id": "http://www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Description/Title"
},
"embeddedDataSpecifications": [
{
@@ -302,7 +302,7 @@
"idShort": "DigitalFile",
"identification": {
"idType": "Iri",
- "id": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/StoredDocumentRepresentation/DigitalFile"
+ "id": "http://www.vdi2770.com/blatt1/Entwurf/Okt18/cd/StoredDocumentRepresentation/DigitalFile"
},
"embeddedDataSpecifications": [
{
@@ -477,7 +477,7 @@
"idShort": "Document",
"identification": {
"idType": "Iri",
- "id": "www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Document"
+ "id": "http://www.vdi2770.com/blatt1/Entwurf/Okt18/cd/Document"
},
"embeddedDataSpecifications": [
{