Varying the value of the @context property¶
Example 1: list of AP context¶
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/8JyHAAg-34I5CIcT",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/XMp7tcGfxKHpp9jZ",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-14T07:48:43Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/XMp7tcGfxKHpp9jZ",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 2: AP context¶
Activity
{
"@context": "https://www.w3.org/ns/activitystreams",
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/Waqjf2jn7IBJSq_o",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/xA5Kr6w1DxDx-VVt",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-14T07:48:43Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/xA5Kr6w1DxDx-VVt",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 3: list of AP context and dictionary¶
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag"
}
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/YdXzfkAc4NlMZSD5",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/h3fhFE5NQd9j0cku",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-14T07:48:43Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/h3fhFE5NQd9j0cku",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 4: list of dictionary and AP context¶
Activity
{
"@context": [
{
"Hashtag": "as:Hashtag"
},
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/RJVGjL0gjhylIqj2",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/1971JQ06_ul8UxgB",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-14T07:48:43Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/1971JQ06_ul8UxgB",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 5: list of AP context and other url¶
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/data-integrity/v2"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/5jjtX7murL6eFwKL",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/hX5I4AhPEaobAA3t",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-14T07:48:43Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/hX5I4AhPEaobAA3t",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 6: list of other url and AP context¶
Activity
{
"@context": [
"https://w3id.org/security/data-integrity/v2",
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/WfV8ysHxMAwBPtrc",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/F_vzY6wjmMHDVpk-",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-14T07:48:43Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/F_vzY6wjmMHDVpk-",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}