Vocabulary for Various Logs
By Amy Guy; published: ; last modified:
Table of contents
Abstract
This vocabulary describes various small activities I like to log as an extension to ActivityStreams 2.0. I would expect them to present to a reader in aggregate over some time period.
Discussion
Notes about things considered when creating this vocabulary.
- Things are fairly arbitrarily added as I decide I want to add them to my site. Deliberately short and simple.
- These activities may not have
object
s because all they are for is notifications of aggregate things.
If I've missed something PR/issue welcome on github.
Consume
Tracking everything I eat.
- Consume
-
A consume activity. Subclass of as:Activity. The
object
should be a list of URIs for foodstuffs, and the content should be a description thereof.
Acquire
Tracking things I acquire, usually through purchasing or gifting.
- Acquire
-
An acquire activity. Subclass of as:Activity. The
object
should be a list of URIs for things acquired, and the name should be a description thereof. Thecontent
should be a description of what was acquired. - cost
-
The cost of something acquired as a literal, possibly including currency.
- amountUsd
-
The cost of something acquired in USD.
- amountEur
-
The cost of something acquired in EUR.
- amountGbp
-
The cost of something acquired in GBP.
Sleep
Tracking sleep.
- Sleep
-
A sleep activity. Subclass of as:Activity. Should have a
startTime
andendTime
, orduration
, or both.
Words
Motivated by using 750words and also wanting to track wordcounts for Nanowrimo and my thesis.
- Write
-
A write activity. Subclass of as:Activity. May have an
object
of the document being written. - wordCount
-
The number of words being recorded.
Usage
This vocabulary is used by (and was initially developed for) my website, for storing my logs because I felt like it. Examples:
@prefix asext: <https://rhiaro.co.uk/terms/as#> @prefix as: <https://www.w3.org/ns/activitystreams#> <> a asext:Consume, as:Activity ; as:published "" ; as:actor <https://rhiaro.co.uk/#me> ; as:content "Banana" ; as:tag <https://rhiaro.co.uk/tags/fruit> .
If you start using it for something or publishing your own logs somewhere using this, let me know or PR to add yours here.