info
Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.
Identifier Management
Authorized users can register identifier schemes using namespaces, and application identifiers that will be used in the Identity Digital Resolver (IDR) service.
Identifier Structure
The identifier management system uses a JSON structure to define each namespace and its associated application identifiers. Each identifier scheme is stored in its own file, with the filename constructed as: {OBJECT_STORAGE_BUCKET_NAME}/{IDENTIFIER_PATH}/{namespace}.json
.
Here's an example of the structure for a single identifier scheme:
{
"id": "identifiers/gs1",
"namespace": "gs1",
"namespaceURI": "",
"namespaceProfile": "",
"applicationIdentifiers": [
{
"title": "Global Trade Item Number (GTIN)",
"label": "GTIN",
"shortcode": "gtin",
"ai": "01",
"type": "I",
"regex": "(\\d{12,14}|\\d{8})",
"qualifiers": ["10"]
},
{
"title": "Batch or lot number",
"label": "BATCH/LOT",
"shortcode": "lot",
"ai": "10",
"type": "Q",
"regex": "([\\x21-\\x22\\x25-\\x2F\\x30-\\x39\\x41-\\x5A\\x5F\\x61-\\x7A]{0,20})"
}
]
}
Identifier Properties
Each identifier JSON object consists of the following top-level properties:
id
: A unique identifier for the scheme, in the format{IDENTIFIER_PATH}/{namespace}
namespace
: The namespace of the identifier schemenamespaceURI
: The base URI of the namespace link type vocabulary (if applicable). Defaults to internal URIhttp://localhost:3000/api/1.0.0/voc/
.namespaceProfile
: The URI to the link type vocabulary profile of the namespace (if applicable). Defaults to internal URIhttp://localhost:3000/api/1.0.0/voc/?show=linktypes
.applicationIdentifiers
: An array of application identifiers associated with this namespace that can be registered with the IDR.