Skip to content

Train ticket

Markus Sabadello edited this page Nov 16, 2016 · 1 revision

The train ticket is expressed in JXD format as follows:

[
  {
    "@xdi": {
        "departure": { "@id": "#departure", "@type": "@id" },
        "destination": { "@id": "#destination", "@type": "@id" },
        "city": "<#city>",
        "t": "<$t>",
        "carrier": { "@id": "#carrier", "@type": "@id" },
        "passenger": { "@id": "#passenger", "@type": "@id" }
      }
    ],
    "@id": "*!:uuid:972ae814-0120-4361-81dc-473f9e8f7536",
    "departure": {
      "city": "Vienna"
    },
    "destination": {
      "city": "Paris"
    },
    "t": "Tue Oct 18 11:26:27 CEST 2016",
    "passenger": [
      "=!:did:sov:21tDAKCERh95uGgKbJNHYp"
    ],
    "carrier": [
      "+!:did:sov:QQiFNVtQCCEFqHagFOd04Q",
      "+!:did:sov:VpumqBbcVi86RvpEo8lvOn",
      "+!:did:sov:XuRwkbUmj1x6y3Pf3YX26K"
    ]
  }
]

Some explanations:

  • *!:uuid:972ae814-0120-4361-81dc-473f9e8f7536 is an identifier for the train ticket.
Clone this wiki locally