From d3fd27f26f2cc4820d49248daa854f387b44e737 Mon Sep 17 00:00:00 2001 From: --show-origin Date: Mon, 4 Sep 2023 08:11:25 -0700 Subject: [PATCH 1/3] feat: added shared aspect for business partner numbers --- .../1.0.0/BusinessPartnerNumber.ttl | 89 +++++++++++++++++++ .../1.0.0/metadata.json | 1 + .../RELEASE_NOTES.md | 12 +++ 3 files changed, 102 insertions(+) create mode 100644 io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl create mode 100644 io.catenax.shared.business_partner_number/1.0.0/metadata.json create mode 100644 io.catenax.shared.business_partner_number/RELEASE_NOTES.md diff --git a/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl b/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl new file mode 100644 index 00000000..06ed5099 --- /dev/null +++ b/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl @@ -0,0 +1,89 @@ +####################################################################### +# Copyright (c) 2023 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 : . + +:BusinessPartnerNumber a samm:Aspect; + samm:preferredName "Shared Aspect for any business partner number"@en; + samm:description "This is a shared aspect for BPN with a regex."@en; + samm:properties (:bpnlProperty :bpnsProperty :bpnaProperty); + samm:operations (); + samm:events (). + +:bpnlProperty a samm:Property; + samm:preferredName "Business Partner Number Legal Entity Property"@en; + samm:description "Property based on a BPNA."@en; + samm:characteristic :BpnlTrait; + samm:exampleValue "BPNA0123456789ZZ". +:BpnlTrait a samm-c:Trait; + samm:preferredName "BPNl Trait"@en; + samm:description "Trait to ensure data format for BPNL."@en; + samm-c:baseCharacteristic :BpnlCharacteristic; + samm-c:constraint :BpnlRegularExpression. +:BpnlCharacteristic a samm:Characteristic; + samm:preferredName "Business Partner Number Legal Entity"@en; + samm:description "BPNL (Business Partner Number Legal Entity) represents the legal entity of an organization (e.g. enterprise, university, association, …) and contains its legal name (incl. legal form, if registered), registered address and tax number. The registered address is the official, legal correspondence address which has to be supplied to governmental and tax authorities and is the address which is used in any legal or court documents. BPNL is on corporate level and is unique for this legal entity."@en; + samm:dataType xsd:string; + samm:see . +:BpnlRegularExpression a samm-c:RegularExpressionConstraint; + samm:preferredName "BPNL Regular Expression"@en; + samm:description "The provided regular expression ensures that the BPNL is composed of prefix 'BPNL', 10 digits and two uppercase letters."@en; + samm:value "^BPNL[0-9]{8}[a-zA-Z0-9]{4}$". + +:bpnaProperty a samm:Property; + samm:preferredName "Business Partner Number Address Property"@en; + samm:description "Property based on a BPNA."@en; + samm:characteristic :BpnaTrait; + samm:exampleValue "BPNA0123456789ZZ". +:BpnaTrait a samm-c:Trait; + samm:preferredName "BPNA Trait"@en; + samm:description "Trait to ensure data format for BPNA."@en; + samm-c:baseCharacteristic :BpnaCharacteristic; + samm-c:constraint :BpnaRegularExpression. +:BpnaCharacteristic a samm:Characteristic; + samm:preferredName "Business Partner Number Site"@en; + samm:description "BPNA (Business Partner Number Address) contains the legal name (incl. legal form, if registered) and additional organization information about site, e.g. Plant xxx, Branch office yyy of an organization with its corresponding, most commonly physical, address. A BPNA is always linked to a BPNL via relationship 'belongs to legal entity' and should be linked to a BPNS via relationship 'belongs to site'.The BPNA is on operational level (e.g. shipping or pick-up address)."@en; + samm:dataType xsd:string; + samm:see . +:BpnaRegularExpression a samm-c:RegularExpressionConstraint; + samm:preferredName "BPNA Regular Expression"@en; + samm:description "The provided regular expression ensures that the BPNA is composed of prefix 'BPNA', 10 digits and two uppercase letters."@en; + samm:value "^BPNA[0-9]{8}[a-zA-Z0-9]{4}$". + +:bpnsProperty a samm:Property; + samm:preferredName "Business Partner Number Site Property"@en; + samm:description "Property based on a BPNS."@en; + samm:characteristic :BpnsTrait; + samm:exampleValue "BPNS0123456789ZZ". +:BpnsTrait a samm-c:Trait; + samm:preferredName "BPNS Trait"@en; + samm:description "Trait to ensure data format for BPNS."@en; + samm-c:baseCharacteristic :BpnsCharacteristic; + samm-c:constraint :BpnsRegularExpression. +:BpnsCharacteristic a samm:Characteristic; + samm:preferredName "Business Partner Number Site"@en; + samm:description "BPNS (Business Partner Number Site) represents a site which can be a production plant. A site can also be e.g. an office or a warehouse. An information related to a site is e.g. needed for reporting issues (How many sites does e.g. Beispiel AG have?), status of operation (out of operations due to environmental disaster), for certificates on site level (e.g. environment certificates) or for internal regulations on site level, (e.g. security topics, Corona rules,...). Several addresses (= BPNA with different streets and different gates) can belong to one site. A BPNS should be always linked to one BPNL via relationship 'belongs to legal entity'."@en; + samm:dataType xsd:string; + samm:see . +:BpnsRegularExpression a samm-c:RegularExpressionConstraint; + samm:preferredName "BPNS Regular Expression"@en; + samm:description "The provided regular expression ensures that the BPNS is composed of prefix 'BPNS', 10 digits and two uppercase letters."@en; + samm:value "^BPNS[0-9]{8}[a-zA-Z0-9]{4}$". diff --git a/io.catenax.shared.business_partner_number/1.0.0/metadata.json b/io.catenax.shared.business_partner_number/1.0.0/metadata.json new file mode 100644 index 00000000..af60ff1f --- /dev/null +++ b/io.catenax.shared.business_partner_number/1.0.0/metadata.json @@ -0,0 +1 @@ +{"status": "release"} diff --git a/io.catenax.shared.business_partner_number/RELEASE_NOTES.md b/io.catenax.shared.business_partner_number/RELEASE_NOTES.md new file mode 100644 index 00000000..9a7c8598 --- /dev/null +++ b/io.catenax.shared.business_partner_number/RELEASE_NOTES.md @@ -0,0 +1,12 @@ +# Changelog +All notable changes to this model will be documented in this file. + +## [1.0.0] - 2023-09-11 +### Added +- initial model + +### Changed +n/a + +### Removed +n/a From 3066d27de6226880f17012885b2247c409d5cd24 Mon Sep 17 00:00:00 2001 From: --show-origin Date: Wed, 6 Sep 2023 05:29:58 -0700 Subject: [PATCH 2/3] fix: example value for bpnlProperty was BPNA --- .../1.0.0/BusinessPartnerNumber.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl b/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl index 06ed5099..15ce41d5 100644 --- a/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl +++ b/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl @@ -32,7 +32,7 @@ samm:preferredName "Business Partner Number Legal Entity Property"@en; samm:description "Property based on a BPNA."@en; samm:characteristic :BpnlTrait; - samm:exampleValue "BPNA0123456789ZZ". + samm:exampleValue "BPNL0123456789ZZ". :BpnlTrait a samm-c:Trait; samm:preferredName "BPNl Trait"@en; samm:description "Trait to ensure data format for BPNL."@en; From 83c4c96ba23701b09fdd6acfb423d17af5b050b9 Mon Sep 17 00:00:00 2001 From: --show-origin Date: Thu, 7 Sep 2023 01:55:50 -0700 Subject: [PATCH 3/3] fix: fixed typo and empty lines --- .../1.0.0/BusinessPartnerNumber.ttl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl b/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl index 15ce41d5..19281caa 100644 --- a/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl +++ b/io.catenax.shared.business_partner_number/1.0.0/BusinessPartnerNumber.ttl @@ -27,10 +27,9 @@ samm:properties (:bpnlProperty :bpnsProperty :bpnaProperty); samm:operations (); samm:events (). - :bpnlProperty a samm:Property; samm:preferredName "Business Partner Number Legal Entity Property"@en; - samm:description "Property based on a BPNA."@en; + samm:description "Property based on a BPNL."@en; samm:characteristic :BpnlTrait; samm:exampleValue "BPNL0123456789ZZ". :BpnlTrait a samm-c:Trait; @@ -46,8 +45,7 @@ :BpnlRegularExpression a samm-c:RegularExpressionConstraint; samm:preferredName "BPNL Regular Expression"@en; samm:description "The provided regular expression ensures that the BPNL is composed of prefix 'BPNL', 10 digits and two uppercase letters."@en; - samm:value "^BPNL[0-9]{8}[a-zA-Z0-9]{4}$". - + samm:value "^BPNL[0-9]{8}[a-zA-Z0-9]{4}$". :bpnaProperty a samm:Property; samm:preferredName "Business Partner Number Address Property"@en; samm:description "Property based on a BPNA."@en; @@ -67,7 +65,6 @@ samm:preferredName "BPNA Regular Expression"@en; samm:description "The provided regular expression ensures that the BPNA is composed of prefix 'BPNA', 10 digits and two uppercase letters."@en; samm:value "^BPNA[0-9]{8}[a-zA-Z0-9]{4}$". - :bpnsProperty a samm:Property; samm:preferredName "Business Partner Number Site Property"@en; samm:description "Property based on a BPNS."@en;