Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Correct figures for data specifications #437
Correct figures for data specifications #437
Changes from all commits
cc7c34a
3499097
513ad72
f8700d9
dedf0c9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
//// Copyright (c) 2023 Industrial Digital Twin Association This work is licensed under a [Creative Commons Attribution 4.0 International License]( https://creativecommons.org/licenses/by/4.0/). SPDX-License-Identifier: CC-BY-4.0 Illustrations: Plattform Industrie 4.0; Anna Salari, Publik. Agentur für Kommunikation GmbH, designed by Publik. Agentur für Kommunikation GmbH //// [appendix] = Templates for UML Tables == General The templates used for element specification are explained in this annex. For details for the semantics see Legend for UML Modelling. For capitalization of titles, rules according to https://capitalizemytitle.com/ are used. == Template for Classes [.table-with-appendix-table] .Class :table-caption: Template [cols="25%,40%,25%,10%"] |=== h|Class: 3+e| ["\<>"] ["\<>"] ["\<>"] ["\<>"] h|Explanation: 3+a| h|Inherits from: 3+|{ ";" }+ \| "-" h|ID: 3+| `` .2+h|Attribute 3+h| ID h|Explanation h|Type h|Card. .2+e|__ ["\<>"] ["\<>"] ["\<>"] 3+| `` a| | | |=== _ID_ is the metamodel ID of the class or attribute, conformant to the grammar defined in Clause xref:#_serialization_of_values_of_type_reference[].A metamodel ID for a class attribute is concatenated by _/_. The following stereotypes can be used: * \<>: Class cannot be instantiated but serves as superclass for inheriting classes * \<>: Class is experimental, i.e. usage is only recommended for experimental purposes because non backward compatible changes may occur in future versions * \<>: Class is deprecated, i.e. it is recommended to not use the element any longer; it will be removed in a next major version of the model * \<>: Class is a template only, i.e. class is not instantiated but used for additional specification purposes (for details see parts 3 of document series) The following kinds of _Types_ are distinguished: ** _:_ Type is an object type (class); it is realized as composite aggregation (composition), and does not exist independent of its parent ** _ModelReference<\{Referable}>:_ Type is a Reference with _Reference/type=ModelReference_ and is called model reference; the \{Referable} is to be substituted by any referable element (including _Referable_ itself for the most generic case) – the element that is referred to is denoted in the __Key/type__=<\{Referable}> for the last _Key_ in the model reference; for the graphical representation see Legend for UML Modelling, Figure 82; for more information on referencing see Clause 5.3.9. ** _: Type_ Type is no object type (class) but a data type; it is just a value, see Clause 5.3.11. ** _:_ Type is an enumeration _Card._ is the cardinality (or multiplicity) defining the lower and upper bound of the number of instances of the member element. "\*" denotes an arbitrary infinite number of elements of the corresponding Type. "0..1" means optional. "0..*" or "0..3" etc. means that the list may be either not available (null object) or empty. ==== Note 1: attributes having a default value are always considered to be optional; there is always a value for the attribute because the default value is used for initialization in this case. ==== ==== Note 2: attributes or attribute elements with data type “string” or “langString” are considered to consist of at least one character. ==== ==== Note 3: optional lists, i.e. attributes with cardinality > 1 and minimum 0, are considered to consist of at least one element. ==== [.underline]#Examples for valid and invalid model references# If class type equal to "ModelReference", the following reference would be a valid reference (using the text serialization as defined in Clause xref:#_serialization_of_values_of_type_reference[]): [listing] .... (Submodel)\https://example.com/aas/1/1/1234859590 .... This would be an invalid reference for "ModelReference" because it references a submodel element "Property": [listing] .... (Submodel)https://example.com/aas/1/1/1234859590, (Property)temperature .... If class type equal to "ModelReference", the following references would be valid references (using the text serialization as defined in Clause 7.2.3) because "Property" and "File" are Referables and "Submodel" itself is also Referable since all Identifiables are referable: [listing] .... (Submodel)\https://example.com/aas/1/1/1234859590 (Submodel)\https://example.com/aas/1/1/1234859590, (Property)temperature (Submodel)\https://example.com/aas/1/1/1234859590, (File)myDocument .... This would be an invalid reference for "ModelReference" because FragmentReference is no Referable: [listing] .... (Submodel)\https://example.com/aas/1/1/1234859590, (File)myDocument (FragmentReference)Hints .... == Template for Enumerations [.table-with-appendix-table] .Enumeration :table-caption: Template [cols="30%h,70%"] |=== h|Enumeration: | ["\<>"] ["\<>"] h|Explanation: | h|Set of: |{ ";" }+ \| "-" h|ID: | `` h|Literal h|Explanation .2+e|enumValue1>["\<>"] ["\<>"] | `` a| .2+e| ["\<>"] ["\<>"] | `` a| |=== "*Set of:*" lists enumerations that are contained in the enumeration. It is only relevant for validation, making sure that all elements relevant for the enumeration are considered. "*Literal*" lists values of enumeration. All values that are element of one of the enumeration listed in "*Set of:*" are listed explicitly as well. Enumeration values use Camel Case notation and start with a small letter. However, there might be exceptions in case of very well-known enumeration values. == Template for Primitives .Primitives :table-caption: Template [cols="13%,30%,57%"] |=== .2+h|Primitive 2+h| ID h|Definition h|Value Examples .2+e| 2+| `` a| a| |===
Templates for UML Tables
General
The templates used for element specification are explained in this annex. For details for the semantics see Legend for UML Modelling.
For capitalization of titles, rules according to https://capitalizemytitle.com/ are used.
Template for Classes
Class:
<Class Name> ["<<abstract>>"] ["<<Experimental>>"] ["<<Deprecated>>"] ["<<Template>>"]
Explanation:
<Explanatory text>
Inherits from:
{<Class Name> ";" }+ | "-"
ID:
<metamodel element ID>
Attribute
ID
Explanation
Type
Card.
<attribute or association name> ["<<ordered>>"] ["<<Experimental>>"] ["<<Deprecated>>"]
<metamodel element ID>
<Explanatory text>
<Type>
<Card>
ID is the metamodel ID of the class or attribute, conformant to the grammar defined in Clause [serialization_of_values_of_type_reference]. A metamodel ID for a class attribute is concatenated by _<ID of metamodel element ID of class>/<relative metamodel element ID>.
The following stereotypes can be used:
<<abstract>>: Class cannot be instantiated but serves as superclass for inheriting classes
<<Experimental>>: Class is experimental, i.e. usage is only recommended for experimental purposes because non backward compatible changes may occur in future versions
<<Deprecated>>: Class is deprecated, i.e. it is recommended to not use the element any longer; it will be removed in a next major version of the model
<<Template>>: Class is a template only, i.e. class is not instantiated but used for additional specification purposes (for details see parts 3 of document series)
The following kinds of Types are distinguished:
<Class>: Type is an object type (class); it is realized as composite aggregation (composition), and does not exist independent of its parent
ModelReference<{Referable}>: Type is a Reference with Reference/type=ModelReference and is called model reference; the {Referable} is to be substituted by any referable element (including Referable itself for the most generic case) – the element that is referred to is denoted in the Key/type=<{Referable}> for the last Key in the model reference; for the graphical representation see Legend for UML Modelling, Figure 82; for more information on referencing see Clause 5.3.9.
<Primitive>: Type Type is no object type (class) but a data type; it is just a value, see Clause 5.3.11.
<Enumeration>: Type is an enumeration
Card. is the cardinality (or multiplicity) defining the lower and upper bound of the number of instances of the member element. "*" denotes an arbitrary infinite number of elements of the corresponding Type. "0..1" means optional. "0..*" or "0..3" etc. means that the list may be either not available (optional) or the list is not empty.
Note 1: attributes having a default value are always considered to be optional; there is always a value for the attribute because the default value is used for initialization in this case.
Note 2: attributes or attribute elements with data type “string” or “langString” are considered to consist of at least one character.
Note 3: optional lists, i.e. attributes with cardinality > 1 and minimum 0, are considered to consist of at least one element.
Examples for valid and invalid model references
If class type equal to "ModelReference<Submodel>", the following reference would be a valid reference (using the text serialization as defined in Clause [_serialization_of_values_of_type_reference]):
This would be an invalid reference for "ModelReference<Submodel>" because it references a submodel element "Property":
If class type equal to "ModelReference<Referable>", the following references would be valid references (using the text serialization as defined in Clause 7.2.3) because "Property" and "File" are Referables and "Submodel" itself is also Referable since all Identifiables are referable:
This would be an invalid reference for "ModelReference<Referable>" because FragmentReference is no Referable:
Template for Enumerations
Enumeration:
<Enumeration Name> ["<<Experimental>>"] ["<<Deprecated>>"]
Explanation:
<Explanatory text>
Set of:
{<Enumeration> ";" }+ | "-"
ID:
<metamodel element ID>
Literal
Explanation
enumValue1>["<<Experimental>>"] ["<<Deprecated>>"]
<metamodel value ID>
<Explanatory text>
<enumValue2> ["<<Experimental>>"] ["<<Deprecated>>"]
<metamodel value ID>
<Explanatory text>
"Set of:" lists enumerations that are contained in the enumeration. It is only relevant for validation, making sure that all elements relevant for the enumeration are considered.
"Literal" lists values of enumeration. All values that are element of one of the enumeration listed in "Set of:" are listed explicitly as well.
Enumeration values use Camel Case notation and start with a small letter. However, there might be exceptions in case of very well-known enumeration values.
Template for Primitives
Primitive
ID
Definition
Value Examples
<Name of Primitive>
<metamodel ID of Primitive>
<Explanatory text>
<Value examples>