|
| 1 | +####################################################################### |
| 2 | +# Copyright (c) 2023,2024 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This work is made available under the terms of the |
| 8 | +# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, |
| 9 | +# which is available at |
| 10 | +# https://creativecommons.org/licenses/by/4.0/legalcode. |
| 11 | +# |
| 12 | +# SPDX-License-Identifier: CC-BY-4.0 |
| 13 | +####################################################################### |
| 14 | + |
| 15 | +@prefix samm: <urn:samm:org.eclipse.esmf.samm:meta-model:2.1.0#>. |
| 16 | +@prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.1.0#>. |
| 17 | +@prefix samm-e: <urn:samm:org.eclipse.esmf.samm:entity:2.1.0#>. |
| 18 | +@prefix unit: <urn:samm:org.eclipse.esmf.samm:unit:2.1.0#>. |
| 19 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. |
| 20 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. |
| 21 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. |
| 22 | +@prefix : <urn:samm:io.catenax.shared.uuid:2.0.0#>. |
| 23 | + |
| 24 | +:Uuid2 a samm:Aspect; |
| 25 | + samm:preferredName "Shared Aspect for UUIDs v4"@en; |
| 26 | + samm:description "This is a shared aspect for UUIDs with a regex."@en; |
| 27 | + samm:properties (:uuidV4Property); |
| 28 | + samm:operations (); |
| 29 | + samm:events (). |
| 30 | +:uuidV4Property a samm:Property; |
| 31 | + samm:preferredName "UUID v4 Property"@en; |
| 32 | + samm:description "Property based on a UUID v4."@en; |
| 33 | + samm:characteristic :UuidV4Trait; |
| 34 | + samm:exampleValue "urn:uuid:48878d48-6f1d-47f5-8ded-a441d0d879df". |
| 35 | +:UuidV4Trait a samm-c:Trait; |
| 36 | + samm:preferredName "Trait for UUIDs v4"@en; |
| 37 | + samm:description "Trait to ensure UUID v4 data format."@en; |
| 38 | + samm-c:baseCharacteristic :Uuidv4Characteristic; |
| 39 | + samm-c:constraint :Uuidv4RegularExpression. |
| 40 | +:Uuidv4Characteristic a samm:Characteristic; |
| 41 | + samm:preferredName "UUID v4"@en; |
| 42 | + samm:description "A version 4 UUID is a universally unique identifier that is generated using random 32 hexadecimal characters."@en; |
| 43 | + samm:dataType xsd:string; |
| 44 | + samm:see <https://tools.ietf.org/html/rfc4122>. |
| 45 | +:Uuidv4RegularExpression a samm-c:RegularExpressionConstraint; |
| 46 | + samm:preferredName "UUID v4 Regular Expression"@en; |
| 47 | + samm:description "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI."@en; |
| 48 | + samm:see <https://datatracker.ietf.org/doc/html/rfc4122>; |
| 49 | + samm:value "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)". |
| 50 | +:Uuid3 a samm:Aspect; |
| 51 | + samm:preferredName "Shared Aspect for UUIDs v4"@en; |
| 52 | + samm:description "This is a shared aspect for UUIDs with a regex."@en; |
| 53 | + samm:properties (:uuidV4Property); |
| 54 | + samm:operations (); |
| 55 | + samm:events (). |
| 56 | +:uuidV4Property3 a samm:Property; |
| 57 | + samm:preferredName "UUID v4 Property"@en; |
| 58 | + samm:description "Property based on a UUID v4."@en; |
| 59 | + samm:characteristic :UuidV4Trait; |
| 60 | + samm:exampleValue "urn:uuid:48878d48-6f1d-47f5-8ded-a441d0d879df". |
| 61 | +:UuidV4Trait3 a samm-c:Trait; |
| 62 | + samm:preferredName "Trait for UUIDs v4"@en; |
| 63 | + samm:description "Trait to ensure UUID v4 data format."@en; |
| 64 | + samm-c:baseCharacteristic :Uuidv4Characteristic; |
| 65 | + samm-c:constraint :Uuidv4RegularExpression. |
| 66 | +:Uuidv4Characteristic3 a samm:Characteristic; |
| 67 | + samm:preferredName "UUID v4"@en; |
| 68 | + samm:description "A version 4 UUID is a universally unique identifier that is generated using random 32 hexadecimal characters."@en; |
| 69 | + samm:dataType xsd:string; |
| 70 | + samm:see <https://tools.ietf.org/html/rfc4122>. |
| 71 | +:Uuidv4RegularExpression3 a samm-c:RegularExpressionConstraint; |
| 72 | + samm:preferredName "UUID v4 Regular Expression"@en; |
| 73 | + samm:description "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI."@en; |
| 74 | + samm:see <https://datatracker.ietf.org/doc/html/rfc4122>; |
| 75 | + samm:value "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)". |
0 commit comments