NeoDB ActivityPub vocabulary
NeoDB extends ActivityStreams with the terms on this page. The IRI of a term is
https://neodb.net/ns# followed by the term, for example
https://neodb.net/ns#Rating. The usual prefix is neodb.
NeoDB sends its JSON-LD context inline in every document, so a processor does not need to fetch this page. For the shape of posts, lists and catalog items on the wire, see ActivityPub federation.
JSON-LD context
https://neodb.net/ns.jsonld holds the term definitions that NeoDB puts in the inline context of its posts. Use it after the ActivityStreams context:
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://neodb.net/ns.jsonld"
]
}
The context also maps sensitive to the ActivityStreams extension
as:sensitive.
Classes
| Term | Description |
|---|---|
Status |
The shelf status that a user gives to a catalog item. Properties: status, withRegardTo. |
Rating |
A grade for a catalog item. Properties: value, best, worst, withRegardTo. |
Comment |
A short comment on a catalog item. The text is in content. Optional properties: relatedWithItemPosition, relatedWithItemPositionType. |
Review |
A long review of a catalog item. The title is in name and the Markdown body is in content, with mediaType text/markdown. |
Shelf |
The envelope of a list: a collection that a user curates, or a shelf that holds the items with one status. first and last link to the first and last OrderedCollectionPage of its members. A shelf has shelfType. A dynamic collection has query. |
ShelfItem |
One member of a list. Properties: withRegardTo, collection, post, commentText. |
A reading note has the ActivityStreams type Note, with withRegardTo and
progress.
Properties
| Term | Description |
|---|---|
relatedWith |
On a Note or Article post: the NeoDB objects that the post carries, for example a Status, a Comment and a Rating for the same item. Always a set. |
withRegardTo |
The IRI of the catalog item that the object is about. |
status |
On a Status: wishlist, progress, complete or dropped. |
value |
On a Rating: the grade, an integer from 1 to 10. On a progress object: the position, as a string. |
best |
On a Rating: the highest grade, always 10. |
worst |
On a Rating: the lowest grade, always 1. |
progress |
On a reading note: how far the user got. An object with a progress type as type and the position as value. |
title |
On a reading note: the title. Older NeoDB versions send only title. NeoDB now also sends name, and readers accept either. |
relatedWithItemPosition |
On a Comment: the position in the item that the comment is about, in seconds, for example in a podcast episode. |
relatedWithItemPositionType |
On a Comment: the kind of relatedWithItemPosition. The only value is time. |
shelfType |
On a Shelf: wishlist, progress, complete or dropped. A collection does not have it. |
query |
On a Shelf: the search query that selects the items of a dynamic collection. |
collection |
On a ShelfItem: the IRI of the collection that holds the member. |
post |
On a ShelfItem of a shelf: the IRI of the post for the mark. |
commentText |
On a ShelfItem of a collection: the note that the user wrote for the member. |
Progress types
These terms are values of type in a progress object.
| Term | The value is |
|---|---|
page |
a page number |
chapter |
a chapter number |
part |
a part number |
episode |
an episode number |
track |
a track number |
cycle |
a cycle number |
percentage |
a percentage, from 0 to 100 |
timestamp |
a time, for example 1:23:45 |
Catalog types
A catalog item has one of these types. A post shows the items that it refers
to as tag entries of these types, with href, name and image.
| Term | Description |
|---|---|
Edition |
A book edition |
Work |
A book work, which groups editions |
Series |
A book series |
Movie |
A movie |
TVShow |
A TV show |
TVSeason |
A season of a TV show |
TVEpisode |
An episode of a TV season |
Album |
A music album |
Game |
A game |
Podcast |
A podcast |
PodcastEpisode |
An episode of a podcast |
Performance |
A performance, for example a play |
PerformanceProduction |
A production of a performance |
People |
A person or an organization |
Catalog item fields
A catalog item URL serves JSON-LD for application/activity+json and for the
ActivityStreams profile of application/ld+json. Its context sets @vocab to
https://neodb.net/ns#, so each field of the item expands under this
namespace. Only id, type, url and name keep their ActivityStreams
meaning. The fields follow the item schema of the NeoDB API, and this
page does not list them. For example, the actor of a movie is a credit name,
not an ActivityStreams actor.