-
Notifications
You must be signed in to change notification settings - Fork 26
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
Change V3.1 #358
Change V3.1 #358
Conversation
@BirgitBoss So currently we have: <something_48c66017> rdf:type aas:Submodel ;
<https://admin-shell.io/aas/3/0/Identifiable/id> "something_48c66017"^^xs:string ;
<https://admin-shell.io/aas/3/0/Submodel/submodelElements> [
rdf:type aas:Property ;
<https://admin-shell.io/aas/3/0/Referable/idShort> "something3fdd3eb4"^^xs:string ;
<https://admin-shell.io/aas/3/0/Property/valueType> <https://admin-shell.io/aas/3/0/DataTypeDefXsd/Double> ;
###
<https://admin-shell.io/aas/3/0/Property/value> "1234.01234"^^xs:string ;
] ;
. but it should be: <something_48c66017> rdf:type aas:Submodel ;
<https://admin-shell.io/aas/3/0/Identifiable/id> "something_48c66017"^^xs:string ;
<https://admin-shell.io/aas/3/0/Submodel/submodelElements> [
rdf:type aas:Property ;
<https://admin-shell.io/aas/3/0/Referable/idShort> "something3fdd3eb4"^^xs:string ;
<https://admin-shell.io/aas/3/0/Property/valueType> <https://admin-shell.io/aas/3/0/DataTypeDefXsd/Double> ;
###
<https://admin-shell.io/aas/3/0/Property/value> "1234.01234"^^xs:double;
] ;
. It might be a breaking change, but it doesn't cause any issues for roundtrips, since the metamodel anyways use XSD datatypes. This would allow to write SPARQL query easier (numeric aggeragation, comparison, ...) |
Thank you for pointing to this issue. They are both about data types but your problem is more tricky because the type of the property is not always the same but depends on its semantic definition and implementation. For the SME "File" the type is static. So I prefer to discuss the typing issue of Properties (and similar SME) in #284 and to discuss only data type "PathType" in this issue. Thank you for your understanding. |
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.
I think we should stick with RFC3986, which defines URIs, that are required to resolve resources. This also addresses the issue of fishing attacks with character symbols, that look like the original ones, but lead to a different address. URIs don't have this issue, while IRIs do.
documentation/IDTA-01001/modules/ROOT/pages/Spec/IDTA-01001_Metamodel_DataTypes.adoc
Outdated
Show resolved
Hide resolved
+ added links to xsd schema
@alexgordtop can you now approve of the PR after the changes made? |
PathType should not change its type! Rather, it should migrate the constraints from RFC8089 to RFC3987. This could be achieved by changing from matchesRFC8089 to matchesXsAnyUri. This is necessary to avoid having to create an entire new RegEx from @s-heppner or @mristin because of time constraints. The task force wanted the change from RFC8089 to RFC3987, but nobody wanted to make the change. According to version 3.0, PathType is an Identifier that is also subject to the matchesRFC8089 constraint. The PathType cannot simply be changed to anyUri because anyUri is not a primitive type. This is breaking to version 3.0 and cannot be implemented in aas-core. |
documentation/IDTA-01001/modules/ROOT/pages/IDTA-01001_ChangeLog.adoc
Outdated
Show resolved
Hide resolved
documentation/IDTA-01001/modules/ROOT/pages/IDTA-01001_ChangeLog.adoc
Outdated
Show resolved
Hide resolved
documentation/IDTA-01001/modules/ROOT/pages/Spec/IDTA-01001_Metamodel_DataTypes.adoc
Outdated
Show resolved
Hide resolved
…og.adoc Co-authored-by: Nico Braunisch <[email protected]>
…og.adoc Co-authored-by: Nico Braunisch <[email protected]>
…tamodel_DataTypes.adoc Co-authored-by: Nico Braunisch <[email protected]>
see revised decision in #299 |
Note: URL, based on [RFC-3986](https://www.rfc-editor.org/rfc/rfc3987) /[RFC-3987](https://www.rfc-editor.org/rfc/rfc3987), but more recently defined as living standard by WHATWG, as suggested by W3C: https://url.spec.whatwg.org/ | ||
"[anyURI supports a] wide range of internationalized resource identifiers can be specified when an anyURI is called for, and still be understood as URIs per https://www.w3.org/TR/xmlschema11-2/#RFC3986[RFC 3986] and its successor(s)." | ||
|
||
Source: https://www.w3.org/TR/xmlschema11-2/#anyURI[W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes] |
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.
Source: https://www.w3.org/TR/xmlschema11-2/#anyURI[W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes] | |
Source: https://www.w3.org/TR/xmlschema-2/#anyURI[W3C XML Schema Definition Language (XSD) 1.0 Part 2: Datatypes] |
|
||
|
||
==== | ||
Note: URL, based on [RFC-3986](https://www.rfc-editor.org/rfc/rfc3987) /[RFC-3987](https://www.rfc-editor.org/rfc/rfc3987), but more recently defined as living standard by WHATWG, as suggested by W3C: https://url.spec.whatwg.org/ | ||
"[anyURI supports a] wide range of internationalized resource identifiers can be specified when an anyURI is called for, and still be understood as URIs per https://www.w3.org/TR/xmlschema11-2/#RFC3986[RFC 3986] and its successor(s)." |
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.
"[anyURI supports a] wide range of internationalized resource identifiers can be specified when an anyURI is called for, and still be understood as URIs per https://www.w3.org/TR/xmlschema11-2/#RFC3986[RFC 3986] and its successor(s)." | |
"[anyURI supports a] wide range of internationalized resource identifiers can be specified when an anyURI is called for, and still be understood as URIs per https://www.w3.org/TR/xmlschema-2/#RFC2396[RFC 2396] and https://www.w3.org/TR/xmlschema-2/#RFC2732[RFC 2732] ." |
"2000-01-01T14:23:00.66372+14:00"footnote:[Corresponds to xs:dateTimeStamp in XML Schema 1.1] | ||
|xsd |duration |Duration of time |"-P1Y2M3DT1H", + | ||
|
||
|xsd |https://www.w3.org/TR/xmlschema2/#duration[duration] |Duration of time |"-P1Y2M3DT1H", + |
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.
|xsd |https://www.w3.org/TR/xmlschema2/#duration[duration] |Duration of time |"-P1Y2M3DT1H", + | |
|xsd |https://www.w3.org/TR/xmlschema-2/#duration[duration] |Duration of time |"-P1Y2M3DT1H", + |
|
||
FTP://unicode.org | ||
|
||
|xsd |https://www.w3.org/TR/xmlschema2/#dateType[dateType] |Date and time with or without time zone |"2000-01-01T14:23:00", + |
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.
|xsd |https://www.w3.org/TR/xmlschema2/#dateType[dateType] |Date and time with or without time zone |"2000-01-01T14:23:00", + | |
|xsd |https://www.w3.org/TR/xmlschema-2/#dateTime[dateTime] |Date and time with or without time zone |"2000-01-01T14:23:00", + |
|
||
|xsd |https://www.w3.org/TR/xmlschema2/#base64Binary[base64Binary] |base64-encoded binary data |"a3Vtb3dhc2hlcmU=" | ||
|
||
|xsd |https://www.w3.org/TR/xmlschema2/#boolean[boolean] |true, false |true, false |
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.
|xsd |https://www.w3.org/TR/xmlschema2/#boolean[boolean] |true, false |true, false | |
|xsd |https://www.w3.org/TR/xmlschema-2/#boolean[boolean] |true, false |true, false |
|xsd |boolean |true, false |true, false | ||
|xsd |dateType |Date and time with or without time zone |"2000-01-01T14:23:00", + | ||
|
||
|xsd |https://www.w3.org/TR/xmlschema2/#base64Binary[base64Binary] |base64-encoded binary data |"a3Vtb3dhc2hlcmU=" |
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.
|xsd |https://www.w3.org/TR/xmlschema2/#base64Binary[base64Binary] |base64-encoded binary data |"a3Vtb3dhc2hlcmU=" | |
|xsd |https://www.w3.org/TR/xmlschema-2/#base64Binary[base64Binary] |base64-encoded binary data |"a3Vtb3dhc2hlcmU=" |
|
||
See Clause 5.3.12.6 for constraints on types. | ||
|
||
.Simple Data Types Used in Metamodel | ||
[cols="10%,19%,38%,33%",options="header",] | ||
|=== | ||
|Source |Basic Data Type |Value Range |Sample Values | ||
|xsd |string |Character string (but not all Unicode character strings) |"Hello world", "Καλημέρα κόσμε", + | ||
|
||
|xsd |https://www.w3.org/TR/xmlschema2/#string[string] |Character string (but not all Unicode character strings) |"Hello world", "Καλημέρα κόσμε", + |
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.
|xsd |https://www.w3.org/TR/xmlschema2/#string[string] |Character string (but not all Unicode character strings) |"Hello world", "Καλημέρα κόσμε", + | |
|xsd |https://www.w3.org/TR/xmlschema-2/#string[string] |Character string (but not all Unicode character strings) |"Hello world", "Καλημέρα κόσμε", + |
Allways a good idea to mege unaproved PRs. (Edit by @s-heppner): Fix typo in comment |
This issue closes
#299
shall be anyUri instead of string + length restriction and note
add anyUri to basic data types section
change PathType definition
update ChangeLog
closes #361