Closed ricardosardinha closed 5 months ago
@ricardosardinha
Thanks a lot for reaching out to us regarding the clarification. Since you have just the default EPCIS @context https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld
, we do not store them in the contextInfo
as a result you are getting it as contextInfo=null
. However, if you have a document with additional contexts such as:
{
"@context": [
"https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld",
{
"ex3": "https://ex3.com"
},
{
"ex1": "https://ex1.com"
}
],
"type": "ObjectEvent",
"eventTime": "2024-05-24T16:58:56+02:00",
"eventTimeZoneOffset": "+02:00",
"epcList": [
"https://id.gs1.org/01/09526512345671/21/100",
"https://id.gs1.org/01/09526512345671/21/101"
],
"action": "ADD",
"bizStep": "commissioning",
"disposition": "active",
"ex1:propOne": "value-1",
"ex3:propTwo": "Value-2"
}
In this case, we do store the additional context information as a Map {https://ex3.com=ex3, https://ex1.com=ex1}
but we store them within our DefaultJsonSchemaNamespaceURIResolver.class
where we can differentiate between the event and document level namespaces.
If we have a json EPCISEvent with property "@context" the instance of EPCISEvent will have
contextInfo=null
json