Liking a tweet
You liked someone else's tweet. The LikeAction's object is the liked Post, keyed by the tweet's ID and carrying its text as its body, and the action is keyed by the post. A Twitter archive does not record when a like happened, so the action has no timestamp.
{
"@type": "LikeAction",
"@key": ["@type", "source", "object.sourceId"],
"source": "twitter",
"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"]
},
"object": {
"@type": "Post",
"@key": ["@type", "source", "sourceId"],
"source": "twitter",
"sourceId": "9876543210987654321",
"body": "A tweet I liked from someone else"
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "LikeAction",
"doc:key": {
"@list": ["@type", "source", "object.sourceId"]
},
"source": "twitter",
"agent": {
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "twitter",
"sourceId": "111",
"handle": "owner_example",
"name": "Owner Example",
"url": "https://twitter.com/owner_example",
"sameAs": ["@me"]
},
"object": {
"@type": "Post",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "twitter",
"sourceId": "9876543210987654321",
"body": "A tweet I liked from someone else"
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
[
a :LikeAction;
doc:key ("@type" "source" "object.sourceId");
:source "twitter";
:agent [
a :Agent;
doc:key ("@type" "source" "sourceId");
:source "twitter";
:sourceId "111";
:handle "owner_example";
:name "Owner Example";
:url "https://twitter.com/owner_example";
:sameAs "@me"
];
:object [
a :Post;
doc:key ("@type" "source" "sourceId");
:source "twitter";
:sourceId "9876543210987654321";
:body "A tweet I liked from someone else"
]
] .