Liking a post
You liked someone else's Instagram post. The LikeAction is keyed by who liked what: your handle and the post's shortcode. The Post carries the caption as its body and the account that posted it as its author.
{
"@type": "LikeAction",
"@key": ["@type", "source", "agent.handle", "object.sourceId"],
"source": "instagram",
"timestamp": "2024-08-30T06:40:00.000Z",
"agent": {
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "instagram",
"handle": "sam.rivera",
"sameAs": ["@me"]
},
"object": {
"@type": "Post",
"@key": ["@type", "source", "sourceId"],
"source": "instagram",
"sourceId": "C0ExampleA1",
"url": "https://www.instagram.com/p/C0ExampleA1/",
"body": "Café vibes",
"author": [
{
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "instagram",
"handle": "alexchen",
"url": "https://www.instagram.com/alexchen"
}
]
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "LikeAction",
"doc:key": {
"@list": ["@type", "source", "agent.handle", "object.sourceId"]
},
"source": "instagram",
"timestamp": {
"@value": "2024-08-30T06:40:00.000Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"agent": {
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "instagram",
"handle": "sam.rivera",
"sameAs": ["@me"]
},
"object": {
"@type": "Post",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "instagram",
"sourceId": "C0ExampleA1",
"url": "https://www.instagram.com/p/C0ExampleA1/",
"body": "Café vibes",
"author": [
{
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "instagram",
"handle": "alexchen",
"url": "https://www.instagram.com/alexchen"
}
]
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[
a :LikeAction;
doc:key ("@type" "source" "agent.handle" "object.sourceId");
:source "instagram";
:timestamp "2024-08-30T06:40:00.000Z"^^xsd:dateTime;
:agent [
a :Agent;
doc:key ("@type" "source" "handle");
:source "instagram";
:handle "sam.rivera";
:sameAs "@me"
];
:object [
a :Post;
doc:key ("@type" "source" "sourceId");
:source "instagram";
:sourceId "C0ExampleA1";
:url "https://www.instagram.com/p/C0ExampleA1/";
:body "Café vibes";
:author [
a :Agent;
doc:key ("@type" "source" "handle");
:source "instagram";
:handle "alexchen";
:url "https://www.instagram.com/alexchen"
]
]
] .