Repository navigation
Commit f0e3c4d
[Agent: Claude] fix(rdf): parse verbatim NT/NQ through n3; JSON-LD is graph-capable (review JavaScriptSolidServer#6)
- toDataset routes NT/NQ to datasetFromTurtle — n3's default parser mode is
the permissive Turtle/TriG/N-Triples/N-Quads superset, so one route serves
the whole family (they previously fell through to the JSON-LD parser and
every conversion 406'd)
- GRAPH_CAPABLE gains application/ld+json — jsonld.fromRDF is lossless for
named graphs, so a named-graph source now serves expanded JSON-LD instead
of 406ing; Turtle/N-Triples keep the teaching 406
- test/lws-serve-nt-nq.test.js: seeds .nq/.nt directly via storage.write (the
git/filesystem-seeded path this finding is about — protocol writes of these
types stay 415-rejected)
Co-Authored-By: Claude Opus 4.8 <[email protected]>1 parent c0608ef commit f0e3c4d
3 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments