TicketRDF
RDF codec for a single wallet ticket (schema:Ticket).
The document's primary subject #this is always a schema:Ticket. Everything the ticket admits to hangs off a reservation envelope, and the rest of the pass lives on sibling fragment nodes of the same document — see documents/TICKET_VOCAB.md for the full shape and the justification for every minted solidshare: term.
#this schema:Ticket
├─ #reservation schema:*Reservation →(reservationFor) #event | #trip
│ #trip schema:Flight | TrainTrip | BusTrip | BoatTrip →(dep/arr) #from / #to
│ #event schema:Event | subtype →(location) #venue
├─ #seat{n}, #barcode{n}, #detail{n}, #rel{n}, #wifi{n}
└─ #issuer, #holder, #membership, #style, #carrierReads follow the RDF links rather than fixed node names, so the reservation, trip and event are discovered through solidshare:reservation / schema:reservationFor regardless of how the nodes were named.
Constructors
Functions
Returns the object values of every triple with the given predicate, across all subjects.
Returns the object value of the first triple with the given predicate, or null if none.
Returns a snapshot copy of all triples held by this resource.
The pod URI of the original imported artifact (solidshare:artifact), or null.
Whether the artifact's issuer signature verified (solidshare:artifactVerified), or null.
The pass category, tolerating unknown stored values as TicketCategory.GENERIC.
The media type of the resource representation (the value of its Content-Type).
The creation timestamp (dcterms:created, ISO-8601), or null.
The creation time in epoch milliseconds, from this resource's own dcterms:created (then stat:ctime) triple, or null when neither is present.
Returns the resource representation as a byte stream.
The HTTP headers associated with this resource (empty when constructed locally).
The URI that identifies this resource on the pod.
The pod URIs of the stored pass images (solidshare:logoImage …), or null when none.
The date a wallet list should sort by: the event start, or a journey's departure.
The issuing organisation's display name, from the issuer node or organizationName.
The last-modified time in epoch milliseconds. Prefers this resource's own dcterms:modified (then stat:mtime) triple and falls back to the Last-Modified header. null when none is present.
The last-modification timestamp (dcterms:modified, ISO-8601), or null.
The pass's presentation (colours, logo), or null when none was stored.
The validity end (schema:validThrough, ISO-8601), or null.
Sets (or clears, when null) the artifact link.
Sets (or clears, when null) the artifact-verified flag.
Sets the creation timestamp (ISO-8601).
Sets (or clears, when null/blank) the stored pass image links.
Sets the last-modification timestamp (ISO-8601).
Rewrites this ticket's writable state from data with replace semantics: every fragment node and every optional property is replaced by the snapshot's content. Only the type triple, dcterms:created, solidshare:artifact, solidshare:artifactVerified and the stored image links survive — those belong to the resource lifecycle, not the ticket's editable content.
Reads this ticket's complete writable state into a NewTicket snapshot.