Skip to main content

Module document

Module document 

Source
Expand description

uor_addr::schema::document — Document content-addressing (ARCHITECTURE.md “Schema-pinned descendants” § uor-addr-document).

Schema-pinned descendant of crate::json. Imports schema.org’s Article type (extending CreativeWork) — the host-boundary parser admits only JSON-LD values conforming to schema.org’s published Article taxon.

§no_std + no_alloc

Schema admission walks the parsed crate::json::JsonValue’s tagged bytes via crate::json::JsonValueRef. No serde_json, no allocator.

§Authoritative sources

§Admission predicate

  1. @context is "https://schema.org" or "http://schema.org".
  2. @type is "Article" or one of its admissible subtypes.
  3. headline — string.
  4. author — string, Person/Organization object, or non-empty array of either.
  5. datePublished — non-empty string (ISO 8601 / RFC 3339).

Structs§

DocumentValue

Enums§

AddressFailure

Constants§

ARTICLE_TYPES
Admissible @type values — Article plus its standard subtypes per https://schema.org/Article.
REQUIRED_PROPERTIES
SCHEMA_ORG_CONTEXTS

Functions§

address
address_blake3
As address, but binds the blake3 σ-axis (crate::hash). Schema admission is identical; only the κ-derivation hash differs.
address_keccak256
As address, but binds the keccak256 σ-axis (crate::hash). Schema admission is identical; only the κ-derivation hash differs.
address_sha3_256
As address, but binds the sha3_256 σ-axis (crate::hash). Schema admission is identical; only the κ-derivation hash differs.
address_sha512
As address, but binds the sha512 σ-axis (crate::hash).
canonicalize
Available only under the alloc feature.