Activity Streams/Primer/Origin and Target
Copied from Origin and Target
The origin
and target
properties of an Activity
respectively identify the entities from which and to which the action is directed. For instance, in the English statement, "Sally moved the file from Folder A to Folder B", the origin
is "Folder A" and the target
is "Folder B". This activity is illustrated in the example below:
{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally moved the sales figures from Folder A to Folder B", "type": "Move", "actor": "http://sally.example.org", "object": { "type": "Document", "name": "sales figures" }, "origin": { "type": "Collection", "name": "Folder A" }, "target": { "type": "Collection", "name": "Folder B" } }
The origin
property is applicable to any type of activity for which the English preposition "from" can be considered applicable in the sense of identifying the origin, source or provenance of the activity's object
.
The target
property is applicable to any type of activity for which the English preposition "to" can be considered applicable in the sense of identifying the indirect object or destination of the activity's object
.