### Collection Object Example Source: https://github.com/w3c/activitystreams/blob/main/core/index.html A simple example of an unordered Collection in Activity Streams format. It includes properties like summary, type, totalItems, and items, showcasing how to group multiple objects. ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Object history", "type": "Collection", "totalItems": 2, "items": [ { "type": "Note", "content": "This is the first note." }, { "type": "Note", "content": "This is the second note." } ] } ``` -------------------------------- ### Activity Object Example Source: https://github.com/w3c/activitystreams/blob/main/core/index.html A basic example of an Activity object in Activity Streams format, representing a 'Like' action. It includes common properties like summary, type, id, actor, object, and published. ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Joe liked a note", "type": "Like", "id": "http://www.test.example/activity/1", "actor": "http://example.org/profiles/joe", "object": "http://example.com/notes/1", "published": "2014-09-30T12:34:56Z" } ``` -------------------------------- ### Activity Streams Place and Mention Types Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Examples of Activity Streams Place and Mention types, demonstrating how to represent locations and references. ```APIDOC Place: URI: https://www.w3.org/ns/activitystreams#Place Extends: Object Properties: `accuracy`, `altitude`, `latitude`, `longitude`, `radius`, `units`. Inherits all properties from Object. Examples: { "@context": "https://www.w3.org/ns/activitystreams", "type": "Place", "name": "Work" } { "@context": "https://www.w3.org/ns/activitystreams", "type": "Place", "name": "Fresno Area", "latitude": 36.75, "longitude": 119.7667, "radius": 15, "units": "miles" } Mention: URI: https://www.w3.org/ns/activitystreams#Mention Extends: Link Properties: Inherits all properties from Link. Example: { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Mention of Joe by Carrie in her note", "type": "Mention", "href": "http://example.org/joe", "name": "Joe" } ``` -------------------------------- ### Activity Streams Event Type Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Example of an Activity Streams Event type, demonstrating how to represent events with start and end times. ```APIDOC Event: URI: https://www.w3.org/ns/activitystreams#Event Extends: Object Properties: Inherits all properties from Object. Example: { "@context": "https://www.w3.org/ns/activitystreams", "type": "Event", "name": "Going-Away Party for Jim", "startTime": "2014-12-31T23:00:00-08:00", "endTime": "2015-01-01T06:00:00-08:00" } ``` -------------------------------- ### ActivityStreams first Property Examples Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Illustrates the 'first' property for paged ActivityStreams Collections. It points to the first page of items in the collection, either as a URI or a Link object. ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally's blog posts", "type": "Collection", "totalItems": 3, "first": "http://example.org/collection?page=0" } ``` ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally's blog posts", "type": "Collection", "totalItems": 3, "first": { "type": "Link", "summary": "First Page", "href": "http://example.org/collection?page=0" } } ``` -------------------------------- ### Activity Streams Link Example Source: https://github.com/w3c/activitystreams/blob/main/core/index.html Demonstrates the use of a Link object within Activity Streams, including specifying a 'thumbnail' link relation. ```json { "@context": "https://www.w3.org/ns/activitystreams", "type": "Application", "id": "http://example.org/application/123", "name": "Exampletron 3000", "image": [ "http://example.org/application/abc.gif", { "type": "Link", "href": "http://example.org/application/123.png", "mediaType": "image/png", "rel": "thumbnail" } ] } ``` -------------------------------- ### Example: Note with Mention and Hashtag Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Shows a simple note containing text with a mention ('@sally') and a hashtag ('#givingthanks'). This demonstrates how such microsyntaxes might appear in content. ```json { "@context": "https://www.w3.org/ns/activitystreams", "name": "A thank-you note", "type": "Note", "content": "Thank you @sally for all your hard work! #givingthanks" } ``` -------------------------------- ### Activity Streams Document Types Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Examples of Activity Streams document types like Image, Video, and Note, showcasing their JSON structure and properties. ```APIDOC Audio Document: URI: https://www.w3.org/ns/activitystreams#Audio Properties: Inherits all properties from Document. Example: { "@context": "https://www.w3.org/ns/activitystreams", "type": "Audio", "url": { "type": "Link", "href": "http://example.org/audio.mp3", "mediaType": "audio/mp3" } } Image: URI: https://www.w3.org/ns/activitystreams#Image Extends: Document Properties: Inherits all properties from Document. Example: { "@context": "https://www.w3.org/ns/activitystreams", "type": "Image", "name": "Cat Jumping on Wagon", "url": [ { "type": "Link", "href": "http://example.org/image.jpeg", "mediaType": "image/jpeg" }, { "type": "Link", "href": "http://example.org/image.png", "mediaType": "image/png" } ] } Video: URI: https://www.w3.org/ns/activitystreams#Video Extends: Document Properties: Inherits all properties from Document. Example: { "@context": "https://www.w3.org/ns/activitystreams", "type": "Video", "name": "Puppy Plays With Ball", "url": "http://example.org/video.mkv", "duration": "PT2H" } Note: URI: https://www.w3.org/ns/activitystreams#Note Extends: Object Properties: Inherits all properties from Object. Example: { "@context": "https://www.w3.org/ns/activitystreams", "type": "Note", "name": "A Word of Warning", "content": "Looks like it is going to rain today. Bring an umbrella!" } Page: URI: https://www.w3.org/ns/activitystreams#Page Extends: Document Properties: Inherits all properties from Document. Example: { "@context": "https://www.w3.org/ns/activitystreams", "type": "Page", "name": "Omaha Weather Report", "url": "http://example.org/weather-in-omaha.html" } ``` -------------------------------- ### Invite Activity Stream Type Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html A specialization of Offer, representing an invitation. Inherits properties from Offer. Includes example JSON. ```APIDOC Invite URI: `https://www.w3.org/ns/activitystreams#Invite` Extends: `Offer` Properties: Inherits all properties from `Offer`. Notes: A specialization of `Offer` in which the `actor` is extending an invitation for the `object` to the `target`. ``` ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally invited John and Lisa to a party", "type": "Invite", "actor": { "type": "Person", "name": "Sally" }, "object": { "type": "Event", "name": "A Party" }, "target": [ { "type": "Person", "name": "John" }, { "type": "Person", "name": "Lisa" } ] } ``` -------------------------------- ### Extended Activity Example Source: https://github.com/w3c/activitystreams/blob/main/core/index.html A comprehensive Activity Streams JSON object demonstrating a 'Collection' containing an 'Add' activity with detailed actor, object, and target information, including nameMap for localization. ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Martin's recent activities", "type": "Collection", "totalItems": 1, "items" : [ { "type": "Add", "published": "2011-02-10T15:04:55Z", "generator": "http://example.org/activities-app", "nameMap": { "en": "Martin added a new image to his album.", "ga": "Martin phost le fisean nua a albam." }, "actor": { "type": "Person", "id": "http://www.test.example/martin", "name": "Martin Smith", "url": "http://example.org/martin", "image": { "type": "Link", "href": "http://example.org/martin/image", "mediaType": "image/jpeg", "width": 250, "height": 250 } }, "object" : { "name": "My fluffy cat", "type": "Image", "id": "http://example.org/album/máiréad.jpg", "preview": { "type": "Link", "href": "http://example.org/album/máiréad.jpg", "mediaType": "image/jpeg" }, "url": [ { "type": "Link", "href": "http://example.org/album/máiréad.jpg", "mediaType": "image/jpeg" }, { "type": "Link", "href": "http://example.org/album/máiréad.png", "mediaType": "image/png" } ] }, "target": { "type": "Collection", "id": "http://example.org/album/", "nameMap": { "en": "Martin's Photo Album", "ga": "Grianghraif Mairtin" }, "image": { "type": "Link", "href": "http://example.org/album/thumbnail.jpg", "mediaType": "image/jpeg" } } } ] } ``` -------------------------------- ### ActivityStreams icon Property Examples Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Demonstrates the 'icon' property, which specifies an icon representing the object. It can be a single Image object or an array of Image objects. ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "A simple note", "type": "Note", "content": "This is all there is.", "icon": { "type": "Image", "name": "Note icon", "url": "http://example.org/note.png", "width": 16, "height": 16 } } ``` ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "A simple note", "type": "Note", "content": "A simple note", "icon": [ { "type": "Image", "summary": "Note (16x16)", "url": "http://example.org/note1.png", "width": 16, "height": 16 }, { "type": "Image", "summary": "Note (32x32)", "url": "http://example.org/note2.png", "width": 32, "height": 32 } ] } ``` -------------------------------- ### Activity Streams 2.0 Related Links Source: https://github.com/w3c/activitystreams/blob/main/README.md Lists key links related to Activity Streams 2.0, including the SocialCG, ActivityPub protocol, the Activity Streams Primer for examples and explanations, the Extensions registry, and the Extensions Policy. ```APIDOC SocialCG: https://www.w3.org/Social/WG ActivityPub: https://www.w3.org/TR/activitypub/ Activity Streams Primer: https://www.w3.org/wiki/Activity_Streams/Primer Extensions registry: https://www.w3.org/wiki/Activity_Streams/Extensions Extensions Policy: https://swicg.github.io/extensions-policy/ ``` -------------------------------- ### Activity Streams 2.0 Extended Object Example Source: https://github.com/w3c/activitystreams/blob/main/core/index.html Demonstrates an Activity Streams 2.0 object with hypothetical 'foo' and 'bar' extension properties. The 'foo' property is defined in the JSON-LD @context, while 'bar' is not. This serves as an example for re-serialization discussions. ```json { "@context": [ "https://www.w3.org/ns/activitystreams", {"foo": "http://example.org/foo"} ], "type": "Note", "content": "This is a simple note", "foo": 123, "bar": 321 } ``` -------------------------------- ### Minimal Activity Example Source: https://github.com/w3c/activitystreams/blob/main/core/index.html A basic Activity Streams JSON object representing a 'Create' activity with minimal details, including actor and object. ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Martin created an image", "type": "Create", "actor": "http://www.test.example/martin", "object": "http://example.org/foo.jpg" } ``` -------------------------------- ### Activity Streams Audience Targeting Example Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Demonstrates the use of 'context' and 'audience' properties to group related activities within a Collection. It shows two 'Create' and 'Like' activities sharing a common project context and audience. ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Activities in Project XYZ", "type": "Collection", "items": [ { "summary": "Sally created a note", "type": "Create", "id": "http://activities.example.com/1", "actor": "http://sally.example.org", "object": { "summary": "A note", "type": "Note", "id": "http://notes.example.com/1", "content": "A note" }, "context": { "type": "http://example.org/Project", "name": "Project XYZ" }, "audience": { "type": "Group", "name": "Project XYZ Working Group" }, "to": "http://john.example.org" }, { "summary": "John liked Sally's note", "type": "Like", "id": "http://activities.example.com/1", "actor": "http://john.example.org", "object": "http://notes.example.com/1", "context": { "type": "http://example.org/Project", "name": "Project XYZ" }, "audience": { "type": "Group", "name": "Project XYZ Working Group" }, "to": "http://sally.example.org" } ] } ``` -------------------------------- ### Basic Activity Example Source: https://github.com/w3c/activitystreams/blob/main/core/index.html An Activity Streams JSON object for an 'Add' activity, including actor, object, and target details with a published date-time. ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Martin added an article to his blog", "type": "Add", "published": "2015-02-10T15:04:55Z", "actor": { "type": "Person", "id": "http://www.test.example/martin", "name": "Martin Smith", "url": "http://example.org/martin", "image": { "type": "Link", "href": "http://example.org/martin/image.jpg", "mediaType": "image/jpeg" } }, "object" : { "id": "http://www.test.example/blog/abc123/xyz", "type": "Article", "url": "http://www.example.org/blog/2011/02/entry", "name": "Why I love Activity Streams" }, "target" : { "id": "http://example.org/blog/", "type": "OrderedCollection", "name": "Martin's Blog" } } ``` -------------------------------- ### Offer Activity Stream Type Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Represents an offer made by an actor to a target. Inherits properties from Activity. Includes example JSON. ```APIDOC Offer URI: `https://www.w3.org/ns/activitystreams#Offer` Properties: Inherits all properties from `Activity`. Notes: Indicates that the `actor` is offering the `object`. If specified, the `target` indicates the entity to which the `object` is being offered. ``` ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally offered 50% off to Lewis", "type": "Offer", "actor": { "type": "Person", "name": "Sally" }, "object": { "type": "http://www.types.example/ProductOffer", "name": "50% Off!" }, "target": { "type": "Person", "name": "Lewis" } } ``` -------------------------------- ### Activity Streams Unordered Collection with Paging Source: https://github.com/w3c/activitystreams/blob/main/core/index.html Shows an example of an unordered Activity Streams Collection with a 'first' page, demonstrating the use of 'id', 'partOf', 'next', and 'items' properties for pagination. ```APIDOC { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally's recent activities", "type": "Collection", "id": "http://example.org/foo", "totalItems": 10, "first": { "type": "CollectionPage", "id": "http://example.org/foo?page=1", "partOf": "http://example.org/foo", "next": "http://example.org/foo?page=2", "items": [ { "type": "Create", "actor": "http://www.test.example/sally", "object": "http://example.org/foo" } ] } } ``` -------------------------------- ### ActivityStreams bto Property Example Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Demonstrates the use of the 'bto' property in an ActivityStreams Offer object. The 'bto' property identifies recipients who are part of the private secondary audience. ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally offered a post to John", "type": "Offer", "actor": "http://sally.example.org", "object": "http://example.org/posts/1", "target": "http://john.example.org", "bto": [ "http://joe.example.org" ] } ``` -------------------------------- ### Activity Streams Profile and Tombstone Types Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Examples of Activity Streams Profile and Tombstone types, used for describing objects and representing deleted content. ```APIDOC Profile: URI: https://www.w3.org/ns/activitystreams#Profile Extends: Object Properties: `describes`. Inherits all properties from Object. Example: { "@context": "https://www.w3.org/ns/activitystreams", "type": "Profile", "summary": "Sally's Profile", "describes": { "type": "Person", "name": "Sally Smith" } } Tombstone: URI: https://www.w3.org/ns/activitystreams#Tombstone Extends: Object Properties: `formerType`, `deleted`. Inherits all properties from Object. Example: { "type": "OrderedCollection", "totalItems": 3, "name": "Vacation photos 2016", "orderedItems": [ { "type": "Image", "id": "http://image.example/1" }, { "type": "Tombstone", "formerType": "Image", "id": "http://image.example/2", "deleted": "2016-03-17T00:00:00Z" }, { "type": "Image", "id": "http://image.example/3" } ] } ``` -------------------------------- ### Activity Streams Move Activity Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Illustrates a 'Move' activity in Activity Streams, showcasing the 'origin' and 'target' properties to represent the source and destination of an object. This example demonstrates how to model the movement of a document between collections. ```JSON { "@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" } } ``` -------------------------------- ### Corrected Place Example with Numeric Coordinates Source: https://github.com/w3c/activitystreams/blob/main/ERRATA.md This example corrects the data types for 'latitude' and 'longitude' properties in an Activity Streams 'Place' object to be numeric (xsd:float) instead of strings. ```json { "@context": "https://www.w3.org/ns/activitystreams", "type": "Place", "name": "San Francisco, CA", "longitude": 122.4167, "latitude": 37.7833 } ``` -------------------------------- ### Update Activity Stream Type Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Indicates that an actor has updated an object. Inherits properties from Activity. Includes example JSON. ```APIDOC Update URI: `https://www.w3.org/ns/activitystreams#Update` Extends: `Activity` Properties: Inherits all properties from `Activity`. Notes: Indicates that the `actor` has updated the `object`. Note, however, that this vocabulary does not define a mechanism for describing the actual set of modifications made to `object`. The `target` and `origin` typically have no defined meaning. ``` ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally updated her note", "type": "Update", "actor": { "type": "Person", "name": "Sally" }, "object": "http://example.org/notes/1" } ``` -------------------------------- ### Reject Activity Stream Type Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Indicates that an actor is rejecting an object. Inherits properties from Activity. Includes example JSON. ```APIDOC Reject URI: `https://www.w3.org/ns/activitystreams#Reject` Extends: `Activity` Properties: Inherits all properties from `Activity`. Notes: Indicates that the `actor` is rejecting the `object`. The `target` and `origin` typically have no defined meaning. ``` ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally rejected an invitation to a party", "type": "Reject", "actor": { "type": "Person", "name": "Sally" }, "object": { "type": "Invite", "actor": "http://john.example.org", "object": { "type": "Event", "name": "Going-Away Party for Jim" } } } ``` -------------------------------- ### ActivityStreams generator Property Example Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Shows the 'generator' property, which identifies the entity, such as an application, that created an object. The generator can be an Object or a Link. ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "A simple note", "type": "Note", "content": "This is all there is.", "generator": { "type": "Application", "name": "Exampletron 3000" } } ``` -------------------------------- ### Activity Streams: preview Property Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html The `preview` property is used to provide a preview of an item, such as a video trailer. It typically expects an `Object`. ```json { "@context": "https://www.w3.org/ns/activitystreams", "type": "Video", "name": "Cool New Movie", "duration": "PT2H30M", "preview": { "type": "Video", "name": "Trailer", "duration": "PT1M", "url": { "href": "http://example.org/trailer.mkv", "mediaType": "video/mkv" } } } ``` -------------------------------- ### Activity Streams 2.0 Create Activity Source: https://github.com/w3c/activitystreams/blob/main/implementation-reports/distbin.com.md Details the implementation of the 'Create' activity type in Distbin. Notes its common usage for creating new resources. ```APIDOC Create: Implemented?: y (most common for input in /outbox, creating a new resource) ``` -------------------------------- ### TentativeReject Activity Stream Type Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html A specialization of Reject, indicating a tentative rejection. Inherits properties from Reject. Includes example JSON. ```APIDOC TentativeReject URI: `https://www.w3.org/ns/activitystreams#TentativeReject` Extends: `Reject` Properties: Inherits all properties from `Reject`. Notes: A specialization of `Reject` in which the rejection is considered tentative. ``` ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally tentatively rejected an invitation to a party", "type": "TentativeReject", "actor": { "type": "Person", "name": "Sally" }, "object": { "type": "Invite", "actor": "http://john.example.org", "object": { "type": "Event", "name": "Going-Away Party for Jim" } } } ``` -------------------------------- ### Remove Activity Stream Type Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Indicates that an actor is removing an object. Inherits properties from Activity. Includes two example JSONs. ```APIDOC Remove URI: `https://www.w3.org/ns/activitystreams#Remove` Extends: `Activity` Properties: Inherits all properties from `Activity`. Notes: Indicates that the `actor` is removing the `object`. If specified, the `origin` indicates the context from which the `object` is being removed. ``` ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally removed a note from her notes folder", "type": "Remove", "actor": { "type": "Person", "name": "Sally" }, "object": "http://example.org/notes/1", "target": { "type": "Collection", "name": "Notes Folder" } } ``` ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "The moderator removed Sally from a group", "type": "Remove", "actor": { "type": "http://example.org/Role", "name": "The Moderator" }, "object": { "type": "Person", "name": "Sally" }, "origin": { "type": "Group", "name": "A Simple Group" } } ``` -------------------------------- ### ActivityPub Extension - Inbox and Outbox Source: https://github.com/w3c/activitystreams/blob/main/implementation-reports/distbin.com.md Details the implementation status and functionality of the ActivityPub extension for ActivityStreams, specifically concerning inbox and outbox features. It notes that distbin.com supports both and delivers to remote inboxes. ```APIDOC Extension: ActivityPub Features: inbox: y (distbin.com and all the documents it hosts have an inbox. distbin.com also delivers to inboxes of remote resources audience targeted by newly published documents) outbox: y (distbin.com has an outbox) Status: Implemented?: n ``` -------------------------------- ### Undo Activity Stream Type Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Indicates that an actor is undoing a previous activity. Inherits properties from Activity. Includes example JSON. ```APIDOC Undo URI: `https://www.w3.org/ns/activitystreams#Undo` Extends: `Activity` Properties: Inherits all properties from `Activity`. Notes: Indicates that the `actor` is undoing the `object`. In most cases, the `object` will be an `Activity` describing some previously performed action (for instance, a person may have previously "liked" an article but, for whatever reason, might choose to undo that like at some later point in time). The `target` and `origin` typically have no defined meaning. ``` ```JSON { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally retracted her offer to John", "type": "Undo", "actor": "http://sally.example.org", "object": { "type": "Offer", "actor": "http://sally.example.org", "object": "http://example.org/posts/1", "target": "http://john.example.org" } } ``` -------------------------------- ### ActivityPub Reference Source: https://github.com/w3c/activitystreams/blob/main/ns/index.html References the ActivityPub specification, a W3C Recommendation for decentralized social networking. ```APIDOC ActivityPub: Description: ActivityPub Authors: Christopher Webber, Jessica Tallon Organization: W3C Date: 23 January 2018 Status: W3C Recommendation URL: https://www.w3.org/TR/activitypub/ ``` -------------------------------- ### ActivityStreams Core Types - Object Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Defines the base 'Object' type in the Activity Vocabulary, including its URI and a basic JSON example. ```APIDOC Object URI: https://www.w3.org/ns/activitystreams#Object Description: Represents any type of object. Example: { "@context": "https://www.w3.org/ns/activitystreams", "type": "Object" } ``` -------------------------------- ### ActivityStreams Activities Source: https://github.com/w3c/activitystreams/blob/main/ns/index.html Defines common activities that can be performed within the ActivityStreams model, including actions like Accept, Create, Follow, and Like. ```APIDOC Accept: Description: Indicates that the actor accepts the object. Add: Description: Indicates that the actor is adding the object. Announce: Description: Indicates that the actor is announcing the object. Arrive: Description: Indicates that the actor has arrived at the object. Block: Description: Indicates that the actor is blocking the object. Create: Description: Indicates that the actor has created the object. Delete: Description: Indicates that the actor has deleted the object. Dislike: Description: Indicates that the actor dislikes the object. Follow: Description: Indicates that the actor is following the object. Flag: Description: Indicates that the actor is flagging the object. Ignore: Description: Indicates that the actor is ignoring the object. Invite: Description: Indicates that the actor is inviting the object. Join: Description: Indicates that the actor has joined the object. Leave: Description: Indicates that the actor has left the object. Like: Description: Indicates that the actor likes the object. Listen: Description: Indicates that the actor is listening to the object. Move: Description: Indicates that the actor has moved the object. Offer: Description: Indicates that the actor is offering the object. Read: Description: Indicates that the actor has read the object. Reject: Description: Indicates that the actor is rejecting the object. Remove: Description: Indicates that the actor has removed the object. TentativeAccept: Description: Indicates that the actor tentatively accepts the object. TentativeReject: Description: Indicates that the actor tentatively rejects the object. Travel: Description: Indicates that the actor has traveled to the object. Undo: Description: Indicates that the actor has undone the previous activity. Update: Description: Indicates that the actor has updated the object. View: Description: Indicates that the actor has viewed the object. ``` -------------------------------- ### Corrected Mention Object without Summary Source: https://github.com/w3c/activitystreams/blob/main/ERRATA.md This example shows a corrected 'Mention' object in Activity Streams, removing the disallowed 'summary' property. ```json { "@context": "https://www.w3.org/ns/activitystreams", "type": "Mention", "href": "http://example.org/joe", "name": "Joe" } ``` -------------------------------- ### Activity Streams 2.0 Core Classes Source: https://github.com/w3c/activitystreams/blob/main/implementation-reports/elucidate.md Details the core classes within the Activity Streams 2.0 specification as implemented by the Elucidate Server. It lists properties for each class and indicates their implementation status. ```APIDOC Object: Implemented?: n Properties: attachment: n attributedTo: n audience: n bcc: n bto: n cc: n content: n contentMap: n context: n duration: n endTime: n generator: y icon: n image: n inReplyTo: n location: n mediaType: n name: n nameMap: n preview: n published: n replies: n startTime: n summary: n summaryMap: n tag: n to: n updated: n url: n Link: Implemented?: n Properties: height: n hreflang: n mediaType: n name: n rel: n width: n Actor: Implemented?: n Activity: Implemented?: n Properties: actor: n object: n target: n origin: n result: n instrument: n IntransitiveActivity: Implemented?: n Collection: Implemented?: y Properties: items: y totalItems: y first: y last: y current: y OrderedCollection: Implemented?: y CollectionPage: Implemented?: y Properties: partOf: y next: y prev: y OrderedCollectionPage: Implemented?: y Properties: startIndex: y ``` -------------------------------- ### ActivityStreams context Property Example Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Shows the 'context' property in an ActivityStreams Collection. This property links activities or objects to a shared context, such as a project or event. ```json { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Activities in context 1", "type": "Collection", "items": [ { "type": "Offer", "actor": "http://sally.example.org", "object": "http://example.org/posts/1", "target": "http://john.example.org", "context": "http://example.org/contexts/1" }, { "type": "Like", "actor": "http://joe.example.org", "object": "http://example.org/posts/2", "context": "http://example.org/contexts/1" } ] } ``` -------------------------------- ### ActiviPy Core Classes Source: https://github.com/w3c/activitystreams/blob/main/implementation-reports/activipy.md This section details the core classes implemented in ActiviPy, including Object, Link, Actor, Activity, IntransitiveActivity, Collection, OrderedCollection, CollectionPage, and OrderedCollectionPage. It indicates which properties are implemented for each class. ```python class Object: # attachment, attributedTo, audience, bcc, bto, cc, content, contentMap, context, duration, endTime, generator, icon, image, inReplyTo, location, mediaType, name, nameMap, preview, published, replies, startTime, summary, summaryMap, tag, to, updated, url pass class Link: # height, hreflang, mediaType, name, rel, width pass class Actor: # Implemented despite being dropped from AS2 standard for method resolution pass class Activity: # actor, object, target, origin, result, instrument pass class IntransitiveActivity: pass class Collection: # items, totalItems, first, last, current pass class OrderedCollection: pass class CollectionPage: # partOf, next, prev pass class OrderedCollectionPage: pass ``` -------------------------------- ### Activity Streams 2.0 Core Classes Implementation Source: https://github.com/w3c/activitystreams/blob/main/implementation-reports/dokieli.md This documentation details the implementation status of core classes defined in the Activity Streams 2.0 specification as used by the dokieli project. It specifies which properties are implemented ('y') and which are not ('n') for each class. ```APIDOC Object: Implemented? : y Properties: attachment: n attributedTo: n audience: n bcc: n bto: n cc: n content: y contentMap: n context: y duration: n endTime: n generator: n icon: n image: y inReplyTo: y location: n mediaType: n name: y nameMap: n preview: n published: y replies: n startTime: n summary:y summaryMap: n tag: n (in consideration) to: y updated: y url: n Link: Implemented? : n Properties: height: n hreflang: n mediaType: n name: n rel: n width: n Actor: Implemented? : n Activity: Implemented? : y Properties: actor: y object: y target: y origin: n result: n instrument: n IntransitiveActivity: Implemented? : n Collection: Implemented? : n Properties: items: n totalItems: n first: n last: n current: n OrderedCollection: Implemented? : n CollectionPage: Implemented? : n Properties: partOf: n next: n prev: n OrderedCollectionPage: Implemented? : n ``` -------------------------------- ### Single Name String Value Source: https://github.com/w3c/activitystreams/blob/main/core/index.html Example of a natural language property represented as a single JSON string, without explicit language information. ```json { "@context": "https://www.w3.org/ns/activitystreams", "type": "Object", "name": "This is the title" } ``` -------------------------------- ### ActiviPy Extended Classes Source: https://github.com/w3c/activitystreams/blob/main/implementation-reports/activipy.md This section outlines the extended classes supported by ActiviPy, including Accept, Add, Announce, Arrive, Block, Create, Delete, Dislike, Flag, Follow, Ignore, Invite, Join, Leave, Like, Listen, Move, Offer, Question, Read, Reject, Remove, TentativeAccept, TentativeReject, Travel, Undo, Update, View, Application, Group, Organization, Person, Service, Article, Audio, Document, Event, Image, Note, Page, Place, Profile, Relationship, Tombstone, and Video. It also notes specific properties for Question, Place, Profile, Relationship, and Tombstone. ```python class Accept: pass class Add: pass class Announce: pass class Arrive: pass class Block: pass class Create: pass class Delete: pass class Dislike: pass class Flag: pass class Follow: pass class Ignore: pass class Invite: pass class Join: pass class Leave: pass class Like: pass class Listen: pass class Move: pass class Offer: pass class Question: # oneOf, anyOf, closed pass class Read: pass class Reject: pass class Remove: pass class TentativeAccept: pass class TentativeReject: pass class Travel: pass class Undo: pass class Update: pass class View: pass class Application: pass class Group: pass class Organization: pass class Person: pass class Service: pass class Article: pass class Audio: pass class Document: pass class Event: pass class Image: pass class Note: pass class Page: pass class Place: # accuracy, altitude, latitude, longitude, radius, units pass class Profile: # describes pass class Relationship: # subject, object, relationship pass class Tombstone: # formerType, deleted pass class Video: pass ``` -------------------------------- ### Activity Streams Create Activity with Relationship Source: https://github.com/w3c/activitystreams/blob/main/vocabulary/index.html Illustrates how to use a Create activity to represent the establishment of a new relationship between entities. This example shows a 'Create' activity where the 'object' is a 'Relationship' object, including properties like 'subject', 'relationship', 'object', and 'startTime'. ```APIDOC { "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally became a friend of Matt", "type": "Create", "actor": "http://sally.example.org", "object": { "type": "Relationship", "subject": "http://sally.example.org", "relationship": "http://purl.org/vocab/relationship/friendOf", "object": "http://matt.example.org", "startTime": "2015-04-21T12:34:56" } } ```