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

Change V3.1 #358

Merged
merged 10 commits into from
Feb 29, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Major Changes:


* New value "Role" to enumeration AssetKind (https://github.com/admin-shell-io/aas-specs/issues/294[#294])
* PathType: support complete URI scheme for files RFC3986/RFC3987 (https://github.com/admin-shell-io/aas-specs/issues/299[#299])
* Change PathType: type changed from string to anyUri, length restriction 2024. Reason is to support relative path and other URL schemes (https://github.com/admin-shell-io/aas-specs/issues/299[#299])
BirgitBoss marked this conversation as resolved.
Show resolved Hide resolved
* data type Identifier: change length from 2000 to 2024 characters (https://github.com/admin-shell-io/aas-specs/issues/306[#306])
* Referable/idShort and Constraint AASd-002: now also allows hyphens to be included in name (https://github.com/admin-shell-io/aas-specs/issues/295[#295])
* Entity/entityType and Constraint AASd-014: entityType now optional (https://github.com/admin-shell-io/aas-specs/issues/287[#287])
Expand Down Expand Up @@ -103,7 +103,7 @@ Bugfixes:
| | Identifier a| data type: change length from 2000 to 2024 characters
| | MultiLanguageNameType a| (bugfix in Text only) maxLength=128 (as derived and implemented)
| | NameType a| implicit change due to change of Constraint AASd-002
| | PathType a| extend data type to support complete URI scheme for files RFC3986/RFC3987
| | PathType a| type changed from string to anyUri, max length 2024
BirgitBoss marked this conversation as resolved.
Show resolved Hide resolved
| | Qualifier/Kind a| (bugfix in Text only) attribute starts with small letter
| | Referable/idShort a| implicit change because constraint AASd-002 now also allows hyphen
|===
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,39 @@ SPDX-License-Identifier: CC-BY-4.0

== Predefined Simple Data Types

The metamodel of the Asset Administration Shell uses basic data types as defined in the link:https://www.w3.org/XML/Core/[XML Schema Definition] (XSD)footnote:[https://www.w3.org/XML/Core/, former https://www.w3.org/XML/Schema]. See Table 7 for an overview of the used types. Their definition is outside the scope of this document.
The metamodel of the Asset Administration Shell uses some of the predefined simple data types of the link:https://www.w3.org/XML/Core/[XML Schema Definition] (XSD)
as its basic data types footnote:[https://www.w3.org/XML/Core/, former https://www.w3.org/XML/Schema]. See Table 7 for an overview of the used types. Their definition is outside the scope of this document.
BirgitBoss marked this conversation as resolved.
Show resolved Hide resolved

The meaning and format of xsd types is specified in https://www.w3.org/XML/Schema. The simple type "langString" is specified in the Resource Description Framework (RDF)footnote:[see: https://www.w3.org/TR/rdf11-concepts/].
The meaning and format of xsd types is specified in https://www.w3.org/XML/Schema. The simple type "langString" is specified in the Resource Description Framework (RDF) footnote:[see: https://www.w3.org/TR/rdf11-concepts/].

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 |base64Binary |base64-encoded binary data |"a3Vtb3dhc2hlcmU="

|xsd |boolean |true, false |true, false

|xsd |anyUri | Represents an Internationalized Resource Identifier Reference (IRI) conformant to https://www.ietf.org/rfc/rfc3987.txt[RFC 3987], can be absolute or relative, and may have an optional fragment identifier a| {blank}./Specification.pdf
BirgitBoss marked this conversation as resolved.
Show resolved Hide resolved

file:c:/local/Specification.pdf

\http://www.example.org

FTP://unicode.org

|xsd |dateType |Date and time with or without time zone |"2000-01-01T14:23:00", +
"2000-01-01T14:23:00.66372+14:00"footnote:[Corresponds to xs:dateTimeStamp in XML Schema 1.1]

|xsd |duration |Duration of time |"-P1Y2M3DT1H", +
"PT1H5M0S"

|rdf |langString |Strings with language tags a|
"Hello"@en, +
"Hallo"@de
Expand Down Expand Up @@ -174,18 +189,25 @@ Each string within langString has a max of 1,023 and min of 1 characters.
.2+e|[[NameType]]NameType 2+| `\https://admin-shell.io/aas/3/0/NameType`
a|_string_ with max 128 and min 1 characters |"ManufacturerPartId"



.2+e|[[PathType]]PathType 2+| `\https://admin-shell.io/aas/3/1/PathType`
a|
_Identifier_

_anyUri_

with max 2024 and min 1 characters


====
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 [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]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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]

====


a|
./Specification.pdf
{blank}./Specification.pdf

file:c:/local/Specification.pdf

Expand Down
Loading