|
| 1 | +# Copyright (c) 2025 eScience Lab, The University of Manchester |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +@prefix ro: <./> . |
| 16 | +@prefix ro-crate: <https://github.com/crs4/rocrate-validator/profiles/ro-crate/> . |
| 17 | +@prefix five-safes-crate: <https://github.com/eScienceLab/rocrate-validator/profiles/five-safes-crate/> . |
| 18 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 19 | +@prefix schema: <http://schema.org/> . |
| 20 | +@prefix purl: <http://purl.org/dc/terms/> . |
| 21 | +@prefix sh: <http://www.w3.org/ns/shacl#> . |
| 22 | +@prefix validator: <https://github.com/crs4/rocrate-validator/> . |
| 23 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 24 | + |
| 25 | +five-safes-crate:TimeStampFormat |
| 26 | + a sh:NodeShape ; |
| 27 | + sh:name "Timestamp Format" ; |
| 28 | + sh:description "Timestamps MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ; |
| 29 | + sh:targetObjectsOf schema:startTime, schema:endTime; |
| 30 | + sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}([.|,][0-9]+)?(Z|z|[+-][0-9]{2}:[0-9]{2})$" ; |
| 31 | + sh:severity sh:Violation ; |
| 32 | + sh:message "All `startTime` and `endTime` values MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." . |
0 commit comments