From cf9bc632c82b818cd398bbb21318d1233e8bf208 Mon Sep 17 00:00:00 2001
From: cdn0x12
- 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 格式结合使用,并为行为结构以及具体行为类型提供基础词汇。
- 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 流程文档 管辖。
Abstract
+ 摘要
Status of This Document
+
本文档的状态
- Copyright © 2017 Activity Streams Working
+ Copyright © 2017行为流Working
Group,IBM &
W3C® (MIT,
@@ -483,7 +483,7 @@
- 本规范描述了行为术语,它用于与 ActivityStreams 2.0 格式结合使用,并为行为结构以及具体行为类型提供基础词汇。
+ 本规范描述了行为术语,它用于与 ActivityStreams 2.0 格式结合使用,并为行为结构以及具体行为类型提供基础术语。
- 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 术语表规定了一组抽象类型和属性,用以描述过去、现在和将来发生的行为。该术语表由两个部分组成:
- 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] 中的说明进行解释。
- Unless otherwise specified, all properties defined as
-
- The examples included in this document use the normative JSON serialization defined by this specification.
+ 本文档中的示例均采用本规范定义的规范 JSON 序列化格式。
- The Activity Vocabulary Core Types provide the basis for the rest of the vocabulary.
+ 行为术语核心类型构成了其余术语的基础。
Base URI: 基础 URI: The Activity Streams 2.0 Core Types include:
+ 行为流 2.0 的核心类型包括:
- Inherits all properties from
-
- Inherits all properties from
+ 继承
- A
- Refer to the
- Activity Streams 2.0 Core
- specification for a complete description of the
-
- Inherits all properties from
-
- A subtype of
Inherits all properties from
- 继承
+
- Used to represent distinct subsets of items from a
-
Inherits all properties from
- 继承自
+
- Used to represent ordered subsets of items from an
-
- Inherits all properties from
+ 继承
摘要
1. Introduction
+ class="secno">1. 引言
1.1 Conventions
+ class="secno">1.1 约定
xsd:dateTime
values MUST conform to the rules defined in
- Activity Streams 2.0 Core,
- Section 2.3.
+ 除非另有说明,所有定义为
+ xsd:dateTime
类型的属性必须符合行为流2.0 核心规范中
+ 第2.3节的规定。
2.
- Core Types
+ 核心类型
https://www.w3.org/ns/activitystreams#
.https://www.w3.org/ns/activitystreams#
。
@@ -718,26 +712,26 @@
Object
+ Object (对象)
Link
+ Link (链接)
Activity
+ Activity (行为)
IntransitiveActivity
+ IntransitiveActivity (不及物行为)
Collection
+ Collection (集合)
OrderedCollection
+ OrderedCollection (有序集合)
CollectionPage
+ CollectionPage (集合页)
OrderedCollectionPage
+ OrderedCollectionPage (有序集合页)
-
Class
- Description
- Example
+ 类
+ 描述
+ 示例
Object
- URI:
+ URI:
https://www.w3.org/ns/activitystreams#Object
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Object",
"id": "http://www.test.example/object/1",
- "name": "A Simple, non-specific object"
+ "name": "一个简单且无特定类型的对象"
}
-
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
@@ -825,54 +818,51 @@
Link
- URI:
+ URI:
https://www.w3.org/ns/activitystreams#Link
{
"@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 @@
Activity
- URI:
+ URI:
https://www.w3.org/ns/activitystreams#Activity
{
"@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": "一条备注"
}
}
-
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
-
@@ -973,11 +962,11 @@
Properties:
+ 属性:
actor
@@ -956,8 +944,9 @@
Object
.
+ 继承
+ Object
+ 的所有属性。
{
"@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
-
@@ -1027,20 +1014,20 @@
Properties:
+ 属性:
Activity
- except
- object
.
+ 的所有属性,但不包括 object
。
{
"@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:
+ 说明:
Collection
is a subtype of
+ Collection (集合)
是
Object
- that represents ordered or unordered sets of
- Object or Link
- instances.
+ 的子类型,用于表示有序或无序的
+ Object
+ 或
+ Link
+ 实例的集合。
Collection
type.
+ 完全描述请参见
+ 行为流 2.0 核心规范
+ 的 Collection
类型部分。
-
Extends:
+ 继承自:
Object
-
@@ -1097,25 +1086,25 @@
Properties:
+ 属性:
totalItems
@@ -1087,8 +1075,9 @@
items
Object
.
+ 继承
+ Object
+ 的所有属性。
OrderedCollection
- URI:
+ URI:
https://www.w3.org/ns/activitystreams#OrderedCollection
{
"@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:
+ 说明:
Collection
- in which members of the logical collection are assumed to always be strictly ordered.
+ 的子类型,其逻辑集合中的成员始终严格保持有序。
-
Extends:
+ 继承自:
Collection
-
@@ -1152,26 +1141,26 @@
Properties:
+ 属性:
-
Collection
.
+ Collection
+ 的所有属性。
CollectionPage
- URI:
+ URI:
https://www.w3.org/ns/activitystreams#CollectionPage
{
"@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:
+ 说明:
Collection
. Refer to the
- Activity Streams 2.0 Core for
- a complete description of the
- CollectionPage
object.
+ 用于表示 Collection
的不同子集。详见
+ 行为流 2.0 核心规范
+ 中关于
+ CollectionPage
对象的完整描述。
-
Extends:
+ 继承自:
Collection
-
@@ -1218,26 +1207,26 @@
Properties:
+ 属性:
partOf
@@ -1208,8 +1196,9 @@
prev
Collection
.
+ Collection
+ 的所有属性。
OrderedCollectionPage
- URI:
+ URI:
https://www.w3.org/ns/activitystreams#OrderedCollectionPage
{
"@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:
+ 说明:
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:
+ 属性:
OrderedCollection
- and
- CollectionPage
.
+ 及
+ CollectionPage
+ 的所有属性。