-
Notifications
You must be signed in to change notification settings - Fork 47
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
Batch 2.0.0 #286
Batch 2.0.0 #286
Conversation
- deleted properties customerId and nameAtCustomer - added regularExpression for key - changed description of key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my comments. Json will validate as soon as the example value is fixed
io.catenax.batch/RELEASE_NOTES.md
Outdated
@@ -2,6 +2,15 @@ | |||
All notable changes to this model will be documented in this file. | |||
|
|||
## [Unreleased] | |||
## [2.0.0] - 2022-08-23 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be the date of the MS3 release. You can adjust after the MS3 approval on Monday
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
io.catenax.batch/2.0.0/Batch.ttl
Outdated
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. | ||
@prefix : <urn:samm:io.catenax.batch:2.0.0#>. | ||
@prefix ext-batch: <urn:samm:io.catenax.batch:1.0.2#>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really import things from the previous version of the batch model? Also, I assume, we do not have a model batch 1.0.3. I would propose to not import anything from an outdated version of a model. Thus, would remove those imports at all and, if required, copy those elements into the model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
samm:properties (:catenaXId :localIdentifiers :manufacturingInformation :partTypeInformation); | ||
samm:operations (); | ||
samm:events (). | ||
:catenaXId a samm:Property; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an info but nothing to act upon: with the industry core effort, the handling of the catenax id might be harmonized and it is required to adjust here. For now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay thanks
io.catenax.batch/2.0.0/Batch.ttl
Outdated
samm:preferredName "Identifier Key"@en; | ||
samm:description "The key of a local identifier. "@en; | ||
samm:characteristic :KeyTrait; | ||
samm:exampleValue "BatchID". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
example value does not match the regex constraint
.localIdentifiers[0].key should match pattern "^(manufacturerId|batchId)$"
"BatchID"
change example value to batchId to match
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
io.catenax.batch/2.0.0/Batch.ttl
Outdated
samm:exampleValue "raw material". | ||
:KeyTrait a samm-c:Trait; | ||
samm:preferredName "Key Trait "@en; | ||
samm:description "Trait that ensures the usage of predefined keys. "@en; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove whitespace at the end of the string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
io.catenax.batch/2.0.0/Batch.ttl
Outdated
samm:dataType xsd:string. | ||
:ClassificationCharacteristic a samm-c:Enumeration; | ||
samm:preferredName "Classification Characteristic"@en; | ||
samm:description "A part type must be placed into one of the following classes: 'component', 'product', 'software', ?assembly?, 'tool', or 'raw material'."@en; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?assembly? -> question marks? still under discussion or what does that mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
io.catenax.batch/2.0.0/Batch.ttl
Outdated
:CountryCodeRegularExpression a samm-c:RegularExpressionConstraint; | ||
samm:preferredName "Country Code Regular Expression"@en; | ||
samm:description "Regular Expression that ensures a three-letter code "@en; | ||
samm:value "^[A-Z][A-Z][A-Z]$". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't this be improved to "^[A-Z]{3}$"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
io.catenax.batch/2.0.0/Batch.ttl
Outdated
samm:see <https://www.iso.org/iso-3166-country-codes.html>. | ||
:CountryCodeRegularExpression a samm-c:RegularExpressionConstraint; | ||
samm:preferredName "Country Code Regular Expression"@en; | ||
samm:description "Regular Expression that ensures a three-letter code "@en; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove whitespace als please check the remaining document, if there are further places with whitespace and the end of a string (eg L170)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@BenediktMuellerIML I have updated the example value on line 103 to produce a validating example json payload. Now MS2 can be assigned |
Thank you! I must have overlooked that capital D when correcting the example value. |
@BenediktMuellerIML @LuisRickert is anyone of you initiating the MS3 review today? |
Not from me, but i didn't work on this model anyway. |
Yes, we will be able to initiate MS3. However, the Testdata is still in progress: https://jira.catena-x.net/projects/TDG/issues/TDG-26?filter=allopenissues |
MS3 approval conditionally given under the condition that the use case and especially the data providers verify that the intended behavior of the localIdentifier-List is to have the possibility to not provide a manufacturerId or batchId. |
We discussed it internally, and can verify that it is intended like this. However, this will need to be revised in the future. |
Description
Updated to Batch 2.0.0. Added Regular expression for KeyCharacteristic and removed properties nameAtCustomer and customerId for compliance reasons.
-->
Closes #281
MS2 Criteria
(to be filled out by PR reviewer)
DismantlerId
andDismantlerName
use an EntityDismantler
with the propertiesname
andid
or use a URN likeio.catenax.dismantler:0.0.1
)preferredName
anddescription
are not the samepreferredName
should be human readable and follow normal orthography (e.g., no camel case but normal word separation)MS3 Criteria
(to be filled out by semantic modeling team before merge to main-branch)