From dbdd8a040ddc9f0c0344af6b0dd2f3e7b8c8ad01 Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Wed, 1 Mar 2023 15:16:58 +0100 Subject: [PATCH 01/10] Add aspect model for MaterialDemand --- .../1.0.0/MaterialDemand.ttl | 251 ++++++++++++++++++ .../1.0.0/metadata.json | 1 + io.catenax.material_demand/RELEASE_NOTES.md | 5 + 3 files changed, 257 insertions(+) create mode 100644 io.catenax.material_demand/1.0.0/MaterialDemand.ttl create mode 100644 io.catenax.material_demand/1.0.0/metadata.json create mode 100644 io.catenax.material_demand/RELEASE_NOTES.md diff --git a/io.catenax.material_demand/1.0.0/MaterialDemand.ttl b/io.catenax.material_demand/1.0.0/MaterialDemand.ttl new file mode 100644 index 00000000..5ab94520 --- /dev/null +++ b/io.catenax.material_demand/1.0.0/MaterialDemand.ttl @@ -0,0 +1,251 @@ +####################################################################### +# Copyright (c) 2022 SAP SE +# Copyright (c) 2022 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 : . + +:MaterialDemand a bamm:Aspect; + bamm:preferredName "Material Demand"@en; + bamm:description "The requirements of a customer towards a specific supplier for a specific material. Each material demand is unique by its Customer, Supplier and Material Number."@en; + bamm:properties (:materialDemandId :demandSeries :customer :supplier :unitOfMeasure :materialNumberCustomer [ + bamm:property :materialNumberSupplier; + bamm:optional "true"^^xsd:boolean +] :materialDescriptionCustomer :changedAt); + bamm:operations (); + bamm:events (). +:materialDemandId a bamm:Property; + bamm:preferredName "Material Demand ID"@en; + bamm:description "The Material Demand ID identifies the material demand on a global level."@en; + bamm:characteristic :UUIDv4; + bamm:exampleValue "0157ba42-d2a8-4e28-8565-7b07830c1110". +:demandSeries a bamm:Property; + bamm:preferredName "Demand Series"@en; + bamm:description "The weekly demands for a dedicated material in a given time period, distinguished by their demand location and demand category."@en; + bamm:characteristic :DemandSeriesSet. +:customer a bamm:Property; + bamm:preferredName "Customer"@en; + bamm:description "A party that requests goods from a supplier."@en; + bamm:characteristic :BPNL; + bamm:exampleValue "BPNL8888888888XX". +:supplier a bamm:Property; + bamm:preferredName "Supplier"@en; + bamm:description "A party that provides goods to a customer."@en; + bamm:characteristic :BPNL; + bamm:exampleValue "BPNL6666666666YY". +:unitOfMeasure a bamm:Property; + bamm:preferredName "Unit of Measure"@en; + bamm:description "Unit of measurement for demand quantities."@en; + bamm:characteristic :UnitOfMeasure; + bamm:exampleValue "KGM". +:materialNumberCustomer a bamm:Property; + bamm:preferredName "Customer Material Number"@en; + bamm:description "Material identifier as assigned by customer. This material number identifies the material (as planned) in customer's database. Must be unique for each Material Demand in the customer-supplier relationship."@en; + bamm:characteristic :MaterialNumber; + bamm:exampleValue "MNR-7307-AU340474.002". +:materialNumberSupplier a bamm:Property; + bamm:preferredName "Supplier Material Number"@en; + bamm:description "Material identifier as assigned by supplier. This material number identifies the material (as planned) in supplier's database."@en; + bamm:characteristic :MaterialNumber; + bamm:exampleValue "MNR-8101-ID146955.001". +:materialDescriptionCustomer a bamm:Property; + bamm:preferredName "Customer Material Description"@en; + bamm:description "Description of the material."@en; + bamm:characteristic :MaterialDescription; + bamm:exampleValue "Spark Plug". +:changedAt a bamm:Property; + bamm:preferredName "Changed At"@en; + bamm:description "Point in time when the material demand was last updated at the customer, either by a human user or an automated process."@en; + bamm:characteristic :Timestamp. +:UUIDv4 a bamm:Characteristic; + bamm:preferredName "UUIDv4"@en; + bamm:description "A version 4 UUID is a universally unique identifier that is generated using random 32 hexadecimal characters."@en; + bamm:dataType xsd:string; + bamm:see . +:DemandSeriesSet a bamm-c:Set; + bamm:preferredName "Demand Series Set"@en; + bamm:description "A set of demand series belonging to a certain material demand. Each demand series in the set must have a unique combination of customer location and demand category."@en; + bamm:dataType :DemandSeries. +:BPNL a bamm:Characteristic; + bamm:preferredName "Business Partner Number Legal Entity"@en; + bamm:description "BPNL represents the legal entity of an organization participating in Catena-X."@en; + bamm:dataType xsd:string. +:expectedSupplierLocation a bamm:Property; + bamm:preferredName "Expected Supplier Location"@en; + bamm:description "The location from where the customer expects the supplier to fulfill the demands of the demand series. Used as informational field only, not for assigning demand series to capacity groups."@en; + bamm:characteristic :BPNS; + bamm:exampleValue "Plant Hamburg". +:BPNS a bamm:Characteristic; + bamm:preferredName "Business Partner Number Site"@en; + bamm:description "BPNS represents a site which can be a production plant inside one location."@en; + bamm:dataType xsd:string. +:UnitOfMeasure a bamm-c:Enumeration; + bamm:preferredName "Unit of Measure"@en; + bamm:description "The Enumeration lists a selection of allowed units of measure referenced by their official code according to Codes for Units of Measure Used in International Trade"@en; + bamm:dataType xsd:string; + bamm:see ; + bamm-c:values ("GRM" "KGM" "TNE" "STN" "ONZ" "LBR" "CMT" "MTR" "KTM" "INH" "FOT" "YRD" "CMK" "MTK" "INK" "FTK" "YDK" "CMQ" "MTQ" "INQ" "FTQ" "YDQ" "MLT" "LTR" "HLT" "H87" "SET" "PR" "ZP" "KWH" ""). +:MaterialNumber a bamm:Characteristic; + bamm:preferredName "Material Number"@en; + bamm:description "The material number is a multi-character string, usually assigned by an ERP system."@en; + bamm:dataType xsd:string. +:MaterialDescription a bamm:Characteristic; + bamm:preferredName "Material Description"@en; + bamm:description "Description of a material demand."@en; + bamm:dataType xsd:string. +:Timestamp a bamm:Characteristic; + bamm:preferredName "Timestamp"@en; + bamm:description "Point in time."@en; + bamm:dataType xsd:dateTimeStamp. +:DemandSeries a bamm:Entity; + bamm:preferredName "Demand Series"@en; + bamm:description "Encapsulates the demand series related information."@en; + bamm:properties (:customerLocation :demandCategory :demands [ + bamm:property :expectedSupplierLocation; + bamm:optional "true"^^xsd:boolean +]). +:UUIDv4RegularExpression a bamm-c:RegularExpressionConstraint; + bamm:preferredName "UUIDv4 Regular Expression"@en; + bamm: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)."@en; + bamm: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}$". +:UUIDv4IdTrait a bamm-c:Trait; + bamm:preferredName "UUIDv4 Trait"@en; + bamm:description "Trait to ensure data format for UUIDv4."@en; + bamm-c:baseCharacteristic :UUIDv4; + bamm-c:constraint :UUIDv4RegularExpression. +:customerLocation a bamm:Property; + bamm:preferredName "Customer Location"@en; + bamm:description "Location at which the customer needs the specified material for this demand series."@en; + bamm:characteristic :BPNS; + bamm:exampleValue "Plant Bremen". +:demandCategory a bamm:Property; + bamm:preferredName "Demand Category"@en; + bamm:description "Type of demand for this demand series."@en; + bamm:characteristic :DemandCategory. +:demands a bamm:Property; + bamm:preferredName "Demands"@en; + bamm:description "A time series with week-based granularity along a given time period to describe the demand values for this demand series."@en; + bamm:characteristic :DemandTimeSeries. +:DemandCategory a bamm-c:Enumeration; + bamm:preferredName "Demand Category"@en; + bamm:description "The classification of demands used to prioritize or allocate capacities."@en; + bamm:dataType :DemandCategoryType; + bamm-c:values (:DemandCategoryDefault :DemandCategoryAfterSales :DemandCategorySeries :DemandCategoryPhaseInPeriod :DemandCategorySingleOrder :DemandCategorySmallSeries :DemandCategoryIncrementalDemand :DemandCategoryPhaseOutPeriod). +:DemandTimeSeries a bamm-c:SortedSet; + bamm:preferredName "Demand Time Series"@en; + bamm:description "The weekly demands in a given time period."@en; + bamm:dataType :Demand. +:DemandCategoryType a bamm:Entity; + bamm:preferredName "Demand Category Type"@en; + bamm:description "Describes the type of a demand category."@en; + bamm:properties (:demandCategoryCode [ + bamm:property :demandCategoryName; + bamm:notInPayload "true"^^xsd:boolean +]). +:DemandCategoryDefault a :DemandCategoryType; + :demandCategoryCode "0001"; + :demandCategoryName "Default"^^rdf:langString. +:DemandCategoryAfterSales a :DemandCategoryType; + :demandCategoryCode "A1S1"; + :demandCategoryName "After-Sales"^^rdf:langString. +:DemandCategorySeries a :DemandCategoryType; + :demandCategoryCode "SR99"; + :demandCategoryName "Series"^^rdf:langString. +:DemandCategoryPhaseInPeriod a :DemandCategoryType; + :demandCategoryCode "PI01"; + :demandCategoryName "Phase-In Period"^^rdf:langString. +:DemandCategorySingleOrder a :DemandCategoryType; + :demandCategoryCode "OS01"; + :demandCategoryName "Single-Order"^^rdf:langString. +:DemandCategorySmallSeries a :DemandCategoryType; + :demandCategoryCode "OI01"; + :demandCategoryName "Small-Series"^^rdf:langString. +:DemandCategoryIncrementalDemand a :DemandCategoryType; + :demandCategoryCode "ID01"; + :demandCategoryName "Incremental Demand"^^rdf:langString. +:DemandCategoryPhaseOutPeriod a :DemandCategoryType; + :demandCategoryCode "PO01"; + :demandCategoryName "Phase-Out Period"^^rdf:langString. +:Demand a bamm:Entity; + bamm:preferredName "Demand"@en; + bamm:description "A single demand for a given calendar week."@en; + bamm:properties (:calendarWeek :demand). +:demandCategoryCode a bamm:Property; + bamm:description "The code identifiying a demand category."@en; + bamm:characteristic :DemandCategoryCode. +:demandCategoryName a bamm:Property; + bamm:description "The name describing a demand category."@en; + bamm:characteristic bamm-c:MultiLanguageText. +:calendarWeek a bamm:Property; + bamm:preferredName "Calendar Week"@en; + bamm:description "ISO Calendar Week of the given time series entry. Must be given as date of the Monday in the week."@en; + bamm:characteristic :CalendarWeek; + bamm:exampleValue "2022-08-01"^^xsd:date. +:demand a bamm:Property; + bamm:preferredName "Demand"@en; + bamm:description "Quantity of goods required in the specified calendar week."@en; + bamm:characteristic :Quantity; + bamm:exampleValue "1"^^xsd:decimal. +:DemandCategoryCode a bamm-c:Code; + bamm:preferredName "Demand Category Code"@en; + bamm:description "The code identifiying a demand category."@en; + bamm:dataType xsd:string. +:CalendarWeek a bamm:Characteristic; + bamm:preferredName "Calendar Week"@en; + bamm:description "An ISO calendar week in which a given demand is needed. Must be given as date of the Monday in the week."@en; + bamm:dataType xsd:date; + bamm:see . +:Quantity a bamm:Characteristic; + bamm:preferredName "Quantity"@en; + bamm:description "Quantities of weekly demands."@en; + bamm:dataType xsd:decimal. +:BPNSTrait a bamm-c:Trait; + bamm:preferredName "BPNS Trait"@en; + bamm:description "Trait to ensure data format for BPNS."@en; + bamm-c:baseCharacteristic :BPNS; + bamm-c:constraint :BPNSRegularExpression. +:BPNSRegularExpression a bamm-c:RegularExpressionConstraint; + bamm:preferredName "BPNS Regular Expression"@en; + bamm:description "The provided regular expression ensures that the BPNS is composed of prefix 'BPNS', 10 digits and two uppercase letters."@en; + bamm:value "^BPNS[0-9]{8}[a-zA-Z0-9]{4}$". +:BPNLTrait a bamm-c:Trait; + bamm:preferredName "BPNL Trait"@en; + bamm:description "Trait to ensure data format for BPNL."@en; + bamm-c:baseCharacteristic :BPNL; + bamm-c:constraint :BPNLRegularExpression. +:BPNLRegularExpression a bamm-c:RegularExpressionConstraint; + bamm:preferredName "BPNL Regular Expression"@en; + bamm:description "The provided regular expression ensures that the BPNL is composed of prefix 'BPNL', 10 digits and two uppercase letters."@en; + bamm:value "^BPNL[0-9]{8}[a-zA-Z0-9]{4}$". +:QuantityRange a bamm-c:RangeConstraint; + bamm:preferredName "Quantity Range"@en; + bamm:description "Constraint to ensure a non-negative value for quantities."@en; + bamm-c:minValue "0"^^xsd:decimal; + bamm-c:maxValue "999999999999999999.999"^^xsd:decimal; + bamm-c:lowerBoundDefinition bamm-c:AT_LEAST; + bamm-c:upperBoundDefinition bamm-c:AT_MOST. +:QuantityTrait a bamm-c:Trait; + bamm-c:baseCharacteristic :Quantity; + bamm-c:constraint :QuantityRange, :QuantityFixedPoint. +:QuantityFixedPoint a bamm-c:FixedPointConstraint; + bamm:preferredName "Quantity Fixed Point"@en; + bamm:description "Constraint to ensure size of quantities: 12 digits plus 3 decimal places."@en; + bamm-c:integer "15"^^xsd:positiveInteger; + bamm-c:scale "1000"^^xsd:positiveInteger. diff --git a/io.catenax.material_demand/1.0.0/metadata.json b/io.catenax.material_demand/1.0.0/metadata.json new file mode 100644 index 00000000..84245e4e --- /dev/null +++ b/io.catenax.material_demand/1.0.0/metadata.json @@ -0,0 +1 @@ +{ "status" : "release" } diff --git a/io.catenax.material_demand/RELEASE_NOTES.md b/io.catenax.material_demand/RELEASE_NOTES.md new file mode 100644 index 00000000..6938a9a4 --- /dev/null +++ b/io.catenax.material_demand/RELEASE_NOTES.md @@ -0,0 +1,5 @@ +# Changelog +All notable changes to this model will be documented in this file. + +## [1.0.0] +- initial version of material demand model From 4f896f9e2ee9fc522d948de7d2fa210aafbdde91 Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Mon, 6 Mar 2023 11:16:08 +0100 Subject: [PATCH 02/10] Change Demand Category --- io.catenax.material_demand/1.0.0/MaterialDemand.ttl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/io.catenax.material_demand/1.0.0/MaterialDemand.ttl b/io.catenax.material_demand/1.0.0/MaterialDemand.ttl index 5ab94520..1902fb1a 100644 --- a/io.catenax.material_demand/1.0.0/MaterialDemand.ttl +++ b/io.catenax.material_demand/1.0.0/MaterialDemand.ttl @@ -147,7 +147,7 @@ bamm:preferredName "Demand Category"@en; bamm:description "The classification of demands used to prioritize or allocate capacities."@en; bamm:dataType :DemandCategoryType; - bamm-c:values (:DemandCategoryDefault :DemandCategoryAfterSales :DemandCategorySeries :DemandCategoryPhaseInPeriod :DemandCategorySingleOrder :DemandCategorySmallSeries :DemandCategoryIncrementalDemand :DemandCategoryPhaseOutPeriod). + bamm-c:values (:DemandCategoryDefault :DemandCategoryAfterSales :DemandCategorySeries :DemandCategoryPhaseInPeriod :DemandCategorySingleOrder :DemandCategorySmallSeries :DemandCategoryExtraordinaryDemand :DemandCategoryPhaseOutPeriod). :DemandTimeSeries a bamm-c:SortedSet; bamm:preferredName "Demand Time Series"@en; bamm:description "The weekly demands in a given time period."@en; @@ -173,13 +173,13 @@ :demandCategoryName "Phase-In Period"^^rdf:langString. :DemandCategorySingleOrder a :DemandCategoryType; :demandCategoryCode "OS01"; - :demandCategoryName "Single-Order"^^rdf:langString. + :demandCategoryName "Single Order"^^rdf:langString. :DemandCategorySmallSeries a :DemandCategoryType; :demandCategoryCode "OI01"; - :demandCategoryName "Small-Series"^^rdf:langString. -:DemandCategoryIncrementalDemand a :DemandCategoryType; - :demandCategoryCode "ID01"; - :demandCategoryName "Incremental Demand"^^rdf:langString. + :demandCategoryName "Small Series"^^rdf:langString. +:DemandCategoryExtraordinaryDemand a :DemandCategoryType; + :demandCategoryCode "ED01"; + :demandCategoryName "Extraordinary Demand"^^rdf:langString. :DemandCategoryPhaseOutPeriod a :DemandCategoryType; :demandCategoryCode "PO01"; :demandCategoryName "Phase-Out Period"^^rdf:langString. From 6584950a7bb2f9942d202658a0d377b337399662 Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Mon, 6 Mar 2023 16:01:37 +0100 Subject: [PATCH 03/10] Add prefix "WeekBased" to aspect name --- .../1.0.0/WeekBasedMaterialDemand.ttl | 4 ++-- .../1.0.0/metadata.json | 0 .../RELEASE_NOTES.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename io.catenax.material_demand/1.0.0/MaterialDemand.ttl => io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl (99%) rename {io.catenax.material_demand => io.catenax.week_based_material_demand}/1.0.0/metadata.json (100%) rename {io.catenax.material_demand => io.catenax.week_based_material_demand}/RELEASE_NOTES.md (56%) diff --git a/io.catenax.material_demand/1.0.0/MaterialDemand.ttl b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl similarity index 99% rename from io.catenax.material_demand/1.0.0/MaterialDemand.ttl rename to io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl index 1902fb1a..4eb1afff 100644 --- a/io.catenax.material_demand/1.0.0/MaterialDemand.ttl +++ b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl @@ -20,9 +20,9 @@ @prefix rdf: . @prefix rdfs: . @prefix xsd: . -@prefix : . +@prefix : . -:MaterialDemand a bamm:Aspect; +:WeekBasedMaterialDemand a bamm:Aspect; bamm:preferredName "Material Demand"@en; bamm:description "The requirements of a customer towards a specific supplier for a specific material. Each material demand is unique by its Customer, Supplier and Material Number."@en; bamm:properties (:materialDemandId :demandSeries :customer :supplier :unitOfMeasure :materialNumberCustomer [ diff --git a/io.catenax.material_demand/1.0.0/metadata.json b/io.catenax.week_based_material_demand/1.0.0/metadata.json similarity index 100% rename from io.catenax.material_demand/1.0.0/metadata.json rename to io.catenax.week_based_material_demand/1.0.0/metadata.json diff --git a/io.catenax.material_demand/RELEASE_NOTES.md b/io.catenax.week_based_material_demand/RELEASE_NOTES.md similarity index 56% rename from io.catenax.material_demand/RELEASE_NOTES.md rename to io.catenax.week_based_material_demand/RELEASE_NOTES.md index 6938a9a4..c5f31752 100644 --- a/io.catenax.material_demand/RELEASE_NOTES.md +++ b/io.catenax.week_based_material_demand/RELEASE_NOTES.md @@ -2,4 +2,4 @@ All notable changes to this model will be documented in this file. ## [1.0.0] -- initial version of material demand model +- initial version of the aspect model for week-based material demands From b8d7e73c2dbbdfd3005b97e1494eee4fe23af3e0 Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Mon, 13 Mar 2023 13:36:48 +0100 Subject: [PATCH 04/10] Implement review Feedback --- .../1.0.0/WeekBasedMaterialDemand.ttl | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl index 4eb1afff..99766a04 100644 --- a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl +++ b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl @@ -23,7 +23,7 @@ @prefix : . :WeekBasedMaterialDemand a bamm:Aspect; - bamm:preferredName "Material Demand"@en; + bamm:preferredName "Week-Based Material Demand"@en; bamm:description "The requirements of a customer towards a specific supplier for a specific material. Each material demand is unique by its Customer, Supplier and Material Number."@en; bamm:properties (:materialDemandId :demandSeries :customer :supplier :unitOfMeasure :materialNumberCustomer [ bamm:property :materialNumberSupplier; @@ -42,12 +42,12 @@ bamm:characteristic :DemandSeriesSet. :customer a bamm:Property; bamm:preferredName "Customer"@en; - bamm:description "A party that requests goods from a supplier."@en; + bamm:description "The Business Partner Number (BPNL) of the party requesting materials from a supplier."@en; bamm:characteristic :BPNL; bamm:exampleValue "BPNL8888888888XX". :supplier a bamm:Property; bamm:preferredName "Supplier"@en; - bamm:description "A party that provides goods to a customer."@en; + bamm:description "The Business Partner Number (BPNL) of the party providing materials to a customer."@en; bamm:characteristic :BPNL; bamm:exampleValue "BPNL6666666666YY". :unitOfMeasure a bamm:Property; @@ -73,7 +73,8 @@ :changedAt a bamm:Property; bamm:preferredName "Changed At"@en; bamm:description "Point in time when the material demand was last updated at the customer, either by a human user or an automated process."@en; - bamm:characteristic :Timestamp. + bamm:characteristic :Timestamp; + bamm:exampleValue "2023-03-10T12:27:11.320Z"^^xsd:dateTimeStamp. :UUIDv4 a bamm:Characteristic; bamm:preferredName "UUIDv4"@en; bamm:description "A version 4 UUID is a universally unique identifier that is generated using random 32 hexadecimal characters."@en; @@ -89,9 +90,9 @@ bamm:dataType xsd:string. :expectedSupplierLocation a bamm:Property; bamm:preferredName "Expected Supplier Location"@en; - bamm:description "The location from where the customer expects the supplier to fulfill the demands of the demand series. Used as informational field only, not for assigning demand series to capacity groups."@en; + bamm:description "The BPNS number of the site from where the customer expects the supplier to fulfill the demands of the demand series. Used as informational field only, not for assigning demand series to capacity groups."@en; bamm:characteristic :BPNS; - bamm:exampleValue "Plant Hamburg". + bamm:exampleValue "BPNS8888888888XX". :BPNS a bamm:Characteristic; bamm:preferredName "Business Partner Number Site"@en; bamm:description "BPNS represents a site which can be a production plant inside one location."@en; @@ -132,9 +133,9 @@ bamm-c:constraint :UUIDv4RegularExpression. :customerLocation a bamm:Property; bamm:preferredName "Customer Location"@en; - bamm:description "Location at which the customer needs the specified material for this demand series."@en; + bamm:description "The BPNS number of the site at which the customer needs the specified material for this demand series."@en; bamm:characteristic :BPNS; - bamm:exampleValue "Plant Bremen". + bamm:exampleValue "BPNS8888888888XX". :demandCategory a bamm:Property; bamm:preferredName "Demand Category"@en; bamm:description "Type of demand for this demand series."@en; @@ -188,7 +189,7 @@ bamm:description "A single demand for a given calendar week."@en; bamm:properties (:calendarWeek :demand). :demandCategoryCode a bamm:Property; - bamm:description "The code identifiying a demand category."@en; + bamm:description "The code identifying a demand category."@en; bamm:characteristic :DemandCategoryCode. :demandCategoryName a bamm:Property; bamm:description "The name describing a demand category."@en; @@ -200,12 +201,12 @@ bamm:exampleValue "2022-08-01"^^xsd:date. :demand a bamm:Property; bamm:preferredName "Demand"@en; - bamm:description "Quantity of goods required in the specified calendar week."@en; + bamm:description "Quantity of materials required in the specified calendar week."@en; bamm:characteristic :Quantity; bamm:exampleValue "1"^^xsd:decimal. :DemandCategoryCode a bamm-c:Code; bamm:preferredName "Demand Category Code"@en; - bamm:description "The code identifiying a demand category."@en; + bamm:description "The code identifying a demand category."@en; bamm:dataType xsd:string. :CalendarWeek a bamm:Characteristic; bamm:preferredName "Calendar Week"@en; From 763f0e1351ffb55027e032167b205409ab6c4aef Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Fri, 17 Mar 2023 08:30:37 +0100 Subject: [PATCH 05/10] More review feedback --- .../1.0.0/WeekBasedMaterialDemand.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl index 99766a04..1b533906 100644 --- a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl +++ b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl @@ -90,7 +90,7 @@ bamm:dataType xsd:string. :expectedSupplierLocation a bamm:Property; bamm:preferredName "Expected Supplier Location"@en; - bamm:description "The BPNS number of the site from where the customer expects the supplier to fulfill the demands of the demand series. Used as informational field only, not for assigning demand series to capacity groups."@en; + bamm:description "The BPNS number of the site from where the customer expects the supplier to fulfill the demands of the demand series. The BPNS number of the site from where the customer expects the supplier to fulfill the demands of the demand series. The value is used for informational purposes only and is therefore not binding for the supplier."@en; bamm:characteristic :BPNS; bamm:exampleValue "BPNS8888888888XX". :BPNS a bamm:Characteristic; From e675ef98db57a91094cb21a83bc62937a359de44 Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Fri, 17 Mar 2023 10:15:16 +0100 Subject: [PATCH 06/10] Fix copy-paste error --- .../1.0.0/WeekBasedMaterialDemand.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl index 1b533906..1d198527 100644 --- a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl +++ b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl @@ -90,7 +90,7 @@ bamm:dataType xsd:string. :expectedSupplierLocation a bamm:Property; bamm:preferredName "Expected Supplier Location"@en; - bamm:description "The BPNS number of the site from where the customer expects the supplier to fulfill the demands of the demand series. The BPNS number of the site from where the customer expects the supplier to fulfill the demands of the demand series. The value is used for informational purposes only and is therefore not binding for the supplier."@en; + bamm:description "The BPNS number of the site from where the customer expects the supplier to fulfill the demands of the demand series. The value is used for informational purposes only and is therefore not binding for the supplier."@en; bamm:characteristic :BPNS; bamm:exampleValue "BPNS8888888888XX". :BPNS a bamm:Characteristic; From bbf93715d9cb19bb7ccc37464f836b6c64de49d8 Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Mon, 20 Mar 2023 13:05:15 +0100 Subject: [PATCH 07/10] Update description of materialDemandId --- .../1.0.0/WeekBasedMaterialDemand.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl index 1d198527..e60d62e2 100644 --- a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl +++ b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl @@ -33,7 +33,7 @@ bamm:events (). :materialDemandId a bamm:Property; bamm:preferredName "Material Demand ID"@en; - bamm:description "The Material Demand ID identifies the material demand on a global level."@en; + bamm:description "The Material Demand ID uniquely identifies the material demand within the business relationship between a customer and its supplier."@en; bamm:characteristic :UUIDv4; bamm:exampleValue "0157ba42-d2a8-4e28-8565-7b07830c1110". :demandSeries a bamm:Property; From 626b90dbb701ef866b8ca516488702cd396b9049 Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Mon, 20 Mar 2023 16:13:25 +0100 Subject: [PATCH 08/10] Fix traits --- .../1.0.0/WeekBasedMaterialDemand.ttl | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl index e60d62e2..9f9211e3 100644 --- a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl +++ b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl @@ -34,7 +34,7 @@ :materialDemandId a bamm:Property; bamm:preferredName "Material Demand ID"@en; bamm:description "The Material Demand ID uniquely identifies the material demand within the business relationship between a customer and its supplier."@en; - bamm:characteristic :UUIDv4; + bamm:characteristic :UUIDv4IdTrait; bamm:exampleValue "0157ba42-d2a8-4e28-8565-7b07830c1110". :demandSeries a bamm:Property; bamm:preferredName "Demand Series"@en; @@ -43,12 +43,12 @@ :customer a bamm:Property; bamm:preferredName "Customer"@en; bamm:description "The Business Partner Number (BPNL) of the party requesting materials from a supplier."@en; - bamm:characteristic :BPNL; + bamm:characteristic :BPNLTrait; bamm:exampleValue "BPNL8888888888XX". :supplier a bamm:Property; bamm:preferredName "Supplier"@en; bamm:description "The Business Partner Number (BPNL) of the party providing materials to a customer."@en; - bamm:characteristic :BPNL; + bamm:characteristic :BPNLTrait; bamm:exampleValue "BPNL6666666666YY". :unitOfMeasure a bamm:Property; bamm:preferredName "Unit of Measure"@en; @@ -88,15 +88,6 @@ bamm:preferredName "Business Partner Number Legal Entity"@en; bamm:description "BPNL represents the legal entity of an organization participating in Catena-X."@en; bamm:dataType xsd:string. -:expectedSupplierLocation a bamm:Property; - bamm:preferredName "Expected Supplier Location"@en; - bamm:description "The BPNS number of the site from where the customer expects the supplier to fulfill the demands of the demand series. The value is used for informational purposes only and is therefore not binding for the supplier."@en; - bamm:characteristic :BPNS; - bamm:exampleValue "BPNS8888888888XX". -:BPNS a bamm:Characteristic; - bamm:preferredName "Business Partner Number Site"@en; - bamm:description "BPNS represents a site which can be a production plant inside one location."@en; - bamm:dataType xsd:string. :UnitOfMeasure a bamm-c:Enumeration; bamm:preferredName "Unit of Measure"@en; bamm:description "The Enumeration lists a selection of allowed units of measure referenced by their official code according to Codes for Units of Measure Used in International Trade"@en; @@ -122,19 +113,19 @@ bamm:property :expectedSupplierLocation; bamm:optional "true"^^xsd:boolean ]). -:UUIDv4RegularExpression a bamm-c:RegularExpressionConstraint; - bamm:preferredName "UUIDv4 Regular Expression"@en; - bamm: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)."@en; - bamm: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}$". -:UUIDv4IdTrait a bamm-c:Trait; - bamm:preferredName "UUIDv4 Trait"@en; - bamm:description "Trait to ensure data format for UUIDv4."@en; - bamm-c:baseCharacteristic :UUIDv4; - bamm-c:constraint :UUIDv4RegularExpression. +:expectedSupplierLocation a bamm:Property; + bamm:preferredName "Expected Supplier Location"@en; + bamm:description "The BPNS number of the site from where the customer expects the supplier to fulfill the demands of the demand series. The value is used for informational purposes only and is therefore not binding for the supplier."@en; + bamm:characteristic :BPNSTrait; + bamm:exampleValue "BPNS8888888888XX". +:BPNS a bamm:Characteristic; + bamm:preferredName "Business Partner Number Site"@en; + bamm:description "BPNS represents a site which can be a production plant inside one location."@en; + bamm:dataType xsd:string. :customerLocation a bamm:Property; bamm:preferredName "Customer Location"@en; bamm:description "The BPNS number of the site at which the customer needs the specified material for this demand series."@en; - bamm:characteristic :BPNS; + bamm:characteristic :BPNSTrait; bamm:exampleValue "BPNS8888888888XX". :demandCategory a bamm:Property; bamm:preferredName "Demand Category"@en; @@ -144,6 +135,15 @@ bamm:preferredName "Demands"@en; bamm:description "A time series with week-based granularity along a given time period to describe the demand values for this demand series."@en; bamm:characteristic :DemandTimeSeries. +:UUIDv4RegularExpression a bamm-c:RegularExpressionConstraint; + bamm:preferredName "UUIDv4 Regular Expression"@en; + bamm: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)."@en; + bamm: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}$". +:UUIDv4IdTrait a bamm-c:Trait; + bamm:preferredName "UUIDv4 Trait"@en; + bamm:description "Trait to ensure data format for UUIDv4."@en; + bamm-c:baseCharacteristic :UUIDv4; + bamm-c:constraint :UUIDv4RegularExpression. :DemandCategory a bamm-c:Enumeration; bamm:preferredName "Demand Category"@en; bamm:description "The classification of demands used to prioritize or allocate capacities."@en; @@ -202,7 +202,7 @@ :demand a bamm:Property; bamm:preferredName "Demand"@en; bamm:description "Quantity of materials required in the specified calendar week."@en; - bamm:characteristic :Quantity; + bamm:characteristic :QuantityTrait; bamm:exampleValue "1"^^xsd:decimal. :DemandCategoryCode a bamm-c:Code; bamm:preferredName "Demand Category Code"@en; From 6431af72c4fe875761903516fce0f622e3601b10 Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Mon, 20 Mar 2023 16:18:35 +0100 Subject: [PATCH 09/10] Improve Demand Category Type --- .../1.0.0/WeekBasedMaterialDemand.ttl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl index 9f9211e3..a3d46b2e 100644 --- a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl +++ b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl @@ -189,11 +189,15 @@ bamm:description "A single demand for a given calendar week."@en; bamm:properties (:calendarWeek :demand). :demandCategoryCode a bamm:Property; + bamm:preferredName "Demand Category Code"@en; bamm:description "The code identifying a demand category."@en; - bamm:characteristic :DemandCategoryCode. + bamm:characteristic :DemandCategoryCode; + bamm:exampleValue "0001". :demandCategoryName a bamm:Property; + bamm:preferredName "Demand Category Name"@en; bamm:description "The name describing a demand category."@en; - bamm:characteristic bamm-c:MultiLanguageText. + bamm:characteristic bamm-c:MultiLanguageText; + bamm:exampleValue "Default"^^rdf:langString. :calendarWeek a bamm:Property; bamm:preferredName "Calendar Week"@en; bamm:description "ISO Calendar Week of the given time series entry. Must be given as date of the Monday in the week."@en; From 981fe7adef2735a76d1d8382a0988ed55f40f851 Mon Sep 17 00:00:00 2001 From: Lukas Heimann Date: Thu, 23 Mar 2023 13:13:58 +0100 Subject: [PATCH 10/10] Increase copyright year --- .../1.0.0/WeekBasedMaterialDemand.ttl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl index a3d46b2e..96e4e0d3 100644 --- a/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl +++ b/io.catenax.week_based_material_demand/1.0.0/WeekBasedMaterialDemand.ttl @@ -1,6 +1,6 @@ ####################################################################### -# Copyright (c) 2022 SAP SE -# Copyright (c) 2022 Contributors to the Eclipse Foundation +# Copyright (c) 2023 SAP SE +# Copyright (c) 2023 Contributors to the Eclipse Foundation # # See the NOTICE file(s) distributed with this work for additional # information regarding copyright ownership.