Skip to main content

classify_inline_literal

Function classify_inline_literal 

Source
pub fn classify_inline_literal(val: u64) -> Option<InlineLiteral>
Expand description

Classify a Quin field value as an inline-typed literal, or None if it is not one (an IRI hash / did:q42 pointer / lexicon entry).

IMPORTANT: INLINE_TAG_INTEGER and TAG_EMBEDDED are the same bit pattern (0b001 << 60). A caller that also handles SPARQL-Star embedded triples must try its embedded-triple lexicon lookup before calling this — a resolvable embedded-triple virtual id would otherwise be reported here as an integer.