Skip to main content

Module rdf_star

Module rdf_star 

Source
Expand description

RDF-Star Parsing and Serialization Infrastructure

This module provides trait definitions and shared infrastructure for parsing and serializing RDF-Star (SPARQL 1.2) data across multiple formats.

All parsers converge on Virtual IDs (TAG_EMBEDDED | 60-bit hash). All serializers diverge from Virtual IDs to format-specific syntax.

Enums§

RdfStarParseError
Error type for RDF-Star parsing operations
RdfStarSerializeError
Error type for RDF-Star serialization operations

Traits§

RdfStarParser
Trait for RDF-Star parsers across multiple formats
RdfStarSerializer
Trait for RDF-Star serializers across multiple formats

Functions§

create_virtual_id
Helper function to create a Virtual ID from component IDs
is_virtual_id
Check if a u64 is a Virtual ID (has TAG_EMBEDDED bit set)
object_of_virtual_id
Extract the object component from an embedded triple.
predicate_of_virtual_id
Extract the predicate component from an embedded triple.
subject_of_virtual_id
SPARQL-Star BIND Functions
triple_from_components
Construct a Virtual ID from three component IDs