From cffd4f652d99fe57aec5431c33488935230da199 Mon Sep 17 00:00:00 2001 From: Sahil Aggarwal Date: Tue, 30 Jan 2024 15:13:27 +0100 Subject: [PATCH 1/2] Upgraded the samm-meta model to 2.1.0 for shared models --- .../4.0.0/AddressAspect.ttl | 260 ++++++++++++++++ .../4.0.0/metadata.json | 1 + .../RELEASE_NOTES.md | 3 + .../4.0.0/ContactInformation.ttl | 96 ++++++ .../4.0.0/metadata.json | 1 + .../RELEASE_NOTES.md | 3 + .../3.0.0/MessageHeaderAspect.ttl | 122 ++++++++ .../3.0.0/metadata.json | 1 + .../RELEASE_NOTES.md | 3 + .../3.0.0/PhysicalDimensions.ttl | 105 +++++++ .../3.0.0/metadata.json | 1 + .../RELEASE_NOTES.md | 3 + io.catenax.shared.quantity/2.0.0/Quantity.ttl | 291 ++++++++++++++++++ .../2.0.0/metadata.json | 1 + io.catenax.shared.quantity/RELEASE_NOTES.md | 3 + io.catenax.shared.uuid/2.0.0/Uuid.ttl | 49 +++ io.catenax.shared.uuid/2.0.0/metadata.json | 1 + io.catenax.shared.uuid/RELEASE_NOTES.md | 3 + 18 files changed, 947 insertions(+) create mode 100644 io.catenax.shared.address_characteristic/4.0.0/AddressAspect.ttl create mode 100644 io.catenax.shared.address_characteristic/4.0.0/metadata.json create mode 100644 io.catenax.shared.contact_information/4.0.0/ContactInformation.ttl create mode 100644 io.catenax.shared.contact_information/4.0.0/metadata.json create mode 100644 io.catenax.shared.message_header/3.0.0/MessageHeaderAspect.ttl create mode 100644 io.catenax.shared.message_header/3.0.0/metadata.json create mode 100644 io.catenax.shared.physical_dimension/3.0.0/PhysicalDimensions.ttl create mode 100644 io.catenax.shared.physical_dimension/3.0.0/metadata.json create mode 100644 io.catenax.shared.quantity/2.0.0/Quantity.ttl create mode 100644 io.catenax.shared.quantity/2.0.0/metadata.json create mode 100644 io.catenax.shared.uuid/2.0.0/Uuid.ttl create mode 100644 io.catenax.shared.uuid/2.0.0/metadata.json diff --git a/io.catenax.shared.address_characteristic/4.0.0/AddressAspect.ttl b/io.catenax.shared.address_characteristic/4.0.0/AddressAspect.ttl new file mode 100644 index 00000000..04dcb423 --- /dev/null +++ b/io.catenax.shared.address_characteristic/4.0.0/AddressAspect.ttl @@ -0,0 +1,260 @@ +####################################################################### +# Copyright (c) 2023,2024 T-Systems International GmbH +# Copyright (c) 2023,2024 Robert Bosch Manufacturing Solutions GmbH +# Copyright (c) 2023,2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This work is made available under the terms of the +# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, +# which is available at +# https://creativecommons.org/licenses/by/4.0/legalcode. +# +# SPDX-License-Identifier: CC-BY-4.0 +####################################################################### + +@prefix samm: . +@prefix samm-c: . +@prefix samm-e: . +@prefix unit: . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . +@prefix : . + +:AddressAspect a samm:Aspect ; + samm:preferredName "Address Aspect"@en ; + samm:description "Aspect used for the Characteristic :PostalAddress to reference address data."@en ; + samm:properties ( :address ) ; + samm:operations ( ) ; + samm:events ( ) . + +:address a samm:Property ; + samm:preferredName "Address"@en ; + samm:description "The address of the data provider."@en ; + samm:characteristic :PostalAddress . + +:PostalAddress a samm:Characteristic ; + samm:preferredName "PostalAddress"@en ; + samm:description "A characteristic to express the postal address and which is intended to be referenced by other aspects."@en ; + samm:dataType :AddressEntity . + +:AddressEntity a samm:Entity ; + samm:preferredName "Address Entity"@en ; + samm:description "Entity of an address. Model follows specification of BPDM (Business Partner Data Management)."@en ; + samm:properties ( :thoroughfare :locality [ samm:property :premise; samm:optional true ] [ samm:property :postalDeliveryPoint; samm:optional true ] :country :postCode ) . + +:thoroughfare a samm:Property ; + samm:preferredName "Thoroughfare"@en ; + samm:description "Street or thorough road name."@en ; + samm:characteristic :ThoroughfareCharacteristic . + +:locality a samm:Property ; + samm:preferredName "Locality"@en ; + samm:description "Locality belonging to an address."@en ; + samm:characteristic :LocalityCharacteristic . + +:premise a samm:Property ; + samm:preferredName "Premise"@en ; + samm:description "Premise of an address, e.g. a specific \"BUILDING\" but can also be used for naming a particular site."@en ; + samm:characteristic :PremiseCharacteristic . + +:postalDeliveryPoint a samm:Property ; + samm:preferredName "Postal Delivery Point"@en ; + samm:description "Delivery point, e.g. designation of a gate."@en ; + samm:characteristic :PostalDeliveryPointCharacteristic . + +:country a samm:Property ; + samm:preferredName "Country"@en ; + samm:description "Country of an address."@en ; + samm:characteristic :CountryCharacteristic . + +:postCode a samm:Property ; + samm:preferredName "Post Code"@en ; + samm:description "Postal code of the address."@en ; + samm:characteristic :PostCodeCharacteristic . + +:ThoroughfareCharacteristic a samm-c:SingleEntity ; + samm:preferredName "Thoroughfare Characteristic"@en ; + samm:description "Characteristic for defining a thoroughfare which can consist of a type (e.g. \"STREET\"), value (e.g. \"Bernstra?e\") and number (e.g. \"45\"). Model follows the specification of BPDM."@en ; + samm:dataType :ThoroughfareEntity . + +:LocalityCharacteristic a samm-c:SingleEntity ; + samm:preferredName "Locality Characteristic"@en ; + samm:description "Characteristic for defining a locality which belongs to an address and which consists of a type (e.g. \"CITY\") and value (e.g. \"Mannheim\"). Model follows the specification of BPDM."@en ; + samm:dataType :LocalityEntity . + +:PremiseCharacteristic a samm-c:SingleEntity ; + samm:preferredName "Premise Characteristic"@en ; + samm:description "Characteristic for defining a premise which consists of a technical key (e.g. \"BUILDING\" or \"OTHER\") and a value (e.g. \"Werk 1\")."@en ; + samm:dataType :PremiseEntity . + +:PostalDeliveryPointCharacteristic a samm-c:SingleEntity ; + samm:preferredName "Postal Delivery Point Characteristic"@en ; + samm:description "Characteristic for defining a postal delivery point which consists of a technical key (e.g. \"MAILBOX\" or \"OTHER\") and a value. Model follows the specification of BPDM."@en ; + samm:dataType :PostalDeliveryPointEntity . + +:CountryCharacteristic a samm-c:SingleEntity ; + samm:preferredName "Country Characteristic"@en ; + samm:description "Characteristic of a country belonging to an address"@en ; + samm:dataType :CountryEntity . + +:PostCodeCharacteristic a samm-c:SingleEntity ; + samm:preferredName "PostCode Characteristic"@en ; + samm:description "Characteristic for defining a postcode which can consist of a type (e.g. \"REGULAR\" for zip codes) and a value (e.g. \"98765-4321\"). Model follows the specification of BPDM."@en ; + samm:dataType :PostCodeEntity . + +:ThoroughfareEntity a samm:Entity ; + samm:preferredName "Thoroughfare Entity"@en ; + samm:description "Entity for a thoroughfare which consists of a type, value and number."@en ; + samm:properties ( [ samm:property :thoroughfareTechnicalKey; samm:payloadName "technicalKey" ] [ samm:property :thoroughfareValue; samm:payloadName "value" ] [ samm:property :thoroughfareNumber; samm:payloadName "number" ] ) . + +:LocalityEntity a samm:Entity ; + samm:preferredName "Locality Entity"@en ; + samm:description "Entity for a locality which consists of a key and a value."@en ; + samm:properties ( [ samm:property :localityTechnicalKey; samm:payloadName "technicalKey" ] [ samm:property :localityValue; samm:payloadName "value" ] ) . + +:PremiseEntity a samm:Entity ; + samm:preferredName "Premise Entity"@en ; + samm:description "Entity for a premise which consists of a type (technical key) and a value."@en ; + samm:properties ( [ samm:property :premiseTechnicalKey; samm:payloadName "technicalKey" ] [ samm:property :premiseValue; samm:payloadName "value" ] ) . + +:PostalDeliveryPointEntity a samm:Entity ; + samm:preferredName "Postal Delivery Point Entity"@en ; + samm:description "Entity for a postal delivery point which consists of a technical key and a value."@en ; + samm:properties ( [ samm:property :postalDeliveryPointTechnicalKey; samm:payloadName "technicalKey" ] [ samm:property :postalDeliveryPointValue; samm:payloadName "value" ] ) . + +:CountryEntity a samm:Entity ; + samm:preferredName "Country Entity"@en ; + samm:description "Entity definition for a country."@en ; + samm:properties ( [ samm:property :countryShortName; samm:payloadName "shortName" ] ) . + +:PostCodeEntity a samm:Entity ; + samm:preferredName "PostCode Entity"@en ; + samm:description "Entity for a postcode which consists of a type plus a value."@en ; + samm:properties ( [ samm:property :postCodeValue; samm:payloadName "value" ] [ samm:property :postCodeTechnicalKey; samm:payloadName "technicalKey" ] ) . + +:thoroughfareTechnicalKey a samm:Property ; + samm:preferredName "Thoroughfare Technical Key"@en ; + samm:description "Technical key of a thoroughfare. As specified by BPDM, this can be a \"STREET\" or a different type."@en ; + samm:characteristic :ThoroughfareTechnicalKeyCharacteristic ; + samm:exampleValue "STREET" . + +:thoroughfareValue a samm:Property ; + samm:preferredName "Value Thoroughfare"@en ; + samm:description "Value of a thoroughfare, e.g. name of a street."@en ; + samm:characteristic samm-c:Text ; + samm:exampleValue "Bernstrasse" . + +:thoroughfareNumber a samm:Property ; + samm:preferredName "Thoroughfare Number"@en ; + samm:description "Number of a thoroughfare. As used differently in international context, this number can contain both numerical and alphanumerical values."@en ; + samm:characteristic samm-c:Text ; + samm:exampleValue "45" . + +:localityTechnicalKey a samm:Property ; + samm:preferredName "Locality Technical Key"@en ; + samm:description "Technical key of a locality."@en ; + samm:characteristic :LocalityTechnicalKeyCharacteristic ; + samm:exampleValue "CITY" . + +:localityValue a samm:Property ; + samm:preferredName "Locality Value"@en ; + samm:description "Value of a locality, e.g. name of a city (\"Mannheim\")."@en ; + samm:characteristic samm-c:Text ; + samm:exampleValue "Mannheim" . + +:premiseTechnicalKey a samm:Property ; + samm:preferredName "Premise Technical Key"@en ; + samm:description "Technical key of a premise."@en ; + samm:characteristic :PremiseTechnicalKeyCharacteristic ; + samm:exampleValue "OTHER" . + +:premiseValue a samm:Property ; + samm:preferredName "Premise Value"@en ; + samm:description "Value of a premise, e.g. name or designation of a particular site."@en ; + samm:characteristic samm-c:Text ; + samm:exampleValue "Werk 1" . + +:postalDeliveryPointTechnicalKey a samm:Property ; + samm:preferredName "Postal Delivery Point Technical Key"@en ; + samm:description "Technical key of a postal delivery point."@en ; + samm:characteristic :PostalDeliveryPointTechnicalKeyCharacteristic ; + samm:exampleValue "OTHER" . + +:postalDeliveryPointValue a samm:Property ; + samm:preferredName "Postal Delivery Point Value"@en ; + samm:description "Value of a postal delivery point, e.g. designation of a gate."@en ; + samm:characteristic samm-c:Text ; + samm:exampleValue "Tor 1" . + +:countryShortName a samm:Property ; + samm:preferredName "Country Short Name"@en ; + samm:description "The short variation of the name of the country."@en ; + samm:characteristic :CountryTrait . + +:postCodeValue a samm:Property ; + samm:preferredName "Post Code Value"@en ; + samm:description "The value of a post code."@en ; + samm:characteristic :PostCodeTrait ; + samm:exampleValue "98765-4321" . + +:postCodeTechnicalKey a samm:Property ; + samm:preferredName "Post Code Technical Key"@en ; + samm:description "The technical key of a post code."@en ; + samm:characteristic :PostCodeTechnicalKeyCharacteristic . + +:ThoroughfareTechnicalKeyCharacteristic a samm-c:Enumeration ; + samm:preferredName "Thoroughfare Technical Key Characteristic"@en ; + samm:description "Characteristic of the technical key of a thoroughfare."@en ; + samm:dataType xsd:string ; + samm-c:values ( "STREET" "INDUSTRIAL_ZONE" "OTHER" "RIVER" "SQUARE" ) . + +:LocalityTechnicalKeyCharacteristic a samm-c:Enumeration ; + samm:preferredName "Locality Technical Key Characteristic"@en ; + samm:description "Characteristic of the technical key of a locality"@en ; + samm:dataType xsd:string ; + samm-c:values ( "BLOCK" "CITY" "DISTRICT" "OTHER" "POST_OFFICE_CITY" "QUARTER" ) . + +:PremiseTechnicalKeyCharacteristic a samm-c:Enumeration ; + samm:preferredName "Premise Technical Key Characteristic"@en ; + samm:description "Characteristic of the technical key of a premise."@en ; + samm:dataType xsd:string ; + samm-c:values ( "BUILDING" "HARBOUR" "LEVEL" "OTHER" "ROOM" "SUITE" "UNIT" "WAREHOUSE" ) . + +:PostalDeliveryPointTechnicalKeyCharacteristic a samm-c:Enumeration ; + samm:preferredName "Postal Delivery Point Technical Key Characteristic"@en ; + samm:description "Characteristic of the technical key of a postal delivery point."@en ; + samm:dataType xsd:string ; + samm-c:values ( "INTERURBAN_DELIVERY_POINT" "MAIL_STATION" "MAILBOX" "OTHER" "POST_OFFICE_BOX" ) . + +:CountryTrait a samm-c:Trait ; + samm-c:baseCharacteristic :CountryShortNameCharacteristic ; + samm-c:constraint :CountryShortNameConstraint . + +:PostCodeTrait a samm-c:Trait ; + samm-c:baseCharacteristic samm-c:Text ; + samm-c:constraint :PostCodeConstraint . + +:PostCodeTechnicalKeyCharacteristic a samm-c:Enumeration ; + samm:preferredName "Post Code Technical Key Characteristic"@en ; + samm:description "Characteristic for the technical key of a post code."@en ; + samm:dataType xsd:string ; + samm-c:values ( "CEDEX" "LARGE_MAIL_USER" "OTHER" "POST_BOX" "REGULAR" ) . + +:CountryShortNameCharacteristic a samm:Characteristic ; + samm:preferredName "Country Short Name Characteristic"@en ; + samm:description "Characteristic for a short name of a country belonging to an address."@en ; + samm:dataType xsd:string . + +:CountryShortNameConstraint a samm-c:RegularExpressionConstraint ; + samm:preferredName "CountryShortNameConstraint"@en ; + samm:description "Regular expression for designation of a short name of a country as defined in ISO 3166-2."@en ; + samm:value "([A-Z]{2}-[A-Z0-9]{1,3}|)" . + +:PostCodeConstraint a samm-c:RegularExpressionConstraint ; + samm:preferredName "Post Code Constraint"@en ; + samm:description "Regular expression for post codes."@en ; + samm:value "^[a-z0-9][a-z0-9\\- ]{0,10}$" . + diff --git a/io.catenax.shared.address_characteristic/4.0.0/metadata.json b/io.catenax.shared.address_characteristic/4.0.0/metadata.json new file mode 100644 index 00000000..c22749ae --- /dev/null +++ b/io.catenax.shared.address_characteristic/4.0.0/metadata.json @@ -0,0 +1 @@ +{ "status" : "release"} diff --git a/io.catenax.shared.address_characteristic/RELEASE_NOTES.md b/io.catenax.shared.address_characteristic/RELEASE_NOTES.md index cab8390c..1e089e0d 100644 --- a/io.catenax.shared.address_characteristic/RELEASE_NOTES.md +++ b/io.catenax.shared.address_characteristic/RELEASE_NOTES.md @@ -3,6 +3,9 @@ All notable changes to this model will be documented in this file. ## [Unreleased] +### [4.0.0] - 2024-01-30 +- migrated from samm 2.0.0 to samm 2.1.0 + ### [3.0.0] - 2023-07-31 - migrated from BAMM to SAMM diff --git a/io.catenax.shared.contact_information/4.0.0/ContactInformation.ttl b/io.catenax.shared.contact_information/4.0.0/ContactInformation.ttl new file mode 100644 index 00000000..e4116dd6 --- /dev/null +++ b/io.catenax.shared.contact_information/4.0.0/ContactInformation.ttl @@ -0,0 +1,96 @@ +####################################################################### +# Copyright (c) 2023,2024 Robert Bosch Manufacturing Solutions GmbH +# Copyright (c) 2023,2024 T-Systems International GmbH +# Copyright (c) 2023,2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This work is made available under the terms of the +# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, +# which is available at +# https://creativecommons.org/licenses/by/4.0/legalcode. +# +# SPDX-License-Identifier: CC-BY-4.0 +####################################################################### + +@prefix samm: . +@prefix samm-c: . +@prefix samm-e: . +@prefix unit: . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . +@prefix : . + +:ContactInformation a samm:Aspect ; + samm:preferredName "Contact Information"@en ; + samm:description "Entity encapsulating the contact details."@en ; + samm:see ; + samm:properties ( :contactProperty ) ; + samm:operations ( ) ; + samm:events ( ) . + +:contactProperty a samm:Property ; + samm:preferredName "Contact Property"@en ; + samm:description "Property describing contact information for an organization."@en ; + samm:characteristic :ContactCharacteristic . + +:ContactCharacteristic a samm:Characteristic ; + samm:preferredName "Contact Characteristic"@en ; + samm:description "Characteristic describing information on how to contact an organization."@en ; + samm:dataType :ContactEntity . + +:ContactEntity a samm:Entity ; + samm:preferredName "Contact Entity"@en ; + samm:description "Entity to bundle the properties for the information on how to contact an organization."@en ; + samm:properties ( [ samm:property :website; samm:optional true ] [ samm:property :phoneNumber; samm:optional true ] [ samm:property :email; samm:optional true ] [ samm:property :faxNumber; samm:optional true ] ) . + +:website a samm:Property ; + samm:preferredName "Website"@en ; + samm:description "Website of the contact."@en ; + samm:characteristic :WebsiteCharacteristic ; + samm:exampleValue "https://www.samsung.com"^^xsd:anyURI . + +:phoneNumber a samm:Property ; + samm:preferredName "Phone Number"@en ; + samm:description "Phone number with country and area code."@en ; + samm:characteristic :PhoneNumberTrait ; + samm:exampleValue "+49 89 1234567890" . + +:email a samm:Property ; + samm:preferredName "Email"@en ; + samm:description "An email address."@en ; + samm:characteristic :EMailTrait ; + samm:exampleValue "test.mail@example.com" . + +:faxNumber a samm:Property ; + samm:preferredName "Fax Number"@en ; + samm:description "Fax number with country and area code."@en ; + samm:characteristic :PhoneNumberTrait ; + samm:exampleValue "+49 89 0987654321" . + +:WebsiteCharacteristic a samm:Characteristic ; + samm:preferredName "Website Characteristic"@en ; + samm:description "Address of the website."@en ; + samm:dataType xsd:anyURI . + +:PhoneNumberTrait a samm-c:Trait ; + samm-c:baseCharacteristic samm-c:Text ; + samm-c:constraint :PhoneNumberConstraint . + +:EMailTrait a samm-c:Trait ; + samm-c:baseCharacteristic samm-c:Text ; + samm-c:constraint :EMailConstraint . + +:PhoneNumberConstraint a samm-c:RegularExpressionConstraint ; + samm:preferredName "PhoneNumber Constraint"@en ; + samm:description "Constraint to allow only numbers, whitespaces and an optional leading + sign."@en ; + samm:value "^[+]?[0-9 ]+$" . + +:EMailConstraint a samm-c:RegularExpressionConstraint ; + samm:preferredName "Email Constraint"@en ; + samm:description "Regular expression for mail address as defined in W3C."@en ; + samm:see ; + samm:value "^[a-zA-Z0-9.!#$%&?*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$" . + diff --git a/io.catenax.shared.contact_information/4.0.0/metadata.json b/io.catenax.shared.contact_information/4.0.0/metadata.json new file mode 100644 index 00000000..0fdd8255 --- /dev/null +++ b/io.catenax.shared.contact_information/4.0.0/metadata.json @@ -0,0 +1 @@ +{ "status" : "release"} \ No newline at end of file diff --git a/io.catenax.shared.contact_information/RELEASE_NOTES.md b/io.catenax.shared.contact_information/RELEASE_NOTES.md index 72fd2f4c..57e3daca 100644 --- a/io.catenax.shared.contact_information/RELEASE_NOTES.md +++ b/io.catenax.shared.contact_information/RELEASE_NOTES.md @@ -3,6 +3,9 @@ All notable changes to this model will be documented in this file. ## [Unreleased] +### [4.0.0] - 2024-01-30 +- migrated from samm 2.0.0 to samm 2.1.0 + ## [3.0.0] - 2023-11-27 ### Changed - samm:io version changed to SAMM 2.0.0 diff --git a/io.catenax.shared.message_header/3.0.0/MessageHeaderAspect.ttl b/io.catenax.shared.message_header/3.0.0/MessageHeaderAspect.ttl new file mode 100644 index 00000000..d525045a --- /dev/null +++ b/io.catenax.shared.message_header/3.0.0/MessageHeaderAspect.ttl @@ -0,0 +1,122 @@ +########################################################################################## +# Copyright (c) 2023,2024 Bayerische Motoren Werke Aktiengesellschaft +# Copyright (c) 2023,2024 Robert Bosch GmbH +# Copyright (c) 2023,2024 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e. V. +# Copyright (c) 2023,2024 German Edge Cloud GmbH & Co. KG +# Copyright (c) 2023,2024 SAP SE +# Copyright (c) 2023,2024 Siemens AG +# Copyright (c) 2023,2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This work is made available under the terms of the +# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, +# which is available at +# https://creativecommons.org/licenses/by/4.0/legalcode. +# +# SPDX-License-Identifier: CC-BY-4.0 +########################################################################################## + +@prefix samm: . +@prefix samm-c: . +@prefix samm-e: . +@prefix unit: . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . +@prefix : . +@prefix ext-number: . +@prefix ext-uuid: . + +:MessageHeaderAspect a samm:Aspect; + samm:preferredName "Message Header Aspect"@en; + samm:description "Aspect model describing the shared message header."@en; + samm:properties (:header); + samm:operations (); + samm:events (). + +:header a samm:Property; + samm:preferredName "Header"@en; + samm:description "Contains standardized attributes for message processing common across several use cases."@en; + samm:characteristic :HeaderCharacteristic. + +:HeaderCharacteristic a samm:Characteristic; + samm:preferredName "Header Characteristic"@en; + samm:description "Characteristic describing the common shared aspect Message Header"@en; + samm:dataType :MessageHeader. + +:MessageHeader a samm:Entity; + samm:preferredName "Message Header"@en; + samm:description "The Catena-X Message Header contains standardized attributes for message processing that are common across several use cases. It targets a minimal set of aspects that are needed for overall message handling, and not for the processing of the business related payload part. By standardizing the message header structure, we support a harmonized modelling approach and re-use of concepts. The message header originated from discussions on push notifications but has since then been abstracted for overall message handling ? and does not only apply to notification anymore."@en; + samm:properties (:messageId :context :sentDateTime :senderBpn :receiverBpn [ samm:property :expectedResponseBy; samm:optional true ] [ samm:property :relatedMessageId; samm:optional true ] :version). + +:messageId a samm:Property; + samm:preferredName "Message ID"@en; + samm:description "Unique ID identifying the message. The purpose of the ID is to uniquely identify a single message, therefore it MUST not be reused."@en; + samm:characteristic ext-uuid:UuidV4Trait; + samm:exampleValue "3b4edc05-e214-47a1-b0c2-1d831cdd9ba9". + +:context a samm:Property; + samm:preferredName "Context"@en; + samm:description "Information about the context the message should be considered in.\nThe value MUST consist of two parts: an identifier of the context (e.g. business domain, etc.) followed by a version number.\nBoth the identifier and the version number MUST correspond to the content of the message.\nIf the content of a message is described by an aspect model available in the Catena-X Semantic Hub, then the unique identifier of this semantic model (e.g. urn:samm:io.catenax.:1.x.x) MUST be used as a value of the context field. This is considered the default case.\nIn all other cases the value of the context field MUST follow the pattern --:<[major] version> (e.g. TRACE-QM-Alert:1.x.x).\nVersioning only refers to major versions in both default and fallback cases.\nNote: The version of the message's header is specified in the version field."@en; + samm:characteristic :ContextCharacteristic; + samm:exampleValue "urn:samm:io.catenax.:1.x.x". + +:sentDateTime a samm:Property; + samm:preferredName "Sent Date Time"@en; + samm:description "Time zone aware timestamp holding the date and the time the message was sent by the sending party. The value MUST be formatted according to the ISO 8601 standard"@en; + samm:characteristic samm-c:Timestamp; + samm:exampleValue "2023-06-19T21:24:00+07:00"^^xsd:dateTime. + +:senderBpn a samm:Property; + samm:preferredName "Sender BPN"@en; + samm:description "The Business Partner Number of the sending party. The value MUST be a valid BPN. BPNA and BPNS are not allowed. Applicable constraints are defined in the corresponding standard"@en; + samm:characteristic ext-number:BpnlTrait; + samm:exampleValue "BPNL7588787849VQ". + +:receiverBpn a samm:Property; + samm:preferredName "Receiver BPN"@en; + samm:description "The Business Partner Number of the receiving party. The value MUST be a valid BPN. BPNA and BPNS are not allowed. Applicable constraints are defined in the corresponding standard."@en; + samm:characteristic ext-number:BpnlTrait; + samm:exampleValue "BPNL6666787765VQ". + +:expectedResponseBy a samm:Property; + samm:preferredName "Expected Response By"@en; + samm:description "Time zone aware timestamp holding the date and time by which the sending party expects a certain type of response from the receiving party. The meaning and interpretation of the fields's value are context-bound and MUST therefore be defined by any business domain or platform capability making use of it. The value MUST be formatted according to the ISO 8601 standard"@en; + samm:characteristic samm-c:Timestamp; + samm:exampleValue "2023-06-19T21:24:00+07:00"^^xsd:dateTime. + +:relatedMessageId a samm:Property; + samm:preferredName "Related Message ID"@en; + samm:description "Unique ID identifying a message somehow related to the current one"@en; + samm:characteristic ext-uuid:UuidV4Trait; + samm:exampleValue "d9452f24-3bf3-4134-b3eb-68858f1b2362". + +:version a samm:Property; + samm:preferredName "Version"@en; + samm:description "The unique identifier of the aspect model defining the structure and the semantics of the message's header. The version number should reflect the versioning schema of aspect models in Catena-X."@en; + samm:characteristic :SemanticVersioningTrait; + samm:exampleValue "2.0.0". + +:ContextCharacteristic a samm:Characteristic; + samm:preferredName "Context Characteristic"@en; + samm:description "Defining a string value for the context"@en; + samm:dataType xsd:string. + +:SemanticVersioningTrait a samm-c:Trait; + samm:preferredName "Semantic Versioning Trait"@en; + samm:description "Trait for defining the Semantic Versioning Characteristic to be SemVer.org compliant."@en; + samm-c:baseCharacteristic :VersionCharacteristic; + samm-c:constraint :SemVer. + +:VersionCharacteristic a samm:Characteristic; + samm:preferredName "Version Characteristic"@en; + samm:description "Characteristic defining the value of version."@en; + samm:see ; + samm:dataType xsd:string. + +:SemVer a samm-c:RegularExpressionConstraint; + samm:preferredName "Semantic Versioning Constraint"@en; + samm:description "Constraint for defining a SemVer version."@en; + samm:value "^(0|[1-9][0-9]*).(0|[1-9][0-9]*).(0|[1-9][0-9]*)(-(0|[1-9A-Za-z-][0-9A-Za-z-]*)(.[0-9A-Za-z-]+)*)?([0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?$". diff --git a/io.catenax.shared.message_header/3.0.0/metadata.json b/io.catenax.shared.message_header/3.0.0/metadata.json new file mode 100644 index 00000000..84245e4e --- /dev/null +++ b/io.catenax.shared.message_header/3.0.0/metadata.json @@ -0,0 +1 @@ +{ "status" : "release" } diff --git a/io.catenax.shared.message_header/RELEASE_NOTES.md b/io.catenax.shared.message_header/RELEASE_NOTES.md index 722e0512..10dade75 100644 --- a/io.catenax.shared.message_header/RELEASE_NOTES.md +++ b/io.catenax.shared.message_header/RELEASE_NOTES.md @@ -2,6 +2,9 @@ All notable changes to this model will be documented in this file. +### [3.0.0] - 2024-01-30 +- migrated from samm 2.0.0 to samm 2.1.0 + ## [2.0.0] - 2023-11-28 ### Added - add / integrate shared UUID characteristic and RegEx for the properties messageId and relatedMessageId diff --git a/io.catenax.shared.physical_dimension/3.0.0/PhysicalDimensions.ttl b/io.catenax.shared.physical_dimension/3.0.0/PhysicalDimensions.ttl new file mode 100644 index 00000000..b8c40590 --- /dev/null +++ b/io.catenax.shared.physical_dimension/3.0.0/PhysicalDimensions.ttl @@ -0,0 +1,105 @@ +####################################################################### +# Copyright (c) 2023,2024 T-Systems International GmbH +# Copyright (c) 2023,2024 Robert Bosch Manufacturing Solutions GmbH +# Copyright (c) 2023,2024 Fraunhofer-Institut für Produktionstechnik und Automatisierung +# Copyright (c) 2023,2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This work is made available under the terms of the +# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, +# which is available at +# https://creativecommons.org/licenses/by/4.0/legalcode. +# +# SPDX-License-Identifier: CC-BY-4.0 +####################################################################### + +@prefix bamm: . +@prefix bamm-c: . +@prefix bamm-e: . +@prefix unit: . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . +@prefix : . + +:length a bamm:Property; + bamm:name "length"; + bamm:preferredName "length"@en; + bamm:description "Length of the item."@en; + bamm:characteristic :MillimetreCharacteristic; + bamm:exampleValue "20000.10"^^xsd:double. +:MillimetreCharacteristic a bamm-c:Measurement; + bamm:name "MillimetreCharacteristic"; + bamm:preferredName "millimetre characteristic"@en; + bamm:description "a measurement for a lenght given in the unit millimetre"@en; + bamm:dataType xsd:double; + bamm-c:unit unit:millimetre. +:width a bamm:Property; + bamm:name "width"; + bamm:preferredName "width"@en; + bamm:description "Width of the item."@en; + bamm:characteristic :MillimetreCharacteristic; + bamm:exampleValue "1000.00"^^xsd:double. +:height a bamm:Property; + bamm:name "height"; + bamm:preferredName "height"@en; + bamm:description "Height of the item."@en; + bamm:characteristic :MillimetreCharacteristic; + bamm:exampleValue "0.10"^^xsd:double. +:diameter a bamm:Property; + bamm:name "diameter"; + bamm:preferredName "diameter"@en; + bamm:description "Diameter of the item."@en; + bamm:characteristic :MillimetreCharacteristic; + bamm:exampleValue "0.03"^^xsd:double. +:weight a bamm:Property; + bamm:name "weight"; + bamm:preferredName "weight"@en; + bamm:description "Weight of the item"@en; + bamm:characteristic :KilogramCharacteristic; + bamm:exampleValue "100.70"^^xsd:double. +:KilogramCharacteristic a bamm-c:Measurement; + bamm:name "KilogramCharacteristic"; + bamm:preferredName "kilogram characteristic"@en; + bamm:description "a measurement value given in the unit kilogram"@en; + bamm:dataType xsd:double; + bamm-c:unit unit:kilogram. +:PhysicalDimensions a bamm:Aspect; + bamm:name "PhysicalDimensions"; + bamm:preferredName "physical dimensions"@en; + bamm:description "Describes the physical dimensions of then entity."@en; + bamm:properties (:physicalDimensionsProperty); + bamm:operations (); + bamm:events (). +:physicalDimensionsProperty a bamm:Property; + bamm:name "physicalDimensionsProperty"; + bamm:preferredName "physical dimensions"@en; + bamm:description "Describes the physical dimensions of then entity."@en; + bamm:characteristic :PhysicalDimensionsCharacteristic. +:PhysicalDimensionsCharacteristic a bamm:Characteristic; + bamm:name "PhysicalDimensionsCharacteristic"; + bamm:preferredName "physical dimensions"@en; + bamm:description "Describes the physical dimensions of then entity."@en; + bamm:dataType :PhysicalDimensionsEntity. +:PhysicalDimensionsEntity a bamm:Entity; + bamm:name "PhysicalDimensionsEntity"; + bamm:preferredName "physical dimensions"@en; + bamm:description "Entity encapsulating the physical dimensions of an object."@en; + bamm:properties ([ + bamm:property :weight; + bamm:optional "true"^^xsd:boolean +] [ + bamm:property :diameter; + bamm:optional "true"^^xsd:boolean +] [ + bamm:property :height; + bamm:optional "true"^^xsd:boolean +] [ + bamm:property :width; + bamm:optional "true"^^xsd:boolean +] [ + bamm:property :length; + bamm:optional "true"^^xsd:boolean +]). diff --git a/io.catenax.shared.physical_dimension/3.0.0/metadata.json b/io.catenax.shared.physical_dimension/3.0.0/metadata.json new file mode 100644 index 00000000..eb94ac1e --- /dev/null +++ b/io.catenax.shared.physical_dimension/3.0.0/metadata.json @@ -0,0 +1 @@ +{ "status" : "release"} diff --git a/io.catenax.shared.physical_dimension/RELEASE_NOTES.md b/io.catenax.shared.physical_dimension/RELEASE_NOTES.md index fe3f74ed..a92b053f 100644 --- a/io.catenax.shared.physical_dimension/RELEASE_NOTES.md +++ b/io.catenax.shared.physical_dimension/RELEASE_NOTES.md @@ -3,6 +3,9 @@ All notable changes to this model will be documented in this file. ## [Unreleased] +### [3.0.0] - 2024-01-30 +- migrated from samm 2.0.0 to samm 2.1.0 + ## [2.0.0] - 2023-03-30 ### Changed - bamm:io version changed to 2.0.0 diff --git a/io.catenax.shared.quantity/2.0.0/Quantity.ttl b/io.catenax.shared.quantity/2.0.0/Quantity.ttl new file mode 100644 index 00000000..9216b317 --- /dev/null +++ b/io.catenax.shared.quantity/2.0.0/Quantity.ttl @@ -0,0 +1,291 @@ +####################################################################### +# Copyright (c) 2023,2024 ISTOS GmbH (a member of the DMG Mori Group) +# Copyright (c) 2023,2024 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. (represented by Fraunhofer ISST) +# Copyright (c) 2023,2024 TRUMPF Werkzeugmaschinen SE + Co. KG +# Copyright (c) 2023,2024 Volkswagen AG +# Copyright (c) 2023,2024 BASF SE +# Copyright (c) 2023,2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +# Copyright (c) 2023,2024 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. (represented by Fraunhofer IML) +# Copyright (c) 2023,2024 Henkel AG & Co. KGaA +# Copyright (c) 2023,2024 Mercedes Benz AG +# Copyright (c) 2023,2024 SAP SE +# Copyright (c) 2023,2024 SupplyOn AG +# Copyright (c) 2023,2024 ZF Friedrichshafen AG +# Copyright (c) 2023,2024 CGI Deutschland B.V. & Co. KG +# Copyright (c) 2023,2024 T-Systems International GmbH +# Copyright (c) 2023,2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This work is made available under the terms of the +# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, +# which is available at +# https://creativecommons.org/licenses/by/4.0/legalcode. +# +# SPDX-License-Identifier: CC-BY-4.0 +####################################################################### +@prefix samm: . +@prefix samm-c: . +@prefix samm-e: . +@prefix unit: . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . +@prefix : . + +:Quantity a samm:Aspect; + samm:preferredName "Quantity with Unit of Measure"@en; + samm:description "The aspect may be reused whenever any kind of Quantity and / or unit of measure is used. One can use all defined units via the item unit or differentiate via mass, miscellaneous, countable, linear, area and volume units."@en; + samm:properties (:massProperty :linearProperty :areaProperty :volumeProperty :countProperty :timeProperty :miscProperty :itemQuantityProperty); + samm:operations (); + samm:events (). +:massProperty a samm:Property; + samm:preferredName "Mass related property"@en; + samm:description "This property defines unit and value for mass related properties."@en; + samm:characteristic :MassCharacteristic. +:linearProperty a samm:Property; + samm:preferredName "Linear property"@en; + samm:description "This property defines unit and value for linear properties."@en; + samm:characteristic :LinearCharacteristic. +:areaProperty a samm:Property; + samm:preferredName "Area related property"@en; + samm:description "This property defines unit and value for area related properties."@en; + samm:characteristic :AreaCharacteristic. +:volumeProperty a samm:Property; + samm:preferredName "Volume related property"@en; + samm:description "This property defines unit and value for volume related properties."@en; + samm:characteristic :VolumeCharacteristic. +:countProperty a samm:Property; + samm:preferredName "Countable property"@en; + samm:description "This property defines unit and value for countable properties."@en; + samm:characteristic :CountQuantityCharacteristic. +:timeProperty a samm:Property; + samm:preferredName "Time related property"@en; + samm:description "This property defines unit and value for time related properties."@en; + samm:characteristic :TimeCharacteristic. +:miscProperty a samm:Property; + samm:preferredName "Miscellaneous unit property"@en; + samm:description "This property defines unit and value for miscellaneous properties."@en; + samm:characteristic :MiscQuantityCharacteristic. +:itemQuantityProperty a samm:Property; + samm:preferredName "Item Quantity property"@en; + samm:description "This property defines common units and the value for items. Items may be measured as mass, countable, miscellaneous, linear, area or volume."@en; + samm:characteristic :ItemQuantityCharacteristic. +:MassCharacteristic a samm:Characteristic; + samm:preferredName "Mass Characteristic"@en; + samm:description "Characteristic for mass measurements of an item."@en; + samm:dataType :MassEntity. +:LinearCharacteristic a samm:Characteristic; + samm:preferredName "Linear Characteristic"@en; + samm:description "Characteristic for linear measurements of an item."@en; + samm:dataType :LinearEntity. +:AreaCharacteristic a samm:Characteristic; + samm:preferredName "Area Characteristic"@en; + samm:description "Characteristic for area measurements of an item."@en; + samm:dataType :AreaEntity. +:VolumeCharacteristic a samm:Characteristic; + samm:preferredName "Volume Characteristic"@en; + samm:description "Characteristic for volume measurements of an item."@en; + samm:dataType :VolumeEntity. +:CountQuantityCharacteristic a samm:Characteristic; + samm:preferredName "Count Quantity Characteristic"@en; + samm:description "Characteristic for countable measurements of an item."@en; + samm:dataType :CountQuantityEntity. +:TimeCharacteristic a samm:Characteristic; + samm:preferredName "Time Characteristic"@en; + samm:description "Characteristic for time measurements of an item."@en; + samm:dataType :TimeEntity. +:MiscQuantityCharacteristic a samm:Characteristic; + samm:preferredName "Miscellaneous Quantity Characteristic"@en; + samm:description "Characteristic for miscellaneous measurements of an item."@en; + samm:dataType :MiscQuantityEntity. +:ItemQuantityCharacteristic a samm:Characteristic; + samm:preferredName "Item Quantity Characteristic"@en; + samm:description "Characteristic for measurements of an item (mass, count, linear, area, volume, misc)."@en; + samm:dataType :ItemQuantityEntity. +:quantityValue a samm:Property; + samm:preferredName "Quantity Value"@en; + samm:description "The quantity value associated with the unit."@en; + samm:characteristic :QuantityValueCharacteristic; + samm:exampleValue "20.5"^^xsd:float. +:QuantityValueCharacteristic a samm-c:Quantifiable; + samm:preferredName "Quantity Value Characteristic"@en; + samm:description "The quantity value associated with the unit expressed as float."@en; + samm:dataType xsd:float. +:MassEntity a samm:Entity; + samm:preferredName "Mass Entity"@en; + samm:description "Entity for mass measurements of an item with an unit and value."@en; + samm:properties ([ + samm:property :quantityValue; + samm:payloadName "value" +] [ + samm:property :massUnit; + samm:payloadName "unit" +]). +:massUnit a samm:Property; + samm:preferredName "Mass Unit"@en; + samm:description "The unit of a mass related attribute."@en; + samm:characteristic :MassUnitEnumeration; + samm:exampleValue "unit:kilogram"^^samm:curie; + samm:see . +:MassUnitEnumeration a samm-c:Enumeration; + samm:preferredName "Mass Unit Enumeration"@en; + samm:description "Enumeration for mass units."@en; + samm:dataType samm:curie; + samm:see ; + samm-c:values ("unit:gram"^^samm:curie "unit:kilogram"^^samm:curie "unit:tonneMetricTon"^^samm:curie "unit:tonUsOrShortTonUkorus"^^samm:curie "unit:ounceAvoirdupois"^^samm:curie "unit:pound"^^samm:curie). +:LinearEntity a samm:Entity; + samm:preferredName "Linear Entity"@en; + samm:description "Entity for linear measurements of an item with an unit and value."@en; + samm:properties ([ + samm:property :quantityValue; + samm:payloadName "value" +] [ + samm:property :linearUnit; + samm:payloadName "unit" +]). +:linearUnit a samm:Property; + samm:preferredName "Linear Unit"@en; + samm:description "The unit of a linear attribute."@en; + samm:characteristic :LinearUnitEnumeration; + samm:exampleValue "unit:millimetre"^^samm:curie; + samm:see . +:LinearUnitEnumeration a samm-c:Enumeration; + samm:preferredName "Linear Unit Enumeration"@en; + samm:description "The unit of a linear attribute that may be used for height, width, length and diameter."@en; + samm:dataType samm:curie; + samm:see ; + samm-c:values ("unit:millimetre"^^samm:curie "unit:centimetre"^^samm:curie "unit:metre"^^samm:curie "unit:kilometre"^^samm:curie "unit:inch"^^samm:curie "unit:foot"^^samm:curie "unit:yard"^^samm:curie). +:AreaEntity a samm:Entity; + samm:preferredName "Area Entity"@en; + samm:description "Entity for area measurements of an item with an unit and value."@en; + samm:properties ([ + samm:property :quantityValue; + samm:payloadName "value" +] [ + samm:property :areaUnit; + samm:payloadName "unit" +]). +:areaUnit a samm:Property; + samm:preferredName "Area Unit"@en; + samm:description "The unit of a area related attribute."@en; + samm:characteristic :AreaUnitEnumeration; + samm:exampleValue "unit:squareCentimetre"^^samm:curie; + samm:see . +:AreaUnitEnumeration a samm-c:Enumeration; + samm:preferredName "Area Unit Enumeration"@en; + samm:description "The unit of an area attribute."@en; + samm:dataType samm:curie; + samm:see ; + samm-c:values ("unit:squareCentimetre"^^samm:curie "unit:squareMetre"^^samm:curie "unit:squareInch"^^samm:curie "unit:squareFoot"^^samm:curie "unit:squareYard"^^samm:curie). +:VolumeEntity a samm:Entity; + samm:preferredName "Volume Entity"@en; + samm:description "Entity for volume measurements of an item with an unit and value."@en; + samm:properties ([ + samm:property :quantityValue; + samm:payloadName "value" +] [ + samm:property :volumeUnit; + samm:payloadName "unit" +]). +:volumeUnit a samm:Property; + samm:preferredName "Volume Unit"@en; + samm:description "The unit of a volume related attribute."@en; + samm:characteristic :VolumeUnitEnumeration; + samm:exampleValue "unit:litre"^^samm:curie; + samm:see . +:VolumeUnitEnumeration a samm-c:Enumeration; + samm:preferredName "Volume Unit Enumeration"@en; + samm:description "Enumeration for volume units."@en; + samm:dataType samm:curie; + samm:see ; + samm-c:values ("unit:cubicMetre"^^samm:curie "unit:litre"^^samm:curie "unit:millilitre"^^samm:curie "unit:cubicCentimetre"^^samm:curie "unit:cubicInch"^^samm:curie "unit:cubicFoot"^^samm:curie "unit:cubicYard"^^samm:curie "unit:hectolitre"^^samm:curie). +:countUnit a samm:Property; + samm:preferredName "Count Unit"@en; + samm:description "The unit of a countable attribute."@en; + samm:characteristic :CountUnitEnumeration; + samm:exampleValue "unit:piece"^^samm:curie; + samm:see . +:CountUnitEnumeration a samm-c:Enumeration; + samm:preferredName "Count Unit Enumeration"@en; + samm:description "Enumeration for count units."@en; + samm:dataType samm:curie; + samm:see ; + samm-c:values ("unit:piece"^^samm:curie "unit:count"^^samm:curie "unit:pair"^^samm:curie "unit:page"^^samm:curie "unit:cycle"^^samm:curie). +:timeUnit a samm:Property; + samm:preferredName "Time Unit"@en; + samm:description "The unit of a time attribute."@en; + samm:characteristic :TimeUnitEnumeration; + samm:exampleValue "unit:secondUnitOfTime"^^samm:curie; + samm:see . +:TimeUnitEnumeration a samm-c:Enumeration; + samm:preferredName "Time Unit Enumeration"@en; + samm:description "Enumeration for time units."@en; + samm:dataType samm:curie; + samm:see ; + samm-c:values ("unit:secondUnitOfTime"^^samm:curie "unit:minuteUnitOfTime"^^samm:curie "unit:hourUnitOfTime"^^samm:curie "unit:day"^^samm:curie). +:miscUnit a samm:Property; + samm:preferredName "Misc Unit"@en; + samm:description "The unit of a miscellaneous attribute."@en; + samm:characteristic :MiscUnitEnumeration; + samm:exampleValue "unit:kilowattHour"^^samm:curie; + samm:see . +:MiscUnitEnumeration a samm-c:Enumeration; + samm:preferredName "Count Unit Enumeration"@en; + samm:description "Enumeration for miscellaneous units."@en; + samm:dataType samm:curie; + samm:see ; + samm-c:values ("unit:kilowattHour"^^samm:curie). +:ItemQuantityEntity a samm:Entity; + samm:preferredName "Item Quantity Entity"@en; + samm:description "Entity for common measurements of an item (mass, count, linear, area, volume, misc) with an unit and a value."@en; + samm:properties ([ + samm:property :quantityValue; + samm:payloadName "value" +] [ + samm:property :itemUnit; + samm:payloadName "unit" +]). +:itemUnit a samm:Property; + samm:preferredName "Item Unit"@en; + samm:description "The unit of an item. Common units may be related to mass, count, linear, area, volume or misc."@en; + samm:characteristic :ItemUnitEnumeration; + samm:exampleValue "unit:piece"^^samm:curie; + samm:see . +:ItemUnitEnumeration a samm-c:Enumeration; + samm:preferredName "Item Unit Enumeration"@en; + samm:description "Enumeration for common item units."@en; + samm:dataType samm:curie; + samm:see ; + samm-c:values ("unit:piece"^^samm:curie "unit:set"^^samm:curie "unit:pair"^^samm:curie "unit:page"^^samm:curie "unit:cycle"^^samm:curie "unit:kilowattHour"^^samm:curie "unit:gram"^^samm:curie "unit:kilogram"^^samm:curie "unit:tonneMetricTon"^^samm:curie "unit:tonUsOrShortTonUkorus"^^samm:curie "unit:ounceAvoirdupois"^^samm:curie "unit:pound"^^samm:curie "unit:metre"^^samm:curie "unit:centimetre"^^samm:curie "unit:kilometre"^^samm:curie "unit:inch"^^samm:curie "unit:foot"^^samm:curie "unit:yard"^^samm:curie "unit:squareCentimetre"^^samm:curie "unit:squareMetre"^^samm:curie "unit:squareInch"^^samm:curie "unit:squareFoot"^^samm:curie "unit:squareYard"^^samm:curie "unit:cubicCentimetre"^^samm:curie "unit:cubicMetre"^^samm:curie "unit:cubicInch"^^samm:curie "unit:cubicFoot"^^samm:curie "unit:cubicYard"^^samm:curie "unit:litre"^^samm:curie "unit:millilitre"^^samm:curie "unit:hectolitre"^^samm:curie "unit:secondUnitOfTime"^^samm:curie "unit:minuteUnitOfTime"^^samm:curie "unit:hourUnitOfTime"^^samm:curie "unit:day"^^samm:curie). +:CountQuantityEntity a samm:Entity; + samm:preferredName "Count Quantity Entity"@en; + samm:description "Entity for countable measurements of an item with an unit and a value."@en; + samm:properties ([ + samm:property :quantityValue; + samm:payloadName "value" +] [ + samm:property :countUnit; + samm:payloadName "unit" +]). +:TimeEntity a samm:Entity; + samm:preferredName "Time Entity"@en; + samm:description "Entity for time measurements of an item with an unit and a value."@en; + samm:properties ([ + samm:property :quantityValue; + samm:payloadName "value" +] [ + samm:property :timeUnit; + samm:payloadName "unit" +]). +:MiscQuantityEntity a samm:Entity; + samm:preferredName "Miscellaneous Quantity Entity"@en; + samm:description "Entity for miscellaneous measurements of an item with an unit and a value."@en; + samm:properties ([ + samm:property :quantityValue; + samm:payloadName "value" +] [ + samm:property :miscUnit; + samm:payloadName "unit" +]). diff --git a/io.catenax.shared.quantity/2.0.0/metadata.json b/io.catenax.shared.quantity/2.0.0/metadata.json new file mode 100644 index 00000000..af60ff1f --- /dev/null +++ b/io.catenax.shared.quantity/2.0.0/metadata.json @@ -0,0 +1 @@ +{"status": "release"} diff --git a/io.catenax.shared.quantity/RELEASE_NOTES.md b/io.catenax.shared.quantity/RELEASE_NOTES.md index 8cdd1f80..17e448f7 100644 --- a/io.catenax.shared.quantity/RELEASE_NOTES.md +++ b/io.catenax.shared.quantity/RELEASE_NOTES.md @@ -1,6 +1,9 @@ # Changelog All notable changes to this model will be documented in this file. +### [2.0.0] - 2024-01-30 +- migrated from samm 2.0.0 to samm 2.1.0 + ## [1.0.0] - 2023-10-23 ### Added - initial model created diff --git a/io.catenax.shared.uuid/2.0.0/Uuid.ttl b/io.catenax.shared.uuid/2.0.0/Uuid.ttl new file mode 100644 index 00000000..f262fe8b --- /dev/null +++ b/io.catenax.shared.uuid/2.0.0/Uuid.ttl @@ -0,0 +1,49 @@ +####################################################################### +# Copyright (c) 2023,2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This work is made available under the terms of the +# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, +# which is available at +# https://creativecommons.org/licenses/by/4.0/legalcode. +# +# SPDX-License-Identifier: CC-BY-4.0 +####################################################################### + +@prefix samm: . +@prefix samm-c: . +@prefix samm-e: . +@prefix unit: . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . +@prefix : . + +:Uuid a samm:Aspect; + samm:preferredName "Shared Aspect for UUIDs v4"@en; + samm:description "This is a shared aspect for UUIDs with a regex."@en; + samm:properties (:uuidV4Property); + samm:operations (); + samm:events (). +:uuidV4Property a samm:Property; + samm:preferredName "UUID v4 Property"@en; + samm:description "Property based on a UUID v4."@en; + samm:characteristic :UuidV4Trait; + samm:exampleValue "urn:uuid:48878d48-6f1d-47f5-8ded-a441d0d879df". +:UuidV4Trait a samm-c:Trait; + samm:preferredName "Trait for UUIDs v4"@en; + samm:description "Trait to ensure UUID v4 data format."@en; + samm-c:baseCharacteristic :Uuidv4Characteristic; + samm-c:constraint :Uuidv4RegularExpression. +:Uuidv4Characteristic a samm:Characteristic; + samm:preferredName "UUID v4"@en; + samm:description "A version 4 UUID is a universally unique identifier that is generated using random 32 hexadecimal characters."@en; + samm:dataType xsd:string; + samm:see . +:Uuidv4RegularExpression a samm-c:RegularExpressionConstraint; + samm:preferredName "UUID v4 Regular Expression"@en; + 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; + samm:see ; + 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}$)". diff --git a/io.catenax.shared.uuid/2.0.0/metadata.json b/io.catenax.shared.uuid/2.0.0/metadata.json new file mode 100644 index 00000000..af60ff1f --- /dev/null +++ b/io.catenax.shared.uuid/2.0.0/metadata.json @@ -0,0 +1 @@ +{"status": "release"} diff --git a/io.catenax.shared.uuid/RELEASE_NOTES.md b/io.catenax.shared.uuid/RELEASE_NOTES.md index 9a7c8598..65129909 100644 --- a/io.catenax.shared.uuid/RELEASE_NOTES.md +++ b/io.catenax.shared.uuid/RELEASE_NOTES.md @@ -1,6 +1,9 @@ # Changelog All notable changes to this model will be documented in this file. +### [2.0.0] - 2024-01-30 +- migrated from samm 2.0.0 to samm 2.1.0 + ## [1.0.0] - 2023-09-11 ### Added - initial model From 31442d7061f16b33afebe183f6b0f0ee7af6e567 Mon Sep 17 00:00:00 2001 From: Sahil Aggarwal Date: Tue, 30 Jan 2024 15:30:09 +0100 Subject: [PATCH 2/2] PhysicalDimension bamm to samm converted --- .../3.0.0/PhysicalDimensions.ttl | 163 ++++++++---------- 1 file changed, 74 insertions(+), 89 deletions(-) diff --git a/io.catenax.shared.physical_dimension/3.0.0/PhysicalDimensions.ttl b/io.catenax.shared.physical_dimension/3.0.0/PhysicalDimensions.ttl index b8c40590..f1caca41 100644 --- a/io.catenax.shared.physical_dimension/3.0.0/PhysicalDimensions.ttl +++ b/io.catenax.shared.physical_dimension/3.0.0/PhysicalDimensions.ttl @@ -7,99 +7,84 @@ # See the NOTICE file(s) distributed with this work for additional # information regarding copyright ownership. # -# This work is made available under the terms of the -# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, +# This work is made available under the terms of the +# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, # which is available at # https://creativecommons.org/licenses/by/4.0/legalcode. # # SPDX-License-Identifier: CC-BY-4.0 ####################################################################### -@prefix bamm: . -@prefix bamm-c: . -@prefix bamm-e: . -@prefix unit: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix : . +@prefix samm: . +@prefix samm-c: . +@prefix samm-e: . +@prefix unit: . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . +@prefix : . + +:PhysicalDimensions a samm:Aspect ; + samm:preferredName "physical dimensions"@en ; + samm:description "Describes the physical dimensions of then entity."@en ; + samm:properties ( :physicalDimensionsProperty ) ; + samm:operations ( ) ; + samm:events ( ) . + +:physicalDimensionsProperty a samm:Property ; + samm:preferredName "physical dimensions"@en ; + samm:description "Describes the physical dimensions of then entity."@en ; + samm:characteristic :PhysicalDimensionsCharacteristic . + +:PhysicalDimensionsCharacteristic a samm:Characteristic ; + samm:preferredName "physical dimensions"@en ; + samm:description "Describes the physical dimensions of then entity."@en ; + samm:dataType :PhysicalDimensionsEntity . + +:PhysicalDimensionsEntity a samm:Entity ; + samm:preferredName "physical dimensions"@en ; + samm:description "Entity encapsulating the physical dimensions of an object."@en ; + samm:properties ( [ samm:property :weight; samm:optional true ] [ samm:property :diameter; samm:optional true ] [ samm:property :height; samm:optional true ] [ samm:property :width; samm:optional true ] [ samm:property :length; samm:optional true ] ) . + +:weight a samm:Property ; + samm:preferredName "weight"@en ; + samm:description "Weight of the item"@en ; + samm:characteristic :KilogramCharacteristic ; + samm:exampleValue "100.70"^^xsd:double . + +:diameter a samm:Property ; + samm:preferredName "diameter"@en ; + samm:description "Diameter of the item."@en ; + samm:characteristic :MillimetreCharacteristic ; + samm:exampleValue "0.03"^^xsd:double . + +:height a samm:Property ; + samm:preferredName "height"@en ; + samm:description "Height of the item."@en ; + samm:characteristic :MillimetreCharacteristic ; + samm:exampleValue "0.10"^^xsd:double . + +:width a samm:Property ; + samm:preferredName "width"@en ; + samm:description "Width of the item."@en ; + samm:characteristic :MillimetreCharacteristic ; + samm:exampleValue "1000.00"^^xsd:double . + +:length a samm:Property ; + samm:preferredName "length"@en ; + samm:description "Length of the item."@en ; + samm:characteristic :MillimetreCharacteristic ; + samm:exampleValue "20000.10"^^xsd:double . + +:KilogramCharacteristic a samm-c:Measurement ; + samm:preferredName "kilogram characteristic"@en ; + samm:description "a measurement value given in the unit kilogram"@en ; + samm:dataType xsd:double ; + samm-c:unit unit:kilogram . + +:MillimetreCharacteristic a samm-c:Measurement ; + samm:preferredName "millimetre characteristic"@en ; + samm:description "a measurement for a lenght given in the unit millimetre"@en ; + samm:dataType xsd:double ; + samm-c:unit unit:millimetre . -:length a bamm:Property; - bamm:name "length"; - bamm:preferredName "length"@en; - bamm:description "Length of the item."@en; - bamm:characteristic :MillimetreCharacteristic; - bamm:exampleValue "20000.10"^^xsd:double. -:MillimetreCharacteristic a bamm-c:Measurement; - bamm:name "MillimetreCharacteristic"; - bamm:preferredName "millimetre characteristic"@en; - bamm:description "a measurement for a lenght given in the unit millimetre"@en; - bamm:dataType xsd:double; - bamm-c:unit unit:millimetre. -:width a bamm:Property; - bamm:name "width"; - bamm:preferredName "width"@en; - bamm:description "Width of the item."@en; - bamm:characteristic :MillimetreCharacteristic; - bamm:exampleValue "1000.00"^^xsd:double. -:height a bamm:Property; - bamm:name "height"; - bamm:preferredName "height"@en; - bamm:description "Height of the item."@en; - bamm:characteristic :MillimetreCharacteristic; - bamm:exampleValue "0.10"^^xsd:double. -:diameter a bamm:Property; - bamm:name "diameter"; - bamm:preferredName "diameter"@en; - bamm:description "Diameter of the item."@en; - bamm:characteristic :MillimetreCharacteristic; - bamm:exampleValue "0.03"^^xsd:double. -:weight a bamm:Property; - bamm:name "weight"; - bamm:preferredName "weight"@en; - bamm:description "Weight of the item"@en; - bamm:characteristic :KilogramCharacteristic; - bamm:exampleValue "100.70"^^xsd:double. -:KilogramCharacteristic a bamm-c:Measurement; - bamm:name "KilogramCharacteristic"; - bamm:preferredName "kilogram characteristic"@en; - bamm:description "a measurement value given in the unit kilogram"@en; - bamm:dataType xsd:double; - bamm-c:unit unit:kilogram. -:PhysicalDimensions a bamm:Aspect; - bamm:name "PhysicalDimensions"; - bamm:preferredName "physical dimensions"@en; - bamm:description "Describes the physical dimensions of then entity."@en; - bamm:properties (:physicalDimensionsProperty); - bamm:operations (); - bamm:events (). -:physicalDimensionsProperty a bamm:Property; - bamm:name "physicalDimensionsProperty"; - bamm:preferredName "physical dimensions"@en; - bamm:description "Describes the physical dimensions of then entity."@en; - bamm:characteristic :PhysicalDimensionsCharacteristic. -:PhysicalDimensionsCharacteristic a bamm:Characteristic; - bamm:name "PhysicalDimensionsCharacteristic"; - bamm:preferredName "physical dimensions"@en; - bamm:description "Describes the physical dimensions of then entity."@en; - bamm:dataType :PhysicalDimensionsEntity. -:PhysicalDimensionsEntity a bamm:Entity; - bamm:name "PhysicalDimensionsEntity"; - bamm:preferredName "physical dimensions"@en; - bamm:description "Entity encapsulating the physical dimensions of an object."@en; - bamm:properties ([ - bamm:property :weight; - bamm:optional "true"^^xsd:boolean -] [ - bamm:property :diameter; - bamm:optional "true"^^xsd:boolean -] [ - bamm:property :height; - bamm:optional "true"^^xsd:boolean -] [ - bamm:property :width; - bamm:optional "true"^^xsd:boolean -] [ - bamm:property :length; - bamm:optional "true"^^xsd:boolean -]).