Ktistec::JSON_LD
Constants
JSON-LD keywords that expansion acts on. Every other keyword
(@graph, @included, @reverse, @list, @nest, …) is
dropped and logged, rather than passed through unexpanded where
no consumer reads it.
Class methods
Digs out the first member of a set, cast to the given type.
See dig_first? for the set-collapse behavior.
Digs out the first member of a set.
Expansion normalizes every property value to a set; a consumer
that wants one value takes the first member of a non-empty set at
each level of the selector (an empty set yields nil).
Digs out the first member of a set and parses it as a timestamp.
See dig_first? for the set-collapse behavior and parse_time?
for the accepted formats.
Parses a timestamp.
AS2 Core §2.3 requires RFC 3339, relaxed to let seconds be
omitted, and requires a time-offset. Time.parse_rfc3339
implements RFC 3339 exactly, so it rejects both the conformant
timestamps AS2 permits (seconds omitted) and the non-conformant
ones peers emit -- notably an ISO 8601 basic-format offset
(+0000 rather than +00:00).
Returns nil when the value can't be parsed.