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

Shopfloor information types2 #257

Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
##########################################################################################
# Copyright (c) 2023 Fraunhofer Institute of Optronics, System Technology and Image Exploitation (IOSB)
# Copyright (c) 2023 Siemens AG
# 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: <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:samm:io.catenax.shared.shopfloor_information_types:1.0.0#> .
@prefix ext-header: <urn:samm:io.catenax.shared.message_header:1.0.0#> .

:ShopfloorInformationTypes a samm:Aspect ;
samm:preferredName "Shopfloor Information Types"@en ;
samm:description "Collection of types used in multiple data models of the Shopfloor Information Service"@en ;
samm:properties ( :communicationMode :versionDataModel :timeValue ) ;
samm:operations ( ) ;
samm:events ( ) .

:communicationMode a samm:Property ;
samm:preferredName "Communication Mode"@en ;
samm:description "Specification of the communication mode"@en ;
samm:characteristic :CommunicationModeEnum ;
samm:exampleValue "synchronous" .

:versionDataModel a samm:Property ;
samm:preferredName "Version Data Model"@en ;
samm:description "Specifies the used version of the data model"@en ;
samm:characteristic ext-header:BpnCharacteristic ;
samm:exampleValue "urn:samm:io.catenax.shared.shopfloor_information_types:1.0.0" .

:timeValue a samm:Property ;
samm:preferredName "Time Value"@en ;
samm:description "A time Value property"@en ;
samm:characteristic :TimeValueCharacteristic .

:CommunicationModeEnum a samm-c:Enumeration ;
samm:preferredName "Communication Mode Enumeration"@en ;
samm:description "Enumerates all possible communication modes"@en ;
samm:dataType xsd:string ;
samm-c:values ( "synchronous" "cyclic" "notification" ) .

:TimeValueCharacteristic a samm:Characteristic ;
samm:preferredName "Time Value Characteristic"@en ;
samm:description "Link to the TimeUnit Data Type"@en ;
samm:dataType :TimeValue .

:TimeValue a samm:Entity ;
samm:preferredName "Time Value"@en ;
samm:description "Datatype to express a time value"@en ;
samm:properties ( :timeUnit :value ) .

:timeUnit a samm:Property ;
samm:preferredName "Time Unit"@en ;
samm:description "Specifies the unit in which the time is represented"@en ;
samm:characteristic :TimeUnitEnum .

:value a samm:Property ;
samm:preferredName "Value"@en ;
samm:description "The amount of timeUnits considered"@en ;
samm:characteristic :IntegerValueCharacteristic ;
samm:exampleValue 12 .

:TimeUnitEnum a samm-c:Enumeration ;
samm:preferredName "Time Unit Enum"@en ;
samm:description "Enumerates all time units"@en ;
samm:dataType samm:curie ;
samm-c:values ( "unit:secondUnitOfTime"^^samm:curie "unit:minuteUnitOfTime"^^samm:curie "unit:hour"^^samm:curie "unit:day"^^samm:curie "unit:week"^^samm:curie "unit:month"^^samm:curie "unit:year"^^samm:curie ) .
Copy link
Contributor

Choose a reason for hiding this comment

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

I checked the use of curies. this way it is correct. The curie type is from the SAMM meta model.


:IntegerValueCharacteristic a samm:Characteristic ;
samm:preferredName "Integer Value Characteristic"@en ;
samm:description "The value of the specified timeUnit as an integer value"@en ;
samm:dataType xsd:integer .

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "status" : "release" }
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.

don't forget to add the date of the MS3 approval to the RELEASE_NOTES once it is MS3 approved


- initial version of the aspect model for ShopfloorInformationTypes