Logging a meal
An EatAction for one food entry in FoodNoms, at the entry's timestamp. The action is keyed by the entry's ID, and its Meal by the action it was eaten in. The meal's slot is its category, and its brand, amount and calories are summed up in its description. The agent is the iCloud account that owns the app.
{
"@type": "EatAction",
"@key": ["source", "sourceId"],
"source": "foodnoms",
"sourceId": "3f6c2a9e-1b4d-4c8e-9a7f-2d5e8b1c4a60",
"timestamp": "2026-05-09T16:30:00.000Z",
"agent": {
"@type": "Person",
"@key": ["@type", "source", "sourceId"],
"source": "icloud",
"sourceId": "1234567890",
"handle": "you@example.com",
"sameAs": ["@me"]
},
"object": {
"@type": "Meal",
"@key": ["@type", "source", "action.sourceId"],
"source": "foodnoms",
"name": "Lentil soup",
"category": ["Lunch"],
"description": "Lunch - Brand: Hearth Kitchen - 1.5 cup - 270 calories"
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "EatAction",
"doc:key": {
"@list": ["source", "sourceId"]
},
"source": "foodnoms",
"sourceId": "3f6c2a9e-1b4d-4c8e-9a7f-2d5e8b1c4a60",
"timestamp": {
"@value": "2026-05-09T16:30:00.000Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"agent": {
"@type": "Person",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "icloud",
"sourceId": "1234567890",
"handle": "you@example.com",
"sameAs": ["@me"]
},
"object": {
"@type": "Meal",
"doc:key": {
"@list": ["@type", "source", "action.sourceId"]
},
"source": "foodnoms",
"name": "Lentil soup",
"category": ["Lunch"],
"description": "Lunch - Brand: Hearth Kitchen - 1.5 cup - 270 calories"
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[
a :EatAction;
doc:key ("source" "sourceId");
:source "foodnoms";
:sourceId "3f6c2a9e-1b4d-4c8e-9a7f-2d5e8b1c4a60";
:timestamp "2026-05-09T16:30:00.000Z"^^xsd:dateTime;
:agent [
a :Person;
doc:key ("@type" "source" "sourceId");
:source "icloud";
:sourceId "1234567890";
:handle "you@example.com";
:sameAs "@me"
];
:object [
a :Meal;
doc:key ("@type" "source" "action.sourceId");
:source "foodnoms";
:name "Lentil soup";
:category "Lunch";
:description "Lunch - Brand: Hearth Kitchen - 1.5 cup - 270 calories"
]
] .