Representing the cause of an activity
Technical Discussion
1
Posts
1
Posters
0
Views
-
In Activity Streams 2.0, we can represent the result of an activity using the
resultproperty. Here, when the actor accepts aFollowactivity, the result is that the follower is added to the actor'sfollowerscollection.{ "@context": "https://www.w3.org/ns/activitystreams", "id": "https://social.example/accept/12931", "type": "Accept", "actor": "https://social.example/person/24405", "to": ["as:Public", "https://other.example/person/21356"], "object": { "id": "https://other.example/follow/30360", "type": "Follow", "to": ["as:Public", "https://social.example/person/24405"], "actor": "https://other.example/person/21356", "object": "https://social.example/person/24405" }, "result": { "id": "https://social.example/add/11066", "type": "Add", "actor": "https://social.example/person/24405", "to": ["as:Public", "https://other.example/person/21356"], "object": "https://other.example/person/21356", "target": "https://social.example/person/24405/followers" } }My question is: how can the
Addactivity refer to the activity that caused it? I don't think we have a standard property for this. My best guess right now iscontextor maybeinstrument, neither of which seems ideal. I think an extension inverse property, likeresultOf, might be the best option.