At the end of the bof session I had a question about the type Hashtag
and where it comes from. I was curious as we where thinking about adding another type (e.g. Category
) to refer to a topic from a controlled vocabulary.
Taking an example toot one finds the following in the JSON:
{
"@context":[
"https://www.w3.org/ns/activitystreams",
{
"ostatus":"http://ostatus.org#",
"atomUri":"ostatus:atomUri",
"inReplyToAtomUri":"ostatus:inReplyToAtomUri",
"conversation":"ostatus:conversation",
"sensitive":"as:sensitive",
"toot":"http://joinmastodon.org/ns#",
"votersCount":"toot:votersCount",
"Hashtag":"as:Hashtag"
}
],
"tag":[
{
"type":"Hashtag",
"href":"https://octodon.social/tags/apconf2020",
"name":"#apconf2020"
}
]
}
Hashtag
is mapped to as:Hashtag
but I can not find this in the ActivityStreams vocabulary, neither with $ curl -LH "accept:application/ld+json" https://www.w3.org/ns/activitystreams# | grep -i hashtag
nor looking at https://www.w3.org/ns/activitystreams.
So, it looks like it is not standardized yet. (EDIT: Indeed, it is listed in the Mastodon doc under ActivityStreams extensions that have been proposed but not officially adopted.) One could add a type for a controlled term and a hashtag in one go, then…