w3c-activitystreams-vocabulary/index.html
CDN aea03e2f4e
All checks were successful
Deploy / Deploy (push) Successful in 29s
translated to line 1274
2025-04-22 17:02:04 +08:00

8873 lines
No EOL
430 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-CN" dir="ltr" typeof="bibo:Document w3p:REC"
prefix="bibo: http://purl.org/ontology/bibo/ w3p: http://www.w3.org/2001/02pd/rec54#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta lang="" property="dc:language" content="zh-CN">
<style>
/* github.com style (c) Vasily Polovnyov <vast@whiteants.net> */
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
color: #333;
background: #f8f8f8;
}
.hljs-comment,
.hljs-quote {
color: #998;
font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
color: #333;
font-weight: bold;
}
.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
color: #008080;
}
.hljs-string,
.hljs-doctag {
color: #d14;
}
.hljs-title,
.hljs-section,
.hljs-selector-id {
color: #900;
font-weight: bold;
}
.hljs-subst {
font-weight: normal;
}
.hljs-type,
.hljs-class .hljs-title {
color: #458;
font-weight: bold;
}
.hljs-tag,
.hljs-name,
.hljs-attribute {
color: #000080;
font-weight: normal;
}
.hljs-regexp,
.hljs-link {
color: #009926;
}
.hljs-symbol,
.hljs-bullet {
color: #990073;
}
.hljs-built_in,
.hljs-builtin-name {
color: #0086b3;
}
.hljs-meta {
color: #999;
font-weight: bold;
}
.hljs-deletion {
background: #fdd;
}
.hljs-addition {
background: #dfd;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}
</style>
<style>
/* --- EXAMPLES --- */
div.example-title {
min-width: 7.5em;
color: #b9ab2d;
}
div.example-title span {
text-transform: uppercase;
}
aside.example,
div.example,
div.illegal-example {
padding: 0.5em;
margin: 1em 0;
position: relative;
clear: both;
}
div.illegal-example {
color: red
}
div.illegal-example p {
color: black
}
aside.example,
div.example {
padding: .5em;
border-left-width: .5em;
border-left-style: solid;
border-color: #e0cb52;
background: #fcfaee;
}
aside.example div.example {
border-left-width: .1em;
border-color: #999;
background: #fff;
}
aside.example div.example div.example-title {
color: #999;
}
</style>
<title>行为术语</title>
<style>
thead {
background: #005A9C;
color: white;
}
thead th {
font-weight: normal;
}
table,
td,
th {
border: 1px solid gray
}
table {
width: 100%;
}
td {
vertical-align: top;
padding: 5px;
}
.nanotabs>ul li {
float: left;
list-style: none;
}
.nanotabs>ul li a {
display: block;
padding: 4px 6px;
margin-right: 3px;
border-left: 1px solid #b9ab2d;
border-right: 1px solid #b9ab2d;
border-top: 1px solid #b9ab2d;
border-collapse: collapse;
background: #fcfaee;
color: #b9ab2d;
font-family: sans-serif;
text-decoration: none;
}
.nanotabs>ul li a:hover {
background: #FFFCE5;
color: #550;
}
.nanotabs>ul li a.selected {
background: #555;
color: #FFF;
}
</style>
<style id="respec-mainstyle">
/*****************************************************************
* ReSpec 3 CSS
* Robin Berjon - http://berjon.com/
*****************************************************************/
/* Override code highlighter background */
.hljs {
background: transparent !important;
}
/* --- INLINES --- */
em.rfc2119 {
text-transform: lowercase;
font-style: normal;
color: #900;
}
h1 abbr,
h2 abbr,
h3 abbr,
h4 abbr,
h5 abbr,
h6 abbr,
a abbr {
border: none;
}
dfn {
font-weight: bold;
}
a.internalDFN {
color: inherit;
border-bottom: 1px solid #99c;
text-decoration: none;
}
a.externalDFN {
color: inherit;
border-bottom: 1px dotted #ccc;
text-decoration: none;
}
a.bibref {
text-decoration: none;
}
cite .bibref {
font-style: normal;
}
code {
color: #C83500;
}
th code {
color: inherit;
}
/* --- TOC --- */
.toc a,
.tof a {
text-decoration: none;
}
a .secno,
a .figno {
color: #000;
}
ul.tof,
ol.tof {
list-style: none outside none;
}
.caption {
margin-top: 0.5em;
font-style: italic;
}
/* --- TABLE --- */
table.simple {
border-spacing: 0;
border-collapse: collapse;
border-bottom: 3px solid #005a9c;
}
.simple th {
background: #005a9c;
color: #fff;
padding: 3px 5px;
text-align: left;
}
.simple th[scope="row"] {
background: inherit;
color: inherit;
border-top: 1px solid #ddd;
}
.simple td {
padding: 3px 10px;
border-top: 1px solid #ddd;
}
.simple tr:nth-child(even) {
background: #f0f6ff;
}
/* --- DL --- */
.section dd>p:first-child {
margin-top: 0;
}
.section dd>p:last-child {
margin-bottom: 0;
}
.section dd {
margin-bottom: 1em;
}
.section dl.attrs dd,
.section dl.eldef dd {
margin-bottom: 0;
}
#issue-summary>ul,
.respec-dfn-list {
column-count: 2;
}
#issue-summary li,
.respec-dfn-list li {
list-style: none;
}
@media print {
.removeOnSave {
display: none;
}
}
</style>
<link rel="stylesheet" href="./assets/W3C-REC">
<link rel="canonical" href="https://w3c.wholetrans.org/activitystreams-vocabulary/">
<meta name="generator" content="ReSpec 12.0.6">
<script defer src="https://analytics.owu.one/script.js"
data-website-id="d0fbc5a4-ddcd-4e89-91e5-06c07082edf7"></script>
</head>
<body aria-busy="false" class="h-entry toc-sidebar" id="respecDocument">
<div class="translator-section">
<dl>
<dt>译者声明:</dt>
<dd>本规范的<a href="https://www.w3.org/TR/2017/REC-activitystreams-vocabulary-20170523/">英文版本</a>是其唯一标准版本。其他<a
href="https://www.w3.org/Translations/#s-activitypub ">翻译版本</a>包括本译文仅供参考。</dd>
<dd>译者力求翻译准确,但由于专业水平和时间限制,翻译难免出错。</dd>
<dd>欢迎通过以下方式提出意见建议: a. 在<a href="https://github.com/wholetrans/w3c-activitystreams-vocabulary">翻译Git存储库</a>创建 Issue。 b. 向 <a
href="mailto:errata@wholetrans.org">errata@wholetrans.org</a> 发送邮件。</dd>
<dt>译者:</dt>
<dd class="p-author h-card vcard"><a class="u-url url p-name fn" href="https://cdn0x12.dev/">CDN0x12</a> @<a
href="https://wholetrans.org/">全译</a></dd>
</dl>
</div>
<br/>
<p id="toc-nav"><a id="toc-jump" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#toc"><span
aria-hidden="true"></span> <span>跳转到目录</span></a><a id="toc-toggle"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#toc"><span aria-hidden="true"></span>
<span>折叠侧边栏</span></a></p>
<div class="head" role="contentinfo" id="respecHeader">
<p>
<a class="logo" href="https://www.w3.org/"><img width="72" height="48" src="./assets/W3C.svg" alt="W3C"></a>
</p>
<h1 class="title p-name" id="title" property="dcterms:title">行为术语</h1>
<h2 id="w3c-recommendation-23-may-2017"><abbr title="World Wide Web Consortium">W3C</abbr> 推荐规范 <time
property="dcterms:issued" class="dt-published" datetime="2017-05-23">2017年5月23日</time></h2>
<dl>
<dt>当前版本:</dt>
<dd><a class="u-url"
href="https://www.w3.org/TR/2017/REC-activitystreams-vocabulary-20170523/">https://www.w3.org/TR/2017/REC-activitystreams-vocabulary-20170523/</a>
</dd>
<dt>最新发布版本:</dt>
<dd><a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/">https://www.w3.org/TR/activitystreams-vocabulary/</a>
</dd>
<dt>最新编辑草案:</dt>
<dd><a
href="http://w3c.github.io/activitystreams/vocabulary/">http://w3c.github.io/activitystreams/vocabulary/</a>
</dd>
<dt>测试套件:</dt>
<dd><a
href="https://github.com/w3c/activitystreams/tree/master/test">https://github.com/w3c/activitystreams/tree/master/test</a>
</dd>
<dt>实现报告:</dt>
<dd><a
href="https://github.com/w3c/activitystreams/tree/master/implementation-reports">https://github.com/w3c/activitystreams/tree/master/implementation-reports</a>
</dd>
<dt>上一版本:</dt>
<dd><a rel="dcterms:replaces"
href="https://www.w3.org/TR/2017/PR-activitystreams-vocabulary-20170413/">https://www.w3.org/TR/2017/PR-activitystreams-vocabulary-20170413/</a>
</dd>
<dt>编者:</dt>
<dd class="p-author h-card vcard" property="bibo:editor" resource="_:editor0" data-editor-id="26988"><span
property="rdf:first" typeof="foaf:Person">
<meta property="foaf:name" content="James M Snell"><a class="u-url url p-name fn" property="foaf:homepage"
href="http://jasnell.me/">James M Snell</a>, IBM
</span>
<span property="rdf:rest" resource="_:editor1"></span>
</dd>
<dd class="p-author h-card vcard" resource="_:editor1" data-editor-id="43626"><span property="rdf:first"
typeof="foaf:Person">
<meta property="foaf:name" content="Evan Prodromou"><a class="u-url url p-name fn" property="foaf:homepage"
href="https://fuzzy.ai/about">Evan Prodromou</a>, Fuzzy.ai
</span>
<span property="rdf:rest" resource="rdf:nil"></span>
</dd>
<dt>代码存储库:</dt>
<dd>
<a href="https://github.com/w3c/activitystreams">
Github
</a>
</dd>
<dd>
<a href="https://github.com/w3c/activitystreams/issues">
问题追踪
</a>
</dd>
<dd>
<a href="https://github.com/w3c/activitystreams/commits/master">
提交历史
</a>
</dd>
<dt>测试工具:</dt>
<dd>
<a href="https://as2.rocks/">
验证器
</a>
</dd>
</dl>
<p>
请查阅<a
href="https://github.com/w3c/activitystreams/blob/master/ERRATA.md"><strong>勘误表</strong></a>,以获取自发布以来报告的所有错误或问题。
</p>
<p>
本规范的英文版本为唯一具有规范性的版本。可能还提供非规范性的<a
href="https://www.w3.org/2003/03/Translations/byTechnology?technology=https://www.w3.org/TR/activitystreams-vocabulary/">译本</a>
</p>
<p class="copyright">
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2017行为流Working
Group,IBM &amp;
<a href="https://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a
href="https://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>,
<a href="https://www.ercim.eu/"><abbr
title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>,
<a href="https://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>).
<abbr title="World Wide Web Consortium">W3C</abbr> <a
href="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and
<a rel="license" href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document">permissive
document license</a> rules apply.
</p>
<hr title="分隔线">
</div>
<section id="abstract" class="introductory" property="dc:abstract">
<h2 id="h-abstract" resource="#h-abstract"><span property="xhv:role" resource="xhv:heading">摘要</span></h2>
<p>
本规范描述了行为术语,它用于与 ActivityStreams 2.0 格式结合使用,并为行为结构以及具体行为类型提供基础术语。
</p>
<section id="authorsnote" class="informative" typeof="bibo:Chapter" resource="#authorsnote" property="bibo:hasPart">
<h3 id="h-authorsnote" resource="#h-authorsnote"><span property="xhv:role" resource="xhv:heading">作者注</span></h3>
<p><em>本节为非规范性内容。</em></p>
<p>
本草案深受由 Martin Atkins、Will Norris、Chris Messina、Monica Wilkinson、Rob Dolin 和 James Snell 最初共同撰写的 JSON Activity
Streams 1.0 规范的影响。作者非常感谢他们的重要贡献并十分荣幸能在他们奠定的基础之上继续推进。本文件中使用了行为流1.0 原文的部分内容。
</p>
</section>
</section>
<section id="sotd" class="introductory">
<h2 id="h-sotd" resource="#h-sotd"><span property="xhv:role" resource="xhv:heading">本文档的状态</span>
</h2>
<p>
<em>本节描述了本文档在发布时的状态。其他文档可能会取代本文档。可在 <a
href="https://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> 技术报告索引</a>
https://www.w3.org/TR/ 查询当前 <abbr title="World Wide Web Consortium">W3C</abbr> 出版物和本技术报告的最新版本。</em>
</p>
<p>
本文档由 <a href="https://www.w3.org/Social/WG">社交网络工作组</a>以推荐规范的形式发布。欢迎提出意见和建议。请将您的意见发送至
<a href="mailto:public-socialweb@w3.org">public-socialweb@w3.org</a> (<a
href="mailto:public-socialweb-request@w3.org?subject=subscribe">订阅</a>
<a href="https://lists.w3.org/Archives/Public/public-socialweb/">归档</a>)。
</p>
<p>
请查阅工作组的<a href="https://github.com/w3c/activitystreams/tree/master/implementation-reports">实现报告</a>
</p>
<p>
本文档已由 <abbr title="World Wide Web Consortium">W3C</abbr> 成员、软件开发者及其他 <abbr
title="World Wide Web Consortium">W3C</abbr> 小组和利益相关方审阅,并被指导组认定为 <abbr
title="World Wide Web Consortium">W3C</abbr> 推荐规范。该文档内容稳定,可用作参考资料,亦可被其他文档引用。<abbr
title="World Wide Web Consortium">W3C</abbr> 发布推荐规范旨在引起对规范的关注,并推动其广泛部署,这有助于提升 Web 的功能性和互操作性。
</p>
<p>
本文档由遵守
<a id="sotd_patent" property="w3p:patentRules"
href="https://www.w3.org/Consortium/Patent-Policy-20040205/">2004年2月5日 <abbr
title="World Wide Web Consortium">W3C</abbr> 专利政策</a>
的团队编写。
<abbr title="World Wide Web Consortium">W3C</abbr> 维护了一个<a href="https://www.w3.org/2004/01/pp-impl/72531/status"
rel="disclosure">与专利相关的专利披露公示</a>列表,页面内也提供披露专利的说明。任何实际知晓某项专利,并认为此专利中含有其<a
href="https://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">基本权利要求</a>
的个人,须依照<a href="https://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">W3C 专利政策第6节</a>进行信息披露。
</p>
<p>本文档受 <a id="w3c_process_revision" href="https://www.w3.org/2017/Process-20170301/">2017年3月1日的 <abbr
title="World Wide Web Consortium">W3C</abbr> 流程文档</a> 管辖。
</p>
</section>
<nav id="toc">
<h2 class="introductory" id="table-of-contents" resource="#table-of-contents"><span property="xhv:role"
resource="xhv:heading">目录</span></h2>
<ol class="toc" role="directory">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#introduction"
class="tocxref"><span class="secno">1. </span>引言</a>
<ol class="toc">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#termconventions"
class="tocxref"><span class="secno">1.1 </span>约定</a></li>
</ol>
</li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#types" class="tocxref"><span
class="secno">2. </span>核心类型</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#extendedtypes"
class="tocxref"><span class="secno">3. </span>扩展类型</a>
<ol class="toc">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#activity-types"
class="tocxref"><span class="secno">3.1 </span>行为类型</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#actor-types"
class="tocxref"><span class="secno">3.2 </span>行为体类型</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#object-types"
class="tocxref"><span class="secno">3.3 </span>对象与链接类型</a></li>
</ol>
</li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#properties"
class="tocxref"><span class="secno">4. </span>属性</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#notes" class="tocxref"><span
class="secno">5. </span>实现说明</a>
<ol class="toc">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#audienceTargeting"
class="tocxref"><span class="secno">5.1 </span>受众定位</a>
<ol class="toc"></ol>
</li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#connections"
class="tocxref"><span class="secno">5.2 </span>实体间的关系的表示</a>
<ol class="toc"></ol>
</li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#places"
class="tocxref"><span class="secno">5.3 </span>地点的表示</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#questions"
class="tocxref"><span class="secno">5.4 </span>问题的表示</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#inverse"
class="tocxref"><span class="secno">5.5 </span>逆行为与“撤销”</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#microsyntaxes"
class="tocxref"><span class="secno">5.6 </span>提及、标签及其他常见社交微语法</a>
</li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#origin-target"
class="tocxref"><span class="secno">5.7 </span>来源与目标</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#motivations"
class="tocxref"><span class="secno">5.8 </span>由行为类型驱动的用例</a>
<ol class="toc"></ol>
</li>
</ol>
</li>
<li class="tocline"><a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#non-normative-ontology-definition"
class="tocxref"><span class="secno">A. </span>非规范本体定义</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#changelog"
class="tocxref"><span class="secno">B. </span>变更日志</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#references"
class="tocxref"><span class="secno">C. </span>资料引用</a>
<ol class="toc">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#normative-references"
class="tocxref"><span class="secno">C.1 </span>规范性引用</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#informative-references"
class="tocxref"><span class="secno">C.2 </span>资料性引用</a></li>
</ol>
</li>
</ol>
</nav>
<section id="introduction" typeof="bibo:Chapter" resource="#introduction" property="bibo:hasPart">
<!--OddPage-->
<h2 id="h-introduction" resource="#h-introduction"><span property="xhv:role" resource="xhv:heading"><span
class="secno">1. </span>引言</span>
</h2>
<p>
<a href="https://www.w3.org/TR/activitystreams-core/">行为流 2.0 核心语法</a>定义了行为流的 JSON 语法。本文档则定义了相关术语属性。
</p>
<p>
行为流 2.0 术语表规定了一组抽象类型和属性,用以描述过去、现在和将来发生的行为。该术语表由两个部分组成:
</p>
<ol>
<li>
一组为核心属性,描述行为的通用结构;
</li>
<li>
一组为扩展属性,覆盖许多社交网络应用系统中常见的各类行为和内容。
</li>
</ol>
<p></p>
<p>
虽然并非所有行为流2.0 的实现都要求支持扩展属性,但所有实现<em class="rfc2119" title="MUST">必须</em> 至少能够按照
<a href="https://www.w3.org/TR/activitystreams-core/">行为流 2.0 核心语法</a>对扩展属性进行序列化与反序列化。
</p>
<p>
本文中的关键术语“<em class="rfc2119" title="MUST">必须</em>”、“<em class="rfc2119" title="MUST NOT">不得</em>”、“<em
class="rfc2119" title="REQUIRED">需要</em>”、“<em class="rfc2119" title="SHALL">应当</em>”、“<em class="rfc2119"
title="SHALL NOT">不应</em>”、“
<em class="rfc2119" title="SHOULD">建议</em>”、“<em class="rfc2119" title="SHOULD NOT">不建议</em>”、“<em class="rfc2119"
title="RECOMMENDED">推荐</em>”、“<em class="rfc2119" title="MAY">可以</em>” 和 “<em class="rfc2119"
title="OPTIONAL">可选</em>”等,按 [<cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC2119">RFC2119</a></cite>] 中的说明进行解释。
</p>
<section id="termconventions" typeof="bibo:Chapter" resource="#termconventions" property="bibo:hasPart">
<h3 id="h-termconventions" resource="#h-termconventions"><span property="xhv:role" resource="xhv:heading"><span
class="secno">1.1 </span>约定</span>
</h3>
<p>
除非另有说明,所有定义为
<code>xsd:dateTime</code> 类型的属性<em class="rfc2119" title="MUST">必须</em>符合行为流2.0 核心规范中
<a href="https://www.w3.org/TR/activitystreams-core/#dates">第2.3节</a>的规定。
</p>
<p>
本文档中的示例均采用本规范定义的规范 JSON 序列化格式。
</p>
</section>
</section>
<section id="types" typeof="bibo:Chapter" resource="#types" property="bibo:hasPart">
<!--OddPage-->
<h2 id="h-types" resource="#h-types"><span property="xhv:role" resource="xhv:heading"><span class="secno">2.
</span>核心类型</span>
</h2>
<p>
行为术语核心类型构成了其余术语的基础。
</p>
<p>基础 URI<code>https://www.w3.org/ns/activitystreams#</code></p>
<p>行为流 2.0 的核心类型包括:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object (对象)</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link (链接)</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity (行为)</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity (不及物行为)</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection (集合)</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-orderedcollection" class="internalDFN" data-link-type="dfn">OrderedCollection (有序集合)</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage (集合页)</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-orderedcollectionpage" class="internalDFN" data-link-type="dfn">OrderedCollectionPage (有序集合页)</a></code>
</li>
</ul>
<p></p>
<table>
<thead>
<tr>
<th></th>
<th colspan="2" style="width: 40%">描述</th>
<th style="width: 40%">示例</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-object">Object</dfn></td>
<td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#Object</code></td>
<td rowspan="4">
<div id="ex1-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>示例 1</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Object"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://www.test.example/object/1"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个简单且无特定类型的对象"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>说明:</td>
<td>
Object (对象)可用于描述任何类型。Object 类型作为行为术语中大多数其他种类对象的基准类型,包括核心类型中的
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
以及
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-orderedcollection" class="internalDFN" data-link-type="dfn">OrderedCollection</a></code>
</td>
</tr>
<tr>
<td>互斥于:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>属性:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-attachment" class="internalDFN" data-link-type="dfn">attachment</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-attributedto" class="internalDFN" data-link-type="dfn">attributedTo</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-audience" class="internalDFN" data-link-type="dfn">audience</a></code>
|
<code><a data-lt="content-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-content" class="internalDFN" data-link-type="dfn">content</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-context" class="internalDFN" data-link-type="dfn">context</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-name" class="internalDFN" data-link-type="dfn">name</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-endtime" class="internalDFN" data-link-type="dfn">endTime</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-generator" class="internalDFN" data-link-type="dfn">generator</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-icon" class="internalDFN" data-link-type="dfn">icon</a></code>
|
<code><a data-lt="image-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-image" class="internalDFN" data-link-type="dfn">image</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-inreplyto" class="internalDFN" data-link-type="dfn">inReplyTo</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-location" class="internalDFN" data-link-type="dfn">location</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-preview" class="internalDFN" data-link-type="dfn">preview</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-published" class="internalDFN" data-link-type="dfn">published</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-replies" class="internalDFN" data-link-type="dfn">replies</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-starttime" class="internalDFN" data-link-type="dfn">startTime</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-summary" class="internalDFN" data-link-type="dfn">summary</a></code>
|
<code><a data-lt="tag-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tag" class="internalDFN" data-link-type="dfn">tag</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-updated" class="internalDFN" data-link-type="dfn">updated</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-url" class="internalDFN" data-link-type="dfn">url</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-to" class="internalDFN" data-link-type="dfn">to</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-bto" class="internalDFN" data-link-type="dfn">bto</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-cc" class="internalDFN" data-link-type="dfn">cc</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-bcc" class="internalDFN" data-link-type="dfn">bcc</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-mediatype" class="internalDFN" data-link-type="dfn">mediaType</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-duration" class="internalDFN" data-link-type="dfn">duration</a></code>
</p>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-link">Link</dfn></td>
<td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#Link</code></td>
<td rowspan="4">
<div id="ex2-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>示例 2</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/abc"</span>,
<span class="hljs-attr">"hreflang"</span>: <span class="hljs-string">"en"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"text/html"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个示例链接"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>说明:</td>
<td>
Link (链接)是对由 URL 标识的资源的间接、限定性引用。Link 的基础模型基于[
<cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC5988">RFC5988</a></cite>]。很多行为术语定义的属性,其值既可以是
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
实例,也可以是
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
实例。
当使用
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
时,它在主体(包含它的对象)与
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-href" class="internalDFN" data-link-type="dfn">href</a></code>
所标识的资源之间建立了
<a href="http://patterns.dataincubator.org/book/qualified-relation.html">限定关系</a><code>Link</code>
的属性是引用本身的属性,而非资源的属性。
</td>
</tr>
<tr>
<td>互斥于:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>属性:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-href" class="internalDFN" data-link-type="dfn">href</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-rel" class="internalDFN" data-link-type="dfn">rel</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-mediatype" class="internalDFN" data-link-type="dfn">mediaType</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-name" class="internalDFN" data-link-type="dfn">name</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-hreflang" class="internalDFN" data-link-type="dfn">hreflang</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-height" class="internalDFN" data-link-type="dfn">height</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-width" class="internalDFN" data-link-type="dfn">width</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-preview" class="internalDFN" data-link-type="dfn">preview</a></code>
</p>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-activity">Activity</dfn></td>
<td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#Activity</code></td>
<td rowspan="4">
<div id="ex3-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>示例 3</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Activity"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally 对一条备注进行了操作"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一条备注"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>说明:</td>
<td>
Activity (行为)是
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
的子类型,用于描述某种形式的动作,该动作可能将要发生、正在发生或已经发生。<code>Activity</code> 类型本身作为所有具体行为类型的抽象基类。请注意,<code>Activity</code>
类型本身并不携带任何关于所发生的行为的具体语义。
</td>
</tr>
<tr>
<td>继承自:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>属性:</td>
<td>
<p>
<code><a data-lt="actor-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-actor" class="internalDFN" data-link-type="dfn">actor</a></code>
|
<code><a data-lt="object-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-target" class="internalDFN" data-link-type="dfn">target</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-result" class="internalDFN" data-link-type="dfn">result</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-origin" class="internalDFN" data-link-type="dfn">origin</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-instrument" class="internalDFN" data-link-type="dfn">instrument</a></code>
</p>
<p>
继承
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
的所有属性。
</p>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-intransitiveactivity">IntransitiveActivity</dfn></td>
<td style="width: 10%">URI:</td>
<td>
<code>https://www.w3.org/ns/activitystreams#IntransitiveActivity</code>
</td>
<td rowspan="4">
<div id="ex182-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>示例 4</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Travel"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally 去上班了"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Work"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>说明:</td>
<td>
<code>IntransitiveActivity</code> 的实例是 <code>Activity</code>
的子类型,代表不及物的动作。因此,对于这类行为,<code><a data-lt="object-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code>
属性并不适用。
</td>
</tr>
<tr>
<td>继承自:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>属性:</td>
<td>
<p>
继承
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
的所有属性,但不包括 <code>object</code>
</p>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-collection">Collection</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Collection</code></td>
<td rowspan="4">
<div id="ex5-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>示例 5</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally 的备注"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">2</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个简单的备注"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>说明:</td>
<td>
<p>
<code>Collection (集合)</code>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
的子类型,用于表示有序或无序的
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
实例的集合。
</p>
<p>
完全描述请参见
<a href="https://www.w3.org/TR/activitystreams-core/#collection">行为流 2.0 核心规范</a>
<code>Collection</code> 类型部分。
</p>
</td>
</tr>
<tr>
<td>继承自:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>属性:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-totalitems" class="internalDFN" data-link-type="dfn">totalItems</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-current" class="internalDFN" data-link-type="dfn">current</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-first" class="internalDFN" data-link-type="dfn">first</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-last" class="internalDFN" data-link-type="dfn">last</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-items" class="internalDFN" data-link-type="dfn">items</a></code>
</p>
<p>
继承
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
的所有属性。
</p>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-orderedcollection">OrderedCollection</dfn></td>
<td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#OrderedCollection</code></td>
<td rowspan="4">
<div id="ex6-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>示例 6</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally 的备注"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"OrderedCollection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">2</span>,
<span class="hljs-attr">"orderedItems"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个简单的备注"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>说明:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
的子类型,其逻辑集合中的成员始终严格保持有序。
</p>
</td>
</tr>
<tr>
<td>继承自:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td>
</tr>
<tr>
<td>属性:</td>
<td>
<p>继承
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
的所有属性。
</p>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-collectionpage">CollectionPage</dfn></td>
<td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#CollectionPage</code></td>
<td rowspan="4">
<div id="ex6b-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>示例 7</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally 的备注第1页"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"CollectionPage"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/foo?page=1"</span>,
<span class="hljs-attr">"partOf"</span>: <span class="hljs-string">"http://example.org/foo"</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个简单的备注"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>说明:</td>
<td>
<p>
用于表示 <code>Collection</code> 的不同子集。详见
<a href="https://www.w3.org/TR/activitystreams-core/#dfn-collectionpage">行为流 2.0 核心规范</a>
中关于
<code>CollectionPage</code> 对象的完整描述。
</p>
</td>
</tr>
<tr>
<td>继承自:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td>
</tr>
<tr>
<td>属性:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-partof" class="internalDFN" data-link-type="dfn">partOf</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-next" class="internalDFN" data-link-type="dfn">next</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-prev" class="internalDFN" data-link-type="dfn">prev</a></code>
</p>
<p>继承自
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
的所有属性。
</p>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-orderedcollectionpage">OrderedCollectionPage</dfn></td>
<td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#OrderedCollectionPage</code></td>
<td rowspan="4">
<div id="ex6c-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>示例 8</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally 的备注第1页"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"OrderedCollectionPage"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/foo?page=1"</span>,
<span class="hljs-attr">"partOf"</span>: <span class="hljs-string">"http://example.org/foo"</span>,
<span class="hljs-attr">"orderedItems"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个简单的备注"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>说明:</td>
<td>
<p>
表示 <code>OrderedCollection</code> 对象的有序子集。详见
<a href="https://www.w3.org/TR/activitystreams-core/#dfn-orderedcollectionpage">行为流 2.0 核心规范</a>
中关于 <code>OrderedCollectionPage</code> 对象的完整描述。
</p>
</td>
</tr>
<tr>
<td>继承自:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-orderedcollection" class="internalDFN" data-link-type="dfn">OrderedCollection</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
</td>
</tr>
<tr>
<td>属性:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-startindex" class="internalDFN" data-link-type="dfn">startIndex</a></code>
</p>
<p>
继承
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-orderedcollection" class="internalDFN" data-link-type="dfn">OrderedCollection</a></code>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
的所有属性。
</p>
</td>
</tr>
</tbody>
</table>
</section>
<section id="extendedtypes" typeof="bibo:Chapter" resource="#extendedtypes" property="bibo:hasPart">
<!--OddPage-->
<h2 id="h-extendedtypes" resource="#h-extendedtypes"><span property="xhv:role" resource="xhv:heading"><span
class="secno">3. </span>Extended Types</span>
</h2>
<p>Base URI: <code>https://www.w3.org/ns/activitystreams#</code>.</p>
<p>
The Activity Streams 2.0 Extended Types include Activity and Object subtypes that are common to many social Web
applications. They are divided into three sets:
</p>
<ul>
<li><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#activity-types">Activity Types</a></li>
<li><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#actor-types">Actor Types</a></li>
<li><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#object-types">Object Types</a></li>
</ul>
<p></p>
<p>
Support for specific extended vocabulary types is expected to vary, with implementations only selecting the
extended types and properties that make sense within the specific context and requirements of those applications.
However, to avoid possible interoperability issues, implementations <em class="rfc2119" title="MUST">MUST</em>
avoid using extension types or properties that unduly overlap with or duplicate the extended vocabulary defined
here.
</p>
<section id="activity-types" typeof="bibo:Chapter" resource="#activity-types" property="bibo:hasPart">
<h3 id="h-activity-types" resource="#h-activity-types"><span property="xhv:role" resource="xhv:heading"><span
class="secno">3.1 </span>Activity Types</span>
</h3>
<p>
All Activity Types inherit the properties of the base <a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN"
data-link-type="dfn">Activity</a> type. Some specific Activity Types are subtypes or specializations of more
generalized Activity Types (for instance, the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-invite" class="internalDFN" data-link-type="dfn">Invite</a></code>
Activity Type is a more specific form of the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-offer" class="internalDFN" data-link-type="dfn">Offer</a></code>
Activity Type).
</p>
<p>
The Activity Types include:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accept" class="internalDFN" data-link-type="dfn">Accept</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-add" class="internalDFN" data-link-type="dfn">Add</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-announce" class="internalDFN" data-link-type="dfn">Announce</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-arrive" class="internalDFN" data-link-type="dfn">Arrive</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-block" class="internalDFN" data-link-type="dfn">Block</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-create" class="internalDFN" data-link-type="dfn">Create</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-delete" class="internalDFN" data-link-type="dfn">Delete</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-dislike" class="internalDFN" data-link-type="dfn">Dislike</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-flag" class="internalDFN" data-link-type="dfn">Flag</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-follow" class="internalDFN" data-link-type="dfn">Follow</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-ignore" class="internalDFN" data-link-type="dfn">Ignore</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-invite" class="internalDFN" data-link-type="dfn">Invite</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-join" class="internalDFN" data-link-type="dfn">Join</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-leave" class="internalDFN" data-link-type="dfn">Leave</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-like" class="internalDFN" data-link-type="dfn">Like</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-listen" class="internalDFN" data-link-type="dfn">Listen</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-move" class="internalDFN" data-link-type="dfn">Move</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-offer" class="internalDFN" data-link-type="dfn">Offer</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-question" class="internalDFN" data-link-type="dfn">Question</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-reject" class="internalDFN" data-link-type="dfn">Reject</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-read" class="internalDFN" data-link-type="dfn">Read</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-remove" class="internalDFN" data-link-type="dfn">Remove</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tentativereject" class="internalDFN" data-link-type="dfn">TentativeReject</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tentativeaccept" class="internalDFN" data-link-type="dfn">TentativeAccept</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-travel" class="internalDFN" data-link-type="dfn">Travel</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-undo" class="internalDFN" data-link-type="dfn">Undo</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-update" class="internalDFN" data-link-type="dfn">Update</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-view" class="internalDFN" data-link-type="dfn">View</a></code>
</li>
</ul>
<p></p>
<table>
<thead>
<tr>
<th>Class</th>
<th colspan="2" style="width: 40%">Description</th>
<th style="width: 40%">Example</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-accept">Accept</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Accept</code></td>
<td rowspan="4">
<div id="ex7a-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 9</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally accepted an invitation to a party"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Accept"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Invite"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Event"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Going-Away Party for Jim"</span>
}
}
}</pre>
</div>
</div>
<div id="ex7b-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 10</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally accepted Joe into the club"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Accept"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Joe"</span>
},
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Group"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"The Club"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> accepts the
<code>object</code>. The <code>target</code> property can be used in certain circumstances to indicate the
context into which the
<code>object</code> has been accepted.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-tentativeaccept">TentativeAccept</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#TentativeAccept</code></td>
<td rowspan="4">
<div id="ex8-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 11</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally tentatively accepted an invitation to a party"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"TentativeAccept"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Invite"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Event"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Going-Away Party for Jim"</span>
}
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A specialization of
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accept" class="internalDFN" data-link-type="dfn">Accept</a></code>
indicating that the acceptance is tentative.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accept" class="internalDFN" data-link-type="dfn">Accept</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accept" class="internalDFN" data-link-type="dfn">Accept</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-add">Add</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Add</code></td>
<td rowspan="4">
<div id="ex9-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 12</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally added an object"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Add"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/abc"</span>
}</pre>
</div>
</div>
<div id="ex10-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 13</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally added a picture of her cat to her cat picture collection"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Add"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A picture of my cat"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/img/cat.png"</span>
},
<span class="hljs-attr">"origin"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Camera Roll"</span>
},
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"My Cat Pictures"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> has added the
<code>object</code> to the <code>target</code>. If the
<code>target</code> property is not explicitly specified, the target would need to be determined
implicitly by context. The
<code>origin</code> can be used to identify the context from which the <code>object</code> originated.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-arrive">Arrive</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Arrive</code></td>
<td rowspan="4">
<div id="ex11-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 14</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally arrived at work"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Arrive"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"location"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Work"</span>
},
<span class="hljs-attr">"origin"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Home"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
An
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>
that indicates that the <code>actor</code> has arrived at the <code>location</code>. The
<code>origin</code> can be used to identify the context from which the <code>actor</code> originated. The
<code>target</code> typically has no defined meaning.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
Inherits all properties fom
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-create">Create</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Create</code></td>
<td rowspan="4">
<div id="ex12-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 15</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally created a note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Create"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A Simple Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"This is a simple note"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>Indicates that the <code>actor</code> has created the
<code>object</code>.
</p>
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-delete">Delete</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Delete</code></td>
<td rowspan="4">
<div id="ex13-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 16</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally deleted a note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Delete"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/notes/1"</span>,
<span class="hljs-attr">"origin"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally's Notes"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> has deleted the
<code>object</code>. If specified, the <code>origin</code> indicates the context from which the
<code>object</code> was deleted.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-follow">Follow</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Follow</code></td>
<td rowspan="4">
<div id="ex15-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 17</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally followed John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Follow"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"John"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> is "following" the
<code>object</code>. Following is defined in the sense typically used within Social systems in which the
actor is interested in any activity performed by or on the object. The
<code>target</code> and <code>origin</code> typically have no defined meaning.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-ignore">Ignore</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Ignore</code></td>
<td rowspan="4">
<div id="ex16-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 18</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally ignored a note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Ignore"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/notes/1"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> is ignoring the
<code>object</code>. The <code>target</code> and
<code>origin</code> typically have no defined meaning.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-join">Join</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Join</code></td>
<td rowspan="4">
<div id="ex17-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 19</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally joined a group"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Join"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Group"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A Simple Group"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> has joined the
<code>object</code>. The <code>target</code> and
<code>origin</code> typically have no defined meaning.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-leave">Leave</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Leave</code></td>
<td rowspan="4">
<div id="ex18-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 20</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally left work"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Leave"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Work"</span>
}
}</pre>
</div>
</div>
<div id="ex19-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 21</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally left a group"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Leave"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Group"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A Simple Group"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> has left the
<code>object</code>. The <code>target</code> and
<code>origin</code> typically have no meaning.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-like">Like</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Like</code></td>
<td rowspan="4">
<div id="ex20-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 22</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally liked a note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Like"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/notes/1"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
Indicates that the <code>actor</code> likes, recommends or endorses the <code>object</code>. The
<code>target</code> and
<code>origin</code> typically have no defined meaning.
</p>
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-offer">Offer</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Offer</code></td>
<td rowspan="4">
<div id="ex21-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 23</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally offered 50% off to Lewis"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"http://www.types.example/ProductOffer"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"50% Off!"</span>
},
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Lewis"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> is offering the
<code>object</code>. If specified, the <code>target</code> indicates the entity to which the
<code>object</code> is being offered.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-invite">Invite</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Invite</code></td>
<td rowspan="4">
<div id="ex24-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 24</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally invited John and Lisa to a party"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Invite"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Event"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A Party"</span>
},
<span class="hljs-attr">"target"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"John"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Lisa"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A specialization of
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-offer" class="internalDFN" data-link-type="dfn">Offer</a></code>
in which the
<code>actor</code> is extending an invitation for the
<code>object</code> to the <code>target</code>.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-offer" class="internalDFN" data-link-type="dfn">Offer</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-offer" class="internalDFN" data-link-type="dfn">Offer</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-reject">Reject</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Reject</code></td>
<td rowspan="4">
<div id="ex26-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 25</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally rejected an invitation to a party"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Reject"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Invite"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Event"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Going-Away Party for Jim"</span>
}
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> is rejecting the
<code>object</code>. The <code>target</code> and
<code>origin</code> typically have no defined meaning.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-tentativereject">TentativeReject</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#TentativeReject</code></td>
<td rowspan="4">
<div id="ex27-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 26</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally tentatively rejected an invitation to a party"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"TentativeReject"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Invite"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Event"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Going-Away Party for Jim"</span>
}
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A specialization of
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-reject" class="internalDFN" data-link-type="dfn">Reject</a></code>
in which the rejection is considered tentative.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-reject" class="internalDFN" data-link-type="dfn">Reject</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-reject" class="internalDFN" data-link-type="dfn">Reject</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-remove">Remove</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Remove</code></td>
<td rowspan="4">
<div id="ex28-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 27</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally removed a note from her notes folder"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Remove"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/notes/1"</span>,
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Notes Folder"</span>
}
}</pre>
</div>
</div>
<div id="ex29-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 28</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"The moderator removed Sally from a group"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Remove"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"http://example.org/Role"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"The Moderator"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"origin"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Group"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A Simple Group"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> is removing the
<code>object</code>. If specified, the <code>origin</code> indicates the context from which the
<code>object</code> is being removed.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-undo">Undo</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Undo</code></td>
<td rowspan="4">
<div id="ex32-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 29</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally retracted her offer to John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Undo"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: <span class="hljs-string">"http://john.example.org"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
Indicates that the <code>actor</code> is undoing the
<code>object</code>. In most cases, the <code>object</code> will be an
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
describing some previously performed action (for instance, a person may have previously "liked" an
article but, for whatever reason, might choose to undo that like at some later point in time).
</p>
<p>
The <code>target</code> and <code>origin</code> typically have no defined meaning.
</p>
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-update">Update</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Update</code></td>
<td rowspan="4">
<div id="ex33-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 30</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally updated her note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Update"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/notes/1"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
Indicates that the <code>actor</code> has updated the
<code>object</code>. Note, however, that this vocabulary does not define a mechanism for describing the
actual set of modifications made to <code>object</code>.
</p>
<p>
The <code>target</code> and
<code>origin</code> typically have no defined meaning.
</p>
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-view">View</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#View</code></td>
<td rowspan="4">
<div id="ex161-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 31</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally read an article"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"View"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Article"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"What You Should Know About Activity Streams"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> has viewed the object.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-listen">Listen</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Listen</code></td>
<td rowspan="4">
<div id="ex163-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 32</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally listened to a piece of music"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Listen"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/music.mp3"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> has listened to the
<code>object</code>.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-read">Read</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Read</code></td>
<td rowspan="4">
<div id="ex164-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 33</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally read a blog post"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Read"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> has read the
<code>object</code>.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-move">Move</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Move</code></td>
<td rowspan="4">
<div id="ex168-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 34</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally moved a post from List A to List B"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Move"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"List B"</span>
},
<span class="hljs-attr">"origin"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"List A"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> has moved
<code>object</code> from <code>origin</code> to
<code>target</code>. If the <code>origin</code> or
<code>target</code> are not specified, either can be determined by context.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-travel">Travel</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Travel</code></td>
<td rowspan="4">
<div id="ex169-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 35</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally went home from work"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Travel"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Home"</span>
},
<span class="hljs-attr">"origin"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Work"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> is traveling to
<code>target</code> from <code>origin</code>. <code>Travel</code> is an <code>IntransitiveObject</code>
whose <code>actor</code> specifies the direct object. If the <code>target</code> or
<code>origin</code> are not specified, either can be determined by context.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-announce">Announce</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Announce</code></td>
<td rowspan="4">
<div id="ex170-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 36</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally announced that she had arrived at work"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Announce"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Arrive"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"location"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Work"</span>
}
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
Indicates that the <code>actor</code> is calling the <code>target</code>'s attention the
<code>object</code>.
</p>
<p>
The <code>origin</code> typically has no defined meaning.
</p>
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-block">Block</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Block</code></td>
<td rowspan="4">
<div id="ex173-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 37</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally blocked Joe"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Block"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://joe.example.org"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> is blocking the
<code>object</code>. Blocking is a stronger form of
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-ignore" class="internalDFN" data-link-type="dfn">Ignore</a></code>.
The typical use is to support social systems that allow one user to block activities or content of other
users. The <code>target</code> and <code>origin</code> typically have no defined meaning.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-ignore" class="internalDFN" data-link-type="dfn">Ignore</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-ignore" class="internalDFN" data-link-type="dfn">Ignore</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-flag">Flag</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Flag</code></td>
<td rowspan="4">
<div id="ex174-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 38</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally flagged an inappropriate note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Flag"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"An inappropriate note"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> is "flagging" the
<code>object</code>. Flagging is defined in the sense common to many social platforms as reporting content
as being inappropriate for any number of reasons.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-dislike">Dislike</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Dislike</code></td>
<td rowspan="4">
<div id="ex175-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 39</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally disliked a post"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Dislike"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that the <code>actor</code> dislikes the
<code>object</code>.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-question">Question</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Question</code></td>
<td rowspan="4">
<div id="ex55a-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 40</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Question"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"What is the answer?"</span>,
<span class="hljs-attr">"oneOf"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Option A"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Option B"</span>
}
]
}</pre>
</div>
</div>
<div id="ex55b-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 41</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Question"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"What is the answer?"</span>,
<span class="hljs-attr">"closed"</span>: <span class="hljs-string">"2016-05-10T00:00:00Z"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
Represents a question being asked. Question objects are an extension of
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>.
That is, the Question object is an Activity, but the direct object is the question itself and therefore
it would not contain an
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code>
property.
</p>
<p>
Either of the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-anyof" class="internalDFN" data-link-type="dfn">anyOf</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-oneof" class="internalDFN" data-link-type="dfn">oneOf</a></code>
properties <em class="rfc2119" title="MAY">MAY</em> be used to express possible answers, but a Question
object <em class="rfc2119" title="MUST NOT">MUST NOT</em> have both properties.
</p>
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>.
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-oneof" class="internalDFN" data-link-type="dfn">oneOf</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-anyof" class="internalDFN" data-link-type="dfn">anyOf</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-closed" class="internalDFN" data-link-type="dfn">closed</a></code>
</p>
Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>.
</td>
</tr>
</tbody>
</table>
</section>
<section id="actor-types" typeof="bibo:Chapter" resource="#actor-types" property="bibo:hasPart">
<h3 id="h-actor-types" resource="#h-actor-types"><span property="xhv:role" resource="xhv:heading"><span
class="secno">3.2 </span>Actor Types</span>
</h3>
<p>
Actor types are <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN"
data-link-type="dfn">Object</a> types that are capable of performing activities.
</p>
<p>
The core Actor Types include:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-application" class="internalDFN" data-link-type="dfn">Application</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-group" class="internalDFN" data-link-type="dfn">Group</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-organization" class="internalDFN" data-link-type="dfn">Organization</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-person" class="internalDFN" data-link-type="dfn">Person</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-service" class="internalDFN" data-link-type="dfn">Service</a></code>
</li>
</ul>
<p></p>
<table>
<thead>
<tr>
<th>Class</th>
<th colspan="2" style="width: 40%">Description</th>
<th style="width: 40%">Properties</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-application">Application</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Application</code></td>
<td rowspan="4">
<div id="ex34-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 42</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Application"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Exampletron 3000"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Describes a software application.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-group">Group</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Group</code></td>
<td rowspan="4">
<div id="ex37-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 43</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Group"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Big Beards of Austin"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents a formal or informal collective of Actors.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-organization">Organization</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Organization</code></td>
<td rowspan="4">
<div id="ex186-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 44</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Organization"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Example Co."</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents an organization.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-person">Person</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Person</code></td>
<td rowspan="4">
<div id="ex39-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 45</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally Smith"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents an individual person.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-service">Service</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Service</code></td>
<td rowspan="4">
<div id="ex42-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 46</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Service"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Acme Web Service"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents a service of any kind.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
</table>
</section>
<section id="object-types" typeof="bibo:Chapter" resource="#object-types" property="bibo:hasPart">
<h3 id="h-object-types" resource="#h-object-types"><span property="xhv:role" resource="xhv:heading"><span
class="secno">3.3 </span>Object and Link Types</span>
</h3>
<p>
All Object Types inherit the properties of the base <a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN"
data-link-type="dfn">Object</a> type. Link Types inherit the properties of the base <a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN"
data-link-type="dfn">Link</a> type. Some specific Object Types are subtypes or specializations of more
generalized Object Types (for instance, the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-like" class="internalDFN" data-link-type="dfn">Like</a></code>
Type is a more specific form of the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
type).
</p>
<p>
The Object Types include:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-article" class="internalDFN" data-link-type="dfn">Article</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-audio" class="internalDFN" data-link-type="dfn">Audio</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-document" class="internalDFN" data-link-type="dfn">Document</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-event" class="internalDFN" data-link-type="dfn">Event</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-image" class="internalDFN" data-link-type="dfn">Image</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-note" class="internalDFN" data-link-type="dfn">Note</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-page" class="internalDFN" data-link-type="dfn">Page</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-profile" class="internalDFN" data-link-type="dfn">Profile</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tombstone" class="internalDFN" data-link-type="dfn">Tombstone</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-video" class="internalDFN" data-link-type="dfn">Video</a></code>
</li>
</ul>
<p></p>
<p>
The Link Types include:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-mention" class="internalDFN" data-link-type="dfn">Mention</a></code>
</li>
</ul>
<p></p>
<table>
<thead>
<tr>
<th>Class</th>
<th colspan="2" style="width: 40%">Description</th>
<th style="width: 40%">Properties</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-relationship">Relationship</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Relationship</code></td>
<td rowspan="4">
<div id="ex22-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 47</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally is an acquaintance of John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Relationship"</span>,
<span class="hljs-attr">"subject"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"relationship"</span>: <span class="hljs-string">"http://purl.org/vocab/relationship/acquaintanceOf"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"John"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
Describes a relationship between two individuals. The
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-subject" class="internalDFN" data-link-type="dfn">subject</a></code>
and
<code><a data-lt="object-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code>
properties are used to identify the connected individuals.
</p>
<p>
See <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#connections" class="sec-ref"><span
class="secno">5.2</span> <span class="sec-title">Representing Relationships Between
Entities</span></a> for additional information.
</p>
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-subject" class="internalDFN" data-link-type="dfn">subject</a></code>
|
<code><a data-lt="object-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code>
|
<code><a data-lt="relationship-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">relationship</a></code>
</p>
<p>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</p>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-article">Article</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Article</code></td>
<td rowspan="4">
<div id="ex43-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 48</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Article"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"What a Crazy Day I Had"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"&lt;div&gt;... you will never believe ...&lt;/div&gt;"</span>,
<span class="hljs-attr">"attributedTo"</span>: <span class="hljs-string">"http://sally.example.org"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents any kind of multi-paragraph written work.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-document">Document</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Document</code></td>
<td rowspan="4">
<div id="ex48-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 49</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Document"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"4Q Sales Forecast"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/4q-sales-forecast.pdf"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents a document of any kind.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-audio">Audio</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Audio</code></td>
<td rowspan="4">
<div id="ex49-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 50</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Audio"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Interview With A Famous Technologist"</span>,
<span class="hljs-attr">"url"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/podcast.mp3"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"audio/mp3"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents an audio document of any kind.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-document" class="internalDFN" data-link-type="dfn">Document</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-document" class="internalDFN" data-link-type="dfn">Document</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-image">Image</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Image</code></td>
<td rowspan="4">
<div id="ex50-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 51</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Cat Jumping on Wagon"</span>,
<span class="hljs-attr">"url"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/image.jpeg"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"image/jpeg"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/image.png"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"image/png"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
An image document of any kind
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-document" class="internalDFN" data-link-type="dfn">Document</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-document" class="internalDFN" data-link-type="dfn">Document</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-video">Video</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Video</code></td>
<td rowspan="4">
<div id="ex51-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 52</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Video"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Puppy Plays With Ball"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/video.mkv"</span>,
<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"PT2H"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents a video document of any kind.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-document" class="internalDFN" data-link-type="dfn">Document</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-document" class="internalDFN" data-link-type="dfn">Document</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-note">Note</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Note</code></td>
<td rowspan="4">
<div id="ex52-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 53</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A Word of Warning"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"Looks like it is going to rain today. Bring an umbrella!"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents a short written work typically less than a single paragraph in length.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-page">Page</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Page</code></td>
<td rowspan="4">
<div id="ex53-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 54</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Page"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Omaha Weather Report"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/weather-in-omaha.html"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents a Web Page.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-document" class="internalDFN" data-link-type="dfn">Document</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-document" class="internalDFN" data-link-type="dfn">Document</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-event">Event</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Event</code></td>
<td rowspan="4">
<div id="ex56-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 55</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Event"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Going-Away Party for Jim"</span>,
<span class="hljs-attr">"startTime"</span>: <span class="hljs-string">"2014-12-31T23:00:00-08:00"</span>,
<span class="hljs-attr">"endTime"</span>: <span class="hljs-string">"2015-01-01T06:00:00-08:00"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents any kind of event.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-place">Place</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Place</code></td>
<td rowspan="4">
<div id="ex57-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 56</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Work"</span>
}</pre>
</div>
</div>
<div id="ex58-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 57</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Fresno Area"</span>,
<span class="hljs-attr">"latitude"</span>: <span class="hljs-number">36.75</span>,
<span class="hljs-attr">"longitude"</span>: <span class="hljs-number">119.7667</span>,
<span class="hljs-attr">"radius"</span>: <span class="hljs-number">15</span>,
<span class="hljs-attr">"units"</span>: <span class="hljs-string">"miles"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Represents a logical or physical location. See
<a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#places" class="sec-ref"><span
class="secno">5.3</span> <span class="sec-title">Representing Places</span></a> for additional
information.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accuracy" class="internalDFN" data-link-type="dfn">accuracy</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-altitude" class="internalDFN" data-link-type="dfn">altitude</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-latitude" class="internalDFN" data-link-type="dfn">latitude</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-longitude" class="internalDFN" data-link-type="dfn">longitude</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-radius" class="internalDFN" data-link-type="dfn">radius</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-units" class="internalDFN" data-link-type="dfn">units</a></code>
</p>
Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-mention">Mention</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Mention</code></td>
<td rowspan="4">
<div id="ex181-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 58</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Mention of Joe by Carrie in her note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Mention"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/joe"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Joe"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A specialized
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
that represents an @mention.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>.
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-profile">Profile</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Profile</code></td>
<td rowspan="4">
<div id="ex184a-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 59</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Profile"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's Profile"</span>,
<span class="hljs-attr">"describes"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally Smith"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A Profile is a content object that describes another Object, typically used to describe <a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#actor-types">Actor Type</a> objects. The
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-describes" class="internalDFN" data-link-type="dfn">describes</a></code>
property is used to reference the object being described by the profile.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-describes" class="internalDFN" data-link-type="dfn">describes</a></code>
</p>
<p>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</p>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-tombstone">Tombstone</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#Tombstone</code></td>
<td rowspan="4">
<div id="ex184b-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 60</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"OrderedCollection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">3</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Vacation photos 2016"</span>,
<span class="hljs-attr">"orderedItems"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://image.example/1"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Tombstone"</span>,
<span class="hljs-attr">"formerType"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://image.example/2"</span>,
<span class="hljs-attr">"deleted"</span>: <span class="hljs-string">"2016-03-17T00:00:00Z"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://image.example/3"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A Tombstone represents a content object that has been deleted. It can be used in <a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN"
data-link-type="dfn">Collection</a>s to signify that there used to be an object at this position, but it
has been deleted.
</td>
</tr>
<tr>
<td>Extends:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Properties:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-formertype" class="internalDFN" data-link-type="dfn">formerType</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-deleted" class="internalDFN" data-link-type="dfn">deleted</a></code>
</p>
<p>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>.
</p>
</td>
</tr>
</tbody>
</table>
</section>
</section>
<section id="properties" typeof="bibo:Chapter" resource="#properties" property="bibo:hasPart">
<!--OddPage-->
<h2 id="h-properties" resource="#h-properties"><span property="xhv:role" resource="xhv:heading"><span
class="secno">4. </span>Properties</span>
</h2>
<p>Base URI: <code>https://www.w3.org/ns/activitystreams#</code>.</p>
<p>
The common properties include:
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-actor" class="internalDFN" data-link-type="dfn">actor</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-attachment" class="internalDFN" data-link-type="dfn">attachment</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-attributedto" class="internalDFN" data-link-type="dfn">attributedTo</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-audience" class="internalDFN" data-link-type="dfn">audience</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-bcc" class="internalDFN" data-link-type="dfn">bcc</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-bto" class="internalDFN" data-link-type="dfn">bto</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-cc" class="internalDFN" data-link-type="dfn">cc</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-context" class="internalDFN" data-link-type="dfn">context</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-current" class="internalDFN" data-link-type="dfn">current</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-first" class="internalDFN" data-link-type="dfn">first</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-generator" class="internalDFN" data-link-type="dfn">generator</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-icon" class="internalDFN" data-link-type="dfn">icon</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-id" class="internalDFN" data-link-type="dfn">id</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-image" class="internalDFN" data-link-type="dfn">image</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-inreplyto" class="internalDFN" data-link-type="dfn">inReplyTo</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-instrument" class="internalDFN" data-link-type="dfn">instrument</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-last" class="internalDFN" data-link-type="dfn">last</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-location" class="internalDFN" data-link-type="dfn">location</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-items" class="internalDFN" data-link-type="dfn">items</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-oneof" class="internalDFN" data-link-type="dfn">oneOf</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-anyof" class="internalDFN" data-link-type="dfn">anyOf</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-closed" class="internalDFN" data-link-type="dfn">closed</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-origin" class="internalDFN" data-link-type="dfn">origin</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-next" class="internalDFN" data-link-type="dfn">next</a></code>
|
<code><a data-lt="object-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-prev" class="internalDFN" data-link-type="dfn">prev</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-preview" class="internalDFN" data-link-type="dfn">preview</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-result" class="internalDFN" data-link-type="dfn">result</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-replies" class="internalDFN" data-link-type="dfn">replies</a></code>
|
<code><a data-lt="tag-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tag" class="internalDFN" data-link-type="dfn">tag</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-target" class="internalDFN" data-link-type="dfn">target</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-to" class="internalDFN" data-link-type="dfn">to</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-type" class="internalDFN" data-link-type="dfn">type</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-url" class="internalDFN" data-link-type="dfn">url</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accuracy" class="internalDFN" data-link-type="dfn">accuracy</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-altitude" class="internalDFN" data-link-type="dfn">altitude</a></code>
|
<code><a data-lt="content-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-content" class="internalDFN" data-link-type="dfn">content</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-name" class="internalDFN" data-link-type="dfn">name</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-duration" class="internalDFN" data-link-type="dfn">duration</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-height" class="internalDFN" data-link-type="dfn">height</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-href" class="internalDFN" data-link-type="dfn">href</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-hreflang" class="internalDFN" data-link-type="dfn">hreflang</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-partof" class="internalDFN" data-link-type="dfn">partOf</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-latitude" class="internalDFN" data-link-type="dfn">latitude</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-longitude" class="internalDFN" data-link-type="dfn">longitude</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-mediatype" class="internalDFN" data-link-type="dfn">mediaType</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-endtime" class="internalDFN" data-link-type="dfn">endTime</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-published" class="internalDFN" data-link-type="dfn">published</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-starttime" class="internalDFN" data-link-type="dfn">startTime</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-radius" class="internalDFN" data-link-type="dfn">radius</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-rel" class="internalDFN" data-link-type="dfn">rel</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-startindex" class="internalDFN" data-link-type="dfn">startIndex</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-summary" class="internalDFN" data-link-type="dfn">summary</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-totalitems" class="internalDFN" data-link-type="dfn">totalItems</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-units" class="internalDFN" data-link-type="dfn">units</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-updated" class="internalDFN" data-link-type="dfn">updated</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-width" class="internalDFN" data-link-type="dfn">width</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-subject" class="internalDFN" data-link-type="dfn">subject</a></code>
|
<code><a data-lt="relationship-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">relationship</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-describes" class="internalDFN" data-link-type="dfn">describes</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-formertype" class="internalDFN" data-link-type="dfn">formerType</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-deleted" class="internalDFN" data-link-type="dfn">deleted</a></code>
</p>
<p>
The "Domain" indicates the type of Object the property term applies to. The "Range" indicates the type of value
the property term can have. Certain properties are marked as a "Subproperty Of" another term, meaning that the
term is a specialization of the referenced term. For instance,
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-actor" class="internalDFN" data-link-type="dfn">actor</a></code>
is a subproperty of
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-attributedto" class="internalDFN" data-link-type="dfn">attributedTo</a></code>.
Properties marked as being "Functional" can have only one value. Items not marked as "Functional" can have
multiple values.
</p>
<table>
<thead>
<tr>
<th style="width: 15%">Term</th>
<th colspan="2">Description</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-id">id</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>@id</code></td>
<td rowspan="5">
<div id="exid-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 61</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Foo"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/foo"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Provides the globally unique identifier for an <a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN"
data-link-type="dfn">Object</a> or
<a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN"
data-link-type="dfn">Link</a>.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>anyURI</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-type">type</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>@type</code></td>
<td rowspan="4">
<div id="extype-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 62</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A foo"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"http://example.org/Foo"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies the <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN"
data-link-type="dfn">Object</a> or <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link"
class="internalDFN" data-link-type="dfn">Link</a> type. Multiple values may be specified.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>anyURI</code></td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-actor">actor</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#actor</code></td>
<td rowspan="5">
<div id="ex59-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 63</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally offered the Foo object"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/foo"</span>
}</pre>
</div>
</div>
<div id="ex60-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 64</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally offered the Foo object"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/foo"</span>
}</pre>
</div>
</div>
<div id="ex61-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 65</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally and Joe offered the Foo object"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: [
<span class="hljs-string">"http://joe.example.org"</span>,
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
}
],
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/foo"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Describes one or more entities that either performed or are expected to perform the activity. Any single
activity can have multiple <code>actor</code>s. The <code>actor</code> <em class="rfc2119"
title="MAY">MAY</em> be specified using an indirect
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Subproperty Of:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-attributedto" class="internalDFN" data-link-type="dfn">attributedTo</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-attachment">attachment</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#attachment</code></td>
<td rowspan="4">
<div id="ex64-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 66</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Have you seen my cat?"</span>,
<span class="hljs-attr">"attachment"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"This is what he looks like."</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/cat.jpeg"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies a resource attached or related to an object that potentially requires special handling. The
intent is to provide a model that is at least semantically similar to attachments in email.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-attributedto">attributedTo</dfn></td>
<td style="width: 10%">URI:</td>
<td>
<code>https://www.w3.org/ns/activitystreams#attributedTo</code>
</td>
<td rowspan="4">
<div id="ex65-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 67</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"My cat taking a nap"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/cat.jpeg"</span>,
<span class="hljs-attr">"attributedTo"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
}
]
}</pre>
</div>
</div>
<div id="ex66-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 68</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"My cat taking a nap"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/cat.jpeg"</span>,
<span class="hljs-attr">"attributedTo"</span>: [
<span class="hljs-string">"http://joe.example.org"</span>,
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies one or more entities to which this object is attributed. The attributed entities might not be
Actors. For instance, an object might be attributed to the completion of another activity.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-audience">audience</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#audience</code></td>
<td rowspan="4">
<div id="ex113-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 69</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Holiday announcement"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"Thursday will be a company-wide holiday. Enjoy your day off!"</span>,
<span class="hljs-attr">"audience"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"http://example.org/Organization"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"ExampleCo LLC"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies one or more entities that represent the total population of entities for which the object can
considered to be relevant.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-bcc">bcc</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#bcc</code></td>
<td rowspan="4">
<div id="ex68-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 70</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally offered a post to John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"bcc"</span>: [ <span class="hljs-string">"http://joe.example.org"</span> ]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies one or more Objects that are part of the private secondary audience of this Object.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-bto">bto</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#bto</code></td>
<td rowspan="4">
<div id="ex69-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 71</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally offered a post to John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"bto"</span>: [ <span class="hljs-string">"http://joe.example.org"</span> ]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies an Object that is part of the private primary audience of this Object.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-cc">cc</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#cc</code></td>
<td rowspan="4">
<div id="ex70-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 72</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally offered a post to John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"cc"</span>: [ <span class="hljs-string">"http://joe.example.org"</span> ]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies an Object that is part of the public secondary audience of this Object.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-context">context</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#context</code></td>
<td rowspan="4">
<div id="ex171-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 73</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Activities in context 1"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"context"</span>: <span class="hljs-string">"http://example.org/contexts/1"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Like"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://joe.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/2"</span>,
<span class="hljs-attr">"context"</span>: <span class="hljs-string">"http://example.org/contexts/1"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
Identifies the context within which the object exists or an activity was performed.
</p>
<p>
The notion of "context" used is intentionally vague. The intended function is to serve as a means of
grouping objects and activities that share a common originating context or purpose. An example could be
all activities relating to a common project or event.
</p>
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-current">current</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#current</code></td>
<td rowspan="5">
<div id="ex71-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 74</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's blog posts"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">3</span>,
<span class="hljs-attr">"current"</span>: <span class="hljs-string">"http://example.org/collection"</span>,
<span class="hljs-attr">"items"</span>: [
<span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-string">"http://example.org/posts/2"</span>,
<span class="hljs-string">"http://example.org/posts/3"</span>
]
}</pre>
</div>
</div>
<div id="ex72-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 75</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's blog posts"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">3</span>,
<span class="hljs-attr">"current"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Most Recent Items"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/collection"</span>
},
<span class="hljs-attr">"items"</span>: [
<span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-string">"http://example.org/posts/2"</span>,
<span class="hljs-string">"http://example.org/posts/3"</span>
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
In a paged
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>,
indicates the page that contains the most recently updated member items.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-first">first</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#first</code></td>
<td rowspan="5">
<div id="ex73-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 76</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's blog posts"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">3</span>,
<span class="hljs-attr">"first"</span>: <span class="hljs-string">"http://example.org/collection?page=0"</span>
}</pre>
</div>
</div>
<div id="ex74-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 77</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's blog posts"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">3</span>,
<span class="hljs-attr">"first"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"First Page"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/collection?page=0"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
In a paged
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>,
indicates the furthest preceeding page of items in the collection.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-generator">generator</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#generator</code></td>
<td rowspan="4">
<div id="ex75-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 78</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"This is all there is."</span>,
<span class="hljs-attr">"generator"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Application"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Exampletron 3000"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies the entity (e.g. an application) that generated the object.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-icon">icon</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#icon</code></td>
<td rowspan="4">
<div id="ex77-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 79</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"This is all there is."</span>,
<span class="hljs-attr">"icon"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Note icon"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/note.png"</span>,
<span class="hljs-attr">"width"</span>: <span class="hljs-number">16</span>,
<span class="hljs-attr">"height"</span>: <span class="hljs-number">16</span>
}
}</pre>
</div>
</div>
<div id="ex78-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 80</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"icon"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Note (16x16)"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/note1.png"</span>,
<span class="hljs-attr">"width"</span>: <span class="hljs-number">16</span>,
<span class="hljs-attr">"height"</span>: <span class="hljs-number">16</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Note (32x32)"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/note2.png"</span>,
<span class="hljs-attr">"width"</span>: <span class="hljs-number">32</span>,
<span class="hljs-attr">"height"</span>: <span class="hljs-number">32</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates an entity that describes an icon for this object. The image should have an aspect ratio of one
(horizontal) to one (vertical) and should be suitable for presentation at a small size.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-image" class="internalDFN" data-link-type="dfn">Image</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-image-term">image</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#image</code></td>
<td rowspan="4">
<div id="ex80-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 81</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"This is all there is."</span>,
<span class="hljs-attr">"image"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A Cat"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/cat.png"</span>
}
}</pre>
</div>
</div>
<div id="ex81-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 82</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"This is all there is."</span>,
<span class="hljs-attr">"image"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Cat 1"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/cat1.png"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Cat 2"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/cat2.png"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates an entity that describes an image for this object. Unlike the icon property, there are no aspect
ratio or display size limitations assumed.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-image" class="internalDFN" data-link-type="dfn">Image</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-inreplyto">inReplyTo</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#inReplyTo</code></td>
<td rowspan="4">
<div id="ex83-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 83</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"This is all there is."</span>,
<span class="hljs-attr">"inReplyTo"</span>: {
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Previous note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"What else is there?"</span>
}
}</pre>
</div>
</div>
<div id="ex84-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 84</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"This is all there is."</span>,
<span class="hljs-attr">"inReplyTo"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates one or more entities for which this object is considered a response.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-instrument">instrument</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#instrument</code></td>
<td rowspan="4">
<div id="ex101-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 85</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally listened to a piece of music on the Acme Music Service"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Listen"</span>,
<span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/foo.mp3"</span>,
<span class="hljs-attr">"instrument"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Service"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Acme Music Service"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies one or more objects used (or to be used) in the completion of an
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a> | <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-last">last</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#last</code></td>
<td rowspan="5">
<div id="ex87-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 86</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A collection"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">3</span>,
<span class="hljs-attr">"last"</span>: <span class="hljs-string">"http://example.org/collection?page=1"</span>
}</pre>
</div>
</div>
<div id="ex88-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 87</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A collection"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">5</span>,
<span class="hljs-attr">"last"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Last Page"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/collection?page=1"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
In a paged
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>,
indicates the furthest proceeding page of the collection.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-location">location</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#location</code></td>
<td rowspan="4">
<div id="ex89-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 88</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>,
<span class="hljs-attr">"location"</span>: {
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Over the Arabian Sea, east of Socotra Island Nature Sanctuary"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"longitude"</span>: <span class="hljs-number">12.34</span>,
<span class="hljs-attr">"latitude"</span>: <span class="hljs-number">56.78</span>,
<span class="hljs-attr">"altitude"</span>: <span class="hljs-number">90</span>,
<span class="hljs-attr">"units"</span>: <span class="hljs-string">"m"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates one or more physical or logical locations associated with the object.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a> | <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-items">items</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#items</code></td>
<td rowspan="4">
<div id="ex91-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 89</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's notes"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">2</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Reminder for Going-Away Party"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Meeting 2016-11-17"</span>
}
]
}</pre>
</div>
</div>
<div id="ex92-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 90</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's notes"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"OrderedCollection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">2</span>,
<span class="hljs-attr">"orderedItems"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Meeting 2016-11-17"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Reminder for Going-Away Party"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies the items contained in a collection. The items might be ordered or unordered.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
| Ordered List of
[<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
]
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-oneof">oneOf</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#oneOf</code></td>
<td rowspan="4">
<div id="ex93-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 91</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Question"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"What is the answer?"</span>,
<span class="hljs-attr">"oneOf"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Option A"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Option B"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies an exclusive option for a Question. Use of
<code>oneOf</code> implies that the Question can have only a single answer. To indicate that a Question can
have multiple answers, use
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-anyof" class="internalDFN" data-link-type="dfn">anyOf</a></code>.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-question" class="internalDFN" data-link-type="dfn">Question</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-anyof">anyOf</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#anyOf</code></td>
<td rowspan="4">
<div id="ex94-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 92</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Question"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"What is the answer?"</span>,
<span class="hljs-attr">"anyOf"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Option A"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Option B"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies an inclusive option for a Question. Use of
<code>anyOf</code> implies that the Question can have multiple answers. To indicate that a Question can have
only one answer, use
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-oneof" class="internalDFN" data-link-type="dfn">oneOf</a></code>.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-question" class="internalDFN" data-link-type="dfn">Question</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-closed">closed</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#closed</code></td>
<td rowspan="4">
<div id="ex94b-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 93</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Question"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"What is the answer?"</span>,
<span class="hljs-attr">"closed"</span>: <span class="hljs-string">"2016-05-10T00:00:00Z"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates that a question has been closed, and answers are no longer accepted.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-question" class="internalDFN" data-link-type="dfn">Question</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
|
<code>xsd:dateTime</code> | <code>xsd:boolean</code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-origin">origin</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#origin</code></td>
<td rowspan="4">
<div id="ex166-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 94</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally moved a post from List A to List B"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Move"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"List B"</span>
},
<span class="hljs-attr">"origin"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"List A"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Describes an indirect object of the activity <em>from</em> which the activity is directed. The precise
meaning of the origin is the object of the English preposition "from". For instance, in the activity "John
moved an item to List B from List A", the origin of the activity is "List A".
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-next">next</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#next</code></td>
<td rowspan="5">
<div id="ex96-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 95</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Page 2 of Sally's blog posts"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"CollectionPage"</span>,
<span class="hljs-attr">"next"</span>: <span class="hljs-string">"http://example.org/collection?page=2"</span>,
<span class="hljs-attr">"items"</span>: [
<span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-string">"http://example.org/posts/2"</span>,
<span class="hljs-string">"http://example.org/posts/3"</span>
]
}</pre>
</div>
</div>
<div id="ex97-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 96</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Page 2 of Sally's blog posts"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"CollectionPage"</span>,
<span class="hljs-attr">"next"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Next Page"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/collection?page=2"</span>
},
<span class="hljs-attr">"items"</span>: [
<span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-string">"http://example.org/posts/2"</span>,
<span class="hljs-string">"http://example.org/posts/3"</span>
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
In a paged
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>,
indicates the next page of items.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-object-term">object</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#object</code></td>
<td rowspan="4">
<div id="ex98-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 97</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally liked a post"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Like"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>
}</pre>
</div>
</div>
<div id="ex99-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 98</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Like"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"A simple note"</span>
}
}</pre>
</div>
</div>
<div id="ex100-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 99</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally liked a note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Like"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: [
<span class="hljs-string">"http://example.org/posts/1"</span>,
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"That is a tree."</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
When used within an
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>,
describes the direct object of the activity. For instance, in the activity "John added a movie to his
wishlist", the object of the activity is the movie added.
</p>
<p>
When used within a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
describes the entity to which the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-subject" class="internalDFN" data-link-type="dfn">subject</a></code>
is related.
</p>
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-prev">prev</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#prev</code></td>
<td rowspan="5">
<div id="ex104-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 100</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Page 1 of Sally's blog posts"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"CollectionPage"</span>,
<span class="hljs-attr">"prev"</span>: <span class="hljs-string">"http://example.org/collection?page=1"</span>,
<span class="hljs-attr">"items"</span>: [
<span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-string">"http://example.org/posts/2"</span>,
<span class="hljs-string">"http://example.org/posts/3"</span>
]
}</pre>
</div>
</div>
<div id="ex105-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 101</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Page 1 of Sally's blog posts"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"CollectionPage"</span>,
<span class="hljs-attr">"prev"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Previous Page"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/collection?page=1"</span>
},
<span class="hljs-attr">"items"</span>: [
<span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-string">"http://example.org/posts/2"</span>,
<span class="hljs-string">"http://example.org/posts/3"</span>
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
In a paged
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>,
identifies the previous page of items.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-preview">preview</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#preview</code></td>
<td rowspan="4">
<div id="ex106-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 102</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Video"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Cool New Movie"</span>,
<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"PT2H30M"</span>,
<span class="hljs-attr">"preview"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Video"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Trailer"</span>,
<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"PT1M"</span>,
<span class="hljs-attr">"url"</span>: {
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/trailer.mkv"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"video/mkv"</span>
}
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies an entity that provides a preview of this object.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-result">result</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#result</code></td>
<td rowspan="4">
<div id="ex108-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 103</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally checked that her flight was on time"</span>,
<span class="hljs-attr">"type"</span>: [<span class="hljs-string">"Activity"</span>, <span class="hljs-string">"http://www.verbs.example/Check"</span>],
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/flights/1"</span>,
<span class="hljs-attr">"result"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"http://www.types.example/flightstatus"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"On Time"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Describes the result of the activity. For instance, if a particular action results in the creation of a new
resource, the result property can be used to describe that new resource.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-replies">replies</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#replies</code></td>
<td rowspan="5">
<div id="ex112-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 104</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://www.test.example/notes/1"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"I am fine."</span>,
<span class="hljs-attr">"replies"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">1</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A response to the note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"I am glad to hear it."</span>,
<span class="hljs-attr">"inReplyTo"</span>: <span class="hljs-string">"http://www.test.example/notes/1"</span>
}
]
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
containing objects considered to be responses to this object.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-tag">tag</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#tag</code></td>
<td rowspan="4">
<div id="ex118-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 105</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Picture of Sally"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/sally.jpg"</span>,
<span class="hljs-attr">"tag"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
One or more "tags" that have been associated with an objects. A tag can be any kind of Object. The key
difference between
<code>attachment</code> and <code>tag</code> is that the former implies association by inclusion, while the
latter implies associated by reference.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-target">target</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#target</code></td>
<td rowspan="4">
<div id="ex120-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 106</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally offered the post to John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: <span class="hljs-string">"http://john.example.org"</span>
}</pre>
</div>
</div>
<div id="ex121-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 107</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally offered the post to John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"John"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Describes the indirect object, or target, of the activity. The precise meaning of the target is largely
dependent on the type of action being described but will often be the object of the English preposition
"to". For instance, in the activity "John added a movie to his wishlist", the target of the activity is
John's wishlist. An activity can have more than one target.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-to">to</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#to</code></td>
<td rowspan="4">
<div id="ex123-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 108</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally offered the post to John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/posts/1"</span>,
<span class="hljs-attr">"target"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"to"</span>: [ <span class="hljs-string">"http://joe.example.org"</span> ]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies an entity considered to be part of the public primary audience of an Object
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-url">url</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#url</code></td>
<td rowspan="4">
<div id="ex124-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 109</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Document"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"4Q Sales Forecast"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/4q-sales-forecast.pdf"</span>
}</pre>
</div>
</div>
<div id="ex125-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 110</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Document"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"4Q Sales Forecast"</span>,
<span class="hljs-attr">"url"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/4q-sales-forecast.pdf"</span>
}
}</pre>
</div>
</div>
<div id="ex126-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 111</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Document"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"4Q Sales Forecast"</span>,
<span class="hljs-attr">"url"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/4q-sales-forecast.pdf"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"application/pdf"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/4q-sales-forecast.html"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"text/html"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies one or more links to representations of the object
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:anyURI</code> |
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-accuracy">accuracy</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#accuracy</code></td>
<td rowspan="5">
<div id="ex127-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 112</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Liu Gu Lu Cun, Pingdu, Qingdao, Shandong, China"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"latitude"</span>: <span class="hljs-number">36.75</span>,
<span class="hljs-attr">"longitude"</span>: <span class="hljs-number">119.7667</span>,
<span class="hljs-attr">"accuracy"</span>: <span class="hljs-number">94.5</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates the accuracy of position coordinates on a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
objects. Expressed in properties of percentage. e.g. "94.0" means "94.0% accurate".
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:float</code> [&gt;= 0.0f, &lt;= 100.0f]</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-altitude">altitude</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#altitude</code></td>
<td rowspan="5">
<div id="ex129-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 113</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Fresno Area"</span>,
<span class="hljs-attr">"altitude"</span>: <span class="hljs-number">15.0</span>,
<span class="hljs-attr">"latitude"</span>: <span class="hljs-number">36.75</span>,
<span class="hljs-attr">"longitude"</span>: <span class="hljs-number">119.7667</span>,
<span class="hljs-attr">"units"</span>: <span class="hljs-string">"miles"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Indicates the altitude of a place. The measurement units is indicated using the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-units" class="internalDFN" data-link-type="dfn">units</a></code>
property. If
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-units" class="internalDFN" data-link-type="dfn">units</a></code>
is not specified, the default is assumed to be "<code>m</code>" indicating meters.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:float</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-content">content</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#content</code></td>
<td rowspan="4">
<div id="ex130-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 114</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"A &lt;em&gt;simple&lt;/em&gt; note"</span>
}</pre>
</div>
</div>
<div id="ex131-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 115</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"contentMap"</span>: {
<span class="hljs-attr">"en"</span>: <span class="hljs-string">"A &lt;em&gt;simple&lt;/em&gt; note"</span>,
<span class="hljs-attr">"es"</span>: <span class="hljs-string">"Una nota &lt;em&gt;sencilla&lt;/em&gt;"</span>,
<span class="hljs-attr">"zh-Hans"</span>: <span class="hljs-string">"一段&lt;em&gt;简单的&lt;/em&gt;笔记"</span>
}
}</pre>
</div>
</div>
<div id="ex130b-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 116</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"text/markdown"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"## A simple note\nA simple markdown `note`"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
The content or textual representation of the Object encoded as a JSON string. By default, the value of
<code>content</code> is HTML. The
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-mediatype" class="internalDFN" data-link-type="dfn">mediaType</a></code>
property can be used in the object to indicate a different content type.
</p>
<p>
The content <em class="rfc2119" title="MAY">MAY</em> be expressed using multiple language-tagged values.
</p>
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:string</code> | <code>rdf:langString</code></td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-name">name</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#name</code></td>
<td rowspan="4">
<div id="ex132-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 117</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A simple note"</span>
}</pre>
</div>
</div>
<div id="ex133-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 118</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"nameMap"</span>: {
<span class="hljs-attr">"en"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"es"</span>: <span class="hljs-string">"Una nota sencilla"</span>,
<span class="hljs-attr">"zh-Hans"</span>: <span class="hljs-string">"一段简单的笔记"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A simple, human-readable, plain-text name for the object. HTML markup <em class="rfc2119"
title="MUST NOT">MUST NOT</em> be included. The name <em class="rfc2119" title="MAY">MAY</em> be expressed
using multiple language-tagged values.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:string</code> | <code>rdf:langString</code></td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-duration">duration</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#duration</code></td>
<td rowspan="5">
<div id="ex134-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 119</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Video"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Birds Flying"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/video.mkv"</span>,
<span class="hljs-attr">"duration"</span>: <span class="hljs-string">"PT2H"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-duration" class="internalDFN" data-link-type="dfn">duration</a></code>
property indicates the object's approximate duration. The value <em class="rfc2119" title="MUST">MUST</em>
be expressed as an <code>xsd:duration</code> as defined by [
<cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-xmlschema11-2">xmlschema11-2</a></cite>],
section 3.3.6 (e.g. a period of 5 seconds is represented as "<code>PT5S</code>").
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:duration</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-height">height</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#height</code></td>
<td rowspan="5">
<div id="ex136-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 120</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/image.png"</span>,
<span class="hljs-attr">"height"</span>: <span class="hljs-number">100</span>,
<span class="hljs-attr">"width"</span>: <span class="hljs-number">100</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
On a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>,
specifies a hint as to the rendering height in device-independent pixels of the linked resource.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:nonNegativeInteger</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-href">href</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#href</code></td>
<td rowspan="5">
<div id="ex137-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 121</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/abc"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"text/html"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Previous"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
The target resource pointed to by a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:anyURI</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-hreflang">hreflang</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#hreflang</code></td>
<td rowspan="5">
<div id="ex138-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 122</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/abc"</span>,
<span class="hljs-attr">"hreflang"</span>: <span class="hljs-string">"en"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"text/html"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Previous"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Hints as to the language used by the target resource. Value <em class="rfc2119" title="MUST">MUST</em> be a
[<cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-BCP47">BCP47</a></cite>] Language-Tag.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>[<cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-BCP47">BCP47</a></cite>] Language Tag</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-partof">partOf</dfn></td>
<td style="width: 10%">URI:</td>
<td>
<code>https://www.w3.org/ns/activitystreams#partOf</code>
</td>
<td rowspan="5">
<div id="ex139-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 123</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Page 1 of Sally's notes"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"CollectionPage"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/collection?page=1"</span>,
<span class="hljs-attr">"partOf"</span>: <span class="hljs-string">"http://example.org/collection"</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Pizza Toppings to Try"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Thought about California"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Identifies the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
to which a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
objects items belong.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-latitude">latitude</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#latitude</code></td>
<td rowspan="5">
<div id="ex140-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 124</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Fresno Area"</span>,
<span class="hljs-attr">"latitude"</span>: <span class="hljs-number">36.75</span>,
<span class="hljs-attr">"longitude"</span>: <span class="hljs-number">119.7667</span>,
<span class="hljs-attr">"radius"</span>: <span class="hljs-number">15</span>,
<span class="hljs-attr">"units"</span>: <span class="hljs-string">"miles"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
The latitude of a place
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:float</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-longitude">longitude</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#longitude</code></td>
<td rowspan="5">
<div id="ex141-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 125</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Fresno Area"</span>,
<span class="hljs-attr">"latitude"</span>: <span class="hljs-number">36.75</span>,
<span class="hljs-attr">"longitude"</span>: <span class="hljs-number">119.7667</span>,
<span class="hljs-attr">"radius"</span>: <span class="hljs-number">15</span>,
<span class="hljs-attr">"units"</span>: <span class="hljs-string">"miles"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
The longitude of a place
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:float</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-mediatype">mediaType</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#mediaType</code></td>
<td rowspan="5">
<div id="ex142-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 126</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/abc"</span>,
<span class="hljs-attr">"hreflang"</span>: <span class="hljs-string">"en"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"text/html"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Next"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>
When used on a <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN"
data-link-type="dfn">Link</a>, identifies the MIME media type of the referenced resource.
</p>
<p>
When used on an <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN"
data-link-type="dfn">Object</a>, identifies the MIME media type of the value of the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-content" class="internalDFN" data-link-type="dfn">content</a></code>
property. If not specified, the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-content" class="internalDFN" data-link-type="dfn">content</a></code>
property is assumed to contain <code>text/html</code> content.
</p>
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>MIME Media Type</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-endtime">endTime</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#endTime</code></td>
<td rowspan="5">
<div id="ex144-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 127</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Event"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Going-Away Party for Jim"</span>,
<span class="hljs-attr">"startTime"</span>: <span class="hljs-string">"2014-12-31T23:00:00-08:00"</span>,
<span class="hljs-attr">"endTime"</span>: <span class="hljs-string">"2015-01-01T06:00:00-08:00"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
The date and time describing the actual or expected ending time of the object. When used with an
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
object, for instance, the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-endtime" class="internalDFN" data-link-type="dfn">endTime</a></code>
property specifies the moment the activity concluded or is expected to conclude.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:dateTime</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-published">published</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#published</code></td>
<td rowspan="5">
<div id="ex145-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 128</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"Fish swim."</span>,
<span class="hljs-attr">"published"</span>: <span class="hljs-string">"2014-12-12T12:12:12Z"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
The date and time at which the object was published
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:dateTime</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-starttime">startTime</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#startTime</code></td>
<td rowspan="5">
<div id="ex146-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 129</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Event"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Going-Away Party for Jim"</span>,
<span class="hljs-attr">"startTime"</span>: <span class="hljs-string">"2014-12-31T23:00:00-08:00"</span>,
<span class="hljs-attr">"endTime"</span>: <span class="hljs-string">"2015-01-01T06:00:00-08:00"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
The date and time describing the actual or expected starting time of the object. When used with an
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
object, for instance, the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-starttime" class="internalDFN" data-link-type="dfn">startTime</a></code>
property specifies the moment the activity began or is scheduled to begin.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:dateTime</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-radius">radius</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#radius</code></td>
<td rowspan="5">
<div id="ex147-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 130</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Fresno Area"</span>,
<span class="hljs-attr">"latitude"</span>: <span class="hljs-number">36.75</span>,
<span class="hljs-attr">"longitude"</span>: <span class="hljs-number">119.7667</span>,
<span class="hljs-attr">"radius"</span>: <span class="hljs-number">15</span>,
<span class="hljs-attr">"units"</span>: <span class="hljs-string">"miles"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
The radius from the given latitude and longitude for a Place. The units is expressed by the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-units" class="internalDFN" data-link-type="dfn">units</a></code>
property. If
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-units" class="internalDFN" data-link-type="dfn">units</a></code>
is not specified, the default is assumed to be "<code>m</code>" indicating "meters".
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:float</code> [&gt;= 0.0f]</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-rel">rel</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#rel</code></td>
<td rowspan="4">
<div id="ex149-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 131</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/abc"</span>,
<span class="hljs-attr">"hreflang"</span>: <span class="hljs-string">"en"</span>,
<span class="hljs-attr">"mediaType"</span>: <span class="hljs-string">"text/html"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Preview"</span>,
<span class="hljs-attr">"rel"</span>: [<span class="hljs-string">"canonical"</span>, <span class="hljs-string">"preview"</span>]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
<p>A link relation associated with a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>.
The value <em class="rfc2119" title="MUST">MUST</em> conform to both the [<cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-HTML5">HTML5</a></cite>] and [<cite><a
class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC5988">RFC5988</a></cite>] "link
relation" definitions.</p>
<p>In the [<cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-HTML5">HTML5</a></cite>], any string not
containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), "FF" (U+000C), "CR" (U+000D) or "," (U+002C)
characters can be used as a valid link relation.</p>
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>[<cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC5988">RFC5988</a></cite>] or <a
class="bibref" href="https://www.w3.org/TR/html5/document-metadata.html#attr-link-rel">[HTML5]</a> Link
Relation</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-startindex">startIndex</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#startIndex</code></td>
<td rowspan="5">
<div id="ex150-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 132</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Page 1 of Sally's notes"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"OrderedCollectionPage"</span>,
<span class="hljs-attr">"startIndex"</span>: <span class="hljs-number">0</span>,
<span class="hljs-attr">"orderedItems"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Density of Water"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Air Mattress Idea"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A non-negative integer value identifying the relative position within the logical view of a strictly ordered
collection.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-orderedcollectionpage" class="internalDFN" data-link-type="dfn">OrderedCollectionPage</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:nonNegativeInteger</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-summary">summary</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#summary</code></td>
<td rowspan="4">
<div id="ex152-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 133</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Cane Sugar Processing"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A simple &lt;em&gt;note&lt;/em&gt;"</span>
}</pre>
</div>
</div>
<div id="ex153-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 134</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Cane Sugar Processing"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"summaryMap"</span>: {
<span class="hljs-attr">"en"</span>: <span class="hljs-string">"A simple &lt;em&gt;note&lt;/em&gt;"</span>,
<span class="hljs-attr">"es"</span>: <span class="hljs-string">"Una &lt;em&gt;nota&lt;/em&gt; sencilla"</span>,
<span class="hljs-attr">"zh-Hans"</span>: <span class="hljs-string">"一段&lt;em&gt;简单的&lt;/em&gt;笔记"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A natural language summarization of the object encoded as HTML. Multiple language tagged summaries <em
class="rfc2119" title="MAY">MAY</em> be provided.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:string</code> | <code>rdf:langString</code></td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-totalitems">totalItems</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#totalItems</code></td>
<td rowspan="5">
<div id="ex156-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 135</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's notes"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">2</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Which Staircase Should I Use"</span>
},
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Something to Remember"</span>
}
]
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
A non-negative integer specifying the total number of objects contained by the logical view of the
collection. This number might not reflect the actual number of items serialized within the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
object instance.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:nonNegativeInteger</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-units">units</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#units</code></td>
<td rowspan="5">
<div id="ex157-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 136</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Fresno Area"</span>,
<span class="hljs-attr">"latitude"</span>: <span class="hljs-number">36.75</span>,
<span class="hljs-attr">"longitude"</span>: <span class="hljs-number">119.7667</span>,
<span class="hljs-attr">"radius"</span>: <span class="hljs-number">15</span>,
<span class="hljs-attr">"units"</span>: <span class="hljs-string">"miles"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
Specifies the measurement units for the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-radius" class="internalDFN" data-link-type="dfn">radius</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-altitude" class="internalDFN" data-link-type="dfn">altitude</a></code>
properties on a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
object. If not specified, the default is assumed to be "<code>m</code>" for "meters".
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
"<code>cm</code>" | "
<code>feet</code>" | "
<code>inches</code>" | "
<code>km</code>" | "
<code>m</code>" | "
<code>miles</code>" |
<code>xsd:anyURI</code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-updated">updated</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#updated</code></td>
<td rowspan="5">
<div id="ex158-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 137</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Cranberry Sauce Idea"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"Mush it up so it does not have the same shape as the can."</span>,
<span class="hljs-attr">"updated"</span>: <span class="hljs-string">"2014-12-12T12:12:12Z"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
The date and time at which the object was updated
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:dateTime</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-width">width</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#width</code></td>
<td rowspan="5">
<div id="ex159-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 138</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Link"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/image.png"</span>,
<span class="hljs-attr">"height"</span>: <span class="hljs-number">100</span>,
<span class="hljs-attr">"width"</span>: <span class="hljs-number">100</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
On a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>,
specifies a hint as to the rendering width in device-independent pixels of the linked resource.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:nonNegativeInteger</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-subject">subject</dfn></td>
<td style="width: 10%">URI:</td>
<td><code>https://www.w3.org/ns/activitystreams#subject</code></td>
<td rowspan="5">
<div id="ex22a-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 139</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally is an acquaintance of John's"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Relationship"</span>,
<span class="hljs-attr">"subject"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"relationship"</span>: <span class="hljs-string">"http://purl.org/vocab/relationship/acquaintanceOf"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"John"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
On a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
object, the <code>subject</code> property identifies one of the connected individuals. For instance, for a
Relationship object describing "John is related to Sally", <code>subject</code> would refer to John.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
|
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-relationship-term">relationship</dfn></td>
<td style="width: 10%">URI:</td>
<td>
<code>https://www.w3.org/ns/activitystreams#relationship</code>
</td>
<td rowspan="4">
<div id="ex22c-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 140</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally is an acquaintance of John's"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Relationship"</span>,
<span class="hljs-attr">"subject"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"relationship"</span>: <span class="hljs-string">"http://purl.org/vocab/relationship/acquaintanceOf"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"John"</span>
}
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
On a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
object, the
<code>relationship</code> property identifies the kind of relationship that exists between
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-subject" class="internalDFN" data-link-type="dfn">subject</a></code>
and
<code><a data-lt="object-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code>.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-describes">describes</dfn></td>
<td style="width: 10%">URI:</td>
<td>
<code>https://www.w3.org/ns/activitystreams#describes</code>
</td>
<td rowspan="5">
<div id="ex185-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 141</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's profile"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Profile"</span>,
<span class="hljs-attr">"describes"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://sally.example.org"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
On a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-profile" class="internalDFN" data-link-type="dfn">Profile</a></code>
object, the
<code>describes</code> property identifies the object described by the Profile.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-profile" class="internalDFN" data-link-type="dfn">Profile</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-formertype">formerType</dfn></td>
<td style="width: 10%">URI:</td>
<td>
<code>https://www.w3.org/ns/activitystreams#formerType</code>
</td>
<td rowspan="5">
<div id="ex185b-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 142</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"This image has been deleted"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Tombstone"</span>,
<span class="hljs-attr">"formerType"</span>: <span class="hljs-string">"Image"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"http://example.org/image/2"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
On a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tombstone" class="internalDFN" data-link-type="dfn">Tombstone</a></code>
object, the
<code>formerType</code> property identifies the type of the object that was deleted.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tombstone" class="internalDFN" data-link-type="dfn">Tombstone</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td>
</tr>
<tr>
<td>Functional:</td>
<td>False</td>
</tr>
</tbody>
<tbody>
<tr>
<td rowspan="5"><dfn data-dfn-type="dfn" id="dfn-deleted">deleted</dfn></td>
<td style="width: 10%">URI:</td>
<td>
<code>https://www.w3.org/ns/activitystreams#deleted</code>
</td>
<td rowspan="5">
<div id="ex185c-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 143</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"This image has been deleted"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Tombstone"</span>,
<span class="hljs-attr">"deleted"</span>: <span class="hljs-string">"2016-05-03T00:00:00Z"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>
On a
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tombstone" class="internalDFN" data-link-type="dfn">Tombstone</a></code>
object, the
<code>deleted</code> property is a timestamp for when the object was deleted.
</td>
</tr>
<tr>
<td>Domain:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tombstone" class="internalDFN" data-link-type="dfn">Tombstone</a></code>
</td>
</tr>
<tr>
<td>Range:</td>
<td><code>xsd:dateTime</code></td>
</tr>
<tr>
<td>Functional:</td>
<td>True</td>
</tr>
</tbody>
</table>
</section>
<section id="notes" typeof="bibo:Chapter" resource="#notes" property="bibo:hasPart">
<!--OddPage-->
<h2 id="h-notes" resource="#h-notes"><span property="xhv:role" resource="xhv:heading"><span class="secno">5.
</span>Implementation Notes</span>
</h2>
<section id="audienceTargeting" typeof="bibo:Chapter" resource="#audienceTargeting" property="bibo:hasPart">
<h3 id="h-audiencetargeting" resource="#h-audiencetargeting"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.1 </span>Audience Targeting</span>
</h3>
<p>
Conceptually, every Object has both a Primary and Secondary audience. The Primary audience consists of those
entities directly involved or owning the object. The Secondary audience consists of the collection of entities
sharing an interest in the object but who might not be directly involved (e.g."followers").
</p>
<p>
For instance, suppose a social network of three individuals: Bob, Joe and Jane. Bob and Joe are each friends
with Jane but are not friends with one another. Bob has chosen to "follow" activities for which Jane is directly
involved. Jane shares a file with Joe.
</p>
<p>
In this example, Jane and Joe are each directly involved in the file sharing activity and together make up the
Primary Audience for that event. Bob, having an interest in activities involving Jane, is the Secondary
Audience. Knowing this, a system that produces or consumes the activity can intelligently notify each person of
the event.
</p>
<p>
While there are means (based on the action type, actor, object and target of the activity) to infer the primary
audience for many types of activities, heuristics do not work in every case and do not provide a means of
identifying the secondary audience. The
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-to" class="internalDFN" data-link-type="dfn">to</a></code>,
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-cc" class="internalDFN" data-link-type="dfn">cc</a></code>,
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-bto" class="internalDFN" data-link-type="dfn">bto</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-bcc" class="internalDFN" data-link-type="dfn">bcc</a></code>
properties <em class="rfc2119" title="MAY">MAY</em> be used within an Object to explicitly identify the Primary
and Secondary audiences.
</p>
<p>
The prototypical use case for an Object containing these properties is the publication and redistribution of
objects through an intermediary. That is, an event source generates the object and publishes it to the
intermediary which determines a subset of items to display to specific individual users or groups. Such a
determination can be made, in part, by identifying the Primary and Secondary Audiences for each object.
</p>
<p>
When the event source generates the object and specifies values for the <code>to</code> and <code>cc</code>
fields, the intermediary <em class="rfc2119" title="SHOULD">SHOULD</em> redistribute that object with the values
of those fields intact, allowing any processor to see who the object has been targeted to. This is precisely the
same model used by the <code>to</code> and <code>cc</code> fields in email systems.
</p>
<p>
There are situations, however, in which disclosing the identity of specific members of the audience may be
inappropriate. For instance, a user may not wish to let other users know that they are interested in various
topics, individuals or types of events. To support this option, an implementation generating an object <em
class="rfc2119" title="MAY">MAY</em> use the
<code>bto</code> and <code>bcc</code> properties to list entities to whom the object should be privately
targeted. When an intermediary receives an object containing these properties, it
<em class="rfc2119" title="MUST">MUST</em> remove those values prior to redistributing the object. The intent is
that systems <em class="rfc2119" title="MUST">MUST</em> consider entities listed within the
<code>bto</code> and <code>bcc</code> properties as part of the Primary and Secondary audience but <em
class="rfc2119" title="MUST NOT">MUST NOT</em> disclose that fact to any other party.
</p>
<p>
Audience targeting information included within an Object only describes the intent of the object creator. With
clear exception given to the appropriate handling of <code>bto</code> and
<code>bcc</code>, this specification leaves it up to implementations to determine how the audience targeting
information is used.
</p>
<section class="informative" id="audience-and-context" typeof="bibo:Chapter" resource="#audience-and-context"
property="bibo:hasPart">
<h4 id="h-audience-and-context" resource="#h-audience-and-context"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.1.1 </span>Audience and Context</span>
</h4>
<p><em>This section is non-normative.</em></p>
<p>
Activities are rarely isolated events. Often, multiple individual activities will be performed around a
similar context or audience. For instance, a collaborators working on a shared project might perform multiple
related activities in the process of achieving some goal. Such activities can be logically grouped together
using the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-context" class="internalDFN" data-link-type="dfn">context</a></code>
property, and scoped to a particular audience using the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-audience" class="internalDFN" data-link-type="dfn">audience</a></code>
property.
</p>
<p>
For instance, the following shows two related activities that share a common <code>context</code> and
<code>audience</code>:
</p>
<div id="ex194-jsonld" style="display:block;">
<div class="example">
<div class="example-title marker"><span>Example 144</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Activities in Project XYZ"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally created a note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Create"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://activities.example.com/1"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"A note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://notes.example.com/1"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"A note"</span>
},
<span class="hljs-attr">"context"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"http://example.org/Project"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Project XYZ"</span>
},
<span class="hljs-attr">"audience"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Group"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Project XYZ Working Group"</span>
},
<span class="hljs-attr">"to"</span>: <span class="hljs-string">"http://john.example.org"</span>
},
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"John liked Sally's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Like"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://activities.example.com/1"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://notes.example.com/1"</span>,
<span class="hljs-attr">"context"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"http://example.org/Project"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Project XYZ"</span>
},
<span class="hljs-attr">"audience"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Group"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Project XYZ Working Group"</span>
},
<span class="hljs-attr">"to"</span>: <span class="hljs-string">"http://sally.example.org"</span>
}
]
}</pre>
</div>
</div>
</section>
</section>
<section id="connections" typeof="bibo:Chapter" resource="#connections" property="bibo:hasPart">
<h3 id="h-connections" resource="#h-connections"><span property="xhv:role" resource="xhv:heading"><span
class="secno">5.2 </span>Representing Relationships Between Entities</span>
</h3>
<p>
The
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
object is used to represent relationships between individuals. It can be used, for instance, to describe that
one person is a friend of another, or that one person is a member of a particular organization. The intent of
modeling Relationship in this way is to allow descriptions of activities that operate on the relationships in
general, and to allow representation of Collections of relationships.
</p>
<p>
For instance, many social systems have a notion of a "friends list". These are the collection of individuals
that are directly connected within a person's social graph. Suppose we have a user, Sally, with direct
relationships to users Joe and Jane. Sally follows Joe's updates while Sally and Jane have a mutual
relationship.
</p>
<p>
Using the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
object, we can model these relationships as:
</p>
<div id="ex180-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 145</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's friends list"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally is influenced by Joe"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Relationship"</span>,
<span class="hljs-attr">"subject"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"relationship"</span>: <span class="hljs-string">"http://purl.org/vocab/relationship/influencedBy"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Joe"</span>
}
},
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally is a friend of Jane"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Relationship"</span>,
<span class="hljs-attr">"subject"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
},
<span class="hljs-attr">"relationship"</span>: <span class="hljs-string">"http://purl.org/vocab/relationship/friendOf"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Jane"</span>
}
}
]
}</pre>
</div>
</div>
<p>
The
<code><a data-lt="relationship-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">relationship</a></code>
property specifies the kind of relationship that exists between the two individuals identified by the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-subject" class="internalDFN" data-link-type="dfn">subject</a></code>
and
<code><a data-lt="object-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code>
properties. Used together, these three properties form what is commonly known as a "
<a href="http://patterns.dataincubator.org/book/reified-statement.html">reified statement</a>" where
<code><a data-lt="subject" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-subject" class="internalDFN" data-link-type="dfn">subject</a></code>
identifies the subject,
<code><a data-lt="relationship-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">relationship</a></code>
identifies the predicate, and
<code><a data-lt="object-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code>
identifies the object.
</p>
<p>
While use of reified statements can be problematic and confusing in certain situations, their use within the
Activity Streams vocabulary to describe relationships provides a straightforward mechanism of describing changes
to an individual's social graph. For instance, to indicate that Sally has created a new relationship to user
Matt, an implementer can use the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
object together with the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-create" class="internalDFN" data-link-type="dfn">Create</a></code>
activity:
</p>
<div id="ex181-jsonldb" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 146</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally became a friend of Matt"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Create"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Relationship"</span>,
<span class="hljs-attr">"subject"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"relationship"</span>: <span class="hljs-string">"http://purl.org/vocab/relationship/friendOf"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://matt.example.org"</span>,
<span class="hljs-attr">"startTime"</span>: <span class="hljs-string">"2015-04-21T12:34:56"</span>
}
}</pre>
</div>
</div>
<p>
Additionally, modeling the relationship in this way allows implementers to articulate additional properties of
the relationship itself. For instance, the date and time at which the relationship began or ended.
</p>
<p>
Implementations may reuse existing vocabularies that have been developed for the purpose of describing
relationships, or create their own guided by requirements of their particular implementation. Existing
vocabularies include the "
<a href="http://xmlns.com/foaf/spec/">Friend of a Friend</a>" and "
<a href="http://vocab.org/relationship/">Relationship</a>" vocabularies.
</p>
<section class="informative" id="modeling-friend-requests" typeof="bibo:Chapter"
resource="#modeling-friend-requests" property="bibo:hasPart">
<h4 id="h-modeling-friend-requests" resource="#h-modeling-friend-requests"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.2.1 </span>Modeling "friend requests"</span>
</h4>
<p><em>This section is non-normative.</em></p>
<p>
One common use case for many social platforms is the establishment of symmetrical "friend" relationships, in
which one user initially extends a request to another user to establish a new connection. Once the connection
is made, both users automatically begin receiving notifications about activities performed by the other, and
the established relationship becomes visible in either user's "friends list".
</p>
<p>
The initial "friend request" can be modeled by composing the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-offer" class="internalDFN" data-link-type="dfn">Offer</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">Relationship</a></code>
object types as in the following example:
</p>
<div id="ex187-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 147</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/connection-requests/123"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally requested to be a friend of John"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Offer"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"acct:sally@example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally and John's friendship"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/connections/123"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Relationship"</span>,
<span class="hljs-attr">"subject"</span>: <span class="hljs-string">"acct:sally@example.org"</span>,
<span class="hljs-attr">"relationship"</span>: <span class="hljs-string">"http://purl.org/vocab/relationship/friendOf"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"acct:john@example.org"</span>
},
<span class="hljs-attr">"target"</span>: <span class="hljs-string">"acct:john@example.org"</span>
}</pre>
</div>
</div>
<p>
Assuming the "friend request" is accepted, the remaining steps in this common application scenario can be
represented as a set of distinct activities:
</p>
<div id="ex188-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 148</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally and John's relationship history"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"John accepted Sally's friend request"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/activities/122"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Accept"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"acct:john@example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/connection-requests/123"</span>,
<span class="hljs-attr">"inReplyTo"</span>: <span class="hljs-string">"http://example.org/connection-requests/123"</span>,
<span class="hljs-attr">"context"</span>: <span class="hljs-string">"http://example.org/connections/123"</span>,
<span class="hljs-attr">"result"</span>: [
<span class="hljs-string">"http://example.org/activities/123"</span>,
<span class="hljs-string">"http://example.org/activities/124"</span>,
<span class="hljs-string">"http://example.org/activities/125"</span>,
<span class="hljs-string">"http://example.org/activities/126"</span>
]
},
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"John followed Sally"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/activities/123"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Follow"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"acct:john@example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"acct:sally@example.org"</span>,
<span class="hljs-attr">"context"</span>: <span class="hljs-string">"http://example.org/connections/123"</span>
},
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally followed John"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/activities/124"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Follow"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"acct:sally@example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"acct:john@example.org"</span>,
<span class="hljs-attr">"context"</span>: <span class="hljs-string">"http://example.org/connections/123"</span>
},
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"John added Sally to his friends list"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/activities/125"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Add"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"acct:john@example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/connections/123"</span>,
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"John's Connections"</span>
},
<span class="hljs-attr">"context"</span>: <span class="hljs-string">"http://example.org/connections/123"</span>
},
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally added John to her friends list"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/activities/126"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Add"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"acct:sally@example.org"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://example.org/connections/123"</span>,
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally's Connections"</span>
},
<span class="hljs-attr">"context"</span>: <span class="hljs-string">"http://example.org/connections/123"</span>
}
]
}</pre>
</div>
</div>
<p>
As illustrated in this example, accepting the "friend request" results in four additional activities
including: John following Sally, Sally following John, John adding the relationship with Sally to his
collection of Connections, and Sally adding the relationship with John to her collection of Connections.
</p>
<p>
In this example,
</p>
<ol>
<li>
The optional
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-result" class="internalDFN" data-link-type="dfn">result</a></code>
property is used within the <code>Accept</code> activity to identify the additional activities that occurred
as a result of the accept.
</li>
<li>
The optional
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-context" class="internalDFN" data-link-type="dfn">context</a></code>
property is used to relate the various activities back to a common reference point, which in this example is
the relationship being established. The <code>context</code> allows an implementation to efficiently group
related activities together for display or analytic purposes.
</li>
</ol>
<p></p>
</section>
</section>
<section id="places" class="informative" typeof="bibo:Chapter" resource="#places" property="bibo:hasPart">
<h3 id="h-places" resource="#h-places"><span property="xhv:role" resource="xhv:heading"><span class="secno">5.3
</span>Representing Places</span>
</h3>
<p><em>This section is non-normative.</em></p>
<p>
The
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
object is used to represent both physical and logical locations. While numerous existing vocabularies exist for
describing locations in a variety of ways, inconsistencies and incompatibilities between those vocabularies make
it difficult to achieve appropriate interoperability between implementations. The <code>Place</code> object is
included within the Activity vocabulary to provide a minimal, interoperable starting point for describing
locations consistently across Activity Streams 2.0 implementations.
</p>
<p>
The <code>Place</code> object is intentionally flexible. It can, for instance, be used to identify a location
simply by name:
</p>
<div id="ex182-jsonldb" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 149</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"San Francisco, CA"</span>
}</pre>
</div>
</div>
<p>
Or, by
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-longitude" class="internalDFN" data-link-type="dfn">longitude</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-latitude" class="internalDFN" data-link-type="dfn">latitude</a></code>:
</p>
<div id="ex183-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 150</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Place"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"San Francisco, CA"</span>,
<span class="hljs-attr">"longitude"</span>: <span class="hljs-string">"122.4167"</span>,
<span class="hljs-attr">"latitude"</span>: <span class="hljs-string">"37.7833"</span>
}</pre>
</div>
</div>
<p>
The <code>Place</code> object can also describe an area around a given point using the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-radius" class="internalDFN" data-link-type="dfn">radius</a></code>
property, the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-altitude" class="internalDFN" data-link-type="dfn">altitude</a></code>
of the location, and a degree of
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accuracy" class="internalDFN" data-link-type="dfn">accuracy</a></code>.
</p>
<p>
While publishers are not required to use these specific properties and <em class="rfc2119" title="MAY">MAY</em>
make use of other mechanisms for describing locations, consuming implementations that support the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-place" class="internalDFN" data-link-type="dfn">Place</a></code>
object <em class="rfc2119" title="MUST">MUST</em> support the use of these properties.
</p>
</section>
<section id="questions" class="informative" typeof="bibo:Chapter" resource="#questions" property="bibo:hasPart">
<h3 id="h-questions" resource="#h-questions"><span property="xhv:role" resource="xhv:heading"><span
class="secno">5.4 </span>Representing Questions</span>
</h3>
<p><em>This section is non-normative.</em></p>
<p>
The
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-question" class="internalDFN" data-link-type="dfn">Question</a></code>
object can be used to express various types of inquiries.
</p>
<p>
For instance, simple open-ended questions similar to those posted to crowd-sourced question and answer websites:
</p>
<div id="ex189-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 151</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A question about robots"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://help.example.org/question/1"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Question"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"I'd like to build a robot to feed my cat. Should I use Arduino or Raspberry Pi?"</span>
}</pre>
</div>
</div>
<p>
Multiple-choice questions or "polls" are also supported using either the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-oneof" class="internalDFN" data-link-type="dfn">oneOf</a></code>
or
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-anyof" class="internalDFN" data-link-type="dfn">anyOf</a></code>
properties:
</p>
<div id="ex190-jsonld" style="display:block;">
<div class="example">
<div class="example-title marker"><span>Example 152</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://polls.example.org/question/1"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A question about robots"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Question"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"I'd like to build a robot to feed my cat. Which platform is best?"</span>,
<span class="hljs-attr">"oneOf"</span>: [
{<span class="hljs-attr">"name"</span>: <span class="hljs-string">"arduino"</span>},
{<span class="hljs-attr">"name"</span>: <span class="hljs-string">"raspberry pi"</span>}
]
}</pre>
</div>
</div>
<p>
Responses to questions are expressed as
<code><a data-lt="Object" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Objects</a></code>
containing an
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-inreplyto" class="internalDFN" data-link-type="dfn">inReplyto</a></code>
property referencing the Question.
</p>
<div id="ex191-jsonld" style="display:block;">
<div class="example">
<div class="example-title marker"><span>Example 153</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"attributedTo"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"inReplyTo"</span>: <span class="hljs-string">"http://polls.example.org/question/1"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"arduino"</span>
}</pre>
</div>
</div>
<p>
Because
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-question" class="internalDFN" data-link-type="dfn">Question</a></code>
objects are also instances of
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>,
the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-result" class="internalDFN" data-link-type="dfn">result</a></code>
property can be used to express the results or outcome of the Question (as appropriate):
</p>
<div id="ex192-jsonld" style="display:block;">
<div class="example">
<div class="example-title marker"><span>Example 154</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A question about robots"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://polls.example.org/question/1"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Question"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"I'd like to build a robot to feed my cat. Which platform is best?"</span>,
<span class="hljs-attr">"oneOf"</span>: [
{<span class="hljs-attr">"name"</span>: <span class="hljs-string">"arduino"</span>},
{<span class="hljs-attr">"name"</span>: <span class="hljs-string">"raspberry pi"</span>}
],
<span class="hljs-attr">"replies"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"totalItems"</span>: <span class="hljs-number">3</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"attributedTo"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"inReplyTo"</span>: <span class="hljs-string">"http://polls.example.org/question/1"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"arduino"</span>
},
{
<span class="hljs-attr">"attributedTo"</span>: <span class="hljs-string">"http://joe.example.org"</span>,
<span class="hljs-attr">"inReplyTo"</span>: <span class="hljs-string">"http://polls.example.org/question/1"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"arduino"</span>
},
{
<span class="hljs-attr">"attributedTo"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"inReplyTo"</span>: <span class="hljs-string">"http://polls.example.org/question/1"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"raspberry pi"</span>
}
]
},
<span class="hljs-attr">"result"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"Users are favoriting &amp;quot;arduino&amp;quot; by a 33% margin."</span>
}
}</pre>
</div>
</div>
</section>
<section id="inverse" class="informative" typeof="bibo:Chapter" resource="#inverse" property="bibo:hasPart">
<h3 id="h-inverse" resource="#h-inverse"><span property="xhv:role" resource="xhv:heading"><span class="secno">5.5
</span>Inverse Activities and "Undo"</span>
</h3>
<p><em>This section is non-normative.</em></p>
<p>
Several of the core <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#activity-types">Activity
types</a> are defined as natural inversions of one another. These include:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accept" class="internalDFN" data-link-type="dfn">Accept</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-reject" class="internalDFN" data-link-type="dfn">Reject</a></code>,
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-arrive" class="internalDFN" data-link-type="dfn">Arrive</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-leave" class="internalDFN" data-link-type="dfn">Leave</a></code>,
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-join" class="internalDFN" data-link-type="dfn">Join</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-leave" class="internalDFN" data-link-type="dfn">Leave</a></code>,
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-create" class="internalDFN" data-link-type="dfn">Create</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-delete" class="internalDFN" data-link-type="dfn">Delete</a></code>,
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-like" class="internalDFN" data-link-type="dfn">Like</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-dislike" class="internalDFN" data-link-type="dfn">Dislike</a></code>
</li>
</ul>
<p>
It is important to note that these types of activities are semantically distinct from one another and have no
direct relationship on the other. That is, for example, if an actor "likes" a note at one point in time then
later "dislikes" it, the "dislike" activity does not "undo" or negate out the prior "like".
</p>
<p>
The appropriate interpretation for the following is that Sally first liked, then later disliked John's note:
</p>
<div id="ex193-jsonld" style="display:block;">
<div class="example">
<div class="example-title marker"><span>Example 155</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"History of John's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally liked John's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Like"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://activities.example.com/1"</span>,
<span class="hljs-attr">"published"</span>: <span class="hljs-string">"2015-11-12T12:34:56Z"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"John's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://notes.example.com/1"</span>,
<span class="hljs-attr">"attributedTo"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"My note"</span>
}
},
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally disliked John's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Dislike"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://activities.example.com/2"</span>,
<span class="hljs-attr">"published"</span>: <span class="hljs-string">"2015-12-11T21:43:56Z"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"John's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://notes.example.com/1"</span>,
<span class="hljs-attr">"attributedTo"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"My note"</span>
}
}
]
}</pre>
</div>
</div>
<p>
The
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-undo" class="internalDFN" data-link-type="dfn">Undo</a></code>
activity type is defined to provide the specific ability to undo or cancel out a prior activity. The appropriate
interpretation for the following, then, is that Sally liked John's note at one point but has explicitly redacted
that like later on.
</p>
<div id="ex193b-jsonld" style="display:block;">
<div class="example">
<div class="example-title marker"><span>Example 156</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"History of John's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"items"</span>: [
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally liked John's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Like"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://activities.example.com/1"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"published"</span>: <span class="hljs-string">"2015-11-12T12:34:56Z"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"John's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://notes.example.com/1"</span>,
<span class="hljs-attr">"attributedTo"</span>: <span class="hljs-string">"http://john.example.org"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"My note"</span>
}
},
{
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally no longer likes John's note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Undo"</span>,
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://activities.example.com/2"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"published"</span>: <span class="hljs-string">"2015-12-11T21:43:56Z"</span>,
<span class="hljs-attr">"object"</span>: <span class="hljs-string">"http://activities.example.com/1"</span>
}
]
}</pre>
</div>
</div>
<p>
The end result of the former example is that Sally has indicated that she changed her opinion about John's note
and now dislikes it, while in the latter example she currently neither likes or dislikes it.
</p>
</section>
<section id="microsyntaxes" class="informative" typeof="bibo:Chapter" resource="#microsyntaxes"
property="bibo:hasPart">
<h3 id="h-microsyntaxes" resource="#h-microsyntaxes"><span property="xhv:role" resource="xhv:heading"><span
class="secno">5.6 </span>Mentions, Tags and Other Common Social Microsyntaxes</span>
</h3>
<p><em>This section is non-normative.</em></p>
<p>
Many social software systems use special text-based microsyntaxes that allow users to define special addressing
for notifications, linking, or categorization within objects. For example, including text such as
"<code>@username</code>" within an object's content will often route the object to a special "mentions" or
"inbox" stream for a particular user. Likewise, including text such as "
<code>#topic</code>" within the object's content will often mark the object as being related to the topic
"<code>topic</code>". Such mechanisms are commonly referred to as "mentions" and "hashtags", respectively.
</p>
<p>
While such microsyntaxes <em class="rfc2119" title="MAY">MAY</em> be used within the values of the
<code><a data-lt="content-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-content" class="internalDFN" data-link-type="dfn">content</a></code>,
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-name" class="internalDFN" data-link-type="dfn">name</a></code>,
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-summary" class="internalDFN" data-link-type="dfn">summary</a></code>
properties on an Activity Streams
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>,
implementations <em class="rfc2119" title="SHOULD NOT">SHOULD NOT</em> be required to parse the values of those
properties in order to determine the appropriate routing of notifications, categorization or linking between
objects. Instead, publishers <em class="rfc2119" title="SHOULD">SHOULD</em> make appropriate use of the
vocabulary terms provided specifically for these purposes.
</p>
<p>
For example, suppose that an author wishes to send a note of thanks to another user named "@sally" with a
hashtag of "#givingthanks". A typical way this message would appear within the content of a note is shown below:
</p>
<figure id="fig-a-simple-note-with-a-mention-an-a-hashtag">
<figcaption>Figure <span class="figno">1</span> <span class="fig-title">A simple note with a mention an a
hashtag:</span></figcaption>
<pre aria-busy="false" aria-live="polite"
class="hljs css"> "<span class="hljs-selector-tag">Thank</span> <span class="hljs-selector-tag">you</span> @<span class="hljs-keyword">sally</span> for all your hard work! #givingthanks<span class="hljs-string">" </span></pre>
</figure>
<p>
A typical social software implementation would typically render such a content such that "<code>@sally</code>"
is replaced with a hyperlink to "@sally"'s social profile page and "<code>#givingthanks</code>" is replaced with
a hyperlink to a listing of other notes that have been "tagged" with the same topic. Most implementations would
also send a special notification to sally letting her know that a note mentioning her has been created.
</p>
<p>
The following illustrates an equivalent Activity Streams
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-note" class="internalDFN" data-link-type="dfn">Note</a></code>
object:
</p>
<div id="ex196-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 157</span></div>
<pre class="highlight json hljs undefined" aria-busy="false" aria-live="polite">{
"@context": "https://www.w3.org/ns/activitystreams",
"name": "A thank-you note",
"type": "Note",
"content": "Thank you &lt;a href='http://sally.example.org'&gt;@sally&lt;/a&gt;
for all your hard work!
&lt;a href='http://example.org/tags/givingthanks'&gt;#givingthanks&lt;/a&gt;",
"to": {
"name": "Sally",
"type": "Person",
"id": "http://sally.example.org"
},
"tag": {
"id": "http://example.org/tags/givingthanks",
"name": "#givingthanks"
}
}</pre>
</div>
</div>
<p>
The <code>to</code> property indicates that the user "@sally" is to be considered part of the <a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#audienceTargeting">primary
audience</a> of the note and should therefore receive notification. The
<code>tag</code> property associates the Note with a reference to "
<code>http://example.org/tags/givingthanks</code>". Note that the
<code>content</code> still includes the "<code>@sally</code>" and "
<code>#givingthanks</code>" microsyntaxes but that consuming implementations are not required to parse those in
order to make the appropriate associations.
</p>
<p>
In the case a publisher wishes to indicate a mention without an associated notification, the publisher can use
the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-mention" class="internalDFN" data-link-type="dfn">Mention</a></code>
object type as a value of the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tag" class="internalDFN" data-link-type="dfn">tag</a></code>
property.
</p>
<div id="ex197-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 158</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A thank-you note"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"content"</span>: <span class="hljs-string">"Thank you @sally for all your hard work! #givingthanks"</span>,
<span class="hljs-attr">"tag"</span>: [
{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Mention"</span>,
<span class="hljs-attr">"href"</span>: <span class="hljs-string">"http://example.org/people/sally"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"@sally"</span>
},
{
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"http://example.org/tags/givingthanks"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"#givingthanks"</span>
}
]
}</pre>
</div>
</div>
</section>
<section id="origin-target" typeof="bibo:Chapter" resource="#origin-target" property="bibo:hasPart">
<h3 id="h-origin-target" resource="#h-origin-target"><span property="xhv:role" resource="xhv:heading"><span
class="secno">5.7 </span>Origin and Target</span>
</h3>
<p>
The
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-origin" class="internalDFN" data-link-type="dfn">origin</a></code>
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-target" class="internalDFN" data-link-type="dfn">target</a></code>
properties of an Activity respectively identify the entities <em>from</em> which and
<em>to</em> which the action is directed. For instance, in the English statement, "Sally moved the file from
Folder A to Folder B", the
<code>origin</code> is "Folder A" and the <code>target</code> is "Folder B". This activity is illustrated in the
example below:
</p>
<div id="ex198-jsonld" style="display: block;">
<div class="example">
<div class="example-title marker"><span>Example 159</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{
<span class="hljs-attr">"@context"</span>: <span class="hljs-string">"https://www.w3.org/ns/activitystreams"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally moved the sales figures from Folder A to Folder B"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Move"</span>,
<span class="hljs-attr">"actor"</span>: <span class="hljs-string">"http://sally.example.org"</span>,
<span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Document"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"sales figures"</span>
},
<span class="hljs-attr">"origin"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Folder A"</span>
},
<span class="hljs-attr">"target"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Folder B"</span>
}
}</pre>
</div>
</div>
<p>
The <code>origin</code> property is applicable to any type of activity for which the English preposition "from"
can be considered applicable in the sense of identifying the origin, source or provenance of the activity's
<code>object</code>.
</p>
<p>
The <code>target</code> property is applicable to any type of activity for which the English preposition "to"
can be considered applicable in the sense of identifying the indirect object or destination of the activity's
<code>object</code>.
</p>
</section>
<section id="motivations" class="informative" typeof="bibo:Chapter" resource="#motivations" property="bibo:hasPart">
<h3 id="h-motivations" resource="#h-motivations"><span property="xhv:role" resource="xhv:heading"><span
class="secno">5.8 </span>Activity Type Motivating Use Cases</span>
</h3>
<p><em>This section is non-normative.</em></p>
<p>
The <a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#activity-types">Activity types</a> defined in
this vocabulary have been primarily selected to address the commonly implemented social use cases described
below.
</p>
<section id="motivations-crud" typeof="bibo:Chapter" resource="#motivations-crud" property="bibo:hasPart">
<h4 id="h-motivations-crud" resource="#h-motivations-crud"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.1 </span>Content Management</span>
</h4>
<p>
The Content Management use case primarily deals with activities that involve the creation, modification or
deletion of content. This includes, for instance, activities such as "John created a new note", "Sally updated
an article", and "Joe deleted the photo".
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-create" class="internalDFN" data-link-type="dfn">Create</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-delete" class="internalDFN" data-link-type="dfn">Delete</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-update" class="internalDFN" data-link-type="dfn">Update</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-collections" typeof="bibo:Chapter" resource="#motivations-collections"
property="bibo:hasPart">
<h4 id="h-motivations-collections" resource="#h-motivations-collections"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.2 </span>Collection Management</span>
</h4>
<p>
The Collection Management use case primarily deals with activities involving the management of content within
collections. Examples of collections include things like folders, albums, friend lists, etc. This includes,
for instance, activities such as "Sally added a file to Folder A", "John moved the file from Folder A to
Folder B", etc.
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-add" class="internalDFN" data-link-type="dfn">Add</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-move" class="internalDFN" data-link-type="dfn">Move</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-remove" class="internalDFN" data-link-type="dfn">Remove</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-respond" typeof="bibo:Chapter" resource="#motivations-respond" property="bibo:hasPart">
<h4 id="h-motivations-respond" resource="#h-motivations-respond"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.3 </span>Reactions</span>
</h4>
<p>
The Reactions use case primarily deals with reactions to content. This can include activities such as liking
or disliking content, ignoring updates, flagging content as being inappropriate, accepting or rejecting
objects, etc.
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accept" class="internalDFN" data-link-type="dfn">Accept</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-block" class="internalDFN" data-link-type="dfn">Block</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-dislike" class="internalDFN" data-link-type="dfn">Dislike</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-flag" class="internalDFN" data-link-type="dfn">Flag</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-ignore" class="internalDFN" data-link-type="dfn">Ignore</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-like" class="internalDFN" data-link-type="dfn">Like</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-reject" class="internalDFN" data-link-type="dfn">Reject</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tentativeaccept" class="internalDFN" data-link-type="dfn">TentativeAccept</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tentativereject" class="internalDFN" data-link-type="dfn">TentativeReject</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-rsvp" typeof="bibo:Chapter" resource="#motivations-rsvp" property="bibo:hasPart">
<h4 id="h-motivations-rsvp" resource="#h-motivations-rsvp"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.4 </span>Event RSVP</span>
</h4>
<p>
The Event RSVP use case primarily deals with invitations to events and RSVP type responses.
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accept" class="internalDFN" data-link-type="dfn">Accept</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-ignore" class="internalDFN" data-link-type="dfn">Ignore</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-invite" class="internalDFN" data-link-type="dfn">Invite</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-reject" class="internalDFN" data-link-type="dfn">Reject</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tentativeaccept" class="internalDFN" data-link-type="dfn">TentativeAccept</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-tentativereject" class="internalDFN" data-link-type="dfn">TentativeReject</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-group" typeof="bibo:Chapter" resource="#motivations-group" property="bibo:hasPart">
<h4 id="h-motivations-group" resource="#h-motivations-group"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.5 </span>Group Management</span>
</h4>
<p>
The Group Management use case primarily deals with management of groups. It can include, for instance,
activities such as "John added Sally to Group A", "Sally joined Group A", "Joe left Group A", etc.
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-add" class="internalDFN" data-link-type="dfn">Add</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-join" class="internalDFN" data-link-type="dfn">Join</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-leave" class="internalDFN" data-link-type="dfn">Leave</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-remove" class="internalDFN" data-link-type="dfn">Remove</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-experience" typeof="bibo:Chapter" resource="#motivations-experience"
property="bibo:hasPart">
<h4 id="h-motivations-experience" resource="#h-motivations-experience"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.6 </span>Content Experience</span>
</h4>
<p>
The Content Experience use case primarily deals with describing activities involving listening to, reading, or
viewing content. For instance, "Sally read the article", "Joe listened to the song".
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-listen" class="internalDFN" data-link-type="dfn">Listen</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-read" class="internalDFN" data-link-type="dfn">Read</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-view" class="internalDFN" data-link-type="dfn">View</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-geo" typeof="bibo:Chapter" resource="#motivations-geo" property="bibo:hasPart">
<h4 id="h-motivations-geo" resource="#h-motivations-geo"><span property="xhv:role" resource="xhv:heading"><span
class="secno">5.8.7 </span>Geo-Social Events</span>
</h4>
<p>
The Geo-Social Events use case primarily deals with activities involving geo-tagging type activities. For
instance, it can include activities such as "Joe arrived at work", "Sally left work", and "John is travel from
home to work".
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-arrive" class="internalDFN" data-link-type="dfn">Arrive</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-leave" class="internalDFN" data-link-type="dfn">Leave</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-travel" class="internalDFN" data-link-type="dfn">Travel</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-notification" typeof="bibo:Chapter" resource="#motivations-notification"
property="bibo:hasPart">
<h4 id="h-motivations-notification" resource="#h-motivations-notification"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.8 </span>Notification</span>
</h4>
<p>
The Notification use case primarily deals with calling attention to particular objects or notifications.
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-announce" class="internalDFN" data-link-type="dfn">Announce</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-questions" typeof="bibo:Chapter" resource="#motivations-questions"
property="bibo:hasPart">
<h4 id="h-motivations-questions" resource="#h-motivations-questions"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.9 </span>Questions</span>
</h4>
<p>
the Questions use case primarily deals with representing inquiries of any type. See <a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#questions" class="sec-ref"><span
class="secno">5.4</span> <span class="sec-title">Representing Questions</span></a> for more information.
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-question" class="internalDFN" data-link-type="dfn">Question</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-relationships" typeof="bibo:Chapter" resource="#motivations-relationships"
property="bibo:hasPart">
<h4 id="h-motivations-relationships" resource="#h-motivations-relationships"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.10 </span>Relationship Management</span>
</h4>
<p>
The Relationship Management use case primarily deals with representing activities involving the management of
interpersonal and social relationships (e.g. friend requests, management of social network, etc). See <a
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#connections" class="sec-ref"><span
class="secno">5.2</span> <span class="sec-title">Representing Relationships Between Entities</span></a>
for more information.
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-accept" class="internalDFN" data-link-type="dfn">Accept</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-add" class="internalDFN" data-link-type="dfn">Add</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-block" class="internalDFN" data-link-type="dfn">Block</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-create" class="internalDFN" data-link-type="dfn">Create</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-delete" class="internalDFN" data-link-type="dfn">Delete</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-follow" class="internalDFN" data-link-type="dfn">Follow</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-ignore" class="internalDFN" data-link-type="dfn">Ignore</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-invite" class="internalDFN" data-link-type="dfn">Invite</a></code>
</li>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-reject" class="internalDFN" data-link-type="dfn">Reject</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-undo" typeof="bibo:Chapter" resource="#motivations-undo" property="bibo:hasPart">
<h4 id="h-motivations-undo" resource="#h-motivations-undo"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.11 </span>Negating Activity</span>
</h4>
<p>
The Negating Activity use case primarily deals with the ability to redact previously completed activities. See
<a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#inverse" class="sec-ref"><span
class="secno">5.5</span> <span class="sec-title">Inverse Activities and "Undo"</span></a> for more
information.
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-undo" class="internalDFN" data-link-type="dfn">Undo</a></code>
</li>
</ul>
<p></p>
</section>
<section id="motivations-offer" typeof="bibo:Chapter" resource="#motivations-offer" property="bibo:hasPart">
<h4 id="h-motivations-offer" resource="#h-motivations-offer"><span property="xhv:role"
resource="xhv:heading"><span class="secno">5.8.12 </span>Offers</span>
</h4>
<p>
The Offers use case deals with activities involving offering one object to another. It can include, for
instance, activities such as "Company A is offering a discount on purchase of Product Z to Sally", "Sally is
offering to add a File to Folder A", etc.
</p>
<p>Relevant Activities:
</p>
<ul>
<li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-offer" class="internalDFN" data-link-type="dfn">Offer</a></code>
</li>
</ul>
<p></p>
</section>
</section>
</section>
<section class="appendix informative" id="non-normative-ontology-definition" typeof="bibo:Chapter"
resource="#non-normative-ontology-definition" property="bibo:hasPart">
<!--OddPage-->
<h2 id="h-non-normative-ontology-definition" resource="#h-non-normative-ontology-definition"><span
property="xhv:role" resource="xhv:heading"><span class="secno">A. </span>Non-normative Ontology
Definition</span>
</h2>
<p><em>This section is non-normative.</em></p>
<p>
A <i>non-normative</i> turtle definition of the Activity Streams 2.0 vocabulary is provided <a
href="https://www.w3.org/ns/activitystreams-owl">here</a> and/or at <a
href="https://www.w3.org/ns/activitystreams">the namespace</a> as a convenience for implementers wishing to use
RDF mechanisms for processing Activity Streams 2.0. Note, however, that this document provides the normative
definition of the Activity Streams 2.0 vocabulary.
</p>
</section>
<section class="appendix informative" id="changelog" typeof="bibo:Chapter" resource="#changelog"
property="bibo:hasPart">
<!--OddPage-->
<h2 id="h-changelog" resource="#h-changelog"><span property="xhv:role" resource="xhv:heading"><span class="secno">B.
</span>Changelog</span>
</h2>
<p><em>This section is non-normative.</em></p>
<p>
The following notable changes have been made to this document since the previous candidate recommendation of <a
href="https://www.w3.org/TR/2016/CR-activitystreams-vocabulary-20161215/#changelog">2016-12-15</a>.
</p>
<ul>
<li>
Removed the four normative
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-relationship" class="internalDFN" data-link-type="dfn">relationship</a></code>
values for lack of implementation. Changed examples to use terms from the
<a href="http://vocab.org/relationship/">Relationship</a> vocabulary.
</li>
<li>
Removed process sections, especially those noting exit criteria and at-risk features.
</li>
<li>
Fixed a typo in
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-deleted" class="internalDFN" data-link-type="dfn">deleted</a></code>
range.
</li>
<li>
Added <code>datetime</code> and <code>boolean</code> to range of
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-closed" class="internalDFN" data-link-type="dfn">closed</a></code>
property.
</li>
<li>
Set the domain of the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-first" class="internalDFN" data-link-type="dfn">first</a></code>,
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-last" class="internalDFN" data-link-type="dfn">last</a></code>,
and
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-current" class="internalDFN" data-link-type="dfn">current</a></code>
properties to
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>.
</li>
</ul>
</section>
<script type="text/javascript" src="./assets/nanotabs.js">
</script>
<script type="text/javascript">
nanotabs(
{
c: "cell",
e: "click",
d: -1,
f: function () {
return false;
}
});
nanotabs(
{
c: "cell",
e: "mouseover",
s: "active"
});
</script>
<section id="references" class="appendix" typeof="bibo:Chapter" resource="#references" property="bibo:hasPart">
<!--OddPage-->
<h2 id="h-references" resource="#h-references"><span property="xhv:role" resource="xhv:heading"><span
class="secno">C. </span>References</span>
</h2>
<section id="normative-references" typeof="bibo:Chapter" resource="#normative-references" property="bibo:hasPart">
<h3 id="h-normative-references" resource="#h-normative-references"><span property="xhv:role"
resource="xhv:heading"><span class="secno">C.1 </span>Normative references</span>
</h3>
<dl class="bibliography" resource="">
<dt id="bib-BCP47">[BCP47]</dt>
<dd><a href="https://tools.ietf.org/html/bcp47" property="dc:requires"><cite>Tags for Identifying
Languages</cite></a>. A. Phillips; M. Davis. IETF. September 2009. IETF Best Current Practice. URL: <a
href="https://tools.ietf.org/html/bcp47" property="dc:requires">https://tools.ietf.org/html/bcp47</a>
</dd>
<dt id="bib-RFC2119">[RFC2119]</dt>
<dd><a href="https://tools.ietf.org/html/rfc2119" property="dc:requires"><cite>Key words for use in RFCs to
Indicate Requirement Levels</cite></a>. S. Bradner. IETF. March 1997. Best Current Practice. URL: <a
href="https://tools.ietf.org/html/rfc2119" property="dc:requires">https://tools.ietf.org/html/rfc2119</a>
</dd>
<dt id="bib-RFC5988">[RFC5988]</dt>
<dd><a href="https://tools.ietf.org/html/rfc5988" property="dc:requires"><cite>Web Linking</cite></a>. M.
Nottingham. IETF. October 2010. Proposed Standard. URL: <a href="https://tools.ietf.org/html/rfc5988"
property="dc:requires">https://tools.ietf.org/html/rfc5988</a>
</dd>
<dt id="bib-xmlschema11-2">[xmlschema11-2]</dt>
<dd><a href="https://www.w3.org/TR/xmlschema11-2/" property="dc:requires"><cite>W3C XML Schema Definition
Language (XSD) 1.1 Part 2: Datatypes</cite></a>. David Peterson; Sandy Gao; Ashok Malhotra; Michael
Sperberg-McQueen; Henry Thompson; Paul V. Biron et al. W3C. 5 April 2012. W3C Recommendation. URL: <a
href="https://www.w3.org/TR/xmlschema11-2/" property="dc:requires">https://www.w3.org/TR/xmlschema11-2/</a>
</dd>
</dl>
</section>
<section id="informative-references" typeof="bibo:Chapter" resource="#informative-references"
property="bibo:hasPart">
<h3 id="h-informative-references" resource="#h-informative-references"><span property="xhv:role"
resource="xhv:heading"><span class="secno">C.2 </span>Informative references</span>
</h3>
<dl class="bibliography" resource="">
<dt id="bib-HTML5">[HTML5]</dt>
<dd><a href="https://www.w3.org/TR/html5/" property="dc:references"><cite>HTML5</cite></a>. Ian Hickson; Robin
Berjon; Steve Faulkner; Travis Leithead; Erika Doyle Navara; Theresa O'Connor; Silvia Pfeiffer. W3C. 28
October 2014. W3C Recommendation. URL: <a href="https://www.w3.org/TR/html5/"
property="dc:references">https://www.w3.org/TR/html5/</a>
</dd>
</dl>
</section>
</section>
<p role="navigation" id="back-to-top"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#toc"><abbr
title="Back to Top"></abbr></a></p>
<script src="./assets/fixup.js"></script>
</body>
</html>