You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IRIs in namespaces a ledger hasn't registered: one canonical form for writes, reads and keys #2082
An IRI whose namespace the ledger hasn't registered has no single canonical form, and the places that encode one disagree. On the write side, flake generation refuses a raw IRI as a template subject, and on main an update can store such an IRI under the fallback (EMPTY) namespace code, splitting its identity from the same IRI stored canonically. On the read side, #1842 is the same root: a constant IRI encodes to Sid(EMPTY, iri) when its prefix isn't registered, and misses the subject in novelty.
Raw IRIs as update template subjects. "Raw IRI from graph source cannot be used as subject" refuses a BIND(… AS ?c) subject, IRI() over a namespace the ledger hasn't seen, and an IRI from a graph source. It's why enabling SHACL takes two recipes in the docs (INSERT DATA when there's no config, INSERT … WHERE when there is). I think encoding the IRI at flake generation, allocating its namespace the way a new write does, would cover all three, but the graph-source case is worth confirming first.
An IRI no dictionary holds keys apart by form. It keeps its decoded form, so its Sid and Iri forms (a VALUES constant and a BIND(IRI(…)), say) still key apart in DISTINCT, GROUP BY and joins, once fix(query): compare terms by what they are, not how they're encoded #2010 makes every other form canonical. This needs a namespace-table canonical Sid for unknown IRIs.
Facts already stored under the fallback encoding.fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009 makes new writes canonical; nothing migrates what's already stored. Either a one-shot repair that re-encodes those Sids to their canonical codes, or a diagnostic that counts them.
From #2009 (Follow-ups: IRIs from BIND / IRI() as template subjects; facts under the fallback namespace encoding) and #2010 (Not changed here: an IRI no dictionary holds). Related: #1842.
Activity