JSON-LD @context¶
Various examples the @context
property can take.
See here for the
W3C specification, and here
for what ActivityStreams says about it.
Examples¶
Example 1¶
activity
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/activity/nsvWkgKXJ3E",
"published": "2025-09-01T09:31:28Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/object/swK-Qhi8Hgs",
"published": "2025-09-01T09:31:28Z",
"@context": "https://www.w3.org/ns/activitystreams",
"content": "@context url as the ActivityStreams URL"
}
}
friendica
{
"id": "22",
"created_at": "2025-09-01T09:31:28.000Z",
"edited_at": null,
"in_reply_to_id": null,
"in_reply_to_status": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": "en",
"uri": "http://pasture-one-actor/object/swK-Qhi8Hgs",
"url": "http://pasture-one-actor/object/swK-Qhi8Hgs",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "@context url as the ActivityStreams URL",
"reblog": null,
"quote": null,
"application": {
"name": "ActivityPub",
"vapid_key": null
},
"account": {
"id": "5",
"username": "actor",
"acct": "",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": true,
"group": false,
"created_at": "2025-09-01T09:31:08.000Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068",
"avatar_static": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068&static=1",
"header": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068",
"header_static": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068&static=1",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"last_status_at": "2025-09-01T00:00:00.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null,
"friendica": {
"title": "",
"changed_at": "2025-09-01T09:31:28.000Z",
"commented_at": "2025-09-01T09:31:28.000Z",
"received_at": "2025-09-01T09:31:28.000Z",
"delivery_data": {
"delivery_queue_count": null,
"delivery_queue_done": null,
"delivery_queue_failed": null
},
"dislikes_count": 0,
"disliked": false,
"network": "ActivityPub",
"platform": "ActivityPub",
"version": "",
"sitename": "",
"visibility": {
"allow_cid": [],
"deny_cid": [],
"allow_gid": [],
"deny_gid": []
},
"content": "@context url as the ActivityStreams URL"
}
}
Example 2¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/activity/TxccwqZirzE",
"published": "2025-09-01T09:31:29Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/object/DJPYTHyWyFU",
"published": "2025-09-01T09:31:29Z",
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"content": "@context url is list of ActivityStreams URL"
}
}
friendica
{
"id": "23",
"created_at": "2025-09-01T09:31:29.000Z",
"edited_at": null,
"in_reply_to_id": null,
"in_reply_to_status": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": "en",
"uri": "http://pasture-one-actor/object/DJPYTHyWyFU",
"url": "http://pasture-one-actor/object/DJPYTHyWyFU",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "@context url is list of ActivityStreams URL",
"reblog": null,
"quote": null,
"application": {
"name": "ActivityPub",
"vapid_key": null
},
"account": {
"id": "5",
"username": "actor",
"acct": "",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": true,
"group": false,
"created_at": "2025-09-01T09:31:08.000Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068",
"avatar_static": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068&static=1",
"header": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068",
"header_static": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068&static=1",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"last_status_at": "2025-09-01T00:00:00.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null,
"friendica": {
"title": "",
"changed_at": "2025-09-01T09:31:30.000Z",
"commented_at": "2025-09-01T09:31:30.000Z",
"received_at": "2025-09-01T09:31:30.000Z",
"delivery_data": {
"delivery_queue_count": null,
"delivery_queue_done": null,
"delivery_queue_failed": null
},
"dislikes_count": 0,
"disliked": false,
"network": "ActivityPub",
"platform": "ActivityPub",
"version": "",
"sitename": "",
"visibility": {
"allow_cid": [],
"deny_cid": [],
"allow_gid": [],
"deny_gid": []
},
"content": "@context url is list of ActivityStreams URL"
}
}
Example 3¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/activity/OA-xvjl1TMA",
"published": "2025-09-01T09:31:31Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/object/qI2TavGudm8",
"published": "2025-09-01T09:31:31Z",
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag"
}
],
"content": "@context url is list of ActivityStreams URL and Hashtag"
}
}
friendica
{
"id": "24",
"created_at": "2025-09-01T09:31:31.000Z",
"edited_at": null,
"in_reply_to_id": null,
"in_reply_to_status": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": "en",
"uri": "http://pasture-one-actor/object/qI2TavGudm8",
"url": "http://pasture-one-actor/object/qI2TavGudm8",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "@context url is list of ActivityStreams URL and Hashtag",
"reblog": null,
"quote": null,
"application": {
"name": "ActivityPub",
"vapid_key": null
},
"account": {
"id": "5",
"username": "actor",
"acct": "",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": true,
"group": false,
"created_at": "2025-09-01T09:31:08.000Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068",
"avatar_static": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068&static=1",
"header": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068",
"header_static": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068&static=1",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"last_status_at": "2025-09-01T00:00:00.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null,
"friendica": {
"title": "",
"changed_at": "2025-09-01T09:31:31.000Z",
"commented_at": "2025-09-01T09:31:31.000Z",
"received_at": "2025-09-01T09:31:31.000Z",
"delivery_data": {
"delivery_queue_count": null,
"delivery_queue_done": null,
"delivery_queue_failed": null
},
"dislikes_count": 0,
"disliked": false,
"network": "ActivityPub",
"platform": "ActivityPub",
"version": "",
"sitename": "",
"visibility": {
"allow_cid": [],
"deny_cid": [],
"allow_gid": [],
"deny_gid": []
},
"content": "@context url is list of ActivityStreams URL and Hashtag"
}
}
Example 4¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/fep/5711"
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/activity/5cDoL15_684",
"published": "2025-09-01T09:31:32Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/object/ymdNYfU9t7Y",
"published": "2025-09-01T09:31:32Z",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/fep/5711"
],
"content": "@context with ActivityStreams URL + w3id-fep document"
}
}
friendica
{
"id": "25",
"created_at": "2025-09-01T09:31:32.000Z",
"edited_at": null,
"in_reply_to_id": null,
"in_reply_to_status": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": "en",
"uri": "http://pasture-one-actor/object/ymdNYfU9t7Y",
"url": "http://pasture-one-actor/object/ymdNYfU9t7Y",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "@context with ActivityStreams URL + w3id-fep document",
"reblog": null,
"quote": null,
"application": {
"name": "ActivityPub",
"vapid_key": null
},
"account": {
"id": "5",
"username": "actor",
"acct": "",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": true,
"group": false,
"created_at": "2025-09-01T09:31:08.000Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068",
"avatar_static": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068&static=1",
"header": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068",
"header_static": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756719068&static=1",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"last_status_at": "2025-09-01T00:00:00.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null,
"friendica": {
"title": "",
"changed_at": "2025-09-01T09:31:33.000Z",
"commented_at": "2025-09-01T09:31:33.000Z",
"received_at": "2025-09-01T09:31:33.000Z",
"delivery_data": {
"delivery_queue_count": null,
"delivery_queue_done": null,
"delivery_queue_failed": null
},
"dislikes_count": 0,
"disliked": false,
"network": "ActivityPub",
"platform": "ActivityPub",
"version": "",
"sitename": "",
"visibility": {
"allow_cid": [],
"deny_cid": [],
"allow_gid": [],
"deny_gid": []
},
"content": "@context with ActivityStreams URL + w3id-fep document"
}
}
Example 5¶
activity
{
"@context": null,
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/activity/P7YjrZ-kGN0",
"published": "2025-09-01T09:31:34Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/object/93G2O9kRh7w",
"published": "2025-09-01T09:31:34Z",
"@context": null,
"content": "no @context"
}
}
no result
Example 6¶
activity
{
"@context": "http://strange.example/context",
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/activity/E4yst0BE7wQ",
"published": "2025-09-01T09:31:51Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://friendica/profile/friend"
],
"id": "http://pasture-one-actor/object/WEhZ3S9iO2k",
"published": "2025-09-01T09:31:51Z",
"@context": "http://strange.example/context",
"content": "@context is a broken url"
}
}
no result