Writing a comment
You commented on a post. The export names only the account whose post it was, not the post, so the Comment references that account. With no ID to key on, the comment is keyed by that account, its body, and the time of the CreateAction, so two identical comments at different times stay apart.
{
"@type": "CreateAction",
"@key": ["@type", "source", "object.references[*].handle", "object.body", "timestamp"],
"source": "instagram",
"timestamp": "2024-05-06T12:53:20.000Z",
"agent": {
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "instagram",
"handle": "sam.rivera",
"sameAs": ["@me"]
},
"object": {
"@type": "Comment",
"@key": ["@type", "source", "references[*].handle", "body", "action.timestamp"],
"source": "instagram",
"body": "Congrats!",
"references": [
{
"@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": "CreateAction",
"doc:key": {
"@list": ["@type", "source", "object.references[*].handle", "object.body", "timestamp"]
},
"source": "instagram",
"timestamp": {
"@value": "2024-05-06T12:53:20.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": "Comment",
"doc:key": {
"@list": ["@type", "source", "references[*].handle", "body", "action.timestamp"]
},
"source": "instagram",
"body": "Congrats!",
"references": [
{
"@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 :CreateAction;
doc:key ("@type" "source" "object.references[*].handle" "object.body" "timestamp");
:source "instagram";
:timestamp "2024-05-06T12:53:20.000Z"^^xsd:dateTime;
:agent [
a :Agent;
doc:key ("@type" "source" "handle");
:source "instagram";
:handle "sam.rivera";
:sameAs "@me"
];
:object [
a :Comment;
doc:key ("@type" "source" "references[*].handle" "body" "action.timestamp");
:source "instagram";
:body "Congrats!";
:references [
a :Agent;
doc:key ("@type" "source" "handle");
:source "instagram";
:handle "alexchen";
:url "https://www.instagram.com/alexchen"
]
]
] .