ChronicleSchema

You posted a tweet, read from a Twitter archive. The Post it published, its result, is keyed by the tweet's ID, and the PublishAction by the post. The Post keeps the tweet text as its body, with Twitter's shortened links left in place.

Each @mention and each link in the tweet is one of its references. A mentioned account is an Agent keyed by its Twitter user ID; a link is an Entity keyed by its expanded url, so other sources that see the same page share the node.

{
  "@type": "PublishAction",
  "@key": ["@type", "source", "result.sourceId"],
  "source": "twitter",
  "timestamp": "2025-01-11T17:10:28.000Z",
  "agent": {
    "@type": "Agent",
    "@key": ["@type", "source", "sourceId"],
    "source": "twitter",
    "sourceId": "111",
    "handle": "owner_example",
    "name": "Owner Example",
    "url": "https://twitter.com/owner_example",
    "sameAs": ["@me"]
  },
  "result": {
    "@type": "Post",
    "@key": ["@type", "source", "sourceId"],
    "source": "twitter",
    "sourceId": "1234567890123456789",
    "body": "Trail notes from the weekend with @alex_example https://t.co/abc123",
    "author": [
      {
        "@type": "Agent",
        "@key": ["@type", "source", "sourceId"],
        "source": "twitter",
        "sourceId": "111",
        "handle": "owner_example",
        "name": "Owner Example",
        "url": "https://twitter.com/owner_example",
        "sameAs": ["@me"]
      }
    ],
    "references": [
      {
        "@type": "Agent",
        "@key": ["@type", "source", "sourceId"],
        "source": "twitter",
        "sourceId": "222",
        "handle": "alex_example",
        "name": "Alex Example",
        "url": "https://twitter.com/alex_example"
      },
      {
        "@type": "Entity",
        "@key": ["@type", "url"],
        "url": "https://example.com/trail-notes"
      }
    ]
  }
}

Terms in this example

PostPublishActionreferences

Esc

↑↓ to move↵ to open/ or ⌘K to search