Compare commits

...

2 commits

Author SHA1 Message Date
CDN
aea03e2f4e
translated to line 1274
All checks were successful
Deploy / Deploy (push) Successful in 29s
2025-04-22 17:02:04 +08:00
CDN
cf9bc632c8
translated to line 609 2025-04-22 16:04:00 +08:00

View file

@ -464,7 +464,7 @@
href="https://www.w3.org/2003/03/Translations/byTechnology?technology=https://www.w3.org/TR/activitystreams-vocabulary/">译本</a> href="https://www.w3.org/2003/03/Translations/byTechnology?technology=https://www.w3.org/TR/activitystreams-vocabulary/">译本</a>
</p> </p>
<p class="copyright"> <p class="copyright">
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2017 Activity Streams Working <a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2017行为流Working
Group,IBM &amp; Group,IBM &amp;
<a href="https://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a <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>, href="https://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>,
@ -481,142 +481,128 @@
</div> </div>
<section id="abstract" class="introductory" property="dc:abstract"> <section id="abstract" class="introductory" property="dc:abstract">
<h2 id="h-abstract" resource="#h-abstract"><span property="xhv:role" resource="xhv:heading">Abstract</span></h2> <h2 id="h-abstract" resource="#h-abstract"><span property="xhv:role" resource="xhv:heading">摘要</span></h2>
<p> <p>
This specification describes the Activity vocabulary. It is intended to be used in the context of the 本规范描述了行为术语,它用于与 ActivityStreams 2.0 格式结合使用,并为行为结构以及具体行为类型提供基础术语。
ActivityStreams 2.0 format and provides a foundational vocabulary for activity structures, and specific activity
types.
</p> </p>
<section id="authorsnote" class="informative" typeof="bibo:Chapter" resource="#authorsnote" property="bibo:hasPart"> <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">Author's <h3 id="h-authorsnote" resource="#h-authorsnote"><span property="xhv:role" resource="xhv:heading">作者注</span></h3>
Note</span></h3> <p><em>本节为非规范性内容。</em></p>
<p><em>This section is non-normative.</em></p>
<p> <p>
This draft is heavily influenced by the JSON Activity Streams 1.0 specification originally co-authored by Martin 本草案深受由 Martin Atkins、Will Norris、Chris Messina、Monica Wilkinson、Rob Dolin 和 James Snell 最初共同撰写的 JSON Activity
Atkins, Will Norris, Chris Messina, Monica Wilkinson, Rob Dolin and James Snell. The author is very thankful for Streams 1.0 规范的影响。作者非常感谢他们的重要贡献并十分荣幸能在他们奠定的基础之上继续推进。本文件中使用了行为流1.0 原文的部分内容。
their significant contributions and gladly stands on their shoulders. Some portions of the original text of
Activity Streams 1.0 are used in this document.
</p> </p>
</section> </section>
</section> </section>
<section id="sotd" class="introductory"> <section id="sotd" class="introductory">
<h2 id="h-sotd" resource="#h-sotd"><span property="xhv:role" resource="xhv:heading">Status of This Document</span> <h2 id="h-sotd" resource="#h-sotd"><span property="xhv:role" resource="xhv:heading">本文档的状态</span>
</h2> </h2>
<p> <p>
<em>This section describes the status of this document at the time of its publication. Other documents may <em>本节描述了本文档在发布时的状态。其他文档可能会取代本文档。可在 <a
supersede this document. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and href="https://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> 技术报告索引</a>
the latest revision of this technical report can be found in the <a href="https://www.w3.org/TR/"><abbr https://www.w3.org/TR/ 查询当前 <abbr title="World Wide Web Consortium">W3C</abbr> 出版物和本技术报告的最新版本。</em>
title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at https://www.w3.org/TR/.</em>
</p> </p>
<p> <p>
This document was published by the <a href="https://www.w3.org/Social/WG">Social Web Working Group</a> as a 本文档由 <a href="https://www.w3.org/Social/WG">社交网络工作组</a>以推荐规范的形式发布。欢迎提出意见和建议。请将您的意见发送至
Recommendation. Comments regarding this document are welcome. Please send them to
<a href="mailto:public-socialweb@w3.org">public-socialweb@w3.org</a> (<a <a href="mailto:public-socialweb@w3.org">public-socialweb@w3.org</a> (<a
href="mailto:public-socialweb-request@w3.org?subject=subscribe">subscribe</a>, href="mailto:public-socialweb-request@w3.org?subject=subscribe">订阅</a>
<a href="https://lists.w3.org/Archives/Public/public-socialweb/">archives</a>). <a href="https://lists.w3.org/Archives/Public/public-socialweb/">归档</a>)。
</p> </p>
<p> <p>
Please see the Working Group's <a 请查阅工作组的<a href="https://github.com/w3c/activitystreams/tree/master/implementation-reports">实现报告</a>
href="https://github.com/w3c/activitystreams/tree/master/implementation-reports">implementation
report</a>.
</p> </p>
<p> <p>
This document has been reviewed by <abbr title="World Wide Web Consortium">W3C</abbr> Members, by software 本文档已由 <abbr title="World Wide Web Consortium">W3C</abbr> 成员、软件开发者及其他 <abbr
developers, and by other <abbr title="World Wide Web Consortium">W3C</abbr> groups and interested parties, and is title="World Wide Web Consortium">W3C</abbr> 小组和利益相关方审阅,并被指导组认定为 <abbr
endorsed by the Director as a <abbr title="World Wide Web Consortium">W3C</abbr> Recommendation. It is a stable title="World Wide Web Consortium">W3C</abbr> 推荐规范。该文档内容稳定,可用作参考资料,亦可被其他文档引用。<abbr
document and may be used as reference material or cited from another document. <abbr title="World Wide Web Consortium">W3C</abbr> 发布推荐规范旨在引起对规范的关注,并推动其广泛部署,这有助于提升 Web 的功能性和互操作性。
title="World Wide Web Consortium">W3C</abbr>'s role in making the Recommendation is to draw attention to the
specification and to promote its widespread deployment. This enhances the functionality and interoperability of
the Web.
</p> </p>
<p> <p>
This document was produced by a group operating under the 本文档由遵守
<a id="sotd_patent" property="w3p:patentRules" href="https://www.w3.org/Consortium/Patent-Policy-20040205/">5 <a id="sotd_patent" property="w3p:patentRules"
February 2004 <abbr title="World Wide Web Consortium">W3C</abbr> Patent href="https://www.w3.org/Consortium/Patent-Policy-20040205/">2004年2月5日 <abbr
Policy</a>. title="World Wide Web Consortium">W3C</abbr> 专利政策</a>
<abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a 的团队编写。
href="https://www.w3.org/2004/01/pp-impl/72531/status" rel="disclosure">public list of any patent <abbr title="World Wide Web Consortium">W3C</abbr> 维护了一个<a href="https://www.w3.org/2004/01/pp-impl/72531/status"
disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for rel="disclosure">与专利相关的专利披露公示</a>列表,页面内也提供披露专利的说明。任何实际知晓某项专利,并认为此专利中含有其<a
disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains href="https://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">基本权利要求</a>
<a href="https://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential 的个人,须依照<a href="https://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">W3C 专利政策第6节</a>进行信息披露。
Claim(s)</a> must disclose the information in accordance with
<a href="https://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section
6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>.
</p> </p>
<p>This document is governed by the <a id="w3c_process_revision" href="https://www.w3.org/2017/Process-20170301/">1 <p>本文档受 <a id="w3c_process_revision" href="https://www.w3.org/2017/Process-20170301/">2017年3月1日的 <abbr
March 2017 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document</a>. title="World Wide Web Consortium">W3C</abbr> 流程文档</a> 管辖。
</p> </p>
</section> </section>
<nav id="toc"> <nav id="toc">
<h2 class="introductory" id="table-of-contents" resource="#table-of-contents"><span property="xhv:role" <h2 class="introductory" id="table-of-contents" resource="#table-of-contents"><span property="xhv:role"
resource="xhv:heading">Table of Contents</span></h2> resource="xhv:heading">目录</span></h2>
<ol class="toc" role="directory"> <ol class="toc" role="directory">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#introduction" class="tocxref"><span <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#introduction"
class="secno">1. </span>Introduction</a> class="tocxref"><span class="secno">1. </span>引言</a>
<ol class="toc"> <ol class="toc">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#termconventions" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#termconventions"
class="tocxref"><span class="secno">1.1 </span>Conventions</a></li> class="tocxref"><span class="secno">1.1 </span>约定</a></li>
</ol> </ol>
</li> </li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#types" class="tocxref"><span <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#types" class="tocxref"><span
class="secno">2. </span>Core Types</a></li> class="secno">2. </span>核心类型</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#extendedtypes" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#extendedtypes"
class="tocxref"><span class="secno">3. </span>Extended Types</a> class="tocxref"><span class="secno">3. </span>扩展类型</a>
<ol class="toc"> <ol class="toc">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#activity-types" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#activity-types"
class="tocxref"><span class="secno">3.1 </span>Activity Types</a></li> class="tocxref"><span class="secno">3.1 </span>行为类型</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#actor-types" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#actor-types"
class="tocxref"><span class="secno">3.2 </span>Actor Types</a></li> class="tocxref"><span class="secno">3.2 </span>行为体类型</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#object-types" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#object-types"
class="tocxref"><span class="secno">3.3 </span>Object and Link Types</a></li> class="tocxref"><span class="secno">3.3 </span>对象与链接类型</a></li>
</ol> </ol>
</li> </li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#properties" class="tocxref"><span <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#properties"
class="secno">4. </span>Properties</a></li> class="tocxref"><span class="secno">4. </span>属性</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#notes" class="tocxref"><span <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#notes" class="tocxref"><span
class="secno">5. </span>Implementation Notes</a> class="secno">5. </span>实现说明</a>
<ol class="toc"> <ol class="toc">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#audienceTargeting" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#audienceTargeting"
class="tocxref"><span class="secno">5.1 </span>Audience Targeting</a> class="tocxref"><span class="secno">5.1 </span>受众定位</a>
<ol class="toc"></ol> <ol class="toc"></ol>
</li> </li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#connections" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#connections"
class="tocxref"><span class="secno">5.2 </span>Representing Relationships Between Entities</a> class="tocxref"><span class="secno">5.2 </span>实体间的关系的表示</a>
<ol class="toc"></ol> <ol class="toc"></ol>
</li> </li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#places" class="tocxref"><span <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#places"
class="secno">5.3 </span>Representing Places</a></li> class="tocxref"><span class="secno">5.3 </span>地点的表示</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#questions" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#questions"
class="tocxref"><span class="secno">5.4 </span>Representing Questions</a></li> 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 <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#inverse"
class="secno">5.5 </span>Inverse Activities and "Undo"</a></li> class="tocxref"><span class="secno">5.5 </span>逆行为与“撤销”</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#microsyntaxes" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#microsyntaxes"
class="tocxref"><span class="secno">5.6 </span>Mentions, Tags and Other Common Social Microsyntaxes</a> class="tocxref"><span class="secno">5.6 </span>提及、标签及其他常见社交微语法</a>
</li> </li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#origin-target" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#origin-target"
class="tocxref"><span class="secno">5.7 </span>Origin and Target</a></li> class="tocxref"><span class="secno">5.7 </span>来源与目标</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#motivations" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#motivations"
class="tocxref"><span class="secno">5.8 </span>Activity Type Motivating Use Cases</a> class="tocxref"><span class="secno">5.8 </span>由行为类型驱动的用例</a>
<ol class="toc"></ol> <ol class="toc"></ol>
</li> </li>
</ol> </ol>
</li> </li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#non-normative-ontology-definition" <li class="tocline"><a
class="tocxref"><span class="secno">A. </span>Non-normative Ontology Definition</a></li> href="https://w3c.wholetrans.org/activitystreams-vocabulary/#non-normative-ontology-definition"
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#changelog" class="tocxref"><span class="tocxref"><span class="secno">A. </span>非规范本体定义</a></li>
class="secno">B. </span>Changelog</a></li> <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#changelog"
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#references" class="tocxref"><span class="tocxref"><span class="secno">B. </span>变更日志</a></li>
class="secno">C. </span>References</a> <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#references"
class="tocxref"><span class="secno">C. </span>资料引用</a>
<ol class="toc"> <ol class="toc">
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#normative-references" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#normative-references"
class="tocxref"><span class="secno">C.1 </span>Normative references</a></li> class="tocxref"><span class="secno">C.1 </span>规范性引用</a></li>
<li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#informative-references" <li class="tocline"><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#informative-references"
class="tocxref"><span class="secno">C.2 </span>Informative references</a></li> class="tocxref"><span class="secno">C.2 </span>资料性引用</a></li>
</ol> </ol>
</li> </li>
</ol> </ol>
@ -627,60 +613,54 @@
<section id="introduction" typeof="bibo:Chapter" resource="#introduction" property="bibo:hasPart"> <section id="introduction" typeof="bibo:Chapter" resource="#introduction" property="bibo:hasPart">
<!--OddPage--> <!--OddPage-->
<h2 id="h-introduction" resource="#h-introduction"><span property="xhv:role" resource="xhv:heading"><span <h2 id="h-introduction" resource="#h-introduction"><span property="xhv:role" resource="xhv:heading"><span
class="secno">1. </span>Introduction</span> class="secno">1. </span>引言</span>
</h2> </h2>
<p> <p>
<a href="https://www.w3.org/TR/activitystreams-core/">The Activity Streams 2.0 Core Syntax</a> defines the JSON <a href="https://www.w3.org/TR/activitystreams-core/">行为流 2.0 核心语法</a>定义了行为流的 JSON 语法。本文档则定义了相关术语属性。
syntax for Activity Streams. This document defines the vocabulary properties.
</p> </p>
<p> <p>
The Activity Streams 2.0 Vocabulary defines a set of abstract types and properties that describe past, present and 行为流 2.0 术语表规定了一组抽象类型和属性,用以描述过去、现在和将来发生的行为。该术语表由两个部分组成:
future Activities. The vocabulary is defined in two parts:
</p> </p>
<ol> <ol>
<li> <li>
A Core set of properties describing the generalized structure of an Activity; and 一组为核心属性,描述行为的通用结构;
</li> </li>
<li> <li>
An Extended set of properties that cover specific types of Activities and Artifacts common to many social Web 一组为扩展属性,覆盖许多社交网络应用系统中常见的各类行为和内容。
application systems.
</li> </li>
</ol> </ol>
<p></p> <p></p>
<p> <p>
While not all Activity Streams 2.0 implementations are expected to implement support for the Extended properties, 虽然并非所有行为流2.0 的实现都要求支持扩展属性,但所有实现<em class="rfc2119" title="MUST">必须</em> 至少能够按照
all implementations <em class="rfc2119" title="MUST">MUST</em> at least be capable of serializing and <a href="https://www.w3.org/TR/activitystreams-core/">行为流 2.0 核心语法</a>对扩展属性进行序列化与反序列化。
deserializing the Extended properties in accordance with the
<a href="https://www.w3.org/TR/activitystreams-core/">Activity Streams 2.0 Core Syntax</a>.
</p> </p>
<p> <p>
The key words "<em class="rfc2119" title="MUST">MUST</em>", "<em class="rfc2119" title="MUST NOT">MUST NOT</em>", 本文中的关键术语“<em class="rfc2119" title="MUST">必须</em>”、“<em class="rfc2119" title="MUST NOT">不得</em>”、“<em
"<em class="rfc2119" title="REQUIRED">REQUIRED</em>", "<em class="rfc2119" title="SHALL">SHALL</em>", "<em class="rfc2119" title="REQUIRED">需要</em>”、“<em class="rfc2119" title="SHALL">应当</em>”、“<em class="rfc2119"
class="rfc2119" title="SHALL NOT">SHALL NOT</em>", " title="SHALL NOT">不应</em>”、“
<em class="rfc2119" title="SHOULD">SHOULD</em>", "<em class="rfc2119" title="SHOULD NOT">SHOULD NOT</em>", "<em <em class="rfc2119" title="SHOULD">建议</em>”、“<em class="rfc2119" title="SHOULD NOT">不建议</em>”、“<em class="rfc2119"
class="rfc2119" title="RECOMMENDED">RECOMMENDED</em>", "<em class="rfc2119" title="MAY">MAY</em>", and "<em title="RECOMMENDED">推荐</em>”、“<em class="rfc2119" title="MAY">可以</em>” 和 “<em class="rfc2119"
class="rfc2119" title="OPTIONAL">OPTIONAL</em>" in this document are to be interpreted as described in [<cite><a title="OPTIONAL">可选</em>”等,按 [<cite><a class="bibref"
class="bibref" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC2119">RFC2119</a></cite>]. href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC2119">RFC2119</a></cite>] 中的说明进行解释。
</p> </p>
<section id="termconventions" typeof="bibo:Chapter" resource="#termconventions" property="bibo:hasPart"> <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 <h3 id="h-termconventions" resource="#h-termconventions"><span property="xhv:role" resource="xhv:heading"><span
class="secno">1.1 </span>Conventions</span> class="secno">1.1 </span>约定</span>
</h3> </h3>
<p> <p>
Unless otherwise specified, all properties defined as 除非另有说明,所有定义为
<code>xsd:dateTime</code> values <em class="rfc2119" title="MUST">MUST</em> conform to the rules defined in <code>xsd:dateTime</code> 类型的属性<em class="rfc2119" title="MUST">必须</em>符合行为流2.0 核心规范中
Activity Streams 2.0 Core, <a href="https://www.w3.org/TR/activitystreams-core/#dates">第2.3节</a>的规定。
<a href="https://www.w3.org/TR/activitystreams-core/#dates">Section 2.3</a>.
</p> </p>
<p> <p>
The examples included in this document use the normative JSON serialization defined by this specification. 本文档中的示例均采用本规范定义的规范 JSON 序列化格式。
</p> </p>
</section> </section>
@ -690,41 +670,41 @@
<section id="types" typeof="bibo:Chapter" resource="#types" property="bibo:hasPart"> <section id="types" typeof="bibo:Chapter" resource="#types" property="bibo:hasPart">
<!--OddPage--> <!--OddPage-->
<h2 id="h-types" resource="#h-types"><span property="xhv:role" resource="xhv:heading"><span class="secno">2. <h2 id="h-types" resource="#h-types"><span property="xhv:role" resource="xhv:heading"><span class="secno">2.
</span>Core Types</span> </span>核心类型</span>
</h2> </h2>
<p> <p>
The Activity Vocabulary Core Types provide the basis for the rest of the vocabulary. 行为术语核心类型构成了其余术语的基础。
</p> </p>
<p>Base URI: <code>https://www.w3.org/ns/activitystreams#</code>.</p> <p>基础 URI<code>https://www.w3.org/ns/activitystreams#</code></p>
<p>The Activity Streams 2.0 Core Types include: <p>行为流 2.0 的核心类型包括:
</p> </p>
<ul> <ul>
<li> <li>
<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>
</li> </li>
<li> <li>
<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>
</li> </li>
<li> <li>
<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-activity" class="internalDFN" data-link-type="dfn">Activity (行为)</a></code>
</li> </li>
<li> <li>
<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-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity (不及物行为)</a></code>
</li> </li>
<li> <li>
<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-collection" class="internalDFN" data-link-type="dfn">Collection (集合)</a></code>
</li> </li>
<li> <li>
<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-orderedcollection" class="internalDFN" data-link-type="dfn">OrderedCollection (有序集合)</a></code>
</li> </li>
<li> <li>
<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-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage (集合页)</a></code>
</li> </li>
<li> <li>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-orderedcollectionpage" class="internalDFN" data-link-type="dfn">OrderedCollectionPage</a></code> <code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-orderedcollectionpage" class="internalDFN" data-link-type="dfn">OrderedCollectionPage (有序集合页)</a></code>
</li> </li>
</ul> </ul>
<p></p> <p></p>
@ -732,26 +712,26 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th>Class</th> <th></th>
<th colspan="2" style="width: 40%">Description</th> <th colspan="2" style="width: 40%">描述</th>
<th style="width: 40%">Example</th> <th style="width: 40%">示例</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-object">Object</dfn></td> <td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-object">Object</dfn></td>
<td style="width: 10%">URI:</td> <td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#Object</code></td> <td><code>https://www.w3.org/ns/activitystreams#Object</code></td>
<td rowspan="4"> <td rowspan="4">
<div id="ex1-jsonld" style="display: block;"> <div id="ex1-jsonld" style="display: block;">
<div class="example"> <div class="example">
<div class="example-title marker"><span>Example 1</span></div> <div class="example-title marker"><span>示例 1</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{ <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">"@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">"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">"id"</span>: <span class="hljs-string">"http://www.test.example/object/1"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A Simple, non-specific object"</span> <span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个简单且无特定类型的对象"</span>
}</pre> }</pre>
</div> </div>
</div> </div>
@ -759,25 +739,24 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Notes:</td> <td>说明:</td>
<td> <td>
Describes an object of any kind. The Object type serves as the base type for most of the other kinds of Object (对象)可用于描述任何类型。Object 类型作为行为术语中大多数其他种类对象的基准类型,包括核心类型中的
objects defined in the Activity Vocabulary, including other Core types such as <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-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-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-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
and 以及
<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-orderedcollection" class="internalDFN" data-link-type="dfn">OrderedCollection</a></code>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Disjoint With:</td> <td>互斥于:</td>
<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-link" class="internalDFN" data-link-type="dfn">Link</a></code>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Properties:</td> <td>属性:</td>
<td> <td>
<p> <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-attachment" class="internalDFN" data-link-type="dfn">attachment</a></code>
@ -839,54 +818,51 @@
<tbody> <tbody>
<tr> <tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-link">Link</dfn></td> <td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-link">Link</dfn></td>
<td style="width: 10%">URI:</td> <td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#Link</code></td> <td><code>https://www.w3.org/ns/activitystreams#Link</code></td>
<td rowspan="4"> <td rowspan="4">
<div id="ex2-jsonld" style="display: block;"> <div id="ex2-jsonld" style="display: block;">
<div class="example"> <div class="example">
<div class="example-title marker"><span>Example 2</span></div> <div class="example-title marker"><span>示例 2</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{ <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">"@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">"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">"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">"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">"mediaType"</span>: <span class="hljs-string">"text/html"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"An example link"</span> <span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个示例链接"</span>
}</pre> }</pre>
</div> </div>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Notes:</td> <td>说明:</td>
<td> <td>
A Link is an indirect, qualified reference to a resource identified by a URL. The fundamental model for Link (链接)是对由 URL 标识的资源的间接、限定性引用。Link 的基础模型基于[
links is established by [
<cite><a class="bibref" <cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC5988">RFC5988</a></cite>]. Many of the href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC5988">RFC5988</a></cite>]。很多行为术语定义的属性,其值既可以是
properties defined by the Activity Vocabulary allow values that are either instances 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-object" class="internalDFN" data-link-type="dfn">Object</a></code>
or 实例,也可以是
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>.
When a
<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>
is used, it establishes a 实例。
<a href="http://patterns.dataincubator.org/book/qualified-relation.html">qualified relation</a> connecting 当使用
the subject (the containing object) to the resource identified by the
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-href" class="internalDFN" data-link-type="dfn">href</a></code>.
Properties of the
<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>
are properties of the reference as opposed to properties of the resource. 时,它在主体(包含它的对象)与
<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> </td>
</tr> </tr>
<tr> <tr>
<td>Disjoint With:</td> <td>互斥于:</td>
<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-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Properties:</td> <td>属性:</td>
<td> <td>
<p> <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-href" class="internalDFN" data-link-type="dfn">href</a></code>
@ -912,23 +888,23 @@
<tbody> <tbody>
<tr> <tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-activity">Activity</dfn></td> <td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-activity">Activity</dfn></td>
<td style="width: 10%">URI:</td> <td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#Activity</code></td> <td><code>https://www.w3.org/ns/activitystreams#Activity</code></td>
<td rowspan="4"> <td rowspan="4">
<div id="ex3-jsonld" style="display: block;"> <div id="ex3-jsonld" style="display: block;">
<div class="example"> <div class="example">
<div class="example-title marker"><span>Example 3</span></div> <div class="example-title marker"><span>示例 3</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{ <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">"@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">"type"</span>: <span class="hljs-string">"Activity"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally did something to a note"</span>, <span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally 对一条备注进行了操作"</span>,
<span class="hljs-attr">"actor"</span>: { <span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</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">"name"</span>: <span class="hljs-string">"Sally"</span>
}, },
<span class="hljs-attr">"object"</span>: { <span class="hljs-attr">"object"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>, <span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"A Note"</span> <span class="hljs-attr">"name"</span>: <span class="hljs-string">"一条备注"</span>
} }
}</pre> }</pre>
</div> </div>
@ -936,24 +912,22 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Notes:</td> <td>说明:</td>
<td> <td>
An Activity is a subtype of Activity (行为)是
<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>
that describes some form of action that may happen, is currently happening, or has already happened. The 的子类型,用于描述某种形式的动作,该动作可能将要发生、正在发生或已经发生。<code>Activity</code> 类型本身作为所有具体行为类型的抽象基类。请注意,<code>Activity</code>
<code>Activity</code> type itself serves as an abstract base type for all types of activities. It is 类型本身并不携带任何关于所发生的行为的具体语义。
important to note that the <code>Activity</code> type itself does not carry any specific semantics about the
kind of action being taken.
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Extends:</td> <td>继承自:</td>
<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-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Properties:</td> <td>属性:</td>
<td> <td>
<p> <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="actor-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-actor" class="internalDFN" data-link-type="dfn">actor</a></code>
@ -970,8 +944,9 @@
</p> </p>
<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>. <code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
的所有属性。
</p> </p>
</td> </td>
</tr> </tr>
@ -987,11 +962,11 @@
<td rowspan="4"> <td rowspan="4">
<div id="ex182-jsonld" style="display: block;"> <div id="ex182-jsonld" style="display: block;">
<div class="example"> <div class="example">
<div class="example-title marker"><span>Example 4</span></div> <div class="example-title marker"><span>示例 4</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{ <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">"@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">"type"</span>: <span class="hljs-string">"Travel"</span>,
<span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally went to work"</span>, <span class="hljs-attr">"summary"</span>: <span class="hljs-string">"Sally 去上班了"</span>,
<span class="hljs-attr">"actor"</span>: { <span class="hljs-attr">"actor"</span>: {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Person"</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">"name"</span>: <span class="hljs-string">"Sally"</span>
@ -1006,28 +981,26 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Notes:</td> <td>说明:</td>
<td> <td>
Instances of <code>IntransitiveActivity</code> are a subtype of <code>IntransitiveActivity</code> 的实例是 <code>Activity</code>
<code>Activity</code> representing intransitive actions. The 的子类型,代表不及物的动作。因此,对于这类行为,<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="object-term" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">object</a></code> 属性并不适用。
property is therefore inappropriate for these activities.
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Extends:</td> <td>继承自:</td>
<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-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Properties:</td> <td>属性:</td>
<td> <td>
<p> <p>
Inherits all properties from 继承
<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-activity" class="internalDFN" data-link-type="dfn">Activity</a></code>
except 的所有属性,但不包括 <code>object</code>
<code>object</code>.
</p> </p>
</td> </td>
</tr> </tr>
@ -1041,20 +1014,20 @@
<td rowspan="4"> <td rowspan="4">
<div id="ex5-jsonld" style="display: block;"> <div id="ex5-jsonld" style="display: block;">
<div class="example"> <div class="example">
<div class="example-title marker"><span>Example 5</span></div> <div class="example-title marker"><span>示例 5</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{ <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">"@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">"summary"</span>: <span class="hljs-string">"Sally 的备注"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Collection"</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">"totalItems"</span>: <span class="hljs-number">2</span>,
<span class="hljs-attr">"items"</span>: [ <span class="hljs-attr">"items"</span>: [
{ {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</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">"name"</span>: <span class="hljs-string">"一个简单的备注"</span>
}, },
{ {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>, <span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Another Simple Note"</span> <span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
} }
] ]
}</pre> }</pre>
@ -1063,31 +1036,32 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Notes:</td> <td>说明:</td>
<td> <td>
<p> <p>
A <code>Collection</code> is a subtype of <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>
that represents ordered or unordered sets of 的子类型,用于表示有序或无序的
<code><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></code> <code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
instances.
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-link" class="internalDFN" data-link-type="dfn">Link</a></code>
实例的集合。
</p> </p>
<p> <p>
Refer to the 完全描述请参见
<a href="https://www.w3.org/TR/activitystreams-core/#collection">Activity Streams 2.0 Core</a> <a href="https://www.w3.org/TR/activitystreams-core/#collection">行为流 2.0 核心规范</a>
specification for a complete description of the <code>Collection</code> 类型部分。
<code>Collection</code> type.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Extends:</td> <td>继承自:</td>
<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-object" class="internalDFN" data-link-type="dfn">Object</a></code>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Properties:</td> <td>属性:</td>
<td> <td>
<p> <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-totalitems" class="internalDFN" data-link-type="dfn">totalItems</a></code>
@ -1101,8 +1075,9 @@
<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-items" class="internalDFN" data-link-type="dfn">items</a></code>
</p> </p>
<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>. <code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
的所有属性。
</p> </p>
</td> </td>
</tr> </tr>
@ -1111,25 +1086,25 @@
<tbody> <tbody>
<tr> <tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-orderedcollection">OrderedCollection</dfn></td> <td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-orderedcollection">OrderedCollection</dfn></td>
<td style="width: 10%">URI:</td> <td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#OrderedCollection</code></td> <td><code>https://www.w3.org/ns/activitystreams#OrderedCollection</code></td>
<td rowspan="4"> <td rowspan="4">
<div id="ex6-jsonld" style="display: block;"> <div id="ex6-jsonld" style="display: block;">
<div class="example"> <div class="example">
<div class="example-title marker"><span>Example 6</span></div> <div class="example-title marker"><span>示例 6</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{ <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">"@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">"summary"</span>: <span class="hljs-string">"Sally 的备注"</span>,
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"OrderedCollection"</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">"totalItems"</span>: <span class="hljs-number">2</span>,
<span class="hljs-attr">"orderedItems"</span>: [ <span class="hljs-attr">"orderedItems"</span>: [
{ {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</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">"name"</span>: <span class="hljs-string">"一个简单的备注"</span>
}, },
{ {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>, <span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Another Simple Note"</span> <span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
} }
] ]
}</pre> }</pre>
@ -1138,26 +1113,26 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Notes:</td> <td>说明:</td>
<td> <td>
<p> <p>
A subtype of
<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-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
in which members of the logical collection are assumed to always be strictly ordered. 的子类型,其逻辑集合中的成员始终严格保持有序。
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Extends:</td> <td>继承自:</td>
<td> <td>
<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-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Properties:</td> <td>属性:</td>
<td> <td>
<p>Inherits all properties from <p>继承
<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-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
的所有属性。
</p> </p>
</td> </td>
</tr> </tr>
@ -1166,26 +1141,26 @@
<tbody> <tbody>
<tr> <tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-collectionpage">CollectionPage</dfn></td> <td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-collectionpage">CollectionPage</dfn></td>
<td style="width: 10%">URI:</td> <td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#CollectionPage</code></td> <td><code>https://www.w3.org/ns/activitystreams#CollectionPage</code></td>
<td rowspan="4"> <td rowspan="4">
<div id="ex6b-jsonld" style="display: block;"> <div id="ex6b-jsonld" style="display: block;">
<div class="example"> <div class="example">
<div class="example-title marker"><span>Example 7</span></div> <div class="example-title marker"><span>示例 7</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{ <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">"@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">"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">"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">"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">"partOf"</span>: <span class="hljs-string">"http://example.org/foo"</span>,
<span class="hljs-attr">"items"</span>: [ <span class="hljs-attr">"items"</span>: [
{ {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</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">"name"</span>: <span class="hljs-string">"一个简单的备注"</span>
}, },
{ {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>, <span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Another Simple Note"</span> <span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
} }
] ]
}</pre> }</pre>
@ -1194,25 +1169,24 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Notes:</td> <td>说明:</td>
<td> <td>
<p> <p>
Used to represent distinct subsets of items from a 用于表示 <code>Collection</code> 的不同子集。详见
<code>Collection</code>. Refer to the <a href="https://www.w3.org/TR/activitystreams-core/#dfn-collectionpage">行为流 2.0 核心规范</a>
<a href="https://www.w3.org/TR/activitystreams-core/#dfn-collectionpage">Activity Streams 2.0 Core</a> for 中关于
a complete description of the <code>CollectionPage</code> 对象的完整描述。
<code>CollectionPage</code> object.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Extends:</td> <td>继承自:</td>
<td> <td>
<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-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Properties:</td> <td>属性:</td>
<td> <td>
<p> <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-partof" class="internalDFN" data-link-type="dfn">partOf</a></code>
@ -1222,8 +1196,9 @@
<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-prev" class="internalDFN" data-link-type="dfn">prev</a></code>
</p> </p>
<p>Inherits all properties from <p>继承自
<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-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
的所有属性。
</p> </p>
</td> </td>
</tr> </tr>
@ -1232,26 +1207,26 @@
<tbody> <tbody>
<tr> <tr>
<td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-orderedcollectionpage">OrderedCollectionPage</dfn></td> <td rowspan="4"><dfn data-dfn-type="dfn" id="dfn-orderedcollectionpage">OrderedCollectionPage</dfn></td>
<td style="width: 10%">URI:</td> <td style="width: 10%">URI</td>
<td><code>https://www.w3.org/ns/activitystreams#OrderedCollectionPage</code></td> <td><code>https://www.w3.org/ns/activitystreams#OrderedCollectionPage</code></td>
<td rowspan="4"> <td rowspan="4">
<div id="ex6c-jsonld" style="display: block;"> <div id="ex6c-jsonld" style="display: block;">
<div class="example"> <div class="example">
<div class="example-title marker"><span>Example 8</span></div> <div class="example-title marker"><span>示例 8</span></div>
<pre class="highlight json hljs" aria-busy="false" aria-live="polite">{ <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">"@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">"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">"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">"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">"partOf"</span>: <span class="hljs-string">"http://example.org/foo"</span>,
<span class="hljs-attr">"orderedItems"</span>: [ <span class="hljs-attr">"orderedItems"</span>: [
{ {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</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">"name"</span>: <span class="hljs-string">"一个简单的备注"</span>
}, },
{ {
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>, <span class="hljs-attr">"type"</span>: <span class="hljs-string">"Note"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Another Simple Note"</span> <span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
} }
] ]
}</pre> }</pre>
@ -1260,19 +1235,17 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Notes:</td> <td>说明:</td>
<td> <td>
<p> <p>
Used to represent ordered subsets of items from an 表示 <code>OrderedCollection</code> 对象的有序子集。详见
<code>OrderedCollection</code>. Refer to the <a href="https://www.w3.org/TR/activitystreams-core/#dfn-orderedcollectionpage">行为流 2.0 核心规范</a>
<a href="https://www.w3.org/TR/activitystreams-core/#dfn-orderedcollectionpage">Activity Streams 2.0 中关于 <code>OrderedCollectionPage</code> 对象的完整描述。
Core</a> for a complete description of the
<code>OrderedCollectionPage</code> object.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Extends:</td> <td>继承自:</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-orderedcollection" class="internalDFN" data-link-type="dfn">OrderedCollection</a></code>
| |
@ -1280,17 +1253,18 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Properties:</td> <td>属性:</td>
<td> <td>
<p> <p>
<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-startindex" class="internalDFN" data-link-type="dfn">startIndex</a></code>
</p> </p>
<p> <p>
Inherits all properties from 继承
<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-orderedcollection" class="internalDFN" data-link-type="dfn">OrderedCollection</a></code>
and
<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-collectionpage" class="internalDFN" data-link-type="dfn">CollectionPage</a></code>
的所有属性。
</p> </p>
</td> </td>
</tr> </tr>