Skip to main content

Module rdf_formats

Module rdf_formats 

Source
Expand description

Unified RDF / RDF-Star format dispatch with zero-heap parse collection.

Re-exports§

pub use crate::sparql_library::quin_sink::QuinSink;

Structs§

PackageExposureManifest
Receipt fields for a Civics / ontology package.
QuinCollector
Stack-backed quin buffer — no heap growth during parse callbacks.
SolidRdfMedia
Solid-facing RDF representation entry (content type + Qualia format id).

Enums§

RdfFormat
Supported RDF surface syntaxes.
RdfParseError
RdfSerializeError
RdfStarMode
RdfcError
Error during RDFC-1.0 canonicalization.

Constants§

MAX_RDF_QUINS
PROVISIONAL_SPO_DIGEST_PROFILE
Provisional profile id — not RDFC-1.0.
QUALIA_JSONLD_CONTEXT_ID
Label for package manifests / receipts.
QUALIA_JSONLD_CONTEXT_V1
Qualia / Civics decision-evidence JSON-LD 1.1 context (v1).
RDFC10_PROFILE
W3C profile IRI / short name for RDF Dataset Canonicalization 1.0.
SOLID_DEFAULT_CONTENT_TYPE
Default Content-Type when a Solid client does not send Accept.
SOLID_RDF_MEDIA
Media types Qualia webcivics / Solid adapters must support for RDF Sources.
VIBE_AST_TAG
Vibe homoiconic CBOR AST tag — kept in lockstep with vibe::cbor_ast::TAG_VIBE_AST.

Functions§

construct_results_as_ld_json
Build the RDF-shaped JSON-LD document a Node/WASM adapter should emit for CONSTRUCT / graph results (not the daemon quin-decimal @graph).
context_digest_hex
SHA-256 of QUALIA_JSONLD_CONTEXT_V1 as lowercase hex (64 chars).
daemon_quin_graph_ld_json
Daemon-style quin-decimal @graph body (documentary parity with webizen_server JsonLd arm). Marked so adapters do not confuse it with RDF JSON-LD 1.1.
digest_hex
SHA-256 of arbitrary context bytes as lowercase hex.
negotiate_solid_accept
Choose the best RDF Content-Type for a Solid Accept header.
package_exposure_manifest
Build a package exposure manifest.
parse_rdf
Parse RDF/RDF-Star bytes into a fixed-capacity collector (no per-triple heap).
pinned_context_bytes
UTF-8 bytes of the pinned v1 context.
provisional_spo_digest_hex
Ordered SHA-256 over (subject,predicate,object,context) little-endian u64 words, sorted lexicographically. Useful for CI fingerprints only.
rdfc10_available
Returns true when RDFC-1.0 canonicalization is available.
rdfc10_hash_hex
Compute conforming RDFC-1.0 canonical dataset hash (SHA-256 over sorted canonical N-Quads).
serialize_rdf
Serialize quins to RDF/RDF-Star syntax, writing directly to out (zero-heap hot path).