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

Commit ab2781f

Browse files
authored
Merge pull request #23 from changqin26/feature/validation
Feature/validation
2 parents 7c7b9ac + a06e54d commit ab2781f

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

validator/src/main/resources/constraint_shapes.ttl

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -880,17 +880,17 @@ aas:ConceptDescriptionWithCategoryDocumentAndIEC61360CorrectDataType a sh:NodeSh
880880
sh:targetClass aas:ConceptDescription;
881881
sh:sparql [
882882
a sh:SPARQLConstraint ;
883-
sh:message "For a ConceptDescription with category DOCUMENT using data specification template IEC61360 (http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0) - DataSpecificationIEC61360/dataType shall be one of the following values: STRING or URL." ;
883+
sh:message "For a ConceptDescription with category DOCUMENT using data specification template IEC61360 (http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0) - DataSpecificationIEC61360/dataType shall be one of the following values: String or Url." ;
884884

885885
sh:select """
886886
SELECT ?conceptDescription
887887
WHERE {
888888
?element a <https://admin-shell.io/aas/3/0/RC01/ConceptDescription> .
889889
?conceptDescription <https://admin-shell.io/aas/3/0/RC01/Referable/category> "DOCUMENT" .
890890
?conceptDescription <https://admin-shell.io/aas/3/0/RC01/HasDataSpecification/embeddedDataSpecification> ?embeddedDataSpecification .
891-
?embeddedDataSpecification <https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecificationContent> ?dataSpecificationContent .
892-
?dataSpecificationContent <https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/3/0/RC01/DataSpecificationIEC61360/dataType> ?dataType .
893-
FILTER(?dataType != <https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/3/0/RC01/DataTypeIEC61360/Url> && ?dataType != <https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/3/0/RC01/DataTypeIEC61360/String>)
891+
?embeddedDataSpecification <https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecificationContent> <https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/3/0/RC01/DataSpecificationIEC61360> .
892+
<https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/3/0/RC01/DataSpecificationIEC61360> <https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/3/0/RC01/DataSpecificationIEC61360/dataType> ?dataType .
893+
FILTER(?dataType != <https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/3/0/RC01/URL> && ?dataType != <https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/3/0/RC01/String>)
894894
}
895895
""" ;
896896
] .
@@ -1018,9 +1018,9 @@ aas:KeyWithGlobalReferenceTypeCorrectIdType a sh:NodeShape ;
10181018
WHERE {
10191019
?element a <https://admin-shell.io/aas/3/0/RC01/Key> .
10201020
?element <https://admin-shell.io/aas/3/0/RC01/Key/type> ?keyType .
1021-
FILTER(?keyType = <https://admin-shell.io/aas/3/0/RC01/KeyElements/GLOBAL_REFERENCE>)
1021+
FILTER(?keyType = <https://admin-shell.io/aas/3/0/RC01/KeyElements/GlobalReference>)
10221022
?element <https://admin-shell.io/aas/3/0/RC01/Key/idType> ?keyIdType .
1023-
FILTER(?keyIdType = <https://admin-shell.io/aas/3/0/RC01/KeyType/ID_SHORT> || ?keyIdType = <https://admin-shell.io/aas/3/0/RC01/KeyType/FRAGMENT_ID>)
1023+
FILTER(?keyIdType = <https://admin-shell.io/aas/3/0/RC01/LocalKeyType/IdShort> || ?keyIdType = <https://admin-shell.io/aas/3/0/RC01/LocalKeyType/FragmentId>)
10241024
}
10251025
""" ;
10261026
] .
@@ -1036,10 +1036,9 @@ aas:KeyWithAssetAdministrationShellTypeCorrectIdType a sh:NodeShape ;
10361036
SELECT ?element
10371037
WHERE {
10381038
?element a <https://admin-shell.io/aas/3/0/RC01/Key> .
1039-
?element <https://admin-shell.io/aas/3/0/RC01/Key/type> ?keyType .
1040-
FILTER(?keyType = <https://admin-shell.io/aas/3/0/RC01/KeyElements/ASSET_ADMINISTRATION_SHELL>)
1039+
?element <https://admin-shell.io/aas/3/0/RC01/Key/type> <https://admin-shell.io/aas/3/0/RC01/IdentifiableElements/AssetAdministrationShell> .
10411040
?element <https://admin-shell.io/aas/3/0/RC01/Key/idType> ?keyIdType .
1042-
FILTER(?keyIdType = <https://admin-shell.io/aas/3/0/RC01/KeyType/ID_SHORT> || ?keyIdType = <https://admin-shell.io/aas/3/0/RC01/KeyType/FRAGMENT_ID>)
1041+
FILTER(?keyIdType = <https://admin-shell.io/aas/3/0/RC01/LocalKeyType/IdShort> || ?keyIdType = <https://admin-shell.io/aas/3/0/RC01/LocalKeyType/FragmentId>)
10431042
}
10441043
""" ;
10451044
] .

0 commit comments

Comments
 (0)