Saving a post to a collection
You saved a post into your Travel collection. The BookmarkAction's object is the saved Post and its target the Collection it went into, keyed by name. A save outside any collection has no target.
{
"@type": "BookmarkAction",
"@key": ["@type", "source", "object.sourceId", "target.name"],
"source": "instagram",
"timestamp": "2020-07-03T19:11:47.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": "CExample-B2",
"url": "https://www.instagram.com/p/CExample-B2/",
"author": [
{
"@type": "Agent",
"@key": ["@type", "source", "handle"],
"source": "instagram",
"handle": "travel.demo",
"url": "https://www.instagram.com/travel.demo"
}
]
},
"target": {
"@type": "Collection",
"@key": ["@type", "source", "name"],
"source": "instagram",
"name": "Travel"
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "BookmarkAction",
"doc:key": {
"@list": ["@type", "source", "object.sourceId", "target.name"]
},
"source": "instagram",
"timestamp": {
"@value": "2020-07-03T19:11:47.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": "CExample-B2",
"url": "https://www.instagram.com/p/CExample-B2/",
"author": [
{
"@type": "Agent",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "instagram",
"handle": "travel.demo",
"url": "https://www.instagram.com/travel.demo"
}
]
},
"target": {
"@type": "Collection",
"doc:key": {
"@list": ["@type", "source", "name"]
},
"source": "instagram",
"name": "Travel"
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[
a :BookmarkAction;
doc:key ("@type" "source" "object.sourceId" "target.name");
:source "instagram";
:timestamp "2020-07-03T19:11:47.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 "CExample-B2";
:url "https://www.instagram.com/p/CExample-B2/";
:author [
a :Agent;
doc:key ("@type" "source" "handle");
:source "instagram";
:handle "travel.demo";
:url "https://www.instagram.com/travel.demo"
]
];
:target [
a :Collection;
doc:key ("@type" "source" "name");
:source "instagram";
:name "Travel"
]
] .