Skip to content

Attribution Format

attributedTo is defined here in the ActivityStreams Vocabulary. It allows us to tell, who authored / owns the object.

This test explores what is allowed in the field.

Objects

Object 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://pasture-one-actor/actor",
  "content": "single element",
  "id": "http://actor.example/object/sEDjWySH9_c",
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 2

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": [
    "http://pasture-one-actor/actor"
  ],
  "content": "single element as list",
  "id": "http://actor.example/object/5zA0eiYd26Y",
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 3

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": [
    "http://pasture-one-actor/actor",
    "http://pasture-one-actor/second"
  ],
  "content": "two elements as list",
  "id": "http://actor.example/object/vC1u6oRSR94",
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 4

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": {
    "id": "http://pasture-one-actor/actor",
    "type": "Person"
  },
  "content": "a dictionary",
  "id": "http://actor.example/object/A3XNivlJijY",
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 5

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": [
    {
      "id": "http://pasture-one-actor/actor",
      "type": "Person"
    }
  ],
  "content": "a dictionary",
  "id": "http://actor.example/object/LyEghVluwGQ",
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Activities

Activity 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/Fl6vtxpjJqE",
  "object": {
    "attributedTo": "http://pasture-one-actor/actor",
    "content": "single element",
    "id": "http://actor.example/object/ZE-VsQN7ODk",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 2

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/h9NQiK4xa9s",
  "object": {
    "attributedTo": [
      "http://pasture-one-actor/actor"
    ],
    "content": "single element as list",
    "id": "http://actor.example/object/m-gAoPySqGI",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 3

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/BzBkBenCzJE",
  "object": {
    "attributedTo": [
      "http://pasture-one-actor/actor",
      "http://pasture-one-actor/second"
    ],
    "content": "two elements as list",
    "id": "http://actor.example/object/eZR62jG71G0",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 4

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/EbjqkTradO4",
  "object": {
    "attributedTo": {
      "id": "http://pasture-one-actor/actor",
      "type": "Person"
    },
    "content": "a dictionary",
    "id": "http://actor.example/object/_Uz4dD4CBDk",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 5

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/N0qgPc6Unkg",
  "object": {
    "attributedTo": [
      {
        "id": "http://pasture-one-actor/actor",
        "type": "Person"
      }
    ],
    "content": "a dictionary",
    "id": "http://actor.example/object/NJ8Iu6b60qc",
    "published": "2025-08-15T08:43:29Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-08-15T08:43:29Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}