IRDI structure: RAI#DI#VI#
IRDI (International Registration Data Identifier) follows the RAI#DI#VI identifier structure of ISO/IEC 11179-6. ECLASS describes its IRDIs as based on ISO/IEC 11179-6, ISO 29002 and ISO/IEC 6523.
The three parts separated by '#' are the RAI (registration authority identifier), the DI (data identifier) and the VI (version identifier). In the ISO 29002-5 format the RAI is 'ICD-OI' (optional parts may follow) and the DI is 'code space identifier (CSI)-item code'. ECLASS names 0173 as its own code (ISO is 0112).
Copy the code, or select it to copy manually.
0173-1 # 02-AAO677 # 004
RAI DI VI
0173 ICD: ISO/IEC 6523 international code designator (0173 = ECLASS)
1 OI: organization identifier
02 CSI: code space identifier (02 = property)
AAO677 item code: ECLASS 6-character concept code
004 VI: version of this conceptCode space identifiers: the two digits after '#'#
The first two characters of the DI give the kind of concept. Below are the main CSIs used in ECLASS XML, with examples taken from IDTA templates or ECLASS documents.
The item code has six characters. Codes starting with X are reserved for users, Y for manufacturers, and Z is ECLASS-internal. The 8-digit ECLASS class number (ClassCodedName, e.g. 27274001) is not an IRDI; in the TS 28 example (ECLASS 14.0) the IRDI of that class is 0173-1#01-AGZ376#021.
| CSI | Kind | Example | Where it appears |
|---|---|---|---|
| 01 | class (aspects and blocks also use 01) | 0173-1#01-AGZ376#021 (Inductive proximity switch) | IDTA/ECLASS guideline (ECLASS TS 28) |
| 02 | property | 0173-1#02-AAO677#004 (ManufacturerName) | Digital Nameplate 3.0.3 |
| 05 | unit of measure | 0173-1#05-AAA480#004 (mm) | ECLASS TS 28 |
| 07 | property value | 0173-1#07-DAA603#004 (CE) | Digital Nameplate 3.0.1 specification |
| 11 | ontology (ECLASS release IRDIs) | 0173-1#11-ECLASS15.0#001 | ECLASS release numbering page |
Putting an IRDI into an AAS#
Put the IRDI into an ExternalReference with a single key. The first key of an ExternalReference must be of type GlobalReference (AASd-122). The whole IRDI goes into the key value unchanged.
Official material shows two conventions. Digital Nameplate 3.0 describes properties with IEC CDD IRDIs as semanticId and gives the matching ECLASS IRDI in supplementalSemanticIds. The joint IDTA/ECLASS guideline (ECLASS TS 28) puts the ECLASS URL form in semanticId and the IRDI in supplementalSemanticIds in its §5.1.1 example, and uses only the URL form in the other examples. Follow the template you implement.
Values and units take IRDIs too: valueId points to a coded value (ECLASS #07) and unitId in the IEC 61360 data specification to a unit (ECLASS #05). Below, the semanticId and supplementalSemanticIds of the first element are copied from Digital Nameplate 3.0.3 (the value is made up); the second is the TS 28 example converted from XML to JSON (displayName omitted).
[
{
"modelType": "MultiLanguageProperty",
"idShort": "ManufacturerName",
"semanticId": {"type": "ExternalReference",
"keys": [{"type": "GlobalReference", "value": "0112/2///61987#ABA565#009"}]},
"supplementalSemanticIds": [{"type": "ExternalReference",
"keys": [{"type": "GlobalReference", "value": "0173-1#02-AAO677#004"}]}],
"value": [{"language": "en", "text": "Example Corp."}]
},
{
"modelType": "Property",
"idShort": "diameter",
"semanticId": {"type": "ExternalReference",
"keys": [{"type": "GlobalReference", "value": "https://api.eclass-cdp.com/0173-1-02-AAC895-008"}]},
"supplementalSemanticIds": [{"type": "ExternalReference",
"keys": [{"type": "GlobalReference", "value": "0173-1#02-AAC895#008"}]}],
"valueType": "xs:float",
"value": "20"
}
]IRDI form, URL form and '/' paths#
One concept can be written as several strings. The ECLASS web service (V2) and the URI Path specification (ECLASS TS 15) use '-' instead of '#'. Part 1 notes that ECLASS and IEC CDD use different delimiters in IRDIs and also shows a '/'-delimited form.
Under Part 1's default exact matching, the three strings below are different IDs. Treating them as equal is intelligent matching chosen by the reader, so do not mix spellings within one model.
A URL form is still an identifier. The ECLASS web service requires certificate authentication, so opening the URL in a browser may not show the definition. A host name that differs by one character makes a different ID: copy the template's string into the model as is, and when you call the web service, use the address given in your ECLASS access documents. The URL example in the table below is the one shown in Part 1 and TS 28 §3.3.
Values such as 0173-1#02-ABI218#003/0173-1#01-AGZ672#004 (AssetSpecificProperties in Digital Nameplate 3.0.x) join two IRDIs with '/'. TS 28 explains that an ECLASS block is always used through a reference property, and TS 15 and TS 28 write the reference property (CSI 02) and the block (CSI 01) together in the path. The whole string is one key value.
| Form | Example |
|---|---|
| IRDI | 0173-1#02-AAC895#008 |
| URL (ECLASS web service form, Part 1 example) | https://api.eclass-cdp.com/0173-1-02-AAC895-008 |
| '/'-delimited (Part 1 example) | 0173/1///02#AAC895#008 |
When versions differ (#002 vs #004)#
The VI is not the ECLASS release number (14.0, 15.0) but a number kept per element. ECLASS's own example: even if the name, definition and unit of property AAA123-001 all change, the next release raises it by one step only, to AAA123-002.
The ECLASS IRDI of ManufacturerName is 0173-1#02-AAO677#002 (semanticId) in Digital Nameplate 2.0 and 0173-1#02-AAO677#004 (supplementalSemanticId) in 3.0. The 3.0 change notes say that its semantic and supplemental semantic IDs refer to the latest dictionary versions (e.g. ECLASS 15.0).
Under exact matching they are different IDs. Part 1 cites the ECLASS rule that new versions stay backward compatible (breaking changes get a new IRDI) as a basis for version-ignoring matching, but that is optional. ECLASS notes that version changes such as a modified unit usually require users to migrate data.
- Writers: copy the template's IRDI including the version. Do not bump it yourself.
- Readers: to ignore versions, compare RAI and DI, document the rule, and check for unit changes.
- Check ConceptDescription ids too; they may not equal the semanticId exactly. In Digital Nameplate 3.0.3 the semanticId of AssetSpecificProperties is the path …ABI218#003/0173-1#01-AGZ672#004, while the ConceptDescription with the same idShort has the id 0173-1#01-AGZ672#001. Exact matching does not link the two.
Finding an IRDI and common mistakes#
If an IDTA template exists, copy the IRDI from its JSON or AASX. For other concepts, use 'Search ECLASS content' on the ECLASS website: choose Basic or Advanced, the release and the language, then search classification, properties, values or units. ECLASS says the latest releases can be viewed and searched free of charge, and notes that applying the ECLASS standard requires a license (see the ECLASS Terms of Use). According to ECLASS, its web service for direct system integration authenticates with a certificate and is billed by the number of IRDIs retrieved (pay per IRDI); the certificate and REST API retrieval are free for Ordinary Members of ECLASS e.V. and Concordance licensees.
- Raw IRDIs in URLs: everything after '#' is a fragment and normally never reaches the server. The AAS API base64url-encodes identifiers in paths, and for ?semanticId= it serializes the Reference to JSON and base64url-encodes it (Part 2 v3.2). That query also finds supplementalSemanticIds.
- Choosing by code alone: in Digital Nameplate 3.0 the supplementalSemanticId of FirmwareVersion was 0173-1#02-AAN270#004, the same as HardwareVersion; 3.0.1 changed it to 0173-1#02-AAM985#004 (issue #123). Check the preferred name and definition too.
Key points#
- An ECLASS IRDI is RAI (0173-1) # DI (CSI-item code) # VI (version); #01 is a class, #02 a property, #05 a unit, #07 a value.
- In an AAS it is an ExternalReference with one GlobalReference key; copy the template's spelling (IRDI or URL) and version exactly.
- #002 vs #004, and IRDI vs URL form, are different IDs under exact matching; base64url-encode them before putting them in an API URL.
Questions and answers#
Are 0173-1#02-AAO677#002 and #004 the same property?
They are two versions of the same ECLASS concept (AAO677). Under the default exact matching they are different IDs; matching that ignores versions is intelligent matching chosen by the reader.
Do I need an ECLASS license to use ECLASS IRDIs?
ECLASS says the latest releases can be viewed and searched on its website free of charge, but also states that applying the ECLASS standard requires a license. Check the ECLASS Terms of Use and license information for your use case.
Should semanticId hold the IRDI or the URL form?
Follow your template. Digital Nameplate 3.0 puts the ECLASS IRDI in supplementalSemanticIds; in its §5.1.1 example, TS 28 puts the URL form in semanticId and the IRDI in supplementalSemanticIds. Without a template, agree on one form with your partners.
What if the concept is not in ECLASS?
Part 1 names IRIs for properties that are not standardized but globally unique. Define the concept under an IRI in your own domain and ship a ConceptDescription so receivers can read the definition. ECLASS reserves item codes starting with X (user) and Y (manufacturer) for company-specific use and also mentions using an ICD other than 0173.
