Description: This document lists the terms used for the ActivityStreams 2.0 protocol and its stable extensions, and provides a namespace so each term has an HTTP IRI.

# ActivityStreams 2.0 Terms

## W3C Document 13 April 2018

Latest editor's draft:
  https://w3c.github.io/activitystreams/ns
Editor:
  Amy Guy (W3C)
Source:
  Repository on Github.
  Issues

Copyright © 2018 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark and permissive document license rules apply.

## Abstract

This document lists the terms used for the ActivityStreams 2.0 protocol and its stable extensions, and provides a namespace so each term has an HTTP IRI.

## Status of This Document

This document is merely a W3C-internal document. It has no official standing of any kind and does not represent consensus of the W3C Membership.

## 1. 1. Introduction

This document describes the vocabulary terms used in the [ActivityStreams] protocol along with the default JSON-LD Context.

This document makes use of the following namespaces:

`as`:
  `https://www.w3.org/ns/activitystreams#`
`xsd`:
  `http://www.w3.org/2001/XMLSchema#`
`ldp`:
  `http://www.w3.org/ns/ldp#`
`vcard`:
  `http://www.w3.org/2006/vcard/ns#`

The `as` namespace was changed from http to https in the JSON-LD context document with version 1.4 on 2017-02-21. It was unfortunately not changed in this HTML namespace document until 2018-11-24.

## 2. Class definitions

The following are class definitions in the `as` namespace. They link to their descriptions in the [ActivityStreamsVocab] spec.

## Objects

- Activity
- Application
- Article
- Audio
- Collection
- CollectionPage
- Relationship
- Document
- Event
- Group
- Image
- IntransitiveActivity
- Note
- Object
- OrderedCollection
- OrderedCollectionPage
- Organization
- Page
- Person
- Place
- Profile
- Question
- Service
- Tombstone
- Video

## Activities

- Accept
- Add
- Announce
- Arrive
- Block
- Create
- Delete
- Dislike
- Follow
- Flag
- Ignore
- Invite
- Join
- Leave
- Like
- Listen
- Move
- Offer
- Read
- Reject
- Remove
- TentativeAccept
- TentativeReject
- Travel
- Undo
- Update
- View

### Links and Relationships

- Link
- Mention
- IsFollowing
- IsFollowedBy
- IsContact
- IsMember

## 3. Property definitions

The following are property definitions in the `as` namespace. They are listed with their datatype in brackets if applicable, and link to their descriptions in the AS2 Vocabulary spec.

- subject (`@id`)
- relationship (`@id`)
- actor (`@id`)
- attributedTo (`@id`)
- attachment (`@id`)
- attachments (`@id`)
- author (`@id`)
- bcc (`@id`)
- bto (`@id`)
- cc (`@id`)
- context (`@id`)
- current (`@id`)
- first (`@id`)
- generator (`@id`)
- icon (`@id`)
- image (`@id`)
- inReplyTo (`@id`)
- items (`@id`)
- instrument (`@id`)
- orderedItems (`@id`)
- last (`@id`)
- location (`@id`)
- next (`@id`)
- object (`@id`)
- oneOf (`@id`)
- anyOf (`@id`)
- closed (`xsd:dateTime`)
- origin (`@id`)
- accuracy (`xsd:float`)
- prev (`@id`)
- preview (`@id`)
- provider (`@id`)
- replies (`@id`)
- result (`@id`)
- audience (`@id`)
- partOf (`@id`)
- tag (`@id`)
- tags (`@id`)
- target (`@id`)
- to (`@id`)
- url (`@id`)
- altitude (`xsd:float`)
- content
- contentMap
- name
- nameMap
- downstreamDuplicates
- duration (`xsd:duration`)
- endTime (`xsd:dateTime`)
- height (`xsd:nonNegativeInteger`)
- href (`@id`)
- hreflang
- latitude (`xsd:float`)
- longitude (`xsd:float`)
- mediaType
- published (`xsd:dateTime`)
- radius (`xsd:float`)
- rating (`xsd:float`)
- rel
- startIndex (`xsd:nonNegativeInteger`)
- startTime (`xsd:dateTime`)
- summary
- summaryMap
- totalItems (`xsd:nonNegativeInteger`)
- units
- updated (`xsd:dateTime`)
- upstreamDuplicates
- verb
- width (`xsd:nonNegativeInteger`)
- describes (`@id`)
- formerType (`@id`)
- deleted (`xsd:dateTime`)

## 4. Extensions

This namespace may be used by extensions to AS2 which are considered stable. The extensions must document their terms in a spec-like way at a persistant URL. Approval of extensions will be by the Social Web WG until it closes, and after that by the followup Community Group. Process and criteria for extensions approval is being finalised and will be described or linked to here in due course.

### 4.1 ActivityPub

All terms in this section are described in the [ActivityPub] specification.

- endpoints (`@id`)
- following (`@id`)
- followers (`@id`)
- inbox (`@id`) - This is an alias of `ldp:inbox`.
- liked (`@id`)
- shares (`@id`)
- likes (`@id`)
- oauthAuthorizationEndpoint (`@id`)
- oauthTokenEndpoint (`@id`)
- outbox (`@id`)
- preferredUsername
- provideClientKey (`@id`)
- proxyUrl (`@id`)
- sharedInbox (`@id`)
- signClientKey (`@id`)
- source
- streams (`@id`)
- uploadMedia (`@id`)

### 4.2 DID Core

The terms in this section are described in the [DID-CORE] specification.

- alsoKnownAs (`@id`)
  - Social Web Incubator CG Resolution: 2020-11-07

## A. References

### A.1 Normative references

[ActivityPub]
  ActivityPub. Christopher Webber; Jessica Tallon. W3C. 23 January 2018. W3C Recommendation. URL: https://www.w3.org/TR/activitypub/
[ActivityStreams]
  ActivityStreams 2.0. James Snell; Evan Prodromou. W3C. W3C Candidate Recommendation. URL: https://w3.org/TR/activitystreams-core
[ActivityStreamsVocab]
  ActivityStreams 2.0 Vocabulary. James Snell; Evan Prodromou. W3C. W3C Candidate Recommendation. URL: https://w3.org/TR/activitystreams-vocabulary
[DID-CORE]
  Decentralized Identifiers (DIDs) v1.0. Drummond Reed; Manu Sporny; Markus Sabadello; Dave Longley; Christopher Allen. W3C. 13 November 2019. W3C Working Draft. URL: https://www.w3.org/TR/did-core/