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

[Model Update] version update: Contact #118

Merged
merged 5 commits into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
105 changes: 105 additions & 0 deletions io.catenax.shared.contact_information/2.0.0/ContactInformation.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
#######################################################################
# Copyright (c) 2023 Robert Bosch Manufacturing Solutions GmbH
# Copyright (c) 2023 T-Systems International GmbH
# 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 bamm: <urn:bamm:io.openmanufacturing:meta-model:2.0.0#>.
@prefix bamm-c: <urn:bamm:io.openmanufacturing:characteristic:2.0.0#>.
@prefix bamm-e: <urn:bamm:io.openmanufacturing:entity:2.0.0#>.
@prefix unit: <urn:bamm:io.openmanufacturing:unit:2.0.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:bamm:io.catenax.shared.contact_information:2.0.0#>.

:ContactCharacteristic a bamm:Characteristic;
bamm:name "ContactCharacteristic";
bamm:preferredName "Contact Characteristic"@en;
bamm:description "Characteristic describing information on how to contact an organization"@en;
bamm:dataType :ContactEntity .
:ContactEntity a bamm:Entity;
bamm:name "ContactEntity";
bamm:preferredName "Contact Entity"@en;
bamm:description "Entity to bundle the properties for the information on how to contact an organization"@en;
bamm:properties ([
bamm:property :website;
bamm:optional "true"^^xsd:boolean
] [
bamm:property :phoneNumber;
bamm:optional "true"^^xsd:boolean
] [
bamm:property :email;
bamm:optional "true"^^xsd:boolean
] [
bamm:property :faxNumber;
bamm:optional "true"^^xsd:boolean
]) .
:contactProperty a bamm:Property;
bamm:name "contactProperty";
bamm:preferredName "Contact Property"@en;
bamm:description "Property describing contact information for an organization"@en;
bamm:characteristic :ContactCharacteristic .
:WebsiteCharacteristic a bamm:Characteristic;
bamm:name "WebsiteCharacteristic";
bamm:preferredName "website"@en;
bamm:description "Address of the website"@en;
bamm:dataType xsd:anyURI.
:website a bamm:Property;
bamm:name "website";
bamm:preferredName "website"@en;
bamm:description "Website of the contact."@en;
bamm:characteristic :WebsiteCharacteristic;
bamm:exampleValue "https://www.samsung.com"^^xsd:anyURI.
:phoneNumber a bamm:Property;
bamm:name "phoneNumber";
bamm:preferredName "phone number"@en;
bamm:description "Phone number with country and area code"@en;
bamm:characteristic :PhoneNumberTrait;
bamm:exampleValue "+49 89 1234567890".
:email a bamm:Property;
bamm:name "email";
bamm:preferredName "email"@en;
bamm:description "An email address"@en;
bamm:characteristic :EMailTrait;
bamm:exampleValue "[email protected]".
:faxNumber a bamm:Property;
bamm:name "faxNumber";
bamm:preferredName "faxNumber"@en;
bamm:description "Fax number with country and area code"@en;
bamm:characteristic :PhoneNumberTrait;
bamm:exampleValue "+49 89 0987654321".
:ContactInformation a bamm:Aspect;
bamm:name "ContactInformation";
bamm:properties (:contactProperty);
bamm:operations ();
bamm:preferredName "Contact information"@en;
bamm:description "Entity encapsulating the contact details"@en;
bamm:see <https://www.plattform-i40.de/IP/Redaktion/DE/Downloads/Publikation/Spezifikation_Submodel-Templates.html>.
:PhoneNumberTrait a bamm-c:Trait;
bamm:name "PhoneNumberTrait";
bamm-c:baseCharacteristic bamm-c:Text;
bamm-c:constraint :PhoneNumberConstraint.
:PhoneNumberConstraint a bamm-c:RegularExpressionConstraint;
bamm:name "PhoneNumberConstraint";
bamm:description "Constraint to allow only numbers, whitespaces and an optional leading + sign."@en;
bamm:preferredName "PhoneNumberConstraint"@en;
bamm:value "^[+]?[0-9 ]+$".
:EMailTrait a bamm-c:Trait;
bamm:name "SupplierMailTrait";
bamm-c:baseCharacteristic bamm-c:Text;
bamm-c:constraint :EMailConstraint.
:EMailConstraint a bamm-c:RegularExpressionConstraint;
bamm:name "EMailConstraint";
bamm:value "^[a-zA-Z0-9.!#$%&’*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$";
bamm:description "Regular expression for mail address as defined in W3C (see https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address)"@en.
1 change: 1 addition & 0 deletions io.catenax.shared.contact_information/2.0.0/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "status" : "release"}
4 changes: 4 additions & 0 deletions io.catenax.shared.contact_information/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this model will be documented in this file.

## [Unreleased]

## [2.0.0] - 2023-03-30
### Changed
- bamm:io version changed to 2.0.0

## [1.0.0] - 2022-03-28
### Added
- initial version of model
Expand Down