-
Notifications
You must be signed in to change notification settings - Fork 5
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
The WebID could not be parsed #169
Comments
A WebID document MUST be available as turtle as per the spec: https://www.w3.org/2005/Incubator/webid/spec/identity/#introduction. I could argue that it makes sense if anything because having one base format is good for interoperability. Json-ld also happens to be problematic because all contexts must be dereferenced in order for it to be parsed as rdf. |
That's sad, that means that websites deployed to something like Github/Gitlab pages are all broken then as they do not support content negotiation. |
The Solid spec only mentions that it should be an RDF document though so should perhaps be updated there for clarity? https://solidproject.org/TR/protocol#webid Similarly for the OIDC spec https://solid.github.io/solid-oidc/#concepts-webids (I tried looking for this requirement but couldn't find it is why 😄 ). |
Yes, it’s a bit unfortunate that GitHub pages don’t support content negotiation. I guess we could look into adding json-ld and rdfa parsing to the library. |
I plan to move my website at some point to my own hosting which I fully control, but I haven't been able to do it yet. |
I'm not saying that you should since you're right that the spec requires it, but if you do you could just plug in |
This lib might be used by clients as well #211 , including PWA. I don't think we should throw a bunch of RDF parsers in.
Turtle can be embedded in HTML in a similar way https://www.w3.org/TR/turtle/#in-html I think it shouldn't be that hard to pick out the |
Just want to chime in here to signal that the strict Turtle requirements on WebIDs is under discussion here: w3c/WebID#3 My personal view on this is that WebIDs should be readable in any RDF serialization. As @joachimvh has said, parsing from all RDF serializations can easily be supported in clients using libs such as |
My webID https://dylanvanassche.be/#me is written in JSON-LD as snippets in my HTML website, no content-negotiation.
It seems that the CSS has issues to parse this. Would be useful if it would read the JSON-LD instead of forcing Turtle: https://github.com/CommunitySolidServer/access-token-verifier/blob/main/src/algorithm/retrieveWebidTrustedOidcIssuers.ts#L13=
CSS logs:
The text was updated successfully, but these errors were encountered: