Skip to content

Commit 04f6790

Browse files
committed
Update test and fix build
1 parent 0c75e8c commit 04f6790

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/esmf-test-aspect-models/src/main/resources/valid/org.eclipse.esmf.test/1.0.0/AspectWithOptionalPropertiesAndEntityWithSeparateFiles.ttl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
samm:preferredName "Minimal Vehicle Type Aspect"@en ;
2323
samm:description "Simplified aspect containing only ProductionPeriodEntity as an optional property."@en ;
2424
samm:properties ( [ samm:property :productionPeriod; samm:optional true ] ) ;
25-
samm:operations ( ) ;
26-
samm:events ( ) .
25+
samm:operations ( ) .
2726

2827
:productionPeriod a samm:Property ;
2928
samm:preferredName "Production Period"@en ;
@@ -56,7 +55,7 @@
5655
samm:preferredName "Year with Optional Month"@en ;
5756
samm:dataType xsd:string ;
5857
samm-c:deconstructionRule "^([0-9]{4})(?:-(0[1-9]|1[0-2]))?" ;
59-
samm-c:elements ( "^" :year "-" :month "$" ) .
58+
samm-c:elements ( "^" :year "-" [ samm:property :month; samm:optional true ] "$" ) .
6059

6160
:YearAndOptionalMonthRegex a samm-c:RegularExpressionConstraint ;
6261
samm:value "^([0-9]{4})(?:-(0[1-9]|1[0-2]))?" .
@@ -65,7 +64,6 @@
6564
samm:characteristic :YearCharacteristic .
6665

6766
:month a samm:Property ;
68-
samm:optional true ;
6967
samm:characteristic :MonthCharacteristic .
7068

7169
:YearCharacteristic a samm:Characteristic ;

0 commit comments

Comments
 (0)