Skip to content

Instantly share code, notes, and snippets.

@Fak3
Last active January 14, 2020 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fak3/2d35acd2d9bf59de572f5f660cd40cfc to your computer and use it in GitHub Desktop.
Save Fak3/2d35acd2d9bf59de572f5f660cd40cfc to your computer and use it in GitHub Desktop.
Example JSON-LD Context common for all edi3.org requests/responses
{
"@context": {
"dc": "http://purl.org/dc/terms/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"@version": 1.1,
"@vocab": "http://edi3.org/vocab/",
"type": {
"@id": "@type",
"@type": "@vocab"
},
"identifier": "@id",
"Vessel": {
"@context": {
"dc:description": "This is a scoped context only for Vessel request/response payload",
"owner": {
"@context": {
"name": "organizationName",
"@language": "en"
}
},
"netWeight": {
"@context": {
"unit": {
"@type": "@vocab",
"@context": {"@vocab": "weightUnits/"}
},
"value": {
"@type": "xsd:float"
}
}
}
}
},
"Voyage": {
"@context": {
"dc:description": "This is a scoped context only for Voyage request/response payload",
"movementParty": {
"@context": {
"name": "organizationName",
"@language": "en"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment