Time spent on a document
A DeviceSession whose subject is the file in focus, a DocumentObject keyed by its path within the machine it lives on (inRealm).
{
"@type": "DeviceSession",
"@key": ["@type", "source", "sourceId"],
"source": "timing-app",
"sourceId": "103",
"subject": [
{
"@type": "DocumentObject",
"@key": ["source", "handle", "inRealm.handle"],
"source": "filesystem",
"handle": "/Users/pat/notes/garden plan.md",
"name": "garden plan.md",
"inRealm": {
"@type": "Realm",
"@key": ["@type", "source", "handle"],
"source": "hostname",
"handle": "pat-mbp"
}
}
]
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "DeviceSession",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "timing-app",
"sourceId": "103",
"subject": [
{
"@type": "DocumentObject",
"doc:key": {
"@list": ["source", "handle", "inRealm.handle"]
},
"source": "filesystem",
"handle": "/Users/pat/notes/garden plan.md",
"name": "garden plan.md",
"inRealm": {
"@type": "Realm",
"doc:key": {
"@list": ["@type", "source", "handle"]
},
"source": "hostname",
"handle": "pat-mbp"
}
}
]
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
[
a :DeviceSession;
doc:key ("@type" "source" "sourceId");
:source "timing-app";
:sourceId "103";
:subject [
a :DocumentObject;
doc:key ("source" "handle" "inRealm.handle");
:source "filesystem";
:handle "/Users/pat/notes/garden plan.md";
:name "garden plan.md";
:inRealm [
a :Realm;
doc:key ("@type" "source" "handle");
:source "hostname";
:handle "pat-mbp"
]
]
] .