Skip to content

Commit

Permalink
changed to samm
Browse files Browse the repository at this point in the history
  • Loading branch information
catroest committed Mar 24, 2023
1 parent cd01ee7 commit 541ab17
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 82 deletions.
162 changes: 81 additions & 81 deletions io.catenax.shared.contact_information/2.0.0/ContactInformation.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -14,92 +14,92 @@
# 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 samm: <urn:samm:org.eclipse.esmf.samm:meta-model:2.0.0#>.
@prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.0.0#>.
@prefix samm-e: <urn:samm:org.eclipse.esmf.samm:entity:2.0.0#>.
@prefix unit: <urn:samm:org.eclipse.esmf.samm: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#>.
@prefix : <urn:samm: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
:ContactCharacteristic a samm:Characteristic;
samm:name "ContactCharacteristic";
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:name "ContactEntity";
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"^^xsd:boolean
] [
bamm:property :phoneNumber;
bamm:optional "true"^^xsd:boolean
samm:property :phoneNumber;
samm:optional "true"^^xsd:boolean
] [
bamm:property :email;
bamm:optional "true"^^xsd:boolean
samm:property :email;
samm:optional "true"^^xsd:boolean
] [
bamm:property :faxNumber;
bamm:optional "true"^^xsd:boolean
samm:property :faxNumber;
samm: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.
:contactProperty a samm:Property;
samm:name "contactProperty";
samm:preferredName "Contact Property"@en;
samm:description "Property describing contact information for an organization"@en;
samm:characteristic :ContactCharacteristic .
:WebsiteCharacteristic a samm:Characteristic;
samm:name "WebsiteCharacteristic";
samm:preferredName "website"@en;
samm:description "Address of the website"@en;
samm:dataType xsd:anyURI.
:website a samm:Property;
samm:name "website";
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:name "phoneNumber";
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:name "email";
samm:preferredName "email"@en;
samm:description "An email address"@en;
samm:characteristic :EMailTrait;
samm:exampleValue "[email protected]".
:faxNumber a samm:Property;
samm:name "faxNumber";
samm:preferredName "faxNumber"@en;
samm:description "Fax number with country and area code"@en;
samm:characteristic :PhoneNumberTrait;
samm:exampleValue "+49 89 0987654321".
:ContactInformation a samm:Aspect;
samm:name "ContactInformation";
samm:properties (:contactProperty);
samm:operations ();
samm:preferredName "Contact information"@en;
samm:description "Entity encapsulating the contact details"@en;
samm:see <https://www.plattform-i40.de/IP/Redaktion/DE/Downloads/Publikation/Spezifikation_Submodel-Templates.html>.
:PhoneNumberTrait a samm-c:Trait;
samm:name "PhoneNumberTrait";
samm-c:baseCharacteristic samm-c:Text;
samm-c:constraint :PhoneNumberConstraint.
:PhoneNumberConstraint a samm-c:RegularExpressionConstraint;
samm:name "PhoneNumberConstraint";
samm:description "Constraint to allow only numbers, whitespaces and an optional leading + sign."@en;
samm:preferredName "PhoneNumberConstraint"@en;
samm:value "^[+]?[0-9 ]+$".
:EMailTrait a samm-c:Trait;
samm:name "SupplierMailTrait";
samm-c:baseCharacteristic samm-c:Text;
samm-c:constraint :EMailConstraint.
:EMailConstraint a samm-c:RegularExpressionConstraint;
samm:name "EMailConstraint";
samm:value "^[a-zA-Z0-9.!#$%&’*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$";
samm:description "Regular expression for mail address as defined in W3C (see https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address)"@en.
2 changes: 1 addition & 1 deletion io.catenax.shared.contact_information/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this model will be documented in this file.

## [2.0.0] - 2023-03-30
### Changed
- bamm:io version changed to 2.0.0
- URN schema change to urn:samm:<namespace>:<version>#<element-name>

## [1.0.0] - 2022-03-28
### Added
Expand Down

0 comments on commit 541ab17

Please sign in to comment.