Expand description
Jena Assembler document parser.
Converts a Turtle-format Jena Assembler document (or a pre-expanded set of
string triples) into an AssemblerConfig value.
§Design
The implementation has two layers:
-
AssemblerBuilder::from_triples— the core graph-walking logic. Accepts(subject, predicate, object)string tuples (IRIs and literals in N-Triples-like form, already expanded), and produces the config. This is the primary testing seam: it works without any external parser. -
AssemblerBuilder::from_turtle— usesoxttl(already a workspace dep) to parse Turtle intooxrdf::Triplevalues, then converts each triple into a string tuple and delegates tofrom_triples.
§Triple representation for from_triples
Subjects and objects that are IRIs are stored as bare IRI strings
(e.g. "http://example.org/ds"). Blank nodes are stored with a leading
"_:" sigil (e.g. "_:b0"). Literal objects are stored with their
N-Triples quotation (e.g. "\"/data/db\"" or "\"hello\"^^<xsd:string>").
The builder strips the surrounding double-quotes when it extracts literal
values.
Structs§
- Assembler
Builder - Parses Jena Assembler documents into
AssemblerConfigvalues.
Enums§
- Assembler
Error - Errors produced by the Jena Assembler parser.