Malli schemas for URPX entities, describing the coerced shape.
Two-layer model (mirroring the clj-oa3 pattern):
Schemas carry :decode/urpx-jsonld decoders that turn the raw parser output
(strings) into the typed shape described here. The transformer is built and
applied in urpx.coerce. Reference resolution (URPX-ej9) keeps :jsonld/id
references intact; consumers dereference via an entity index.
Schemas are bare def vars referenced by symbol — there is no central registry.
Malli schemas for URPX entities, describing the coerced shape.
Two-layer model (mirroring the clj-oa3 pattern):
- urpx.core — raw parse: JSON-LD with namespaced keys, all string values.
- urpx.schema — coerced shape: typed Clojure values (BigDecimal, LocalDate,
LocalTime, LocalDateTime, Duration, integer month numbers).
Schemas carry `:decode/urpx-jsonld` decoders that turn the raw parser output
(strings) into the typed shape described here. The transformer is built and
applied in `urpx.coerce`. Reference resolution (URPX-ej9) keeps :jsonld/id
references intact; consumers dereference via an entity index.
Schemas are bare def vars referenced by symbol — there is no central registry.A single named holiday in a urpx:HolidayCalendar. URPX permits the observance to be expressed as either a literal date (urpx:holidayDate, year-specific) or a free-form rule string (urpx:holidayRule, recurring). urpx:observanceRule (a Ref to urpx:actualDateObservance / urpx:nearestWeekdayObservance / urpx:mondayIfWeekendObservance / urpx:fridayIfWeekendObservance) optionally shifts the observance date when it falls on a weekend.
A single named holiday in a urpx:HolidayCalendar. URPX permits the observance to be expressed as either a literal date (urpx:holidayDate, year-specific) or a free-form rule string (urpx:holidayRule, recurring). urpx:observanceRule (a Ref to urpx:actualDateObservance / urpx:nearestWeekdayObservance / urpx:mondayIfWeekendObservance / urpx:fridayIfWeekendObservance) optionally shifts the observance date when it falls on a weekend.
A bundle of urpx:Holiday entries attached to a PlanElements (and optionally referenced from a TOUSchedule via urpx:hasCalendar). When attached, the calendar is the canonical holiday set for the rate plan — consumers can derive a (LocalDate -> bool) predicate from it via urpx.holidays/derive-predicate instead of supplying one out-of-band.
A bundle of urpx:Holiday entries attached to a PlanElements (and optionally referenced from a TOUSchedule via urpx:hasCalendar). When attached, the calendar is the canonical holiday set for the rate plan — consumers can derive a (LocalDate -> bool) predicate from it via urpx.holidays/derive-predicate instead of supplying one out-of-band.
An xsd:integer field — JSON parser may produce long already, but tolerate strings.
An xsd:integer field — JSON parser may produce long already, but tolerate strings.
Common JSON-LD identity fields present on most entities.
Common JSON-LD identity fields present on most entities.
A JSON-LD @id reference: {:jsonld/id "urpx:foo"}. Resolved against the entity index built from the parsed document.
A JSON-LD @id reference: {:jsonld/id "urpx:foo"}.
Resolved against the entity index built from the parsed document.A block-usage tier (e.g. CPAU E-1's baseline tier 1 / over-baseline tier 2). The bounds are interpreted with the matching :urpx/...BoundOperator vocab IRIs.
A block-usage tier (e.g. CPAU E-1's baseline tier 1 / over-baseline tier 2). The bounds are interpreted with the matching :urpx/...BoundOperator vocab IRIs.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |