Skip to content

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/_Gr0Q7-BZ-A",
  "published": "2025-09-03T18:08:39Z",
  "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/ZAYtxnnKq2A",
    "published": "2025-09-03T18:08:39Z",
    "@context": "https://www.w3.org/ns/activitystreams",
    "content": "@context url as the ActivityStreams URL"
  }
}
friendica
{
  "id": "22",
  "created_at": "2025-09-03T18:08:39.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/ZAYtxnnKq2A",
  "url": "http://pasture-one-actor/object/ZAYtxnnKq2A",
  "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-03T18:08:18.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898",
    "avatar_static": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898&static=1",
    "header": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898",
    "header_static": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898&static=1",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 0,
    "last_status_at": "2025-09-03T00:00:00.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null,
  "friendica": {
    "title": "",
    "changed_at": "2025-09-03T18:08:39.000Z",
    "commented_at": "2025-09-03T18:08:39.000Z",
    "received_at": "2025-09-03T18:08:39.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/6n1B7UupZvk",
  "published": "2025-09-03T18:08:40Z",
  "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/Y7097jo9hIM",
    "published": "2025-09-03T18:08:40Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "content": "@context url is list of ActivityStreams URL"
  }
}
friendica
{
  "id": "23",
  "created_at": "2025-09-03T18:08:40.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/Y7097jo9hIM",
  "url": "http://pasture-one-actor/object/Y7097jo9hIM",
  "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-03T18:08:18.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898",
    "avatar_static": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898&static=1",
    "header": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898",
    "header_static": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898&static=1",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 0,
    "last_status_at": "2025-09-03T00:00:00.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null,
  "friendica": {
    "title": "",
    "changed_at": "2025-09-03T18:08:41.000Z",
    "commented_at": "2025-09-03T18:08:41.000Z",
    "received_at": "2025-09-03T18:08:41.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/s74Be7YAPKU",
  "published": "2025-09-03T18:08:42Z",
  "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/xx7oMgpB7c0",
    "published": "2025-09-03T18:08:42Z",
    "@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-03T18:08:42.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/xx7oMgpB7c0",
  "url": "http://pasture-one-actor/object/xx7oMgpB7c0",
  "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-03T18:08:18.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898",
    "avatar_static": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898&static=1",
    "header": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898",
    "header_static": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898&static=1",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 0,
    "last_status_at": "2025-09-03T00:00:00.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null,
  "friendica": {
    "title": "",
    "changed_at": "2025-09-03T18:08:42.000Z",
    "commented_at": "2025-09-03T18:08:42.000Z",
    "received_at": "2025-09-03T18:08:42.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/kAwWMldDziM",
  "published": "2025-09-03T18:08:43Z",
  "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/TMlQTbzHRwA",
    "published": "2025-09-03T18:08:43Z",
    "@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-03T18:08:43.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/TMlQTbzHRwA",
  "url": "http://pasture-one-actor/object/TMlQTbzHRwA",
  "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-03T18:08:18.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898",
    "avatar_static": "http://friendica/photo/contact/320/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898&static=1",
    "header": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898",
    "header_static": "http://friendica/photo/header/0700725d-72c7be8a-36a431191785fdc7?ts=1756922898&static=1",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 0,
    "last_status_at": "2025-09-03T00:00:00.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null,
  "friendica": {
    "title": "",
    "changed_at": "2025-09-03T18:08:45.000Z",
    "commented_at": "2025-09-03T18:08:45.000Z",
    "received_at": "2025-09-03T18:08:45.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/hwkdtmJWYyY",
  "published": "2025-09-03T18:08:46Z",
  "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/ipQbXStrbAo",
    "published": "2025-09-03T18:08:46Z",
    "@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/uqyAz7dVH6s",
  "published": "2025-09-03T18:09:02Z",
  "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/wgDXZle6QD8",
    "published": "2025-09-03T18:09:02Z",
    "@context": "http://strange.example/context",
    "content": "@context is a broken url"
  }
}

no result