translated to line 1274
All checks were successful
Deploy / Deploy (push) Successful in 29s

This commit is contained in:
CDN 2025-04-22 17:02:04 +08:00
parent cf9bc632c8
commit aea03e2f4e
Signed by: CDN
GPG key ID: 0C656827F9F80080

View file

@ -464,7 +464,7 @@
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 Activity Streams Working
<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>,
@ -483,7 +483,7 @@
<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 格式结合使用,并为行为结构以及具体行为类型提供基础词汇
本规范描述了行为术语,它用于与 ActivityStreams 2.0 格式结合使用,并为行为结构以及具体行为类型提供基础术语
</p>
<section id="authorsnote" class="informative" typeof="bibo:Chapter" resource="#authorsnote" property="bibo:hasPart">
@ -491,7 +491,7 @@
<p><em>本节为非规范性内容。</em></p>
<p>
本草案深受由 Martin Atkins、Will Norris、Chris Messina、Monica Wilkinson、Rob Dolin 和 James Snell 最初共同撰写的 JSON Activity
Streams 1.0 规范的影响。作者非常感谢他们的重要贡献,并十分荣幸能在他们奠定的基础之上继续推进。本文件中使用了 Activity Streams 1.0 原文的部分内容。
Streams 1.0 规范的影响。作者非常感谢他们的重要贡献,并十分荣幸能在他们奠定的基础之上继续推进。本文件中使用了行为流1.0 原文的部分内容。
</p>
</section>
</section>
@ -613,60 +613,54 @@
<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>Introduction</span>
class="secno">1. </span>引言</span>
</h2>
<p>
<a href="https://www.w3.org/TR/activitystreams-core/">The Activity Streams 2.0 Core Syntax</a> defines the JSON
syntax for Activity Streams. This document defines the vocabulary properties.
<a href="https://www.w3.org/TR/activitystreams-core/">行为流 2.0 核心语法</a>定义了行为流的 JSON 语法。本文档则定义了相关术语属性。
</p>
<p>
The Activity Streams 2.0 Vocabulary defines a set of abstract types and properties that describe past, present and
future Activities. The vocabulary is defined in two parts:
行为流 2.0 术语表规定了一组抽象类型和属性,用以描述过去、现在和将来发生的行为。该术语表由两个部分组成:
</p>
<ol>
<li>
A Core set of properties describing the generalized structure of an Activity; and
一组为核心属性,描述行为的通用结构;
</li>
<li>
An Extended set of properties that cover specific types of Activities and Artifacts common to many social Web
application systems.
一组为扩展属性,覆盖许多社交网络应用系统中常见的各类行为和内容。
</li>
</ol>
<p></p>
<p>
While not all Activity Streams 2.0 implementations are expected to implement support for the Extended properties,
all implementations <em class="rfc2119" title="MUST">MUST</em> at least be capable of serializing and
deserializing the Extended properties in accordance with the
<a href="https://www.w3.org/TR/activitystreams-core/">Activity Streams 2.0 Core Syntax</a>.
虽然并非所有行为流2.0 的实现都要求支持扩展属性,但所有实现<em class="rfc2119" title="MUST">必须</em> 至少能够按照
<a href="https://www.w3.org/TR/activitystreams-core/">行为流 2.0 核心语法</a>对扩展属性进行序列化与反序列化。
</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="REQUIRED">REQUIRED</em>", "<em class="rfc2119" title="SHALL">SHALL</em>", "<em
class="rfc2119" title="SHALL NOT">SHALL NOT</em>", "
<em class="rfc2119" title="SHOULD">SHOULD</em>", "<em class="rfc2119" title="SHOULD NOT">SHOULD NOT</em>", "<em
class="rfc2119" title="RECOMMENDED">RECOMMENDED</em>", "<em class="rfc2119" title="MAY">MAY</em>", and "<em
class="rfc2119" title="OPTIONAL">OPTIONAL</em>" in this document are to be interpreted as described in [<cite><a
class="bibref" href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC2119">RFC2119</a></cite>].
本文中的关键术语“<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>Conventions</span>
class="secno">1.1 </span>约定</span>
</h3>
<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
Activity Streams 2.0 Core,
<a href="https://www.w3.org/TR/activitystreams-core/#dates">Section 2.3</a>.
除非另有说明,所有定义为
<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>
The examples included in this document use the normative JSON serialization defined by this specification.
本文档中的示例均采用本规范定义的规范 JSON 序列化格式。
</p>
</section>
@ -676,41 +670,41 @@
<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>Core Types</span>
</span>核心类型</span>
</h2>
<p>
The Activity Vocabulary Core Types provide the basis for the rest of the vocabulary.
行为术语核心类型构成了其余术语的基础。
</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>
<ul>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
</ul>
<p></p>
@ -718,26 +712,26 @@
<table>
<thead>
<tr>
<th>Class</th>
<th colspan="2" style="width: 40%">Description</th>
<th style="width: 40%">Example</th>
<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 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>Example 1</span></div>
<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">"A Simple, non-specific object"</span>
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个简单且无特定类型的对象"</span>
}</pre>
</div>
</div>
@ -745,25 +739,24 @@
</td>
</tr>
<tr>
<td>Notes:</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
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-intransitiveactivity" class="internalDFN" data-link-type="dfn">IntransitiveActivity</a></code>,
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>
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>
</tr>
<tr>
<td>Disjoint With:</td>
<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>Properties:</td>
<td>属性:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-attachment" class="internalDFN" data-link-type="dfn">attachment</a></code>
@ -825,54 +818,51 @@
<tbody>
<tr>
<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 rowspan="4">
<div id="ex2-jsonld" style="display: block;">
<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">{
<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">"An example link"</span>
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一个示例链接"</span>
}</pre>
</div>
</div>
</td>
</tr>
<tr>
<td>Notes:</td>
<td>说明:</td>
<td>
A Link is an indirect, qualified reference to a resource identified by a URL. The fundamental model for
links is established by [
Link (链接)是对由 URL 标识的资源的间接、限定性引用。Link 的基础模型基于[
<cite><a class="bibref"
href="https://w3c.wholetrans.org/activitystreams-vocabulary/#bib-RFC5988">RFC5988</a></cite>]. Many of the
properties defined by the Activity Vocabulary allow values that are either instances of
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>
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>
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>
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>
</tr>
<tr>
<td>Disjoint With:</td>
<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>Properties:</td>
<td>属性:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-href" class="internalDFN" data-link-type="dfn">href</a></code>
@ -898,23 +888,23 @@
<tbody>
<tr>
<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 rowspan="4">
<div id="ex3-jsonld" style="display: block;">
<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">{
<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 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">"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 Note"</span>
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"一条备注"</span>
}
}</pre>
</div>
@ -922,24 +912,22 @@
</td>
</tr>
<tr>
<td>Notes:</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>
that describes some form of action that may happen, is currently happening, or has already happened. The
<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.
的子类型,用于描述某种形式的动作,该动作可能将要发生、正在发生或已经发生。<code>Activity</code> 类型本身作为所有具体行为类型的抽象基类。请注意,<code>Activity</code>
类型本身并不携带任何关于所发生的行为的具体语义。
</td>
</tr>
<tr>
<td>Extends:</td>
<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>Properties:</td>
<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>
@ -956,8 +944,9 @@
</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>
</td>
</tr>
@ -973,11 +962,11 @@
<td rowspan="4">
<div id="ex182-jsonld" style="display: block;">
<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">{
<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 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">"type"</span>: <span class="hljs-string">"Person"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"Sally"</span>
@ -992,28 +981,26 @@
</td>
</tr>
<tr>
<td>Notes:</td>
<td>说明:</td>
<td>
Instances of <code>IntransitiveActivity</code> are a subtype of
<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>
property is therefore inappropriate for these activities.
<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>Extends:</td>
<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>Properties:</td>
<td>属性:</td>
<td>
<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>
except
<code>object</code>.
的所有属性,但不包括 <code>object</code>
</p>
</td>
</tr>
@ -1027,20 +1014,20 @@
<td rowspan="4">
<div id="ex5-jsonld" style="display: block;">
<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">{
<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">"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">"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">"name"</span>: <span class="hljs-string">"Another Simple Note"</span>
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
}
]
}</pre>
@ -1049,31 +1036,32 @@
</td>
</tr>
<tr>
<td>Notes:</td>
<td>说明:</td>
<td>
<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>
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>
instances.
的子类型,用于表示有序或无序的
<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>
Refer to the
<a href="https://www.w3.org/TR/activitystreams-core/#collection">Activity Streams 2.0 Core</a>
specification for a complete description of the
<code>Collection</code> type.
完全描述请参见
<a href="https://www.w3.org/TR/activitystreams-core/#collection">行为流 2.0 核心规范</a>
<code>Collection</code> 类型部分。
</p>
</td>
</tr>
<tr>
<td>Extends:</td>
<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>Properties:</td>
<td>属性:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-totalitems" class="internalDFN" data-link-type="dfn">totalItems</a></code>
@ -1087,8 +1075,9 @@
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-items" class="internalDFN" data-link-type="dfn">items</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>.
继承
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-object" class="internalDFN" data-link-type="dfn">Object</a></code>
的所有属性。
</p>
</td>
</tr>
@ -1097,25 +1086,25 @@
<tbody>
<tr>
<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 rowspan="4">
<div id="ex6-jsonld" style="display: block;">
<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">{
<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">"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">"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">"name"</span>: <span class="hljs-string">"Another Simple Note"</span>
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
}
]
}</pre>
@ -1124,26 +1113,26 @@
</td>
</tr>
<tr>
<td>Notes:</td>
<td>说明:</td>
<td>
<p>
A subtype of
<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>
</td>
</tr>
<tr>
<td>Extends:</td>
<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>Properties:</td>
<td>属性:</td>
<td>
<p>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>.
<p>继承
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
的所有属性。
</p>
</td>
</tr>
@ -1152,26 +1141,26 @@
<tbody>
<tr>
<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 rowspan="4">
<div id="ex6b-jsonld" style="display: block;">
<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">{
<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">"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">"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">"name"</span>: <span class="hljs-string">"Another Simple Note"</span>
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
}
]
}</pre>
@ -1180,25 +1169,24 @@
</td>
</tr>
<tr>
<td>Notes:</td>
<td>说明:</td>
<td>
<p>
Used to represent distinct subsets of items from a
<code>Collection</code>. Refer to the
<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> object.
用于表示 <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>Extends:</td>
<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>Properties:</td>
<td>属性:</td>
<td>
<p>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-partof" class="internalDFN" data-link-type="dfn">partOf</a></code>
@ -1208,8 +1196,9 @@
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-prev" class="internalDFN" data-link-type="dfn">prev</a></code>
</p>
<p>Inherits all properties from
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>.
<p>继承自
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-collection" class="internalDFN" data-link-type="dfn">Collection</a></code>
的所有属性。
</p>
</td>
</tr>
@ -1218,26 +1207,26 @@
<tbody>
<tr>
<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 rowspan="4">
<div id="ex6c-jsonld" style="display: block;">
<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">{
<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">"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">"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">"name"</span>: <span class="hljs-string">"Another Simple Note"</span>
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"另外一个简单的备注"</span>
}
]
}</pre>
@ -1246,19 +1235,17 @@
</td>
</tr>
<tr>
<td>Notes:</td>
<td>说明:</td>
<td>
<p>
Used to represent ordered subsets of items from an
<code>OrderedCollection</code>. Refer to the
<a href="https://www.w3.org/TR/activitystreams-core/#dfn-orderedcollectionpage">Activity Streams 2.0
Core</a> for a complete description of the
<code>OrderedCollectionPage</code> object.
表示 <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>Extends:</td>
<td>继承自:</td>
<td>
<code><a href="https://w3c.wholetrans.org/activitystreams-vocabulary/#dfn-orderedcollection" class="internalDFN" data-link-type="dfn">OrderedCollection</a></code>
|
@ -1266,17 +1253,18 @@
</td>
</tr>
<tr>
<td>Properties:</td>
<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>
Inherits all properties from
继承
<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>
</td>
</tr>