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://hollo/@john"
],
"id": "http://pasture-one-actor/activity/K9g0lXcQIBM",
"published": "2025-09-06T13:28:00Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/object/hq47LIwvHEA",
"published": "2025-09-06T13:28:00Z",
"@context": "https://www.w3.org/ns/activitystreams",
"content": "@context url as the ActivityStreams URL",
"tag": [
{
"type": "Mention",
"href": "http://hollo/@john"
}
]
}
}
hollo
{
"id": "01991f36-5b00-7f0f-848f-8396ac9167e3",
"created_at": "2025-09-06T13:28:00.000Z",
"in_reply_to_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/object/hq47LIwvHEA",
"url": "http://pasture-one-actor/object/hq47LIwvHEA",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "@context url as the ActivityStreams URL",
"reblog": null,
"quote_id": null,
"quote": null,
"application": null,
"account": {
"id": "01991f36-271d-7f6a-ad58-9763b28ce52e",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"created_at": "2025-09-06T13:27:46.665Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://hollo/image/avatars/original/missing.png",
"avatar_static": "http://hollo/image/avatars/original/missing.png",
"header": "http://hollo/image/headers/original/missing.png",
"header_static": "http://hollo/image/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"moved": null,
"last_status_at": null,
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"emojis": [],
"emoji_reactions": [],
"poll": null,
"filtered": null
}
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://hollo/@john"
],
"id": "http://pasture-one-actor/activity/-Twej8q5UoM",
"published": "2025-09-06T13:28:01Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/object/FZRZv3BNVKA",
"published": "2025-09-06T13:28:01Z",
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"content": "@context url is list of ActivityStreams URL",
"tag": [
{
"type": "Mention",
"href": "http://hollo/@john"
}
]
}
}
hollo
{
"id": "01991f36-5ee8-711b-99ef-f63cab6f1677",
"created_at": "2025-09-06T13:28:01.000Z",
"in_reply_to_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/object/FZRZv3BNVKA",
"url": "http://pasture-one-actor/object/FZRZv3BNVKA",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "@context url is list of ActivityStreams URL",
"reblog": null,
"quote_id": null,
"quote": null,
"application": null,
"account": {
"id": "01991f36-271d-7f6a-ad58-9763b28ce52e",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"created_at": "2025-09-06T13:27:46.665Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://hollo/image/avatars/original/missing.png",
"avatar_static": "http://hollo/image/avatars/original/missing.png",
"header": "http://hollo/image/headers/original/missing.png",
"header_static": "http://hollo/image/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"moved": null,
"last_status_at": null,
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"emojis": [],
"emoji_reactions": [],
"poll": null,
"filtered": null
}
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://hollo/@john"
],
"id": "http://pasture-one-actor/activity/HfqKsIs0p3Y",
"published": "2025-09-06T13:28:01Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/object/5cT9dBhV5es",
"published": "2025-09-06T13:28:01Z",
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag"
}
],
"content": "@context url is list of ActivityStreams URL and Hashtag",
"tag": [
{
"type": "Mention",
"href": "http://hollo/@john"
}
]
}
}
hollo
{
"id": "01991f36-5ee8-711b-99ef-f63d229da6d4",
"created_at": "2025-09-06T13:28:01.000Z",
"in_reply_to_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/object/5cT9dBhV5es",
"url": "http://pasture-one-actor/object/5cT9dBhV5es",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "@context url is list of ActivityStreams URL and Hashtag",
"reblog": null,
"quote_id": null,
"quote": null,
"application": null,
"account": {
"id": "01991f36-271d-7f6a-ad58-9763b28ce52e",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"created_at": "2025-09-06T13:27:46.665Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://hollo/image/avatars/original/missing.png",
"avatar_static": "http://hollo/image/avatars/original/missing.png",
"header": "http://hollo/image/headers/original/missing.png",
"header_static": "http://hollo/image/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"moved": null,
"last_status_at": null,
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"emojis": [],
"emoji_reactions": [],
"poll": null,
"filtered": null
}
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://hollo/@john"
],
"id": "http://pasture-one-actor/activity/8eRF3_jHF0I",
"published": "2025-09-06T13:28:02Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/object/vDy-J6xP-CE",
"published": "2025-09-06T13:28:02Z",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/fep/5711"
],
"content": "@context with ActivityStreams URL + w3id-fep document",
"tag": [
{
"type": "Mention",
"href": "http://hollo/@john"
}
]
}
}
hollo
{
"id": "01991f36-62d0-7f28-ba38-c0faa21927c9",
"created_at": "2025-09-06T13:28:02.000Z",
"in_reply_to_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/object/vDy-J6xP-CE",
"url": "http://pasture-one-actor/object/vDy-J6xP-CE",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "@context with ActivityStreams URL + w3id-fep document",
"reblog": null,
"quote_id": null,
"quote": null,
"application": null,
"account": {
"id": "01991f36-271d-7f6a-ad58-9763b28ce52e",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"created_at": "2025-09-06T13:27:46.665Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://hollo/image/avatars/original/missing.png",
"avatar_static": "http://hollo/image/avatars/original/missing.png",
"header": "http://hollo/image/headers/original/missing.png",
"header_static": "http://hollo/image/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"moved": null,
"last_status_at": null,
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"emojis": [],
"emoji_reactions": [],
"poll": null,
"filtered": null
}
Example 5¶
activity
{
"@context": null,
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/activity/XlWWnBGK4OI",
"published": "2025-09-06T13:28:07Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/object/aeVnmHuJ-T8",
"published": "2025-09-06T13:28:07Z",
"@context": null,
"content": "no @context",
"tag": [
{
"type": "Mention",
"href": "http://hollo/@john"
}
]
}
}
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://hollo/@john"
],
"id": "http://pasture-one-actor/activity/Ysj_OA1H4nY",
"published": "2025-09-06T13:28:19Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/object/wiscNt6lFOE",
"published": "2025-09-06T13:28:19Z",
"@context": "http://strange.example/context",
"content": "@context is a broken url",
"tag": [
{
"type": "Mention",
"href": "http://hollo/@john"
}
]
}
}
no result