-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON-LD resource containing named graphs #158
JSON-LD resource containing named graphs #158
Comments
Note that the Turtle/Trig issue of CSS is a known issue: CommunitySolidServer/CommunitySolidServer#1327 |
Thanks for reporting! I created an NSS issue about the collapsing of the named graph ^ You're right, we should add this as a test (the ones in https://github.com/solid-contrib/solid-crud-tests/blob/main/test/surface/conneg.test.ts are clearly not sufficient) and also test what Solid-Nextcloud and TrinPod do with this. |
I just checked the spec; it indeeds requires storage servers to store RDF documents, and
So although we usually only store triples inside RDF documents (i.e. the document encodes a graph), a Solid pod server should also support storing an RDF Dataset as a non-container resource. |
…#101) * Add fixture from solid-contrib/test-suite#158 (comment) * Fix fixture name * Add new test in manifest as unreviewed * Add requirement for named graphs support in JSON-LD and TTL --------- Co-authored-by: Pete Edwards <[email protected]>
See also solid/specification#291 |
When I post a JSON-LD resource containing named graphs, I get very different (and sometimes surprising) across different POD implementations. Note that I think the standard is currently silent on what should be the "correct" behaviour. Note also that this use-case is important if we want to use Verifiable Credentials (or Linked Data proofs) on Solid.
The example JSON-LD is available at
When you simply
curl
these URLs, you getwhich expand the following dataset (in n-quads):
Now,
curl -Haccept:text/turtle https://p20n.inrupt.net/dagstuhl.jsonld
returns(note that the named graph has been collapsed into the default graph)
while
curl -Haccept:text/turtle https://solid.champin.net/pa/dagstuhl.jsonld
retunswhich is not valid Turtle (despite a
content-type: text/turtle
in the response).Note that it is valid TriG, which could be ok-ish if the content-type header was correct.
Conclusion: there should be a test for that in the test suite 😄
The text was updated successfully, but these errors were encountered: