https://github.com/w3c/activitystreams/issues/537
problem: sometimes you want to have attachments in a certain order, but attachment
is an unordered set by default
solution: define orderedAttachment
similar to orderedItems
1{
2 "@context": [
3 {
4 "orderedAttachment": {
5 "@id": "https://www.w3.org/ns/activitystreams#attachment",
6 "@type": "@id",
7 "@container": "@list"
8 }
9 },
10 "https://www.w3.org/ns/activitystreams"
11 ]
12}
you could maybe do the same for orderedTag
but idk if that makes full sense bc tag
is not really used for categorization so much… but if tumblr or a tumblr-like implementation wanted to order their tags then they have no way of doing so
if you don’t do this, you can technically do this instead
1{
2 "@context": "https://www.w3.org/ns/activitystreams",
3 "id": "https://example.com/object",
4 "type": "Note",
5 "content": "hello world, see attached in order",
6 "attachment": {
7 "@list": [
8 "https://example.com/1",
9 "https://example.com/2",
10 "https://example.com/3"
11 ]
12 }
13}
this is basically just having the expanded jsonld left as-is