-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chris-volk-patch-1
- Loading branch information
Showing
21 changed files
with
490 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
documentation/modules/ROOT/examples/aspect-with-double-either-characteristic.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH | ||
|
||
# See the AUTHORS file(s) distributed with this work for additional information regarding authorship. | ||
|
||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. | ||
# If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/ | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
@prefix : <urn:samm:com.mycompany.myapplication:1.0.0#> . | ||
@prefix samm: <urn:samm:org.eclipse.esmf.samm:meta-model:2.1.0#> . | ||
@prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.1.0#> . | ||
@prefix samm-e: <urn:samm:org.eclipse.esmf.samm:entity:2.1.0#> . | ||
@prefix unit: <urn:samm:org.eclipse.esmf.samm:unit:2.1.0#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
:AspectWithEither a samm:Aspect ; | ||
samm:properties ( :speedProperty ) ; | ||
samm:operations ( ) . | ||
|
||
# tag::aspect-with-double-either-characteristic[] | ||
:speedProperty a samm:Property ; | ||
samm:characteristic :Result . | ||
|
||
:Result a samm-c:Either ; | ||
samm:description "The result is either an error or a SpeedValue"@en ; | ||
samm-c:left :Error ; | ||
samm-c:right :SpeedValue . | ||
|
||
:Error a samm-c:Either ; | ||
samm:description """An error can be either a simple text, or a complex object with separate errorCode and errorDescription"""@en ; | ||
samm-c:left samm-c:Text ; | ||
samm-c:right :ErrorMessage . | ||
|
||
:SpeedValue a samm-c:Quantifiable ; | ||
samm:dataType xsd:integer . | ||
|
||
:ErrorMessage a samm:Characteristic ; | ||
samm:dataType :ErrorEntity . | ||
|
||
:ErrorEntity a samm:Entity ; | ||
samm:properties ( :errorCode :errorDescription ) . | ||
|
||
:errorCode a samm:Property ; | ||
samm:characteristic samm-c:Text . | ||
|
||
:errorDescription a samm:Property ; | ||
samm:characteristic samm-c:Text . | ||
|
||
# end::aspect-with-double-either-characteristic[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.