diff --git a/index.html b/index.html
index 972a7da..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/">译本。
- Copyright © 2017 Activity Streams Working
+ Copyright © 2017行为流Working
Group,IBM &
W3C ® (MIT ,
@@ -481,142 +481,128 @@
- Abstract
+ 摘要
- This specification describes the Activity vocabulary. It is intended to be used in the context of the
- ActivityStreams 2.0 format and provides a foundational vocabulary for activity structures, and specific activity
- types.
+ 本规范描述了行为术语,它用于与 ActivityStreams 2.0 格式结合使用,并为行为结构以及具体行为类型提供基础术语。
- Status of This Document
+ 本文档的状态
- This section describes the status of this document at the time of its publication. Other documents may
- supersede this document. A list of current W3C publications and
- the latest revision of this technical report can be found in the W3C technical reports index at https://www.w3.org/TR/.
+ 本节描述了本文档在发布时的状态。其他文档可能会取代本文档。可在 W3C 技术报告索引
+ https://www.w3.org/TR/ 查询当前 W3C 出版物和本技术报告的最新版本。
- This document was published by the Social Web Working Group as a
- Recommendation. Comments regarding this document are welcome. Please send them to
+ 本文档由 社交网络工作组 以推荐规范的形式发布。欢迎提出意见和建议。请将您的意见发送至
public-socialweb@w3.org (subscribe ,
- archives ).
+ href="mailto:public-socialweb-request@w3.org?subject=subscribe">订阅,
+ 归档 )。
- Please see the Working Group's implementation
- report .
+ 请查阅工作组的实现报告 。
- This document has been reviewed by W3C Members, by software
- developers, and by other W3C groups and interested parties, and is
- endorsed by the Director as a W3C Recommendation. It is a stable
- document and may be used as reference material or cited from another document. W3C '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.
+ 本文档已由 W3C 成员、软件开发者及其他 W3C 小组和利益相关方审阅,并被指导组认定为 W3C 推荐规范。该文档内容稳定,可用作参考资料,亦可被其他文档引用。W3C 发布推荐规范旨在引起对规范的关注,并推动其广泛部署,这有助于提升 Web 的功能性和互操作性。
- This document was produced by a group operating under the
- 5
- February 2004 W3C Patent
- Policy .
- W3C maintains a public list of any patent
- disclosures made in connection with the deliverables of the group; that page also includes instructions for
- disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains
- Essential
- Claim(s) must disclose the information in accordance with
- section
- 6 of the W3C Patent Policy .
+ 本文档由遵守
+ 2004年2月5日 W3C 专利政策
+ 的团队编写。
+ W3C 维护了一个与专利相关的专利披露公示 列表,页面内也提供披露专利的说明。任何实际知晓某项专利,并认为此专利中含有其基本权利要求
+ 的个人,须依照W3C 专利政策第6节 进行信息披露。
- This document is governed by the 1
- March 2017 W3C Process Document .
+
本文档受 2017年3月1日的 W3C 流程文档 管辖。
Table of Contents
+ resource="xhv:heading">目录
- 1. Introduction
+ 1. 引言
1.1 Conventions
+ class="tocxref">1.1 约定
2. Core Types
+ class="secno">2. 核心类型
3. Extended Types
+ class="tocxref">3. 扩展类型
3.1 Activity Types
+ class="tocxref">3.1 行为类型
3.2 Actor Types
+ class="tocxref">3.2 行为体类型
3.3 Object and Link Types
+ class="tocxref">3.3 对象与链接类型
- 4. Properties
+ 4. 属性
5. Implementation Notes
+ class="secno">5. 实现说明
5.1 Audience Targeting
+ class="tocxref">5.1 受众定位
5.2 Representing Relationships Between Entities
+ class="tocxref">5.2 实体间的关系的表示
- 5.3 Representing Places
+ 5.3 地点的表示
5.4 Representing Questions
- 5.5 Inverse Activities and "Undo"
+ class="tocxref">5.4 问题的表示
+ 5.5 逆行为与“撤销”
5.6 Mentions, Tags and Other Common Social Microsyntaxes
+ class="tocxref">5.6 提及、标签及其他常见社交微语法
5.7 Origin and Target
+ class="tocxref">5.7 来源与目标
5.8 Activity Type Motivating Use Cases
+ class="tocxref">5.8 由行为类型驱动的用例
- A. Non-normative Ontology Definition
- B. Changelog
- C. References
+ A. 非规范本体定义
+ B. 变更日志
+ C. 资料引用
C.1 Normative references
+ class="tocxref">C.1 规范性引用
C.2 Informative references
+ class="tocxref">C.2 资料性引用
@@ -627,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 术语表规定了一组抽象类型和属性,用以描述过去、现在和将来发生的行为。该术语表由两个部分组成:
- A Core set of properties describing the generalized structure of an Activity; and
+ 一组为核心属性,描述行为的通用结构;
- 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 序列化格式。
@@ -690,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 的核心类型包括:
@@ -732,26 +712,26 @@
- Class
- Description
- Example
+ 类
+ 描述
+ 示例
Object
- URI:
+ 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" : "一个简单且无特定类型的对象"
}
@@ -759,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
、
+ IntransitiveActivity
、
Collection
- and
- OrderedCollection
.
+ 以及
+ OrderedCollection
。
- Disjoint With:
+ 互斥于:
Link
- Properties:
+ 属性:
attachment
@@ -839,54 +818,51 @@
Link
- URI:
+ 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
@@ -912,23 +888,23 @@
Activity
- URI:
+ 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" : "一条备注"
}
}
@@ -936,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
@@ -970,8 +944,9 @@
- Inherits all properties from
- Object
.
+ 继承
+ Object
+ 的所有属性。
@@ -987,11 +962,11 @@
-
Example 4
+
示例 4
{
"@context" : "https://www.w3.org/ns/activitystreams" ,
"type" : "Travel" ,
- "summary" : "Sally went to work" ,
+ "summary" : "Sally 去上班了" ,
"actor" : {
"type" : "Person" ,
"name" : "Sally"
@@ -1006,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
。
@@ -1041,20 +1014,20 @@
-
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" : "另外一个简单的备注"
}
]
}
@@ -1063,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
@@ -1101,8 +1075,9 @@
items
- Inherits all properties from
- Object
.
+ 继承
+ Object
+ 的所有属性。
@@ -1111,25 +1086,25 @@
OrderedCollection
- URI:
+ 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" : "另外一个简单的备注"
}
]
}
@@ -1138,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
+ 的所有属性。
@@ -1166,26 +1141,26 @@
CollectionPage
- URI:
+ 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" : "另外一个简单的备注"
}
]
}
@@ -1194,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
@@ -1222,8 +1196,9 @@
prev
- Inherits all properties from
- Collection
.
+
继承自
+ Collection
+ 的所有属性。
@@ -1232,26 +1207,26 @@
OrderedCollectionPage
- URI:
+ 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" : "另外一个简单的备注"
}
]
}
@@ -1260,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
|
@@ -1280,17 +1253,18 @@
- Properties:
+ 属性:
startIndex
- Inherits all properties from
+ 继承
OrderedCollection
- and
- CollectionPage
.
+ 及
+ CollectionPage
+ 的所有属性。