I'm so tired of reading takes on moderation that begin and end with "decide what content I see". That's not even half the question.
-
trwnh@mastodon.socialreplied to dahukanna@mastodon.social last edited by
1. activity streams has an object model where everything mostly inherits from as:Object. the FEP recommends specifically as:Collection (or as:OrderedCollection which inherits from it) because then you can as:Add items into it
2. datawise, as:Collection is basically a Set, as:OrderedCollection is roughly analogous to a List. but it is represented in AS2 using graphs. a Collection has a directed edge `items` or `orderedItems` which points to a JSON array that is either a set or a list
-
trwnh@mastodon.socialreplied to trwnh@mastodon.social last edited by
@dahukanna more precisely, you also have to account for the possibility of paging. so the path to any given member of an as:Collection is:
as:items | as:first/as:next*/as:items
where | means "or", "union"
and / means "following an additional edge"
and * means "0 or more times" -
trwnh@mastodon.socialreplied to trwnh@mastodon.social last edited by trwnh@mastodon.social
@dahukanna i guess you could also do as:last/as:prev*/as:items if you wanted to page backwards.
last thing to note is that `orderedItems` is just an alias (JSON-LD "term definition") for `as:items` except with a `@`type of `@`list
-
trwnh@mastodon.socialreplied to trwnh@mastodon.social last edited by
@dahukanna hope that helps!