-
Notifications
You must be signed in to change notification settings - Fork 303
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
Incorrect and incomplete Add activity data in Solid PREP responses #1799
Comments
This is really a few independent issues (and I have taken the liberty to fix your request response pairs):
This is only one that's not a bug, but an idiosyncrasy introduced due to HTTP being originally designed for single request response. In the absence of an In your case, either set: Accept-Events: "prep";accept="text/turtle" or Accept: application/ld+json
Accept-Events: "prep";accept="application/ld+json"
This is a bug in the template. Do you know if NSS provide
I need to show you the code and discuss with you. Lets continue this on Matrix.
I am generating the turtle by hand and missed these. I need to eventually switch to using rdflib.js. But I'll fix the template for now.
|
True that. I can live with that. Though from a consumer's perspective, the intuitive thing here would've been the whole payload defaulting to the format in Accept-Events when Accept is not provided. But, that's fine technically given Content-Type: multipart/mixed. Normally the application (at least mine) is sending Accept. It was just in the curl that I didn't include it.
Not sure what you mean natively but NSS does include The activity doesn't have to use an HTTP URI that such that when fetched it provides a representation. So, HTTP URI is okay to use independently, and can use I don't have a strong opinion but I'd prefer the HTTP URI. It leaves the option open for the future to have it dereferenecable when everything else it depends on is worked out. Most importantly, don't bake any semantics into the URI or bnode string. Move any significant information to a property describing the purpose and explain that in the specification so that consumers can implement it consistently. |
|
I believe https://github.com/CxRes/node-solid-server/tree/basic-prep-fix-1 should address all your concerns. |
Looking into implementing Solid PREP in dokieli. Cool stuff! Some bugs with the response data but they seem relatively minor.
Request (snippet):
Response (snippet):
Note that the initial response is in
text/turtle
. Should that beapplication/ld+json
?Note the date format for
as:published
should have range inxsd:dateTime
. Issue: NSS should convert the date format.Another request (snippet):
Response Headers
Notification
Note also data format here. Note
undefined
in subject IRI. Should probably be an http UUID if they can be eventually dereference but bnode with a UUID would do as well. The data also seems to be incomplete compared to response inapplication/ld+json
.I think the description of Add also needs a minor fix; swap object and target values. Taking the JSON-LD example from above, it should be like this:
The text was updated successfully, but these errors were encountered: