Replying in a Hacker News thread
You replied to Riley's comment on Alex's story. The RespondAction's object is what the reply answers, Riley's Comment; its result is your Comment. Both comments are about the story at the top of the thread, so a reply deep in a discussion still links to the submission. Every item is keyed by its Hacker News id, and the action by the reply it made.
{
"@type": "RespondAction",
"@key": ["@type", "source", "result.sourceId"],
"source": "hackernews",
"timestamp": "2024-05-06T12:53:20.000Z",
"agent": {
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "hackernews",
"handle": "sam",
"url": "https://news.ycombinator.com/user?id=sam",
"sameAs": ["@me"]
},
"object": {
"@type": "Comment",
"@key": ["@type", "source", "sourceId"],
"source": "hackernews",
"sourceId": "40000108",
"url": "https://news.ycombinator.com/item?id=40000108",
"body": "And patience.",
"author": [
{
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "hackernews",
"handle": "riley",
"url": "https://news.ycombinator.com/user?id=riley"
}
],
"about": [
{
"@type": "Post",
"@key": ["@type", "source", "sourceId"],
"source": "hackernews",
"sourceId": "40000100",
"url": "https://news.ycombinator.com/item?id=40000100",
"name": "Sourdough at altitude"
}
]
},
"result": {
"@type": "Comment",
"@key": ["@type", "source", "sourceId"],
"source": "hackernews",
"sourceId": "40000110",
"url": "https://news.ycombinator.com/item?id=40000110",
"body": "So much patience.",
"about": [
{
"@type": "Post",
"@key": ["@type", "source", "sourceId"],
"source": "hackernews",
"sourceId": "40000100",
"url": "https://news.ycombinator.com/item?id=40000100",
"name": "Sourdough at altitude"
}
]
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "RespondAction",
"doc:key": {
"@list": ["@type", "source", "result.sourceId"]
},
"source": "hackernews",
"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": "hackernews",
"handle": "sam",
"url": "https://news.ycombinator.com/user?id=sam",
"sameAs": ["@me"]
},
"object": {
"@type": "Comment",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "hackernews",
"sourceId": "40000108",
"url": "https://news.ycombinator.com/item?id=40000108",
"body": "And patience.",
"author": [
{
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "hackernews",
"handle": "riley",
"url": "https://news.ycombinator.com/user?id=riley"
}
],
"about": [
{
"@type": "Post",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "hackernews",
"sourceId": "40000100",
"url": "https://news.ycombinator.com/item?id=40000100",
"name": "Sourdough at altitude"
}
]
},
"result": {
"@type": "Comment",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "hackernews",
"sourceId": "40000110",
"url": "https://news.ycombinator.com/item?id=40000110",
"body": "So much patience.",
"about": [
{
"@type": "Post",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "hackernews",
"sourceId": "40000100",
"url": "https://news.ycombinator.com/item?id=40000100",
"name": "Sourdough at altitude"
}
]
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[
a :RespondAction;
doc:key ("@type" "source" "result.sourceId");
:source "hackernews";
:timestamp "2024-05-06T12:53:20.000Z"^^xsd:dateTime;
:agent [
a :Agent;
doc:key ("@type" "source" "handle");
:source "hackernews";
:handle "sam";
:url "https://news.ycombinator.com/user?id=sam";
:sameAs "@me"
];
:object [
a :Comment;
doc:key ("@type" "source" "sourceId");
:source "hackernews";
:sourceId "40000108";
:url "https://news.ycombinator.com/item?id=40000108";
:body "And patience.";
:author [
a :Agent;
doc:key ("@type" "source" "handle");
:source "hackernews";
:handle "riley";
:url "https://news.ycombinator.com/user?id=riley"
];
:about [
a :Post;
doc:key ("@type" "source" "sourceId");
:source "hackernews";
:sourceId "40000100";
:url "https://news.ycombinator.com/item?id=40000100";
:name "Sourdough at altitude"
]
];
:result [
a :Comment;
doc:key ("@type" "source" "sourceId");
:source "hackernews";
:sourceId "40000110";
:url "https://news.ycombinator.com/item?id=40000110";
:body "So much patience.";
:about [
a :Post;
doc:key ("@type" "source" "sourceId");
:source "hackernews";
:sourceId "40000100";
:url "https://news.ycombinator.com/item?id=40000100";
:name "Sourdough at altitude"
]
]
] .