@smallcircles @reiver 1) What does a bookwyrm server returns if we asked for the object directly?
2) The Quotation types could be useful, but why not provide it in a proper LD context?
@smallcircles @reiver 1) What does a bookwyrm server returns if we asked for the object directly?
2) The Quotation types could be useful, but why not provide it in a proper LD context?
AFAIK, for most Fediverse software, Bookwyrm returns a quotation as type="Note".
For example if you run this command from the terminal, you can see it:
curl -H 'Accept: application/activity+json' https://bookwyrm.social/user/reiver/quotation/3658267 | jq
...
But, somehow Bookwyrm can infer if the request is coming from another Bookwyrm server.
(I'd assume using one or more HTTP request headers in the HTTP request.)
And, when that happens it returns type="Quotation" (instead of type="Note").
...
Looking at what is returned, it looks like there is a new "quote" field, for the content of the quotation.
And who and what is being cited is in an attachment type="Document".
...
The Bookwyrm developer could do something like this:
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Quotation": "as:Quotation",
"quote": "as:quote"
},
],
For the JSON-LD for the new field.
...
Although, I would have went with this instead:
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Quotation": "as:Quotation",
"citation": "as:citation",
"quotation": "as:quotation"
},
],