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/Nmgfp_6tiaY",
  "published": "2024-11-22T15:02:51Z",
  "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/M-FfHVXE7BM",
  "published": "2024-11-22T15:02:51Z",
  "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/NgHE2yS7Bbw",
  "published": "2024-11-22T15:02:51Z",
  "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/jfoGfT3_Hdw",
  "published": "2024-11-22T15:02:51Z",
  "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/6O95OGbQ3Hk",
  "published": "2024-11-22T15:02:51Z",
  "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/seSxj0I55sA",
  "object": {
    "attributedTo": "http://pasture-one-actor/actor",
    "content": "single element",
    "id": "http://actor.example/2wr53EiMspA",
    "published": "2024-11-22T15:02:51Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "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/CRvo5d-boN4",
  "object": {
    "attributedTo": [
      "http://pasture-one-actor/actor"
    ],
    "content": "single element as list",
    "id": "http://actor.example/Az6zaymGdyE",
    "published": "2024-11-22T15:02:51Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "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/3rzg3WoENtw",
  "object": {
    "attributedTo": [
      "http://pasture-one-actor/actor",
      "http://pasture-one-actor/second"
    ],
    "content": "two elements as list",
    "id": "http://actor.example/UJ1OFmelgfA",
    "published": "2024-11-22T15:02:51Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "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/_rV55TDY600",
  "object": {
    "attributedTo": {
      "id": "http://pasture-one-actor/actor",
      "type": "Person"
    },
    "content": "a dictionary",
    "id": "http://actor.example/Nwlpy_tqeaE",
    "published": "2024-11-22T15:02:51Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "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/U0VoX-pWI7g",
  "object": {
    "attributedTo": [
      {
        "id": "http://pasture-one-actor/actor",
        "type": "Person"
      }
    ],
    "content": "a dictionary",
    "id": "http://actor.example/OtkhbR-cK2o",
    "published": "2024-11-22T15:02:51Z",
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}