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
Commit 6abba07
Browse filesBrowse the repository at this point in the historyBrowse files
[Agent: Claude] fix(patch): N3-Patch emits full predicate IRIs on context-free docs (task-6 review #1)
- applyN3Patch detects whether the target document carries an @context and
passes the verdict into insertTriple: no @context -> the predicate key is
the full IRI (compactPredicate skipped). On the JavaScriptSolidServer#7 Turtle-family path
(stored bytes -> expanded JSON-LD, no @context) the compacted keys
("rdf:type", "dc:title") re-parsed as literal scheme-IRIs <rdf:type> —
silent corruption of every common-vocabulary insert.
- Legacy JSON-LD-stored docs (which DO have an @context resolving those
prefixes) keep the existing compaction behavior byte-identically.
- deleteTriple needs NO symmetric fix: its match already tries the raw key
first (key === predicate; expanded docs carry full-IRI keys), verified by
repro and pinned by the new DELETE test. patch.where is parsed but never
applied, so no compaction assumption there.
- New tests pin both paths TRIPLE-LEVEL via the n3 Parser on an .nt-stored
doc (N-Triples has no prefix mechanism, so a Turtle round-trip can't
launder the corrupt CURIE back to the right IRI and mask the bug).
Co-Authored-By: Claude Opus 4.8 <[email protected]>
`dc:title should have been deleted, got ${JSON.stringify(predicates)}`);
102
+
assert.ok(predicates.includes('http://ex/p'),'unrelated triple should survive the delete');
103
+
});
104
+
29
105
test('JSON Merge Patch applies to a stored JSON-LD doc (P1, RFC 7386)',async(t)=>{
0 commit comments