Skip to content

Commit

Permalink
Ratified TDT 2.2 "demo" and "artefacts" folders
Browse files Browse the repository at this point in the history
Copied "demo" and "artefacts" folders from "2.0.0-draft" folder to https://github.com/gs1/TDT root following TDT 2.2 ratification.
  • Loading branch information
CraigRe committed Feb 13, 2025
1 parent c71bf5e commit 74d505f
Show file tree
Hide file tree
Showing 96 changed files with 662,249 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
894 changes: 894 additions & 0 deletions artefacts/JSON/ADI-var.json

Large diffs are not rendered by default.

160 changes: 160 additions & 0 deletions artefacts/JSON/CPI+.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"tdt:epcTagDataTranslation": {
"version": "2.2",
"date": "2024-11-18T16:30:00Z",
"epcTDSVersion": "2.2",
"scheme": {
"name": "CPI+",
"optionKey": "1",
"level": [
{
"type": "BINARY",
"prefixMatch": "11110000",
"requiredFormattingParameters": "filter,dataToggle",
"option": [
{
"optionKey": "1",
"pattern": "^11110000([01])([01]{3})",
"grammar": "'11110000' dataToggle filter encodedAI",
"field": [
{
"seq": 1,
"decimalMinimum": "0",
"decimalMaximum": "1",
"characterSet": "[01]*",
"bitPadDir": "LEFT",
"bitLength": 1,
"name": "dataToggle"
},
{
"seq": 2,
"decimalMinimum": "0",
"decimalMaximum": "7",
"characterSet": "[01]*",
"bitPadDir": "LEFT",
"bitLength": 3,
"name": "filter"
}
],
"encodedAI": [
{
"ai": "8010",
"name": "cpi",
"seq": 3
},
{
"ai": "8011",
"name": "serial",
"seq": 4
}
]
}
]
},
{
"type": "BARE_IDENTIFIER",
"prefixMatch": "cpi=",
"option": [
{
"optionKey": "1",
"pattern": "^cpi=([0-9]{4}[\\x23\\x2D\\x2F\\x30-\\x39\\x41-\\x5A]{1,26});serial=([0-9]{1,12})$",
"grammar": "'cpi=' cpi ';serial=' serial",
"field": [
{
"seq": 1,
"characterSet": "[\\x23\\x2D\\x2F\\x30-\\x39\\x41-\\x5A]*",
"name": "cpi"
},
{
"seq": 2,
"decimalMinimum": "0",
"decimalMaximum": "999999999999",
"characterSet": "[0-9]*",
"name": "serial"
}
]
}
]
},
{
"type": "GS1_AI_JSON",
"prefixMatch": "{",
"option": [
{
"optionKey": "1",
"pattern": "^\\{\\s*\"8010\"\\s*:\\s*\"([0-9]{4}[\\x23\\x2D\\x2F\\x30-\\x39\\x41-\\x5A]{1,26})\"\\s*,\\s*\"8011\"\\s*:\\s*\"([0-9]{1,12})\"",
"grammar": "'{\"8010\":\"' cpi '\",\"8011\":\"' serial '\"}'",
"aiSequence": [
"8010",
"8011"
],
"field": [
{
"seq": 1,
"characterSet": "[\\x23\\x2D\\x2F\\x30-\\x39\\x41-\\x5A]*",
"name": "cpi"
},
{
"seq": 2,
"decimalMinimum": "0",
"decimalMaximum": "999999999999",
"characterSet": "[0-9]*",
"name": "serial"
}
]
}
]
},
{
"type": "GS1_DIGITAL_LINK",
"prefixMatch": "http",
"requiredFormattingParameters": "uriStem",
"option": [
{
"optionKey": "1",
"pattern": "\\/8010\\/([0-9]{4}(?:[A-Z0-9-]|%2F|%23){1,26})\\/8011\\/([0-9]{1,12})(?:\\?|$)",
"grammar": "uriStem '/8010/' urlEncodedCpi '/8011/' serial",
"field": [
{
"seq": 1,
"characterSet": "(?:[A-Z0-9-]|%2F|%23)*",
"name": "urlEncodedCpi"
},
{
"seq": 2,
"decimalMinimum": "0",
"decimalMaximum": "999999999999",
"characterSet": "[0-9]*",
"name": "serial"
}
],
"aiSequence": [
"8010",
"8011"
]
}
],
"rule": [
{
"type": "EXTRACT",
"inputFormat": "STRING",
"seq": 1,
"newFieldName": "cpi",
"characterSet": "[\\x23\\x2D\\x2F\\x30-\\x39\\x41-\\x5A]*",
"function": "URLDECODE(urlEncodedCpi)"
},
{
"type": "FORMAT",
"inputFormat": "STRING",
"seq": 1,
"newFieldName": "urlEncodedCpi",
"characterSet": "(?:[A-Z0-9-]|%2F|%23)*",
"function": "URLENCODE(cpi)"
}
],
"gs1DigitalLinkKeyQualifiers": ["8011"]
}
]
}
}
}
Loading

0 comments on commit 74d505f

Please sign in to comment.