diff --git a/core/src/main/resources/1.2/EPCIS/XML/Capture/Documents/EPCISDocument_with_comment.xml b/core/src/main/resources/1.2/EPCIS/XML/Capture/Documents/EPCISDocument_with_comment.xml new file mode 100644 index 0000000..0fe6840 --- /dev/null +++ b/core/src/main/resources/1.2/EPCIS/XML/Capture/Documents/EPCISDocument_with_comment.xml @@ -0,0 +1,300 @@ + + + + + + + 1.0 + + urn:epc:id:sgln:030001.111111.0 + + + urn:epc:id:sgln:039999.999999.0 + + + EPCglobal + 1.0 + 1100220001 + Events + 2023-04-01T08:45:16Z + + + + + + + + + + 0001-0123-45 + US_FDA_NDC + Epcistra + GS1 Pharma LLC + PILL + 100mg + 500 pills + + + + 0001-0123-45 + US_FDA_NDC + Epcistra + GS1 Pharma LLC + PILL + 100mg + 500 pills + + + + + + + + GS1 Pharma + 1 Biopharm Ct + Suite A + Thousand Oaks + CA + 91320 + US + + + + GS1 Pharma DC + 2806 Agoura Rd + Suite 500 + Westlake Village + CA + 91361 + US + + + + GS1 Drug Distributor + 230 Park Ave S + Room 378 + New York + NY + 10003-1502 + US + + + + GS1 Drug Distributor Warehouse + 136 Main St + Suite 100 + Louisville + KY + 40218 + US + + + + + + + GS1 US DSCSA R1.3 + + true + Seller has complied with each applicable subsection of FDCA Sec. 581(27)(A)-(G). + + + + + + + 2023-03-27T06:45:16Z + -05:00 + + urn:epc:id:sgtin:030001.0012345.11 + urn:epc:id:sgtin:030001.0012345.12 + urn:epc:id:sgtin:030001.0012345.13 + urn:epc:id:sgtin:030001.0012345.14 + urn:epc:id:sgtin:030001.0012345.15 + urn:epc:id:sgtin:030001.0012345.16 + urn:epc:id:sgtin:030001.0012345.17 + urn:epc:id:sgtin:030001.0012345.18 + urn:epc:id:sgtin:030001.0012345.19 + urn:epc:id:sgtin:030001.0012345.20 + urn:epc:id:sgtin:030001.0012345.21 + urn:epc:id:sgtin:030001.0012345.22 + + ADD + urn:epcglobal:cbv:bizstep:commissioning + urn:epcglobal:cbv:disp:active + + urn:epc:id:sgln:030001.111111.0 + + + urn:epc:id:sgln:030001.111111.0 + + + + A123 + 2025-03-27 + + + + + + 2023-03-27T06:46:16Z + -05:00 + + urn:epc:id:sgtin:030001.1012345.110 + urn:epc:id:sgtin:030001.1012345.111 + urn:epc:id:sgtin:030001.1012345.121 + + ADD + urn:epcglobal:cbv:bizstep:commissioning + urn:epcglobal:cbv:disp:active + + urn:epc:id:sgln:030001.111111.0 + + + urn:epc:id:sgln:030001.111111.0 + + + + A123 + 2025-03-27 + + + + + + 2023-03-27T06:50:16Z + -05:00 + urn:epc:id:sgtin:030001.1012345.110 + + urn:epc:id:sgtin:030001.0012345.11 + urn:epc:id:sgtin:030001.0012345.12 + urn:epc:id:sgtin:030001.0012345.13 + urn:epc:id:sgtin:030001.0012345.14 + + ADD + urn:epcglobal:cbv:bizstep:packing + urn:epcglobal:cbv:disp:in_progress + + urn:epc:id:sgln:030001.111111.0 + + + urn:epc:id:sgln:030001.111111.0 + + + + + 2023-03-27T06:51:16Z + -05:00 + urn:epc:id:sgtin:030001.1012345.111 + + urn:epc:id:sgtin:030001.0012345.15 + urn:epc:id:sgtin:030001.0012345.16 + urn:epc:id:sgtin:030001.0012345.17 + urn:epc:id:sgtin:030001.0012345.18 + + ADD + urn:epcglobal:cbv:bizstep:packing + urn:epcglobal:cbv:disp:in_progress + + urn:epc:id:sgln:030001.111111.0 + + + urn:epc:id:sgln:030001.111111.0 + + + + + 2023-03-27T06:52:16Z + -05:00 + urn:epc:id:sgtin:030001.1012345.121 + + urn:epc:id:sgtin:030001.0012345.19 + urn:epc:id:sgtin:030001.0012345.20 + urn:epc:id:sgtin:030001.0012345.21 + urn:epc:id:sgtin:030001.0012345.22 + + ADD + urn:epcglobal:cbv:bizstep:packing + urn:epcglobal:cbv:disp:in_progress + + urn:epc:id:sgln:030001.111111.0 + + + urn:epc:id:sgln:030001.111111.0 + + + + + 2023-04-01T06:47:16Z + -05:00 + + urn:epc:id:sscc:030001.41234567890 + + ADD + urn:epcglobal:cbv:bizstep:commissioning + urn:epcglobal:cbv:disp:active + + urn:epc:id:sgln:030001.111121.0 + + + urn:epc:id:sgln:030001.111121.0 + + + + + 2023-04-01T06:48:16Z + -05:00 + urn:epc:id:sscc:030001.41234567890 + + urn:epc:id:sgtin:030001.1012345.110 + urn:epc:id:sgtin:030001.1012345.111 + urn:epc:id:sgtin:030001.1012345.121 + + ADD + urn:epcglobal:cbv:bizstep:packing + urn:epcglobal:cbv:disp:in_progress + + urn:epc:id:sgln:030001.111121.0 + + + urn:epc:id:sgln:030001.111121.0 + + + + + 2023-04-01T07:48:16Z + -05:00 + + urn:epc:id:sscc:030001.41234567890 + + OBSERVE + urn:epcglobal:cbv:bizstep:shipping + urn:epcglobal:cbv:disp:in_transit + + urn:epc:id:sgln:030001.111121.0 + + + + urn:epcglobal:cbv:bt:0399999999991:XYZPO189 + urn:epcglobal:cbv:bt:0300011111215:DEL100 + + + + + urn:epc:id:sgln:030001.111111.0 + urn:epc:id:sgln:030001.111121.0 + + + + urn:epc:id:sgln:039999.999999.0 + urn:epc:id:sgln:039999.345678.0 + + + false + + + + diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Documents/ObjectEvent_with_custom_bizStep_uri.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Documents/ObjectEvent_with_custom_bizStep_uri.json new file mode 100644 index 0000000..b5a843d --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Documents/ObjectEvent_with_custom_bizStep_uri.json @@ -0,0 +1,31 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "https://example.com/bizStep/repacking", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_events_with_missing_mandatory_fields.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_events_with_missing_mandatory_fields.json new file mode 100644 index 0000000..af6375b --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_events_with_missing_mandatory_fields.json @@ -0,0 +1,70 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_multiple_invalid_fields.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_multiple_invalid_fields.json new file mode 100644 index 0000000..75289de --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_multiple_invalid_fields.json @@ -0,0 +1,110 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "transforming", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "CREATE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "intransit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "22-07-2026T09:20:00+02:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + }, + "quantityList": [ + { + "epcClass": "urn:epc:idpat:sgtin:4012345.098765.*", + "quantity": "ten", + "uom": "KGM" + } + ] + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_non_standard_bizStep_and_disposition.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_non_standard_bizStep_and_disposition.json new file mode 100644 index 0000000..342ad5b --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_non_standard_bizStep_and_disposition.json @@ -0,0 +1,46 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "transforming", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "intransit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/EPCISDocument_without_context.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/EPCISDocument_without_context.json new file mode 100644 index 0000000..622d561 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/EPCISDocument_without_context.json @@ -0,0 +1,25 @@ +{ + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_ilmd_field_without_namespace.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_ilmd_field_without_namespace.json new file mode 100644 index 0000000..7ffeb64 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_ilmd_field_without_namespace.json @@ -0,0 +1,34 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "ADD", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + }, + "ilmd": { + "materialType": "cotton" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_action.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_action.json new file mode 100644 index 0000000..8c492db --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_action.json @@ -0,0 +1,31 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "CREATE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_certificationInfo.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_certificationInfo.json new file mode 100644 index 0000000..c6ec423 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_certificationInfo.json @@ -0,0 +1,32 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + }, + "certificationInfo": 42 + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_eventTime_format.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_eventTime_format.json new file mode 100644 index 0000000..a819bd7 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_eventTime_format.json @@ -0,0 +1,31 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "22-07-2026T09:20:00+02:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_bizStep.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_bizStep.json new file mode 100644 index 0000000..5411e2d --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_bizStep.json @@ -0,0 +1,31 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "transforming", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_bizStep_in_second_event.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_bizStep_in_second_event.json new file mode 100644 index 0000000..f470cb3 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_bizStep_in_second_event.json @@ -0,0 +1,46 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + }, + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "transforming", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_disposition.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_disposition.json new file mode 100644 index 0000000..39ac7d6 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_disposition.json @@ -0,0 +1,31 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "intransit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_quantity_as_text.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_quantity_as_text.json new file mode 100644 index 0000000..d372538 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_quantity_as_text.json @@ -0,0 +1,38 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + }, + "quantityList": [ + { + "epcClass": "urn:epc:idpat:sgtin:4012345.098765.*", + "quantity": "ten", + "uom": "KGM" + } + ] + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_unknown_field_in_quantityList.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_unknown_field_in_quantityList.json new file mode 100644 index 0000000..bc907c0 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_unknown_field_in_quantityList.json @@ -0,0 +1,39 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + }, + "quantityList": [ + { + "epcClass": "urn:epc:idpat:sgtin:4012345.098765.*", + "quantity": 10, + "uom": "KGM", + "weight": 5 + } + ] + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_without_action_and_eventTime.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_without_action_and_eventTime.json new file mode 100644 index 0000000..155de2b --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_without_action_and_eventTime.json @@ -0,0 +1,29 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_without_identifier_list.json b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_without_identifier_list.json new file mode 100644 index 0000000..a41a808 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_without_identifier_list.json @@ -0,0 +1,28 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld", + { + "ex": "http://ns.example.com/epcis/" + } + ], + "id": "https://id.example.org/document1", + "type": "EPCISDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Query/Invalid/QueryDocument_with_invalid_action.json b/core/src/main/resources/2.0/EPCIS/JSON/Query/Invalid/QueryDocument_with_invalid_action.json new file mode 100644 index 0000000..e1b276d --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Query/Invalid/QueryDocument_with_invalid_action.json @@ -0,0 +1,33 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld" + ], + "id": "https://id.example.org/queryDocument1", + "type": "EPCISQueryDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "queryResults": { + "queryName": "SimpleEventQuery", + "resultsBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "CREATE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } + } + } +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Query/Invalid/QueryDocument_with_invalid_eventType.json b/core/src/main/resources/2.0/EPCIS/JSON/Query/Invalid/QueryDocument_with_invalid_eventType.json new file mode 100644 index 0000000..4d2833a --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Query/Invalid/QueryDocument_with_invalid_eventType.json @@ -0,0 +1,5 @@ +{ + "@context": "https://ref.gs1.org/standards/epcis/2.0.0/query-schema.json", + "eventType": ["AssertType"], + "EQ_action": ["ADD"] +} \ No newline at end of file diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Query/Queries/Invalid/Query_with_invalid_values.json b/core/src/main/resources/2.0/EPCIS/JSON/Query/Queries/Invalid/Query_with_invalid_values.json new file mode 100644 index 0000000..2fbc308 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Query/Queries/Invalid/Query_with_invalid_values.json @@ -0,0 +1,10 @@ +{ + "@context": "https://ref.gs1.org/standards/epcis/2.0.0/query-schema.json", + "eventType": [ + "AssertType" + ], + "EQ_action": [ + "CREATE" + ], + "GE_eventTime": "22-07-2026" +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Query/Queries/Invalid/Query_with_unknown_parameter.json b/core/src/main/resources/2.0/EPCIS/JSON/Query/Queries/Invalid/Query_with_unknown_parameter.json new file mode 100644 index 0000000..101e9a5 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Query/Queries/Invalid/Query_with_unknown_parameter.json @@ -0,0 +1,7 @@ +{ + "@context": "https://ref.gs1.org/standards/epcis/2.0.0/query-schema.json", + "eventType": [ + "ObjectEvent" + ], + "GE_eventDate": "2005-04-01T00:00:00.000-06:00" +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Query/Queries/SimpleEventQuery.json b/core/src/main/resources/2.0/EPCIS/JSON/Query/Queries/SimpleEventQuery.json new file mode 100644 index 0000000..4cf0450 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Query/Queries/SimpleEventQuery.json @@ -0,0 +1,14 @@ +{ + "@context": "https://ref.gs1.org/standards/epcis/2.0.0/query-schema.json", + "eventType": [ + "ObjectEvent" + ], + "GE_eventTime": "2005-04-01T00:00:00.000-06:00", + "LT_eventTime": "2005-04-30T00:00:00.000-06:00", + "EQ_action": [ + "OBSERVE" + ], + "EQ_bizStep": [ + "shipping" + ] +} diff --git a/core/src/main/resources/2.0/EPCIS/JSON/Query/queryDocument.json b/core/src/main/resources/2.0/EPCIS/JSON/Query/queryDocument.json new file mode 100644 index 0000000..eeeedcb --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/JSON/Query/queryDocument.json @@ -0,0 +1,33 @@ +{ + "@context": [ + "https://ref.gs1.org/standards/epcis/epcis-context.jsonld" + ], + "id": "https://id.example.org/queryDocument1", + "type": "EPCISQueryDocument", + "schemaVersion": "2.0", + "creationDate": "2005-07-11T11:30:47.0Z", + "epcisBody": { + "queryResults": { + "queryName": "SimpleEventQuery", + "resultsBody": { + "eventList": [ + { + "eventID": "ni:///sha-256;df7bb3c352fef055578554f09f5e2aa41782150ced7bd0b8af24dd3ccb30ba69?ver=CBV2.0", + "type": "ObjectEvent", + "action": "OBSERVE", + "bizStep": "shipping", + "disposition": "in_transit", + "epcList": [ + "urn:epc:id:sgtin:0614141.107346.2017" + ], + "eventTime": "2005-04-03T20:33:31.116-06:00", + "eventTimeZoneOffset": "-06:00", + "readPoint": { + "id": "urn:epc:id:sgln:0614141.07346.1234" + } + } + ] + } + } + } +} diff --git a/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_bare_event_without_action.xml b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_bare_event_without_action.xml new file mode 100644 index 0000000..d423ce2 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_bare_event_without_action.xml @@ -0,0 +1,13 @@ + + + 2005-04-03T20:33:31.116-06:00 + -06:00 + + urn:epc:id:sgtin:0614141.107346.2017 + + urn:epcglobal:cbv:bizstep:shipping + urn:epcglobal:cbv:disp:in_transit + + urn:epc:id:sgln:0614141.07346.1234 + + diff --git a/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_invalid_action.xml b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_invalid_action.xml new file mode 100644 index 0000000..ff14ce6 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_invalid_action.xml @@ -0,0 +1,20 @@ + + + + + + 2005-04-03T20:33:31.116-06:00 + -06:00 + + urn:epc:id:sgtin:0614141.107346.2017 + + CREATE + urn:epcglobal:cbv:bizstep:shipping + urn:epcglobal:cbv:disp:in_transit + + urn:epc:id:sgln:0614141.07346.1234 + + + + + diff --git a/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_invalid_eventTime_format.xml b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_invalid_eventTime_format.xml new file mode 100644 index 0000000..86a0681 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_invalid_eventTime_format.xml @@ -0,0 +1,20 @@ + + + + + + 22-07-2026T09:20:00+02:00 + -06:00 + + urn:epc:id:sgtin:0614141.107346.2017 + + OBSERVE + urn:epcglobal:cbv:bizstep:shipping + urn:epcglobal:cbv:disp:in_transit + + urn:epc:id:sgln:0614141.07346.1234 + + + + + diff --git a/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_near_miss_action.xml b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_near_miss_action.xml new file mode 100644 index 0000000..2b2d214 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_near_miss_action.xml @@ -0,0 +1,20 @@ + + + + + + 2005-04-03T20:33:31.116-06:00 + -06:00 + + urn:epc:id:sgtin:0614141.107346.2017 + + OBSERV + urn:epcglobal:cbv:bizstep:shipping + urn:epcglobal:cbv:disp:in_transit + + urn:epc:id:sgln:0614141.07346.1234 + + + + + diff --git a/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_unknown_element.xml b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_unknown_element.xml new file mode 100644 index 0000000..ed6d79d --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_unknown_element.xml @@ -0,0 +1,21 @@ + + + + + + 2005-04-03T20:33:31.116-06:00 + -06:00 + + urn:epc:id:sgtin:0614141.107346.2017 + + OBSERVE + urn:epcglobal:cbv:bizstep:shipping + urn:epcglobal:cbv:disp:in_transit + + urn:epc:id:sgln:0614141.07346.1234 + + some value + + + + diff --git a/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_wrong_element_order.xml b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_wrong_element_order.xml new file mode 100644 index 0000000..4f2ef38 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_wrong_element_order.xml @@ -0,0 +1,20 @@ + + + + + + 2005-04-03T20:33:31.116-06:00 + -06:00 + OBSERVE + + urn:epc:id:sgtin:0614141.107346.2017 + + urn:epcglobal:cbv:bizstep:shipping + urn:epcglobal:cbv:disp:in_transit + + urn:epc:id:sgln:0614141.07346.1234 + + + + + diff --git a/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_without_eventTime.xml b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_without_eventTime.xml new file mode 100644 index 0000000..c3c8fc6 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_without_eventTime.xml @@ -0,0 +1,19 @@ + + + + + + -06:00 + + urn:epc:id:sgtin:0614141.107346.2017 + + OBSERVE + urn:epcglobal:cbv:bizstep:shipping + urn:epcglobal:cbv:disp:in_transit + + urn:epc:id:sgln:0614141.07346.1234 + + + + + diff --git a/core/src/main/resources/2.0/EPCIS/XML/Query/Invalid/QueryDocument_with_missing_value.xml b/core/src/main/resources/2.0/EPCIS/XML/Query/Invalid/QueryDocument_with_missing_value.xml new file mode 100644 index 0000000..b2fcb52 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Query/Invalid/QueryDocument_with_missing_value.xml @@ -0,0 +1,21 @@ + + + + + SimpleEventQuery + + + eventType + + ObjectEvent + AggregationEvent + + + + EQ_readPoint + + + + + \ No newline at end of file diff --git a/core/src/main/resources/2.0/EPCIS/XML/Query/Queries/Invalid/Query_without_queryName.xml b/core/src/main/resources/2.0/EPCIS/XML/Query/Queries/Invalid/Query_without_queryName.xml new file mode 100644 index 0000000..25ef3e7 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Query/Queries/Invalid/Query_without_queryName.xml @@ -0,0 +1,14 @@ + + + + + + + GE_eventTime + 2022-09-30T22:00:00Z + + + + + diff --git a/core/src/main/resources/2.0/EPCIS/XML/Query/Queries/SimpleEventQuery.xml b/core/src/main/resources/2.0/EPCIS/XML/Query/Queries/SimpleEventQuery.xml new file mode 100644 index 0000000..c0fd414 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Query/Queries/SimpleEventQuery.xml @@ -0,0 +1,25 @@ + + + + + SimpleEventQuery + + + eventType + + ObjectEvent + + + + GE_eventTime + 2022-09-30T22:00:00Z + + + LT_eventTime + 2022-12-30T23:00:00Z + + + + + diff --git a/core/src/main/resources/2.0/EPCIS/XML/Query/QueryDocumentWithMultipleEvents.xml b/core/src/main/resources/2.0/EPCIS/XML/Query/QueryDocumentWithMultipleEvents.xml new file mode 100644 index 0000000..ac39de1 --- /dev/null +++ b/core/src/main/resources/2.0/EPCIS/XML/Query/QueryDocumentWithMultipleEvents.xml @@ -0,0 +1,52 @@ + + + + + SimpleEventQuery + + + + 2005-04-03T20:33:31.116-06:00 + -06:00 + + urn:epc:id:sgtin:0614141.107346.2017 + + OBSERVE + urn:epcglobal:cbv:bizstep:shipping + urn:epcglobal:cbv:disp:in_transit + + urn:epc:id:sgln:0614141.07346.1234 + + + + 2005-04-04T20:33:31.116-06:00 + -06:00 + + urn:epc:id:sgtin:0614141.107346.2018 + + OBSERVE + urn:epcglobal:cbv:bizstep:receiving + urn:epcglobal:cbv:disp:in_progress + + urn:epc:id:sgln:0012345.11111.400 + + + + 2005-04-05T20:33:31.116-06:00 + -06:00 + urn:epc:id:sscc:0614141.1234567890 + + urn:epc:id:sgtin:0614141.107346.2019 + + ADD + urn:epcglobal:cbv:bizstep:packing + + urn:epc:id:sgln:0614141.07346.1234 + + + + + + + diff --git a/core/src/main/resources/openepcis-test-resources.list b/core/src/main/resources/openepcis-test-resources.list index d635a57..040e040 100644 --- a/core/src/main/resources/openepcis-test-resources.list +++ b/core/src/main/resources/openepcis-test-resources.list @@ -4,6 +4,7 @@ /1.2/EPCIS/XML/Capture/Documents/AssociationEvent.xml /1.2/EPCIS/XML/Capture/Documents/AssociationEvent_all_possible_fields.xml /1.2/EPCIS/XML/Capture/Documents/Document_with_namespace.xml +/1.2/EPCIS/XML/Capture/Documents/EPCISDocument_with_comment.xml /1.2/EPCIS/XML/Capture/Documents/GS1_US_Pharma_Example_2_2_1_1.xml /1.2/EPCIS/XML/Capture/Documents/Jumbled_attributes_order.xml /1.2/EPCIS/XML/Capture/Documents/ObjectEvent.xml @@ -34,6 +35,7 @@ /2.0/EPCIS/JSON/Capture/Documents/ObjectEvent.json /2.0/EPCIS/JSON/Capture/Documents/ObjectEvent_all_possible_fields.json /2.0/EPCIS/JSON/Capture/Documents/ObjectEvent_with_comment.json +/2.0/EPCIS/JSON/Capture/Documents/ObjectEvent_with_custom_bizStep_uri.json /2.0/EPCIS/JSON/Capture/Documents/ObjectEvent_with_digitalLink.json /2.0/EPCIS/JSON/Capture/Documents/ObjectEvent_with_error_declaration.json /2.0/EPCIS/JSON/Capture/Documents/ObjectEvent_with_persistentDisposition.json @@ -51,20 +53,43 @@ /2.0/EPCIS/JSON/Capture/Documents/TransformationEvent_with_error_declaration.json /2.0/EPCIS/JSON/Capture/Documents/TransformationEvent_with_sensorData.json /2.0/EPCIS/JSON/Capture/Documents/TransformationEvent_with_userExtensions.json +/2.0/EPCIS/JSON/Capture/Documents/epcisDocWithAllGS1Keys.json +/2.0/EPCIS/JSON/Capture/Documents/epcisDocWithSensorComponent.json /2.0/EPCIS/JSON/Capture/Events/AggregationEvent.json /2.0/EPCIS/JSON/Capture/Events/AssociationEvent.json /2.0/EPCIS/JSON/Capture/Events/ObjectEvent.json /2.0/EPCIS/JSON/Capture/Events/TransactionEvent.json /2.0/EPCIS/JSON/Capture/Events/TransformationEvent.json +/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_events_with_missing_mandatory_fields.json +/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_multiple_invalid_fields.json +/2.0/EPCIS/JSON/Capture/Invalid/Combination_of_non_standard_bizStep_and_disposition.json +/2.0/EPCIS/JSON/Capture/Invalid/EPCISDocument_without_context.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_ilmd_field_without_namespace.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_action.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_certificationInfo.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_invalid_eventTime_format.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_bizStep.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_bizStep_in_second_event.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_non_standard_disposition.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_quantity_as_text.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_with_unknown_field_in_quantityList.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_without_action_and_eventTime.json +/2.0/EPCIS/JSON/Capture/Invalid/ObjectEvent_without_identifier_list.json /2.0/EPCIS/JSON/Query/Combination_of_different_event.json /2.0/EPCIS/JSON/Query/CurieString_document.json +/2.0/EPCIS/JSON/Query/Invalid/QueryDocument_with_invalid_action.json +/2.0/EPCIS/JSON/Query/Invalid/QueryDocument_with_invalid_eventType.json /2.0/EPCIS/JSON/Query/JumbledFieldsOrder.json /2.0/EPCIS/JSON/Query/ObjectEventWithAllPossibleFields.json +/2.0/EPCIS/JSON/Query/Queries/Invalid/Query_with_invalid_values.json +/2.0/EPCIS/JSON/Query/Queries/Invalid/Query_with_unknown_parameter.json +/2.0/EPCIS/JSON/Query/Queries/SimpleEventQuery.json /2.0/EPCIS/JSON/Query/QueryDocumentWithEventType.json /2.0/EPCIS/JSON/Query/QueryDocumentWithMultipleEvents.json /2.0/EPCIS/JSON/Query/SensorData_with_combined_events.json /2.0/EPCIS/JSON/Query/TransactionEvent_with_userExtensions.json /2.0/EPCIS/JSON/Query/TransformationEvent_with_error_declaration.json +/2.0/EPCIS/JSON/Query/queryDocument.json /2.0/EPCIS/JSON/Query/queryDocumentWithAction.json /2.0/EPCIS/JSON/Query/queryDocumentWithEventTime.json /2.0/EPCIS/XML/Capture/Documents/AggregationEvent.xml @@ -101,18 +126,31 @@ /2.0/EPCIS/XML/Capture/Documents/TransformationEvent_with_errorDeclaration.xml /2.0/EPCIS/XML/Capture/Documents/TransformationEvent_with_sensorData.xml /2.0/EPCIS/XML/Capture/Documents/TransformationEvent_with_userExtensions.xml +/2.0/EPCIS/XML/Capture/Documents/epcisDocWithAllGS1Keys.xml +/2.0/EPCIS/XML/Capture/Documents/epcisDocWithSensorComponent.xml /2.0/EPCIS/XML/Capture/Events/AggregationEvent.xml /2.0/EPCIS/XML/Capture/Events/AssociationEvent.xml /2.0/EPCIS/XML/Capture/Events/Namespace_event.xml /2.0/EPCIS/XML/Capture/Events/ObjectEvent.xml /2.0/EPCIS/XML/Capture/Events/TransactionEvent.xml /2.0/EPCIS/XML/Capture/Events/TransformationEvent.xml +/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_bare_event_without_action.xml +/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_invalid_action.xml +/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_invalid_eventTime_format.xml +/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_near_miss_action.xml +/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_unknown_element.xml +/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_with_wrong_element_order.xml +/2.0/EPCIS/XML/Capture/Invalid/ObjectEvent_without_eventTime.xml /2.0/EPCIS/XML/Query/Combination_of_different_event.xml /2.0/EPCIS/XML/Query/CurieString_document.xml /2.0/EPCIS/XML/Query/Documents/QueryResultsDocument.xml /2.0/EPCIS/XML/Query/Documents/TransactionEvent_with_userExtensions.xml +/2.0/EPCIS/XML/Query/Invalid/QueryDocument_with_missing_value.xml /2.0/EPCIS/XML/Query/JumbledFieldsOrder.xml /2.0/EPCIS/XML/Query/ObjectEvent_all_possible_fields.xml +/2.0/EPCIS/XML/Query/Queries/Invalid/Query_without_queryName.xml +/2.0/EPCIS/XML/Query/Queries/SimpleEventQuery.xml +/2.0/EPCIS/XML/Query/QueryDocumentWithMultipleEvents.xml /2.0/EPCIS/XML/Query/SensorData_with_combined_events.xml /2.0/EPCIS/XML/Query/TransformationEvent_with_errorDeclaration.xml /2.0/EPCIS/XML/Query/queryDocument.xml diff --git a/scripts/generate-file-list.sh b/scripts/generate-file-list.sh index 0783bd6..9cb20e8 100755 --- a/scripts/generate-file-list.sh +++ b/scripts/generate-file-list.sh @@ -16,4 +16,7 @@ # SCRIPT_PATH=`dirname $0` -find $SCRIPT_PATH/../src/main/resources -type f | sed -e 's/^.*\/src\/main\/resources//g' | grep -v 'openepcis-test-resources.list' | sort > $SCRIPT_PATH/../src/main/resources/openepcis-test-resources.list \ No newline at end of file +RESOURCES=$SCRIPT_PATH/../core/src/main/resources + +# LC_ALL=C keeps the order stable no matter which locale the committer runs under +find $RESOURCES -type f | sed -e 's/^.*\/src\/main\/resources//g' | grep -v 'openepcis-test-resources.list' | LC_ALL=C sort > $RESOURCES/openepcis-test-resources.list \ No newline at end of file