diff --git a/index.html b/index.html index c01fa6e..5671735 100644 --- a/index.html +++ b/index.html @@ -464,7 +464,7 @@ href="https://www.w3.org/2003/03/Translations/byTechnology?technology=https://www.w3.org/TR/activitystreams-vocabulary/">译本。

摘要

- 本规范描述了行为术语,它用于与 ActivityStreams 2.0 格式结合使用,并为行为结构以及具体行为类型提供基础词汇。 + 本规范描述了行为术语,它用于与 ActivityStreams 2.0 格式结合使用,并为行为结构以及具体行为类型提供基础术语。

@@ -491,7 +491,7 @@

本节为非规范性内容。

本草案深受由 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 原文的部分内容。

@@ -613,60 +613,54 @@

1. Introduction + class="secno">1. 引言

- The Activity Streams 2.0 Core Syntax defines the JSON - syntax for Activity Streams. This document defines the vocabulary properties. + 行为流 2.0 核心语法定义了行为流的 JSON 语法。本文档则定义了相关术语属性。

- 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 术语表规定了一组抽象类型和属性,用以描述过去、现在和将来发生的行为。该术语表由两个部分组成:

  1. - A Core set of properties describing the generalized structure of an Activity; and + 一组为核心属性,描述行为的通用结构;
  2. - An Extended set of properties that cover specific types of Activities and Artifacts common to many social Web - application systems. + 一组为扩展属性,覆盖许多社交网络应用系统中常见的各类行为和内容。

- While not all Activity Streams 2.0 implementations are expected to implement support for the Extended properties, - all implementations MUST at least be capable of serializing and - deserializing the Extended properties in accordance with the - Activity Streams 2.0 Core Syntax. + 虽然并非所有行为流2.0 的实现都要求支持扩展属性,但所有实现必须 至少能够按照 + 行为流 2.0 核心语法对扩展属性进行序列化与反序列化。

- The key words "MUST", "MUST NOT", - "REQUIRED", "SHALL", "SHALL NOT", " - SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119]. + 本文中的关键术语“必须”、“不得”、“需要”、“应当”、“不应”、“ + 建议”、“不建议”、“推荐”、“可以” 和 “可选”等,按 [RFC2119] 中的说明进行解释。

1.1 Conventions + class="secno">1.1 约定

- Unless otherwise specified, all properties defined as - xsd:dateTime values MUST conform to the rules defined in - Activity Streams 2.0 Core, - Section 2.3. + 除非另有说明,所有定义为 + xsd:dateTime 类型的属性必须符合行为流2.0 核心规范中 + 第2.3节的规定。

- The examples included in this document use the normative JSON serialization defined by this specification. + 本文档中的示例均采用本规范定义的规范 JSON 序列化格式。

@@ -676,41 +670,41 @@

2. - Core Types + 核心类型

- The Activity Vocabulary Core Types provide the basis for the rest of the vocabulary. + 行为术语核心类型构成了其余术语的基础。

-

Base URI: https://www.w3.org/ns/activitystreams#.

+

基础 URI:https://www.w3.org/ns/activitystreams#

-

The Activity Streams 2.0 Core Types include: +

行为流 2.0 的核心类型包括:

@@ -718,26 +712,26 @@ - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + @@ -973,11 +962,11 @@ - + - + - + @@ -1027,20 +1014,20 @@ - + - + - + @@ -1097,25 +1086,25 @@ - + - + - + - + @@ -1152,26 +1141,26 @@ - + - + - + - + @@ -1218,26 +1207,26 @@ - + - + - + - +
ClassDescriptionExample描述示例
ObjectURI:URI: https://www.w3.org/ns/activitystreams#Object
-
Example 1
+
示例 1
{
   "@context": "https://www.w3.org/ns/activitystreams",
   "type": "Object",
   "id": "http://www.test.example/object/1",
-  "name": "A Simple, non-specific object"
+  "name": "一个简单且无特定类型的对象"
 }
@@ -745,25 +739,24 @@
Notes:说明: - 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 - Activity, - IntransitiveActivity, + Object (对象)可用于描述任何类型。Object 类型作为行为术语中大多数其他种类对象的基准类型,包括核心类型中的 + Activity、 + IntransitiveActivityCollection - and - OrderedCollection. + 以及 + OrderedCollection
Disjoint With:互斥于: Link
Properties:属性:

attachment @@ -825,54 +818,51 @@

LinkURI:URI: https://www.w3.org/ns/activitystreams#Link
-
Example 2
+
示例 2
{
   "@context": "https://www.w3.org/ns/activitystreams",
   "type": "Link",
   "href": "http://example.org/abc",
   "hreflang": "en",
   "mediaType": "text/html",
-  "name": "An example link"
+  "name": "一个示例链接"
 }
Notes:说明: - 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 的基础模型基于[ RFC5988]. 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]。很多行为术语定义的属性,其值既可以是 Object - or - Link. - When a + 实例,也可以是 Link - is used, it establishes a - qualified relation connecting - the subject (the containing object) to the resource identified by the - href. - Properties of the + 实例。 + 当使用 Link - are properties of the reference as opposed to properties of the resource. + 时,它在主体(包含它的对象)与 + href + 所标识的资源之间建立了 + 限定关系Link + 的属性是引用本身的属性,而非资源的属性。
Disjoint With:互斥于: Object
Properties:属性:

href @@ -898,23 +888,23 @@

ActivityURI:URI: https://www.w3.org/ns/activitystreams#Activity
-
Example 3
+
示例 3
{
   "@context": "https://www.w3.org/ns/activitystreams",
   "type": "Activity",
-  "summary": "Sally did something to a note",
+  "summary": "Sally 对一条备注进行了操作",
   "actor": {
     "type": "Person",
     "name": "Sally"
   },
   "object": {
     "type": "Note",
-    "name": "A Note"
+    "name": "一条备注"
   }
 }
@@ -922,24 +912,22 @@
Notes:说明: - An Activity is a subtype of + Activity (行为)是 Object - that describes some form of action that may happen, is currently happening, or has already happened. The - Activity type itself serves as an abstract base type for all types of activities. It is - important to note that the Activity type itself does not carry any specific semantics about the - kind of action being taken. + 的子类型,用于描述某种形式的动作,该动作可能将要发生、正在发生或已经发生。Activity 类型本身作为所有具体行为类型的抽象基类。请注意,Activity + 类型本身并不携带任何关于所发生的行为的具体语义。
Extends:继承自: Object
Properties:属性:

actor @@ -956,8 +944,9 @@

- Inherits all properties from - Object. + 继承 + Object + 的所有属性。

-
Example 4
+
示例 4
{
   "@context": "https://www.w3.org/ns/activitystreams",
   "type": "Travel",
-  "summary": "Sally went to work",
+  "summary": "Sally 去上班了",
   "actor": {
     "type": "Person",
     "name": "Sally"
@@ -992,28 +981,26 @@
           
Notes:说明: - Instances of IntransitiveActivity are a subtype of - Activity representing intransitive actions. The - object - property is therefore inappropriate for these activities. + IntransitiveActivity 的实例是 Activity + 的子类型,代表不及物的动作。因此,对于这类行为,object + 属性并不适用。
Extends:继承自: Activity
Properties:属性:

- Inherits all properties from + 继承 Activity - except - object. + 的所有属性,但不包括 object

-
Example 5
+
示例 5
{
   "@context": "https://www.w3.org/ns/activitystreams",
-  "summary": "Sally's notes",
+  "summary": "Sally 的备注",
   "type": "Collection",
   "totalItems": 2,
   "items": [
     {
       "type": "Note",
-      "name": "A Simple Note"
+      "name": "一个简单的备注"
     },
     {
       "type": "Note",
-      "name": "Another Simple Note"
+      "name": "另外一个简单的备注"
     }
   ]
 }
@@ -1049,31 +1036,32 @@
Notes:说明:

- A Collection is a subtype of + Collection (集合)Object - that represents ordered or unordered sets of - Object or Link - instances. + 的子类型,用于表示有序或无序的 + Object + 或 + Link + 实例的集合。

- Refer to the - Activity Streams 2.0 Core - specification for a complete description of the - Collection type. + 完全描述请参见 + 行为流 2.0 核心规范 + 的 Collection 类型部分。

Extends:继承自: Object
Properties:属性:

totalItems @@ -1087,8 +1075,9 @@ items

- Inherits all properties from - Object. + 继承 + Object + 的所有属性。

OrderedCollectionURI:URI: https://www.w3.org/ns/activitystreams#OrderedCollection
-
Example 6
+
示例 6
{
   "@context": "https://www.w3.org/ns/activitystreams",
-  "summary": "Sally's notes",
+  "summary": "Sally 的备注",
   "type": "OrderedCollection",
   "totalItems": 2,
   "orderedItems": [
     {
       "type": "Note",
-      "name": "A Simple Note"
+      "name": "一个简单的备注"
     },
     {
       "type": "Note",
-      "name": "Another Simple Note"
+      "name": "另外一个简单的备注"
     }
   ]
 }
@@ -1124,26 +1113,26 @@
Notes:说明:

- A subtype of Collection - in which members of the logical collection are assumed to always be strictly ordered. + 的子类型,其逻辑集合中的成员始终严格保持有序。

Extends:继承自: Collection
Properties:属性: -

Inherits all properties from - Collection. +

继承 + Collection + 的所有属性。

CollectionPageURI:URI: https://www.w3.org/ns/activitystreams#CollectionPage
-
Example 7
+
示例 7
{
   "@context": "https://www.w3.org/ns/activitystreams",
-  "summary": "Page 1 of Sally's notes",
+  "summary": "Sally 的备注第1页",
   "type": "CollectionPage",
   "id": "http://example.org/foo?page=1",
   "partOf": "http://example.org/foo",
   "items": [
     {
       "type": "Note",
-      "name": "A Simple Note"
+      "name": "一个简单的备注"
     },
     {
       "type": "Note",
-      "name": "Another Simple Note"
+      "name": "另外一个简单的备注"
     }
   ]
 }
@@ -1180,25 +1169,24 @@
Notes:说明:

- Used to represent distinct subsets of items from a - Collection. Refer to the - Activity Streams 2.0 Core for - a complete description of the - CollectionPage object. + 用于表示 Collection 的不同子集。详见 + 行为流 2.0 核心规范 + 中关于 + CollectionPage 对象的完整描述。

Extends:继承自: Collection
Properties:属性:

partOf @@ -1208,8 +1196,9 @@ prev

-

Inherits all properties from - Collection. +

继承自 + Collection + 的所有属性。

OrderedCollectionPageURI:URI: https://www.w3.org/ns/activitystreams#OrderedCollectionPage
-
Example 8
+
示例 8
{
   "@context": "https://www.w3.org/ns/activitystreams",
-  "summary": "Page 1 of Sally's notes",
+  "summary": "Sally 的备注第1页",
   "type": "OrderedCollectionPage",
   "id": "http://example.org/foo?page=1",
   "partOf": "http://example.org/foo",
   "orderedItems": [
     {
       "type": "Note",
-      "name": "A Simple Note"
+      "name": "一个简单的备注"
     },
     {
       "type": "Note",
-      "name": "Another Simple Note"
+      "name": "另外一个简单的备注"
     }
   ]
 }
@@ -1246,19 +1235,17 @@
Notes:说明:

- Used to represent ordered subsets of items from an - OrderedCollection. Refer to the - Activity Streams 2.0 - Core for a complete description of the - OrderedCollectionPage object. + 表示 OrderedCollection 对象的有序子集。详见 + 行为流 2.0 核心规范 + 中关于 OrderedCollectionPage 对象的完整描述。

Extends:继承自: OrderedCollection | @@ -1266,17 +1253,18 @@
Properties:属性:

startIndex

- Inherits all properties from + 继承 OrderedCollection - and - CollectionPage. + 及 + CollectionPage + 的所有属性。