File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed
rocrate_validator/profiles/ro-crate
tests/integration/profiles/ro-crate Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -141,19 +141,6 @@ ro-crate:DataEntityRquiredPropertiesShape a sh:NodeShape ;
141
141
# sh:message "A Data Entity MUST be directly or indirectly linked to the `Root Data Entity` through the `hasPart` property" ;
142
142
] .
143
143
144
- ro-crate:DirectoryDataEntityRequiredValueRestriction a sh:NodeShape ;
145
- sh:name " Directory Data Entity: REQUIRED value restriction" ;
146
- sh:description """ A Directory Data Entity MUST end with `/`""" ;
147
- sh:targetNode ro-crate:Directory ;
148
- sh:property [
149
- a sh:PropertyShape ;
150
- sh:name " Directory Data Entity: REQUIRED value restriction" ;
151
- sh:description """ Check if the Directory Data Entity ends with `/`""" ;
152
- sh:path [ sh:inversePath rdf:type ] ;
153
- sh:message """ Every Data Entity Directory URI MUST end with `/`""" ;
154
- sh:pattern " /$" ;
155
- ] .
156
-
157
144
ro-crate:GenericDataEntityRequiredProperties a sh:NodeShape ;
158
145
sh:name " Generic Data Entity: REQUIRED properties" ;
159
146
sh:description """ A Data Entity other than a File or a Directory MUST be a `DataEntity`""" ;
Original file line number Diff line number Diff line change @@ -54,3 +54,16 @@ ro-crate:FileRecommendedProperties a sh:NodeShape ;
54
54
]
55
55
)
56
56
] .
57
+
58
+ ro-crate:DirectoryDataEntityRequiredValueRestriction a sh:NodeShape ;
59
+ sh:name " Directory Data Entity: RECOMMENDED value restriction" ;
60
+ sh:description """ A Directory Data Entity SHOULD end with `/`""" ;
61
+ sh:targetNode ro-crate:Directory ;
62
+ sh:property [
63
+ a sh:PropertyShape ;
64
+ sh:name " Directory Data Entity: RECOMMENDED value restriction" ;
65
+ sh:description """ Check if the Directory Data Entity ends with `/`""" ;
66
+ sh:path [ sh:inversePath rdf:type ] ;
67
+ sh:message """ Every Data Entity Directory URI SHOULD end with `/`""" ;
68
+ sh:pattern " /$" ;
69
+ ] .
Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ def test_directory_data_entity_wo_trailing_slash():
59
59
"""Test a RO-Crate without a root data entity."""
60
60
do_entity_test (
61
61
paths .directory_data_entity_wo_trailing_slash ,
62
- models .Severity .REQUIRED ,
62
+ models .Severity .RECOMMENDED ,
63
63
False ,
64
- ["Directory Data Entity: REQUIRED value restriction" ],
65
- ["Every Data Entity Directory URI MUST end with `/`" ]
64
+ ["Directory Data Entity: RECOMMENDED value restriction" ],
65
+ ["Every Data Entity Directory URI SHOULD end with `/`" ]
66
66
)
67
67
68
68
You can’t perform that action at this time.
0 commit comments