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

[New Model]: Software Information 1.0.0 #320

Merged
merged 20 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
55e7239
Create directory including RELEASE_NOTES.md
johannsvarela Sep 21, 2023
172d7a3
Create Software.ttl file
johannsvarela Sep 21, 2023
ba172db
Create metadata.json file
johannsvarela Sep 21, 2023
b5ed0a3
Remove undefined statement to fix ttl-file
johannsvarela Sep 22, 2023
ca1efb7
Rename root folder from io.catenax.software to io.catenax.software_in…
johannsvarela Sep 27, 2023
f3fa1cf
Update RELEASE_NOTES.md
johannsvarela Sep 27, 2023
e7f9285
Move metadata.json to new io.catenax.software_information directory
johannsvarela Sep 27, 2023
1c424c5
Merge branch 'eclipse-tractusx:main' into software_1.0.0
johannsvarela Sep 27, 2023
4bf3fa8
Move and rename Software.ttl to SoftwareInformation.ttl
johannsvarela Sep 27, 2023
899b198
Update namespace and property in SoftwareInformation.ttl
johannsvarela Sep 27, 2023
988eac0
Remove 2022 from copyright
johannsvarela Sep 27, 2023
cc76f9f
Update SoftwareInformation.ttl
johannsvarela Oct 4, 2023
43bddfa
integrate shared uuid into the aspect model
johannsvarela Oct 4, 2023
c04fa34
resolve type in line 119
johannsvarela Oct 6, 2023
1ad8893
Update SoftwareInformation.ttl
johannsvarela Mar 27, 2024
4b87c1c
Update SoftwareInformation.ttl
johannsvarela Apr 8, 2024
2a81bba
Merge branch 'eclipse-tractusx:main' into software_information_1.0.0
johannsvarela Apr 8, 2024
c66fdfb
Update SoftwareInformation.ttl
johannsvarela Apr 8, 2024
2d782a0
Update SoftwareInformation.ttl
johannsvarela Apr 8, 2024
c8cec7b
Update RELEASE_NOTES.md
johannsvarela Apr 11, 2024
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
153 changes: 153 additions & 0 deletions io.catenax.software_information/1.0.0/SoftwareInformation.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
######################################################################
# Copyright (c) 2023 BASF SE
Copy link
Contributor

Choose a reason for hiding this comment

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

2024 required now

# Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2023 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. (represented by Fraunhofer ISST & Fraunhofer IML)
# Copyright (c) 2023 German Edge Cloud GmbH & Co. KG
# Copyright (c) 2023 Henkel AG & Co. KGaA
# Copyright (c) 2023 Mercedes Benz AG
# Copyright (c) 2023 Robert Bosch Manufacturing Solutions GmbH
# Copyright (c) 2023 SAP SE
# Copyright (c) 2023 Siemens AG
# Copyright (c) 2023 T-Systems International GmbH
# Copyright (c) 2023 ZF Friedrichshafen 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.sofware_information:1.0.0#>.
johannsvarela marked this conversation as resolved.
Show resolved Hide resolved

:SoftwareInformation a samm:Aspect;
samm:preferredName "Software Information"@en;
samm:description "This aspect model describes information about one or more software of a part (e.g. software of an ECU)."@en;
samm:properties (:catenaXId :softwareInformation);
samm:operations ();
samm:events ().

:catenaXId a samm:Property;
samm:preferredName "Catena-X ID"@en;
samm:description "The Catena-X ID of the given part (e.g. the assembly), valid for the Catena-X dataspace."@en;
samm:characteristic :CatenaXIdTraitCharacteristic;
samm:exampleValue "urn:uuid:454ffa8e-f88d-4ad1-be45-06981756aeb1".

:softwareInformation a samm:Property;
samm:preferredName "Software Information"@en;
samm:description "Describes the sofware components with the most important data(e.g. name, version,..)."@en;
johannsvarela marked this conversation as resolved.
Show resolved Hide resolved
samm:characteristic :SetOfSoftwareCharacteristic.

:CatenaXIdTraitCharacteristic a samm-c:Trait;
johannsvarela marked this conversation as resolved.
Show resolved Hide resolved
samm:description "Trait to ensure UUID v4 data format"@en;
samm-c:baseCharacteristic :Uuidv4Characteristic;
samm-c:constraint :Uuidv4RegularExpression.

:SetOfSoftwareCharacteristic a samm-c:Set;
samm:preferredName "Set of Software"@en;
samm:description "Set of software that lists all software used by a hardware."@en;
samm:dataType :SoftwareData.

:Uuidv4Characteristic a samm:Characteristic;
johannsvarela marked this conversation as resolved.
Show resolved Hide resolved
samm:preferredName "UUID v4 Characteristic"@en;
samm:description "A version 4 UUID is a universally unique identifier that is generated using random 32 hexadecimal characters."@en;
samm:see <https://tools.ietf.org/html/rfc4122>;
samm:dataType xsd:string.

:Uuidv4RegularExpression a samm-c:RegularExpressionConstraint;
samm:preferredName "Catena-X Id Regular Expression"@en;
samm:description "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI."@en;
samm:see <https://datatracker.ietf.org/doc/html/rfc4122>;
samm:value "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)".

:SoftwareData a samm:Entity;
samm:preferredName "Software Data"@en;
samm:description "All relevant metadata of a software that refers to one or more parts."@en;
samm:properties (:name :version [ samm:property :validityPeriod; samm:optional true ] [ samm:property :softwarePartNumber; samm:optional true ]).

:name a samm:Property;
samm:preferredName "Name"@en;
samm:description "The name of the software."@en;
samm:characteristic :NameCharacteristic;
samm:exampleValue "ECU Software XY12345".

:version a samm:Property;
samm:preferredName "Version"@en;
samm:description "The version of the software."@en;
samm:characteristic :VersionTrait.

:validityPeriod a samm:Property;
samm:preferredName "Validity Period"@en;
samm:description "The period of time during which the software is valid. If no validity period is given the software is considered valid at any point in time."@en;
samm:characteristic :ValidityPeriodCharacteristic.

:softwarePartNumber a samm:Property;
samm:preferredName "Software Part Number"@en;
samm:description "The part number of the software."@en;
samm:characteristic :SoftwarePartNumberCharacteristic;
samm:exampleValue "SW12345678".

:NameCharacteristic a samm:Characteristic;
samm:preferredName "Name Characteristic"@en;
samm:description "Describes the name of the corresponding software."@en;
samm:dataType xsd:string.

:VersionTrait a samm-c:Trait;
samm:preferredName "Version Trait"@en;
johannsvarela marked this conversation as resolved.
Show resolved Hide resolved
samm-c:baseCharacteristic :VersionCharacteristic;
samm-c:constraint :VersionRegularExpression.

:ValidityPeriodCharacteristic a samm:Characteristic;
samm:preferredName "Validity Period Characteristic"@en;
samm:description "Characteristic for a validity period defined by an (optional) start and an (optional) end timestamp."@en;
samm:dataType :ValidityPeriodEntity.

:SoftwarePartNumberCharacteristic a samm:Characteristic;
samm:preferredName "Software Part Number Characteristic"@en;
samm:description "Characteristic for a software part number."@en;
samm:dataType xsd:string.

:VersionCharacteristic a samm:Characteristic;
samm:preferredName "Version Characteristic"@en;
samm:description "Describes the version of the corresponding software."@en;
samm:dataType xsd:string.

:VersionRegularExpression a samm-c:RegularExpressionConstraint;
samm:preferredName "Version Regular Expression"@en;
samm:description "Version Regular Expression allowing only a predefined version numbering structure."@en;
samm:value "^([0-9]{1,2})\\.([0-9]{1,2})\\.([0-9]{1,3})$".

:ValidityPeriodEntity a samm:Entity;
samm:preferredName "Validity Period Entity"@en;
samm:description "If a validity period only has a start that means that the period is valid from the start date without a (yet) defined enddate and vice versa."@en;
Copy link
Contributor

Choose a reason for hiding this comment

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

i think it should be 'end date' and not 'enddate'

samm:properties ([ samm:property :validFrom; samm:optional true ] [ samm:property :validTo; samm:optional true ]).

:validFrom a samm:Property;
samm:preferredName "Valid from"@en;
samm:description "Start date of validity period"@en;
samm:characteristic samm-c:Timestamp;
samm:exampleValue "2023-03-21T08:17:29.187+01:00"^^xsd:dateTime.

:validTo a samm:Property;
samm:preferredName "Valid to"@en;
samm:description "End date of validity period"@en;
samm:characteristic samm-c:Timestamp;
samm:exampleValue "2024-07-01T16:10:00.000+01:00"^^xsd:dateTime.

:validTo a samm:Property;
samm:preferredName "Valid to"@en;
samm:description "End date of validity period"@en;
samm:characteristic samm-c:Timestamp;
samm:exampleValue "2024-07-01T16:10:00.000+01:00"^^xsd:dateTime.
1 change: 1 addition & 0 deletions io.catenax.software_information/1.0.0/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"status" : "release"}
7 changes: 7 additions & 0 deletions io.catenax.software_information/RELEASE_NOTES.md
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] 2023-10-02
Copy link
Contributor

Choose a reason for hiding this comment

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

please change the date to 8 April.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@agg3fe Done! :)


- initial version of the aspect model for Software Information