Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Model]: DemandAndCapacityNotification 1.0.0 #576

Merged
merged 30 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4b60b72
feat: first draft of the Messaging model
stiwan8020 Dec 14, 2023
5078c17
refactor: renamed Messaging to Notification
stiwan8020 Jan 15, 2024
bb07580
feat: added properties contentChangedAt and relatedSourceMessageId
stiwan8020 Jan 15, 2024
3299634
feat: updated the model according to the newest information
stiwan8020 Jan 17, 2024
650528a
feat: added & refined some descriptions
stiwan8020 Jan 29, 2024
0e01cea
chore: renamed to "Notifications"
stiwan8020 Jan 29, 2024
b2ac222
Merge branch 'eclipse-tractusx:main' into feat/messaging
stiwan8020 Jan 29, 2024
a8ecb79
feat: replaced external timestamp characteristic by local characteris…
stiwan8020 Jan 29, 2024
abfdbac
chore: migrated to samm 2.1.0
stiwan8020 Feb 1, 2024
f6a6308
fix: namespace was wrong
stiwan8020 Feb 1, 2024
95d668c
feat: renamed to manufacturer/customerPartId
stiwan8020 Feb 1, 2024
18f3960
Merge branch 'eclipse-tractusx:main' into feat/messaging
stiwan8020 Feb 2, 2024
550d745
chore: update bpn reference to 2.0.0
stiwan8020 Feb 2, 2024
d28bb17
chore: removed unnecessary spaces
stiwan8020 Feb 2, 2024
e92c926
feat: added uuid type and example to materialNumberDigitalTwin
stiwan8020 Feb 2, 2024
6d08736
feat: renamed a characteristic to PartIdsCharacteristic
stiwan8020 Feb 2, 2024
78a28e0
chore: rename to DisruptionNotifications
stiwan8020 Feb 5, 2024
3147745
chore: renamed back to materialNumberSupplier/Customer
stiwan8020 Feb 5, 2024
061ee51
feat: refined the descriptions
stiwan8020 Feb 8, 2024
de78feb
chore: renamed to MaterialNumberSet
stiwan8020 Feb 8, 2024
d77d371
chore: rename receiver to recipient
stiwan8020 Feb 8, 2024
9ca51b2
chore: added date for 1.0.0 release in RELEASE_NOTES.md
stiwan8020 Feb 8, 2024
b22438f
feat: specified the sender and recipient
stiwan8020 Feb 8, 2024
67d40cc
feat(DisruptionNotifications): adjusted property affectedSitesRecipient
stiwan8020 Feb 12, 2024
44123fa
chore: rename DisruptionNotifications to DemandAndCapacityNotification
stiwan8020 Feb 15, 2024
a537ad4
chore: adapt property descriptions to the new name
stiwan8020 Feb 15, 2024
c6ee8ac
chore: change the release date
stiwan8020 Feb 15, 2024
2b475e9
chore: add "urn:uuid:" prefix to examples of uuid
stiwan8020 Feb 19, 2024
1824946
Merge branch 'eclipse-tractusx:main' into feat/messaging
stiwan8020 Feb 21, 2024
91cc1f3
chore: adapted material number definitions
stiwan8020 Feb 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
162 changes: 162 additions & 0 deletions io.catenax.notifications/1.0.0/Notifications.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
#######################################################################
# Copyright (c) 2024 ISTOS GmbH (a member of the DMG Mori Group)
# Copyright (c) 2024 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. (represented by Fraunhofer ISST)
# Copyright (c) 2024 TRUMPF Werkzeugmaschinen SE + Co. KG
# Copyright (c) 2024 Volkswagen AG
# Copyright (c) 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: <urn:samm:org.eclipse.esmf.samm:meta-model:2.1.0#> .
@prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.1.0#> .
@prefix samm-e: <urn:samm:org.eclipse.esmf.samm:entity:2.1.0#> .
@prefix unit: <urn:samm:org.eclipse.esmf.samm:unit:2.1.0#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <urn:samm:io.catenax.notifications:1.0.0#> .
@prefix ext-number: <urn:samm:io.catenax.shared.business_partner_number:2.0.0#> .
@prefix ext-uuid: <urn:samm:io.catenax.shared.uuid:2.0.0#> .

:Notifications a samm:Aspect ;
samm:preferredName "Notifications"@en ;
samm:description "This aspect model defines the standard for notification exchange between business partners. Notifications refer to specific events which affect production or demand."@en ;
samm:properties ( [ samm:property :affectedSitesSender; samm:optional true ] [ samm:property :affectedSitesRecipient; samm:optional true ] :leadingRootCause :effect [ samm:property :text; samm:optional true ] [ samm:property :materialNumberDigitalTwin; samm:optional true ] :startDateOfEffect [ samm:property :expectedEndDateOfEffect; samm:optional true ] :status :contentChangedAt [ samm:property :relatedSourceMessageId; samm:optional true ] [ samm:property :manufacturerPartIds; samm:optional true ] [ samm:property :customerPartIds; samm:optional true ] ) ;
samm:operations ( ) ;
samm:events ( ) .

:affectedSitesSender a samm:Property ;
samm:preferredName "Affected sites of the sender."@en ;
samm:description "The affected Business Partner SITE Numbers of the sending party. The value must be a valid BPNS. Applicable constraints are defined in the corresponding standard. It is RECOMMENDED to sent the sender BPNS. It MUST be possible to select multiple sender BPNS."@en ;
samm:characteristic :AffectedSitesCharacteristic ;
samm:exampleValue "BPNS7588787849VQ" .

:affectedSitesRecipient a samm:Property ;
samm:preferredName "Affected sites of the recipient"@en ;
samm:description "The affected Business Partner SITE Numbers of the receiving party. The value must be a valid BPNS. Applicable constraints are defined in the corresponding standard. It is RECOMMENDED to send the receiver BPNS. It MUST be possible to select multiple receiver BPNS."@en ;
samm:characteristic :AffectedSitesCharacteristic ;
samm:exampleValue "BPNS6666787765VQ" .

:leadingRootCause a samm:Property ;
samm:preferredName "Leading root cause"@en ;
samm:description "The main cause that has or may have an impact on the supply of goods."@en ;
samm:characteristic :LeadingRootCauseEnumeration ;
samm:exampleValue "strike" .

:effect a samm:Property ;
samm:preferredName "Effect"@en ;
samm:description "Effect or impact on the supply of goods as a consequence of the leadingRootCause. From business perspective demand/capacity reduction are most relevant values in connection with above mentioned root causes. For technical completeness demand/capacity increase are also added to the value list."@en ;
samm:characteristic :EffectEnumeration ;
samm:exampleValue "capacity-reduction" .

:text a samm:Property ;
samm:preferredName "Text"@en ;
samm:description "Free text description for notification (max. 4000 characters)."@en ;
samm:characteristic :UserInputTrait ;
samm:exampleValue "Capacity reduction due to ongoing strike." .

:materialNumberDigitalTwin a samm:Property ;
samm:preferredName "Material number Digital Twin"@en ;
samm:description "UUID (DT Network Identifier): Via DT (Digital Twin) UUID a receiver is able to identify the own affected material numbers, because the digital twin is common for the sender and the receiver. If a digital twin is available, it is RECOMMENDED only exchanging the DT material number."@en ;
samm:characteristic :MaterialNumberDigitalTwinCharacteristic ;
samm:exampleValue "f81d4fae-7dec-11d0-a765-00a0c91e6bf6" .

:startDateOfEffect a samm:Property ;
samm:preferredName "Start date of the effect."@en ;
samm:description "Expected start date of the impact MUST be shared by the sender of the message. This also covers cases where sending of the message and start of the impact differ from each other. The value MUST be formatted according to the ISO 8601 standard."@en ;
samm:characteristic samm-c:Timestamp ;
samm:exampleValue "2023-12-13T15:00:00+01:00"^^xsd:dateTime .

:expectedEndDateOfEffect a samm:Property ;
samm:preferredName "Expected end date of effect."@en ;
samm:description "Expected end date of the impact MAY be mentioned by the sender of the message. The value MUST be formatted according to the ISO 8601 standard."@en ;
samm:characteristic samm-c:Timestamp ;
samm:exampleValue "2023-12-17T08:00:00+01:00"^^xsd:dateTime .

:status a samm:Property ;
samm:preferredName "Status"@en ;
samm:description "Status \"open\" should be used in the context of an effect which remains active. Status \"resolved\" should be used to inform the other business that the effect of the initial notification stopped or has been resolved."@en ;
samm:characteristic :StatusEnumeration ;
samm:exampleValue "open" .

:contentChangedAt a samm:Property ;
samm:preferredName "Content changed at"@en ;
samm:description "The timestamp of the latest change of this notification. Date and time are set according to a timezone."@en ;
samm:characteristic samm-c:Timestamp ;
samm:exampleValue "2023-12-13T15:00:00+01:00"^^xsd:dateTime .

:relatedSourceMessageId a samm:Property ;
samm:preferredName "Related Source Message ID"@en ;
samm:description "Unique ID identifying the source message that started the notification thread."@en ;
samm:characteristic ext-uuid:UuidV4Trait ;
samm:exampleValue "d8b6b4ca-ca9c-42d9-8a34-f62591a1c68a" .

:manufacturerPartIds a samm:Property ;
samm:preferredName "Manufacturer Part IDs"@en ;
samm:description "Part identifiers as assigned by the manufacturer. This property identifies the parts in the manufacturer's database. If the manufacturer is the data provider, sending this property is RECOMMENDED."@en ;
samm:characteristic :PartIdsCharacteristic ;
samm:exampleValue "MNR-8101-ID146955.001" .

:customerPartIds a samm:Property ;
samm:preferredName "Customer Part IDs"@en ;
samm:description "Part identifiers as assigned by the customer. This property identifies the parts in the customer's database. For standard parts (e.g. screws) for which a customer does not have an own ID, the manufacturer part ID should be set in this field, too. If the customer is the data provider, sending this property is RECOMMENDED."@en ;
samm:characteristic :PartIdsCharacteristic ;
samm:exampleValue "MNR-7307-AU340474.002" .

:AffectedSitesCharacteristic a samm-c:Set ;
samm:preferredName "Affected Sites Characteristic"@en ;
samm:description "A set of BPNS that are affected."@en ;
samm-c:elementCharacteristic ext-number:BpnsTrait .

:LeadingRootCauseEnumeration a samm-c:Enumeration ;
samm:preferredName "Leading root cause enumeration."@en ;
samm:description "Possible root causes."@en ;
samm:dataType xsd:string ;
samm-c:values ( "strike" "natural-disaster" "production-incident" "pandemic-or-epidemic" "logistics-disruption" "war" "other" ) .

:EffectEnumeration a samm-c:Enumeration ;
samm:preferredName "Effect enumeration"@en ;
samm:description "Enumeration of possible effects due to the mentioned leadingRootCause."@en ;
samm:dataType xsd:string ;
samm-c:values ( "demand-reduction" "demand-increase" "capacity-reduction" "capacity-increase" ) .

:UserInputTrait a samm-c:Trait ;
samm:preferredName "User Input Trait"@en ;
samm:description "Trait to ensure correct values for the user input."@en ;
samm-c:baseCharacteristic :UserInputCharacteristic ;
samm-c:constraint :TextLengthConstraint .

:MaterialNumberDigitalTwinCharacteristic a samm-c:Set ;
samm:preferredName "Material Number Digital Twin Characteristic"@en ;
samm:description "A set of Digital Twin material numbers."@en ;
samm-c:elementCharacteristic ext-uuid:UuidV4Trait .

:StatusEnumeration a samm-c:Enumeration ;
samm:preferredName "Status enumeration."@en ;
samm:description "Status can be either \"open\" or \"resolved\"."@en ;
samm:dataType xsd:string ;
samm-c:values ( "resolved" "open" ) .

:PartIdsCharacteristic a samm-c:Set ;
samm:preferredName "Part IDs Characteristic"@en ;
samm:description "The part ID is a multi-character string, usually assigned by an ERP system of the customer or the manufacturer."@en ;
samm:dataType xsd:string .

:UserInputCharacteristic a samm:Characteristic ;
samm:preferredName "User input characteristic"@en ;
samm:description "User input can be any string that is max. 4000 characters."@en ;
samm:dataType xsd:string .

:TextLengthConstraint a samm-c:LengthConstraint ;
samm:preferredName "UserInputConstraint"@en ;
samm:description "Constraint for a string to be max. 4000 characters long."@en ;
samm-c:maxValue "4000"^^xsd:nonNegativeInteger .

1 change: 1 addition & 0 deletions io.catenax.notifications/1.0.0/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "status" : "release"}
7 changes: 7 additions & 0 deletions io.catenax.notifications/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog
All notable changes to this model will be documented in this file.

## [1.0.0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add date 2024-02-05, if you want MS3 on next meeting.

### Added
- initial model

Loading