Skip to main content

GS1 EPC URI - Digital Link URI Translator

Translates EPC URIs and EPC Class URIs into their corresponding canonical GS1 Digital Link URI equivalents.

Introduction

The EPC Pure Identity URI (or simply EPC URI) is a universal identifier for any physical or digital object such as products, assets, logistics units, documents, or locations. It is the preferred way within information systems to denote arbitrary business objects. Applications based on EPCIS, GS1’s core standard for supply chain visibility, SHOULD use this syntax. It takes the form of a Uniform Resource Name (URN), which, taking the example of an SGTIN (= Serialised Global Trade Item Number) looks sth. like this: urn:epc:id:sgtin:4012345.011111.987.

A GS1 Digital Link URI is another GS1 URI, introduced especially to enable web applications through embedding GS1 keys and descriptive attributes into a web-friendly syntax. It SHOULD NOT be used in EPCIS for the purpose of identifying objects or locations. It takes the form of a Web URI, which, taking the above example, looks like this: https://id.gs1.org/01/04012345111118/21/987 or https://example.com/01/04012345111118/21/987?15=211231.

In case organisation wish to combine the powerful features of both supply chain visibility and accessibility to object-related information in the web (e.g. product description page or patient information leaflet), they need to translate EPC URIs into GS1 Digital Link URIs. As GS1 Digital Link URIs can also be constructed with company-specific domain names, this script can easily be adapted to also support custom domain names (e.g "example.com").

Supported EPC/EPC Class URIs

  • SGTIN: Serialised Global Trade Item Number
  • SSCC: Serial Shipping Container Code
  • SGLN: Global Location Number with or without extension
  • GRAI: Global Returnable Asset Identifier
  • GIAI: Global Individual Asset Identifier
  • GSRN: Global Service Relation Number - Recipient
  • GSRNP: Global Service Relation Number – Provider
  • GDTI: Global Document Type Identifier
  • CPI: Component / Part Identifier
  • SGCN: Serialised Global Coupon Number
  • GINC: Global Identification Number for Consignment
  • GSIN: Global Shipment Identification Number
  • ITIP: Individual Trade Item Piece
  • UPUI: Unit Pack Identifier
  • PGLN: Global Location Number of Party
  • LGTIN: GTIN + Batch/Lot

Note that the remaining EPC schemes as defined in the EPC Tag Data Standard, namely GID, USDOD, ADI, and BIC, are not supported as they lack a GS1 Company Prefix, thus cannot be translated into GS1 Element Strings/GS1 Digital Link URIs.

References

Metadata

Release files for epcdltranslator 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for epcdltranslator 1.0.0
File Size Uploaded
epcdltranslator-1.0.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for epcdltranslator 1.0.0
File Interpreter ABI Platform
epcdltranslator-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / epcdltranslator-1.0.0.tar.gz

Download URL epcdltranslator-1.0.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
719e357ef5e0bc8dca3140b337653b6e5c31e4f9ce842be4df365b81c877bd02
BLAKE2b-256 checksum
How to use checksums
e5c215514263de642bf59ab94adb471b1d2a4b758650900d5aab646d3b879897
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release files / epcdltranslator-1.0.0-py3-none-any.whl

Download URL epcdltranslator-1.0.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32cb0e26a39439c2edced28f46787d165eb67cb4fb18ed82ad4208eb2747073a
BLAKE2b-256 checksum
How to use checksums
6e268cb6f1bad0e775a6bbd71c69f3c18f45142b46deaac7968d75686c036447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page