Abstract
This specification describes the Activity vocabulary.
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 http://www.w3.org/TR/.
This document was published by the Social Web Working Group as a Working Draft.
This document is intended to become a W3C Recommendation.
If you wish to make comments regarding this document, please send them to
public-socialweb@w3.org
(subscribe,
archives).
All comments are welcome.
Publication as a Working Draft does not imply endorsement by the W3C
Membership. This is a draft document and may be updated, replaced or obsoleted by other
documents at any time. It is inappropriate to cite this document as other than work in
progress.
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.
This document is governed by the 1 September 2015 W3C Process Document.
1. Introduction
The Activity Streams 2.0 Core Syntax
defines the JSON syntax for Activity Streams. This document defines the
vocabulary properties.
The Activity Streams 2.0 Vocabulary defines a set of abstract classes
and properties that describe past, present and future Activities.
The vocabulary is defined in two parts:
-
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.
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].
1.2 Conventions
This specification uses IRIs [RFC3987]. Every URI [RFC3986] is
also an IRI, so a URI may be used wherever an IRI is named. There are
two special considerations: (1) when an IRI that is not also a URI is
given for dereferencing, it MUST be mapped to a URI using the steps
in Section 3.1 of [RFC3987] and (2) when an IRI is serving as an "id"
value, it MUST NOT be so mapped.
Unless otherwise specified, all properties defined as
xsd:dateTime
values MUST conform to the "date-time"
production in [RFC3339], with an uppercase "T" character used to
separate date and time, and an uppercase "Z" character in the absence
of a numeric time zone offset. All such timestamps SHOULD be
represented relative to Coordinated Universal Time (UTC).
The examples included in this document use the normative JSON-LD
serialization defined by this specification along with generally
equivalent, non-normative Microdata, RDFa, Microformats, and Turtle
serializations. These non-JSON-LD alternatives are included solely for
illustrative purposes.
2. Core Classes
The Activity Vocabulary Core Classes provide the basis for the rest of
the vocabulary.
Base URI: http://www.w3.org/ns/activitystreams#
.
The Activity Streams 2.0 Core Classes include:
Object
|
Link
|
Activity
|
IntransitiveActivity
|
Actor
|
Collection
|
OrderedCollection
|
CollectionPage
|
OrderedCollectionPage
Class |
Description |
Example |
Object |
URI: |
http://www.w3.org/ns/activitystreams#Object |
Example 1 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Object",
"@id": "http://www.test.example/object/1",
"displayName": "A Simple, non-specific object"
}
Example 2 <div itemscope
itemid="http://www.test.example/object/1"
itemtype="http://www.w3.org/ns/activitystreams#Object">
<span itemprop="displayName">
A Simple, non-specific object
</span>
</div>
Example 3 <div vocab="http://www.w3.org/ns/activitystreams#"
resource="http://www.test.example/object/1"
typeof="Object">
<span property="displayName">
A Simple, non-specific object
</span>
</div>
Example 5 @prefix as: <http://www.w3.org/ns/activitystreams#>.
<http://www.test.example/object/1> a as:Object ;
as:displayName "A Simple, non-specific object" .
|
Notes: |
Describes an object of any kind. The Object class serves as the
base class for most of the other kinds of objects defined in the
Activity Vocabulary, include other Core classes such as
Activity ,
IntransitiveActivity ,
Actor ,
Collection and
OrderedCollection .
|
Disjoint With: |
Link |
Properties: |
alias |
attachment |
attributedTo |
content |
context |
displayName |
endTime |
generator |
icon |
image |
inReplyTo |
location |
preview |
published |
replies |
scope |
startTime |
summary |
tag |
title |
updated |
url |
to |
bto |
cc |
bcc
|
Link |
URI: |
http://www.w3.org/ns/activitystreams#Link |
Example 6 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"displayName": "An example link"
}
Example 7 <a itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
itemprop="displayName">An example link</a>
Example 8 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link">
<span property="hreflang" lang="">en</span>
<span property="mediaType" lang="">text/html</span>
<a rel="href" href="http://example.org/abc"
property="displayName">An example link</a>
</div>
Example 10 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Link ;
as:displayName "An example link" ;
as:href <http://example.org/abc> ;
as:hreflang "en" ;
as:mediaType "text/html" .
|
Notes: |
A Link is an indirect, qualified reference to a resource identified
by a URL. The fundamental model for links is established by
[RFC5988]. Many of the properties defined by the Activity
Vocabulary allow values that are either instances of
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 .
|
Disjoint With: |
Object |
Properties: |
href |
rel |
mediaType |
displayName |
title |
hreflang |
height |
width |
duration
|
Activity |
URI: |
http://www.w3.org/ns/activitystreams#Activity |
Example 11 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Activity",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Note",
"displayName": "A Note"
}
}
Example 12 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Activity">
<span itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person"
itemprop="actor">
<span itemprop="displayName">Sally</span>
</span>
did something to
<span itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note"
itemprop="object">
<span itemprop="displayName">A Note</span>
</span>
</div>
Example 13 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Activity">
<span typeof="Person" property="actor">
<span property="displayName">Sally</span>
</span>
did something to
<span typeof="Note" property="object">
<span property="displayName">A Note</span>
</span>
</div>
Example 15 @prefix as: <http://www.w3.org/ns/activitystreams#>.
_:b0 a as:Activity ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Note ;
as:displayName "A Note" .
] .
|
Notes: |
An Activity is a subclass of Object that
describes some form of action that may happen, is currently
happening, or has already happened. The Activity
class itself serves as an abstract base class for all types of
activities. It is important to note that the Activity
class itself does not carry any specific semantics about the kind
of action being taken.
|
Extends: |
Object |
Properties: |
actor |
object |
target |
result |
origin |
instrument |
priority
Inherits all properties from Object .
|
IntransitiveActivity |
URI: |
http://www.w3.org/ns/activitystreams#IntransitiveActivity
|
Example 16 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Travel",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"target": {
"@type": "Place",
"displayName": "Work"
}
}
Example 17 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Travel">
<meta itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person"
itemprop="actor">
<meta itemprop="displayName">Sally</meta>
</meta>
is traveling to
<meta itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place"
itemprop="target">
<meta itemprop="displayName">Work</meta>
</meta>
</div>
Example 18 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Travel">
<meta typeof="Person" property="actor">
<meta property="displayName">Sally</meta>
</meta>
is traveling to
<meta typeof="Place" property="target">
<meta property="displayName">Work</meta>
</meta>
</div>
Example 20 @prefix as: <http://www.w3.org/ns/activitystreams#>.
_:b0 a as:Travel ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:target [
a as:Place ;
as:displayName "Work" .
] .
|
Notes: |
Instances of IntransitiveActivity are a subclass of
Activity whose actor property
identifies the direct object of the action as opposed to using
the object property.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity except
object .
|
Actor |
URI: |
http://www.w3.org/ns/activitystreams#Actor |
Example 21 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Actor",
"displayName": "Sally"
}
Example 22 <div itemscope
itemtype=http://www.w3.org/ns/activitystreams#Actor"
itemprop="displayName">Sally</div>
Example 23 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Actor"
property="displayName">Sally</div>
Example 25 @prefix as: <http://www.w3.org/ns/activitystreams#>.
_:b0 a as:Actor ;
as:displayName "Sally" .
|
Notes: |
An Actor is any entity that is capable of being the primary
actor for an Activity.
|
Extends: |
Object |
Properties: |
Inherits all properties from Object .
|
Collection |
URI: |
http://www.w3.org/ns/activitystreams#Collection |
Example 26 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 2,
"items": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 27 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="2" /<
<ul>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A Simple Note
</span>
</li>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 28 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="2" datatype="xsd:nonNegativeInteger" />
<ul>
<li property="items" typeof="Note">
<span property="displayName">
A Simple Note
</span>
</li>
<li property="items" typeof="Note">
<span property="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 30 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Collection ;
as:totalItems "2"^^xsd:nonNegativeInteger ;
as:items [
a as:Note ;
as:displayName "A Simple Note" .
],
[
a as:Note ;
as:displayName "Another Simple Note" .
] .
|
Notes: |
A Collection is a subclass of
Object that represents ordered or unordered
sets of Object or Link instances.
Refer to the
Activity Streams 2.0 Core specification for a complete description of the
Collection type.
|
Extends: |
Object |
Properties: |
totalItems |
current |
first |
last |
items
Inherits all properties from Object .
|
OrderedCollection |
URI: |
http://www.w3.org/ns/activitystreams#OrderedCollection |
Example 31 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "OrderedCollection",
"totalItems": 2,
"orderedItems": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 32 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#OrderedCollection">
<meta itemprop="totalItems" content="2" /<
<ol>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A Simple Note
</span>
</li>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
Another Simple Note
</span>
</li>
</ol>
</div>
Example 33 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="OrderedCollection">
<meta property="totalItems" content="2" datatype="xsd:nonNegativeInteger" />
<ol>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
A Simple Note
</span>
</li>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
Another Simple Note
</span>
</li>
</ol>
</div>
Example 35 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
_:b0 a as:OrderedCollection ;
as:totalItems "2"^^xsd:nonNegativeInteger ;
as:items (
[
a as:Note ;
as:displayName "A Simple Note" .
]
[
a as:Note ;
as:displayName "Another Simple Note" .
]
) .
|
Notes: |
A subclass of Collection in which members
of the logical collection are assumed to always be strictly
ordered.
|
Extends: |
Collection |
Properties: |
Inherits all properties from Collection .
|
CollectionPage |
URI: |
http://www.w3.org/ns/activitystreams#CollectionPage |
Example 36 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "CollectionPage",
"@id": "http://example.org/foo?page=1",
"partOf": "http://example.org/foo",
"items": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 37 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#CollectionPage"
itemid="http://example.org/foo?page=1">
<link itemprop="partOf" href="http://example.org/foo" />
<ul>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A Simple Note
</span>
</li>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 38 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="CollectionPage"
resource="http://example.org/foo?page=1">
<link property="partOf" href="http://example.org/foo" />
<ul>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
A Simple Note
</span>
</li>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 40 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<http://example.org/foo?page=1> a as:CollectionPage ;
as:partOf <http://example.org/foo> ;
as:items [
a as:Note ;
as:displayName "A Simple Note" .
],
[
a as:Note ;
as:displayName "Another Simple Note" .
] .
|
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.
|
Extends: |
Collection |
Properties: |
partOf |
next |
prev
Inherits all properties from Collection .
|
OrderedCollectionPage |
URI: |
http://www.w3.org/ns/activitystreams#OrderedCollectionPage |
Example 41 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "OrderedCollectionPage",
"@id": "http://example.org/foo?page=1",
"partOf": "http://example.org/foo",
"orderedItems": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 42 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#OrderedCollectionPage"
itemid="http://example.org/foo?page=1">
<link itemprop="partOf" href="http://example.org/foo" />
<ol>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A Simple Note
</span>
</li>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
Another Simple Note
</span>
</li>
</ol>
</div>
Example 43 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="OrderedCollectionPage"
resource="http://example.org/foo?page=1">
<link property="partOf" href="http://example.org/foo" />
<ol>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
A Simple Note
</span>
</li>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
Another Simple Note
</span>
</li>
</ol>
</div>
Example 45 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<http://example.org/foo?page=1> a as:OrderedCollectionPage ;
as:partOf <http://example.org/foo> ;
as:items (
[
a as:Note ;
as:displayName "A Simple Note" .
]
[
a as:Note ;
as:displayName "Another Simple Note" .
]
) .
|
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.
|
Extends: |
OrderedCollection |
CollectionPage
|
Properties: |
startIndex
Inherits all properties from
OrderedCollection and
CollectionPage .
|
3. Extended Classes
Base URI: http://www.w3.org/ns/activitystreams#
.
The Activity Streams 2.0 Extended Classes include Activity and Object
subclasses that are common to many social Web applications. They are
divided into three sets:
Support for specific extended vocabulary classes is expected to vary,
with implementations only selecting the extended classes and properties
that make sense within the specific context and requirements of those
applications. However, to avoid possible interoperability issues,
implementations MUST avoid using extension classes or properties that
unduly overlap with or duplicate the extended vocabulary defined here.
3.1 Activity Types
All Activity Types inherit the properties of the base Activity
class. Some specific Activity Types are subclasses or specializations
of more generalized Activity Types (for instance, the
Invite
Activity Type is a more specific form of the
Offer
Activity Type).
The Activity Types include:
Accept
|
Add
|
Announce
|
Arrive
|
Block
|
Create
|
Delete
|
Dislike
|
Experience
|
Flag
|
Follow
|
Ignore
|
Invite
|
Join
|
Leave
|
Like
|
Listen
|
Move
|
Offer
|
Question
|
Reject
|
Read
|
Remove
|
TentativeReject
|
TentativeAccept
|
Travel
|
Undo
|
Update
|
View
Class |
Description |
Example |
Accept |
URI: |
http://www.w3.org/ns/activitystreams#Accept |
Example 46 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Accept",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Invite",
"actor": "http://john.example.org",
"object": {
"@type": "Event",
"displayName": "A Party!"
}
}
}
Example 47 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Accept">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">
Sally
</span>
<span>
accepted
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Invite">
<a itemprop="actor"
href="http://john.example.org">John's</a>
invitation to
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<span itemprop="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 48 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Accept">
<span property="actor" typeof="Person">
<span property="displayName">
Sally
</span>
</span>
accepted
<span property="object" typeof="Invite">
<a property="actor"
href="http://john.example.org">John's</a>
invitation to
<span property="object" typeof="Event">
<span property="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 50 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Accept ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Invite ;
as:actor <http://john.example.org> ;
as:object [
a as:Event ;
as:displayName "A Party!"
]
] .
|
Notes: |
Indicates that the actor accepts the
object . The target property can be used
in certain circumstances to indicate the context into which the
object has been accepted. For instance, when
expressing the activity, "Sally accepted Joe into the Club", the
"target" would identify the "Club".
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
TentativeAccept |
URI: |
http://www.w3.org/ns/activitystreams#TentativeAccept |
Example 51 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "TentativeAccept",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Invite",
"actor": "http://john.example.org",
"object": {
"@type": "Event",
"displayName": "A Party!"
}
}
}
Example 52 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#TentativeAccept">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">
Sally
</span>
<span>
tentatively accepted
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Invite">
<a itemprop="actor"
href="http://john.example.org">John's</a>
invitation to
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<span itemprop="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 53 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="TentativeAccept">
<span property="actor" typeof="Person">
<span property="displayName">
Sally
</span>
<span>
tentatively accepted
<span property="object" typeof="Invite">
<a property="actor"
href="http://john.example.org">John's</a>
invitation to
<span property="object" typeof="Event">
<span property="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 55 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:TentativeAccept ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Invite ;
as:actor <http://john.example.org> ;
as:object [
a as:Event ;
as:displayName "A Party!" .
] .
] .
|
Notes: |
A specialization of Accept indicating that the
acceptance is tentative.
|
Extends: |
Accept |
Properties: |
Inherits all properties from Accept .
|
Add |
URI: |
http://www.w3.org/ns/activitystreams#Add |
Example 56 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Add",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/abc"
}
Example 57 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Add">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
added
<a itemprop="object"
href="http://example.org/abc">
"http://example.org/abc"</a>
</div>
Example 58 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Add">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
added
<a property="object"
href="http://example.org/abc">
"http://example.org/abc"</a>
</div>
Example 60 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Add ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object <http://example.org/abc> .
Example 61 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Add",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Image",
"displayName": "A picture of my cat",
"url": "http://example.org/img/cat.png"
},
"target": {
"@type": "Album",
"displayName": "My Cat Pictures"
}
}
Example 62 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Add">
<span itemprop="actor"
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
added
<a itemprop="object"
href="http://example.org/abc">
"http://example.org/abc"</a>
to
<span itemprop="target" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Album">
"<span itemprop="displayName">My Cat Pictures</span>"
</span>
</div>
Example 63 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Add">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
added
<span property="object" typeof="Image">
<a property="displayName" rel="url"
href="http://example.org/abc">
A picture of my cat</a>
</span>
to
<span property="target"
typeof="Album">
<span property="displayName">My Cat Pictures</span>
</span>
</div>
Example 65 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Add ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Image ;
as:displayName "A picture of my cat" ;
as:url <http://example.org/abc>
] ;
as:target [
a as:Album ;
as:displayName "My Cat Pictures"
] .
|
Notes: |
Indicates that the actor has added the
object to the target . If the
target property is not explicitly specified, the
target would need to be determined implicitly by context. The
origin can be used to identify the context from
which the object originated.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity .
|
Arrive |
URI: |
http://www.w3.org/ns/activitystreams#Arrive |
Example 66 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Arrive",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"location": {
"@type": "Place",
"displayName": "Work"
},
"origin": {
"@type": "Place",
"displayName": "Home"
}
}
Example 67 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Arrive">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
arrived at
<span itemprop="location" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<span itemprop="displayName">Work</span>
</span>
from
<span itemprop="origin" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<span itemprop="displayName">Home</span>
</span>
</div>
Example 68 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Arrive">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
arrived at
<span property="location" typeof="Place">
<span property="displayName">Work</span>
</span>
from
<span property="origin" typeof="Place">
<span property="displayName">Home</span>
</span>
</div>
Example 70 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Arrive ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:location [
a as:Place ;
as:displayName "Work" .
] ;
as:origin [
a as:Place ;
as:displayName "Home" .
] .
|
Notes: |
An IntransitiveActivity that indicates that
the actor has arrived at the location .
The origin can be used to identify the context from
which the actor originated. The target
typically has no defined meaning.
|
Extends: |
IntransitiveActivity |
Properties: |
Inherits all properties fom
IntransitiveActivity .
|
Create |
URI: |
http://www.w3.org/ns/activitystreams#Create |
Example 71 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Create",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Note",
"displayName": "A Simple Note",
"content": "This is a simple note"
}
}
Example 72 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Create">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
created
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
a note titled
"<span itemprop="displayName">A Simple Note</span>"
with content
"<span itemprop="content">This is a simple note</span>"
</span>
</div>
Example 73 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Create">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
created
<span property="object" typeof="Note">
a note titled
"<span property="displayName">A Simple Note</span>"
with content
"<span property="content">This is a simple note</span>"
</span>
</div>
Example 75 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Create ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Note ;
as:displayName "A Simple Note" ;
as:content "This is a simple note" .
] .
|
Notes: |
Indicates that the actor has created the
object .
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Delete |
URI: |
http://www.w3.org/ns/activitystreams#Delete |
Example 76 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Delete",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1"
}
Example 77 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Delete">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
deleted
<a itemprop="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 78 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Delete">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
deleted
<a property="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 80 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Delete ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object <http://example.org/notes/1> .
|
Notes: |
Indicates that the actor has deleted the
object . If specified, the origin
indicates the context from which the object was
deleted.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Follow |
URI: |
http://www.w3.org/ns/activitystreams#Follow |
Example 81 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Follow",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Person",
"displayName": "John"
}
}
Example 82 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Follow">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
followed
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">John</span>
</span>
</div>
Example 83 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Follow">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
followed
<span property="object" typeof="Person">
<span itemprop="displayName">John</span>
</span>
</div>
Example 85 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Follow ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Person ;
as:displayName "John" .
] .
|
Notes: |
Indicates that the actor is "following" the
object . Following is defined in the sense typically
used within Social systems in which the actor is interested in
any activity performed by or on the object. The
target and origin typically have no
defined meaning.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Ignore |
URI: |
http://www.w3.org/ns/activitystreams#Ignore |
Example 86 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Ignore",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1"
}
Example 87 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Ignore">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
is ignoring
<a itemprop="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 88 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Ignore">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
is ignoring
<a property="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 90 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Ignore ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object <http://example.org/notes/1> .
|
Notes: |
Indicates that the actor is ignoring the
object . The target and
origin typically have no defined meaning.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Join |
URI: |
http://www.w3.org/ns/activitystreams#Join |
Example 91 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Join",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Group",
"displayName": "A Simple Group"
}
}
Example 92 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Join">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
joined
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Group">
<span itemprop="displayName">A Simple Group</span>
</span>
</div>
Example 93 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Join">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
joined
<span property="object" typeof="Group">
<span property="displayName">A Simple Group</span>
</span>
</div>
Example 95 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Join ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Group ;
as:displayName "A Simple Group" .
] .
|
Notes: |
Indicates that the actor has joined the
object . The target and
origin typically have no defined meaning.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Leave |
URI: |
http://www.w3.org/ns/activitystreams#Leave |
Example 96 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Leave",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Place",
"displayName": "Work"
}
}
Example 97 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Leave">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
left
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<span itemprop="displayName">Work</span>
</span>
</div>
Example 98 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Leave">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
left
<span property="object" typeof="Place">
<span property="displayName">Work</span>
</span>
</div>
Example 100 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Leave ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Place ;
as:displayName "Work" .
] .
Example 101 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Leave",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Group",
"displayName": "A Simple Group"
}
}
Example 102 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Leave">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
left
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Group">
<span itemprop="displayName">A Simple Group</span>
</span>
</div>
Example 103 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Leave">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
left
<span property="object" typeof="Group">
<span property="displayName">A Simple Group</span>
</span>
</div>
Example 105 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Leave ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Group ;
as:displayName "A Simple Group" .
] .
|
Notes: |
Indicates that the actor has left the
object . The target and
origin typically have no meaning.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Like |
URI: |
http://www.w3.org/ns/activitystreams#Like |
Example 106 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Like",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1"
}
Example 107 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Like">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
liked
<a itemprop="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 108 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Like">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
liked
<a property="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 110 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Like ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object <http://example.org/notes/1> .
|
Notes: |
Indicates that the actor likes, recommends or
endorses the object . The target and
origin typically have no defined meaning.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Offer |
URI: |
http://www.w3.org/ns/activitystreams#Offer |
Example 111 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "http://www.types.example/ProductOffer",
"displayName": "50% Off!"
}
}
Example 112 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
is offering
<span itemprop="object" itemscope
itemtype="http://www.types.example/ProductOffer">
<span itemprop="displayName">
50% Off!
</span>
</span>
</div>
Example 113 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
is offering
<span property="object"
typeof="http://www.types.example/ProductOffer">
<span property="displayName">
50% Off!
</span>
</span>
</div>
Example 115 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a <http://www.types.example/ProductOffer> ;
as:displayName "50% Off!" .
] .
|
Notes: |
Indicates that the actor is offering the
object . If specified, the target
indicates the entity to which the object is being
offered.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Invite |
URI: |
http://www.w3.org/ns/activitystreams#Invite |
Example 116 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Invite",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Event",
"displayName": "A Party"
},
"target": [
{
"@type": "Person",
"displayName": "John"
},
{
"@type": "Person",
"displayName": "Lisa"
}
]
}
Example 117 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Invite">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
invited
<span itemprop="target" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">John</span>
</span>
and
<span itemprop="target" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Lisa</span>
</span>
to
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<span itemprop="displayName">A Party</span>
</span>
</div>
Example 118 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Invite">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
invited
<span property="target" typeof="Person">
<span property="displayName">John</span>
</span>
and
<span property="target" typeof="Person">
<span property="displayName">Lisa</span>
</span>
to
<span property="object" typeof="Event">
<span property="displayName">A Party</span>
</span>
</div>
Example 120 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Invite ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Event ;
as:displayName "A Party" .
] ;
as:target (
[
a as:Person ;
as:displayName "John" .
]
[
a as:Person ;
as:displayName "Lisa" .
]
) .
|
Notes: |
A specialization of Offer in which the
actor is extending an invitation for the
object to the target .
|
Extends: |
Offer |
Properties: |
Inherits all properties from Offer .
|
Reject |
URI: |
http://www.w3.org/ns/activitystreams#Reject |
Example 121 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Reject",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Invite",
"actor": "http://john.example.org",
"object": {
"@type": "Event",
"displayName": "A Party!"
}
}
}
Example 122 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Reject">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">
Sally
</span>
<span>
rejected
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Invite">
<a itemprop="actor"
href="http://john.example.org">John's</a>
invitation to
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<span itemprop="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 123 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Reject">
<span property="actor" typeof="Person">
<span property="displayName">
Sally
</span>
</span>
rejected
<span property="object" typeof="Invite">
<a property="actor"
href="http://john.example.org">John's</a>
invitation to
<span property="object" typeof="Event">
<span property="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 125 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Reject ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Invite ;
as:actor <http://john.example.org> ;
as:object [
a as:Event ;
as:displayName "A Party!" .
] .
] .
|
Notes: |
Indicates that the actor is rejecting the
object . The target and
origin typically have no defined meaning.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
TentativeReject |
URI: |
http://www.w3.org/ns/activitystreams#TentativeReject |
Example 126 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "TentativeReject",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Invite",
"actor": "http://john.example.org",
"object": {
"@type": "Event",
"displayName": "A Party!"
}
}
}
Example 127 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#TentativeReject">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">
Sally
</span>
</span>
tentatively rejected
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Invite">
<a itemprop="actor"
href="http://john.example.org">John's</a>
invitation to
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<span itemprop="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 128 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="TentativeReject">
<span property="actor" typeof="Person">
<span property="displayName">
Sally
</span>
<span>
tentatively rejected
<span property="object" typeof="Invite">
<a property="actor"
href="http://john.example.org">John's</a>
invitation to
<span property="object" typeof="Event">
<span property="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 130 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:TentativeReject ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Invite ;
as:actor <http://john.example.org> ;
as:object [
a as:Event ;
as:displayName "A Party!" .
] .
] .
|
Notes: |
A specialization of Reject in which the
rejection is considered tentative.
|
Extends: |
Reject |
Properties: |
Inherits all properties from Reject . |
Remove |
URI: |
http://www.w3.org/ns/activitystreams#Remove |
Example 131 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Remove",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1",
"target": {
"@type": "Folder",
"displayName": "Notes Folder"
}
}
Example 132 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Remove">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">
Sally
</span>
<span>
removed
<a itemprop="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
from
<span itemprop="target" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Folder">
<span itemprop="displayName">
Notes Folder
</span>
<span>
</div>
Example 133 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Remove">
<span property="actor" typeof="Person">
<span property="displayName">
Sally
</span>
</span>
removed
<a property="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
from
<span property="target" typeof="Folder">
<span property="displayName">
Notes Folder
</span>
</span>
</div>
Example 135 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Remove ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object <http://example.org/notes/1> ;
as:target [
a as:Folder ;
as:displayName "Notes Folder" .
] .
Example 136 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Remove",
"actor": {
"@type": "http://example.org/Role",
"displayName": "The Moderator"
},
"object": {
"@type": "Person",
"displayName": "Sally"
},
"origin": {
"@type": "Group",
"displayName": "A Simple Group"
}
}
Example 137 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Remove">
<span itemprop="actor" itemscope
itemtype="http://example.org/Role">
<span itemprop="displayName">
The Moderator
</span>
<span>
removed
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">
Sally
</span>
<span>
from
<span itemprop="origin" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Group">
<span itemprop="displayName">
A Simple Group
</span>
<span>
</div>
Example 138 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Remove">
<span property="actor" typeof="http://example.org/Role">
<span property="displayName">
The Moderator
</span>
</span>
removed
<span property="object" typeof="Person">
<span property="displayName">
Sally
</span>
</span>
from
<span property="origin" typeof="Group">
<span property="displayName">
A Simple Group
</span>
</span>
</div>
Example 140 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix ex: <http://example.org/> .
_:b0 a as:Remove ;
as:actor [
a ex:Role ;
as:displayName "The Moderator" ;
] ;
as:object [
a as:Person ;
as:displayName "Sally" .
] ;
as:origin [
a as:Group ;
as:displayName "A Simple Group" .
] .
|
Notes: |
Indicates that the actor is removing the
object . If specified, the origin
indicates the context from which the object is
being removed.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Undo |
URI: |
http://www.w3.org/ns/activitystreams#Undo |
Example 141 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Undo",
"actor": "http://sally.example.org",
"object": {
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org"
}
}
Example 142 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Undo">
<a itemprop="actor"
href="http://sally.example.org">
Sally
</a>
stopped
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://sally.example.org">
http://sally.example.org
</a>
sharing
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a itemprop="target"
href="http://john.example.org">
John
</a>
</span>
</div>
Example 143 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Undo">
<a property="actor"
href="http://sally.example.org">
Sally
</a>
stopped
<span property="object" typeof="Offer">
<a property="actor"
href="http://sally.example.org">
http://sally.example.org
</a>
sharing
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a property="target"
href="http://john.example.org">
John
</a>
</span>
</div>
Example 145 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Undo ;
as:actor <http://sally.example.org> ;
as:object [
a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target <http://john.example.org> .
] .
|
Notes: |
Indicates that the actor is undoing the
object . In most cases, the object
will be an Activity describing some
previously performed action (for instance, a person may
have previously "liked" an article but, for whatever reason,
might choose to undo that like at some later point in time).
The target and origin typically
have no defined meaning.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Update |
URI: |
http://www.w3.org/ns/activitystreams#Update |
Example 146 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Update",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1"
}
Example 147 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Update">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
updated
<a itemprop="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 148 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Update">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
updated
<a property="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 150 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Update ;
as:actor [
a as:Person ;
as:displayName "Sally"
] ;
as:object <http://example.org/notes/1> .
|
Notes: |
Indicates that the actor has updated the
object . Note, however, that this vocabulary
does not define a mechanism for describing the actual
set of modifications made to object .
The target and
origin typically have no defined meaning.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Experience |
URI: |
http://www.w3.org/ns/activitystreams#Experience |
Example 151 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Experience",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Article",
"displayName": "An article about Activity Streams"
}
}
Example 152 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Experience">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
experienced
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Article">
"<span itemprop="displayName">
An article about Activity Streams
<span>"
</span>
</div>
Example 153 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Experience">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
experienced
<span property="object" typeof="Article">
"<span property="displayName">
An article about Activity Streams
</span>"
</span>
</div>
Example 155 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Experience ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Article ;
as:displayName "An article about Activity Streams" .
] .
|
Notes: |
Indicates that the actor has experienced the
object . The type of experience is not specified.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
View |
URI: |
http://www.w3.org/ns/activitystreams#View |
Example 156 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "View",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Article",
"displayName": "An article about Activity Streams"
}
}
Example 157 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#View">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
viewed
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Article">
"<span itemprop="displayName">
An article about Activity Streams
<span>"
</span>
</div>
Example 158 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="View">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
viewed
<span property="object" typeof="Article">
"<span property="displayName">
An article about Activity Streams
</span>"
</span>
</div>
Example 160 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:View ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Article ;
as:displayName "An article about Activity Streams" .
] .
|
Notes: |
Indicates that the actor has viewed the object.
Viewing is a specialization of Experience .
|
Extends: |
Experience |
Properties: |
Inherits all properties from Experience .
|
Listen |
URI: |
http://www.w3.org/ns/activitystreams#Listen |
Example 161 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Listen",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/music.mp3"
}
Example 162 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Listen">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
listened to
<a itemprop="object"
href="http://example.org/music.mp3">
"http://example.org/music.mp3"
</a>
</div>
Example 163 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Listen">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
listened to
<a property="object"
href="http://example.org/music.mp3">
"http://example.org/music.mp3"
</a>
</div>
Example 165 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Listen ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object <http://example.org/music.mp3> .
|
Notes: |
Indicates that the actor has listened to the
object . Listening is a specialization of
Experience .
|
Extends: |
Experience |
Properties: |
Inherits all properties from Experience .
|
Read |
URI: |
http://www.w3.org/ns/activitystreams#Read |
Example 166 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Read",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/posts/1"
}
Example 167 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Read">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
read
<a itemprop="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</a>
</div>
Example 168 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Read">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
read
<a property="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</a>
</div>
Example 170 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Read ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object <http://example.org/posts/1> .
|
Notes: |
Indicates that the actor has read the
object . Reading is a specialization of
Experience .
|
Extends: |
Experience |
Properties: |
Inherits all properties from Experience .
|
Move |
URI: |
http://www.w3.org/ns/activitystreams#Move |
Example 171 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Move",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/posts/1",
"target": {
"@type": "Collection",
"displayName": "List B"
},
"origin": {
"@type": "Collection",
"displayName": "List A"
}
}
Example 172 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Move">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
moved to
<a itemprop="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</a>
from
<span itemprop="origin" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<span itemprop="displayName">List A</span>
</span>
to
<span itemprop="target" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<span itemprop="displayName">List B</span>
</span>
</div>
Example 173 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Move">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
moved
<a property="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</a>
from
<span property="origin" typeof="Collection">
<span property="displayName">List A</span>
</span>
to
<span property="target" typeof="Collection">
<span property="displayName">List B</span>
</span>
</div>
Example 175 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Move ;
as:actor [
a as:Person ;
as:displayName "Sally"
] ;
as:object <http://example.org/posts/1> ;
as:target [
a as:Collection ;
as:displayName "List B"
] ;
as:origin [
a as:Collection ;
as:displayName "List A"
].
|
Notes: |
Indicates that the actor has moved
object from origin to
target . If the origin or
target are not specified, either can be determined by
context.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Travel |
URI: |
http://www.w3.org/ns/activitystreams#Travel |
Example 176 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Travel",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"target": {
"@type": "Place",
"displayName": "Home"
},
"origin": {
"@type": "Place",
"displayName": "Work"
}
}
Example 177 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Travel">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
is traveling to
<span itemprop="target" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<span itemprop="displayName">Home</span>
</span>
from
<span itemprop="origin" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<span itemprop="displayName">Work</span>
</span>
</div>
Example 178 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Travel">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
is traveling to
<span property="target" typeof="Place">
<span property="displayName">Home</span>
</span>
from
<span property="origin" typeof="Place">
<span property="displayName">Work</span>
</span>
</div>
Example 180 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Travel ;
as:actor [
a as:Person ;
as:displayName "Sally"
] ;
as:target [
a as:Place ;
as:displayName "Home"
] ;
as:origin [
a as:Place ;
as:displayName "Work"
] .
|
Notes: |
Indicates that the actor is traveling to
target from origin . Travel
is an IntransitiveObject whose actor
specifies the direct object. If the target or
origin are not specified, either can be determined
by context.
|
Extends: |
IntransitiveActivity |
Properties: |
Inherits all properties from
IntransitiveActivity .
|
Announce |
URI: |
http://www.w3.org/ns/activitystreams#Announce |
Example 181 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Announce",
"actor": {
"@type": "Person",
"@id": "http://sally.example.org",
"displayName": "Sally"
},
"object": {
"@type": "Arrive",
"actor": "http://sally.example.org",
"location": {
"@type": "Place",
"displayName": "Work"
}
}
}
Example 182 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Announce">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person"
itemid="http://sally.example.org">
<span itemprop="displayName">Sally</span>
</span>
announced
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Arrive">
<span itemprop="actor" itemscope="Person"
itemid="http://sally.example.org">her</span>
<span itemprop="location" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
at <span itemprop="displayName">Work</span>
</span>
</span>
</div>
Example 183 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Announce">
<span property="actor" typeof="Person"
resource="http://sally.example.org">
<span property="displayName">Sally</span>
</span>
announced
<span property="object" typeof="Arrive">
<span property="actor" typeof="Person"
resource="http://sally.example.org">her</span>
<span property="location" typeof="Place">
at <span property="displayName">Work</span>
</span>
</span>
</div>
Example 185 @prefix as: <http://www.w3.org/ns/activitystreams#> .
<http://sally.example.org> a as:Person ;
as:displayName "Sally" .
_:b0 a as:Announce ;
as:actor <http://sally.example.org> ;
as:object [
a as:Arrive ;
as:actor <http://sally.example.org> ;
as:location [
a as:Place ;
as:displayName "Work"
]
] .
|
Notes: |
Indicates that the actor is calling
the target 's attention the object .
The origin typically has no defined meaning.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Block |
URI: |
http://www.w3.org/ns/activitystreams#Block |
Example 186 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Block",
"actor": "http://sally.example.org",
"object": "http://joe.example.org"
}
Example 187 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Block">
<a itemprop="actor"
href="http://sally.example.org">Sally</a>
blocked
<a itemprop="object"
href="http://joe.example.org">Joe</a>
</div>
Example 188 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Block">
<a property="actor"
href="http://sally.example.org">Sally</a>
blocked
<a property="object"
href="http://joe.example.org">Joe</a>
</div>
Example 190 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Block ;
as:actor <http://sally.example.org> ;
as:object <http://joe.example.org> .
|
Notes: |
Indicates that the actor is blocking the
object . Blocking is a stronger form of
Ignore . The typical use is to support social
systems that allow one user to block activities or content of
other users. The target and origin
typically have no defined meaning.
|
Extends: |
Ignore |
Properties: |
Inherits all properties from Ignore . |
Flag |
URI: |
http://www.w3.org/ns/activitystreams#Flag |
Example 191 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Flag",
"actor": "http://sally.example.org",
"object": {
"@type": "Note",
"content": "An inappropriate note"
}
}
Example 192 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Flag">
<a itemprop="actor"
href="http://sally.example.org">Sally</a>
flagged
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
"<span itemprop="content">
An inappropriate note
</span>"
</span>
</div>
Example 193 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Flag">
<a property="actor"
href="http://sally.example.org">Sally</a>
flagged
<span property="object" typeof="Note">
"<span property="content">
An inappropriate note
</span>"
</span>
</div>
Example 195 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Flag ;
as:actor <http://sally.example.org> ;
as:object [
a as:Note ;
as:content "An inappropriate note"
] .
|
Notes: |
Indicates that the actor is "flagging" the
object . Flagging is defined in the sense common to
many social platforms as reporting content as being inappropriate
for any number of reasons.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Dislike |
URI: |
http://www.w3.org/ns/activitystreams#Dislike |
Example 196 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Dislike",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1"
}
Example 197 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Dislike">
<a itemprop="actor"
href="http://sally.example.org">Sally</a>
dislikes
<a itemprop="object" href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</div>
Example 198 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Dislike">
<a property="actor"
href="http://sally.example.org">Sally</a>
dislikes
<a property="object" href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</div>
Example 200 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Dislike ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> .
|
Notes: |
Indicates that the actor dislikes the
object .
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
3.2 Actor Types
All Actor Types inherit the properties of the base Actor class.
Actors are objects that are capable of performing activities. The
value of the actor property MUST be a type
of Actor.
The core Actor Types include:
Application
|
Group
|
Organization
|
Person
|
Process
|
Service
Class |
Description |
Properties |
Application |
URI: |
http://www.w3.org/ns/activitystreams#Application |
Example 201 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Application",
"displayName": "My Software Application."
}
Example 202 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Application">
<span itemprop="displayName">My Software Application</span>
</div>
Example 203 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Application">
<span property="displayName">My Software Application</span>
</div>
Example 205 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Application ;
as:displayName "My Software Application" .
|
Notes: |
Describes a software application.
|
Extends: |
Actor |
Properties: |
Inherits all properties from Actor .
|
Group |
URI: |
http://www.w3.org/ns/activitystreams#Group |
Example 206 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Group",
"displayName": "A Simple Group."
}
Example 207 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Group">
<span itemprop="displayName">A Simple Group</span>
</div>
Example 208 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Group">
<span property="displayName">A Simple Group</span>
</div>
Example 210 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Group ;
as:displayName "A Simple Group" .
|
Notes: |
Represents a formal or informal collective of Actors.
|
Extends: |
Actor |
Properties: |
Inherits all properties from Actor . |
Organization |
URI: |
http://www.w3.org/ns/activitystreams#Organization |
Example 211 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Organization",
"displayName": "Example Co."
}
Example 212 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Organization">
<span itemprop="displayName">Example Co.</span>
</div>
Example 213 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Organization">
<span property="displayName">Example Co.</span>
</div>
Example 215 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Organization ;
as:displayName "Example Co.".
|
Notes: |
Represents an organization.
|
Extends: |
Actor |
Properties: |
Inherits all properties from Actor . |
Person |
URI: |
http://www.w3.org/ns/activitystreams#Person |
Example 216 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Person",
"displayName": "Sally Smith."
}
Example 217 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally Smith</span>
</div>
Example 218 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Person">
<span property="displayName">Sally Smith</span>
</div>
Example 220 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Person ;
as:displayName "Sally Smith".
|
Notes: |
Represents an individual person.
|
Extends: |
Actor |
Properties: |
Inherits all properties from Actor . |
Process |
URI: |
http://www.w3.org/ns/activitystreams#Process |
Example 221 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Process",
"displayName": "A Long Running Process"
}
Example 222 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Process">
<span itemprop="displayName">A Long Running Process</span>
</div>
Example 223 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Process">
<span property="displayName">A Long Running Process</span>
</div>
Example 225 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Process ;
as:displayName "A Long Running Process".
|
Notes: |
Represents a series of actions taken to achieve
a particular goal.
|
Extends: |
Actor |
Properties: |
Inherits all properties from Actor . |
Service |
URI: |
http://www.w3.org/ns/activitystreams#Service |
Example 226 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Service",
"displayName": "Acme Web Service"
}
Example 227 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Service">
<span itemprop="displayName">Acme Web Service</span>
</div>
Example 228 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Service">
<span property="displayName">Acme Web Service</span>
</div>
Example 230 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Service ;
as:displayName "Acme Web Service".
|
Notes: |
Represents a service of any kind.
|
Extends: |
Actor |
Properties: |
Inherits all properties from Actor . |
3.3 Object Types
All Object Types inherit the properties of the base Object class.
Some specific Object Types are subclasses or specializations of more
generalized Object Types (for instance, the Person
Object Type is a more specific form of the Actor
class).
The Object Types include:
Album
|
Article
|
Audio
|
Content
|
Document
|
Event
|
Folder
|
Image
|
Mention
|
Note
|
Page
|
Place
|
Profile
|
Question
|
Relationship
|
Story
|
Video
Class |
Description |
Properties |
Relationship |
URI: |
http://www.w3.org/ns/activitystreams#Relationship |
Example 231 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Relationship",
"subject": {
"@type": "Person",
"displayName": "Sally"
},
"relationship": "http://purl.org/vocab/relationship/closeFriendOf",
"object": {
"@type": "Person",
"displayName": "John"
}
}
Example 232 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Relationship">
<span itemprop="subject" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
<span itemprop="relationship"
itemid="http://purl.org/vocab/relationship/closeFriendOf">
knows
</span>
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">John</span>
</span>
</div>
Example 233 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Relationship">
<span property="subject" typeof="Person">
<span property="displayName">Sally</span>
</span>
<span property="relationship"
resource="http://purl.org/vocab/relationship/closeFriendOf">
knows
</span>
<span property="object" typeof="Person">
<span property="displayName">John</span>
</span>
</div>
Example 235 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix rel: <http://purl.org/vocab/relationship/> .
_:b0 a as:Relationship ;
as:relationship rel:closeFriendOf ;
as:subject [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Person ;
as:displayName "John" .
] .
|
Notes: |
Describes a relationship between two individuals.
The subject and
object properties are
used to identify the connected individuals.
See 3.3.1 Representing Relationships Between Entities for additional information.
|
Extends: |
Object |
Properties: |
subject |
object |
relationship
Inherits all properties from Object .
|
Content |
URI: |
http://www.w3.org/ns/activitystreams#Content |
Example 236 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Content",
"displayName": "Some generic content",
"content": "<p>This can be any kind of content</p>",
"height": 100,
"width": 100
}
Example 237 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Content"
style="width:100px; height:100px">
<div itemprop="displayName">Some generic content</div>
<div itemprop="content">
<p>This can be any kind of content</p>
</div>
<meta itemprop="height" content="100" />
<meta itemprop="width" content="100" />
</div>
Example 238 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Content" style="width:100px; height:100px">
<div property="displayName">Some generic content</div>
<div property="content" datatype="rdf:HTML">
<p>This can be any kind of content</p>
</div>
<meta property="height" content="100" datatype="xsd:nonNegativeInteger" />
<meta property="width" content="100" datatype="xsd:nonNegativeInteger" />
</div>
Example 240 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Content ;
as:displayName "Some generic content" ;
as:content "<p>This can be any kind of content>/p>" ;
as:height "100"^^xsd:nonNegativeInteger ;
as:width "100"^^xsd:nonNegativeInteger .
|
Notes: |
Describes an entity representing any form of content. Examples
include documents, images, etc. Content objects
typically are not able to perform activities on their own, yet
rather are usually the object or target of activities.
|
Extends: |
Object |
Properties: |
duration |
height |
width
Inherits all properties from Object .
|
Article |
URI: |
http://www.w3.org/ns/activitystreams#Article |
Example 241 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Article",
"displayName": "A Blog Post",
"content": "<div>... a long blog post</div>",
"attributedTo": "http://sally.example.org"
}
Example 242 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Article">
<h2 itemprop="displayName">A Blog Post</h2>
<div>By <a itemprop="attributedTo"
href="http://sally.example.org">Sally</a></div>
<section itemprop="content"
<div>... a long blog post</div>
</section>
</div>
Example 243 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Article">
<h2 property="displayName">A Blog Post</h2>
<div>By <a property="attributedTo" datatype="rdf:HTML"
href="http://sally.example.org">Sally</a></div>
<section property="content">
<div>... a long blog post</div>
</section>
</div>
Example 245 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Article ;
as:displayName "A Blog Post" ;
as:content "<div>... a long blog post</div>" ;
as:attributedTo <http://sally.example.org> .
|
Notes: |
Represents any kind of multi-paragraph written work.
|
Extends: |
Content |
Properties: |
Inherits all properties from Content . |
Album |
URI: |
http://www.w3.org/ns/activitystreams#Album |
Example 246 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Album",
"displayName": "A Photo Album",
"items": [
{
"@type": "Image",
"displayName": "My Dog",
"url": {
"@type": "Link",
"href": "http://example.org/dog.jpeg",
"mediaType": "image/jpeg"
}
},
{
"@type": "Image",
"displayName": "My Cat",
"url": {
"@type": "Link",
"href": "http://example.org/cat.jpeg",
"mediaType": "image/jpeg"
}
}
]
}
Example 247 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Album">
<h2 itemprop="displayName">A Photo Album</h2>
<figure itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<figcaption itemprop="displayName">
My Dog
</figcaption>
<img itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
src="http://example.org/dog.jpeg"
type="image/jpeg" />
</figure>
<figure itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<figcaption itemprop="displayName">
My Cat
</figcaption>
<img itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
src="http://example.org/cat.jpeg"
type="image/jpeg" />
</figure>
</div>
Example 248 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Album">
<h2 property="displayName">A Photo Album</h2>
<figure property="items" typeof="Image">
<figcaption property="displayName">
My Dog
</figcaption>
<span property="url" typeof="Link">
<img property="mediaType" content="image/jpeg" lang=""
rel="href" src="http://example.org/dog.jpeg" />
</span>
</figure>
<figure property="items" typeof="Image">
<figcaption property="displayName">
My Cat
</figcaption>
<span property="url" typeof="Link">
<img property="mediaType" content="image/jpeg" lang=""
rel="href" src="http://example.org/cat.jpeg" />
</span>
</figure>
</div>
Example 250 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Album ;
as:displayName "A Photo Album" ;
as:items
[
a as:Image ;
as:displayName "My Dog" ;
as:url [
a as:Link ;
as:href <http://example.org/dog.jpeg> ;
as:mediaType "image/jpeg" ;
] .
],
[
a as:Image ;
as:displayName "My Cat" ;
as:url [
a as:Link ;
as:href <http://example.org/cat.jpeg> ;
as:mediaType "image/jpeg" ;
] .
] .
Example 251 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Album",
"displayName": "A Music Playlist",
"orderedItems": [
{
"@type": "Audio",
"displayName": "Song 1",
"url": {
"@type": "Link",
"href": "http://example.org/song1.mp3",
"mediaType": "audio/mp3"
}
},
{
"@type": "Audio",
"displayName": "Song 2",
"url": {
"@type": "Link",
"href": "http://example.org/song2.mpg",
"mediaType": "audio/mp3"
}
}
]
}
Example 252 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Album">
<h2 itemprop="displayName">A Music Playlist</h2>
<ol>
<li itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Audio">
<span itemprop="displayName">Song 1</span> -
<a itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/song1.mp3"
type="audio/mp3">Listen</a>
</li>
<li itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Audio">
<span itemprop="displayName">Song 2</span> -
<a itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/song2.mp3"
type="audio/mp3">Listen</a>
</li>
</ol>
</div>
Example 253 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Album">
<h2 property="displayName">A Music Playlist</h2>
<ol>
<li property="items" inlist="" typeof="Audio">
<span property="displayName">Song 1</span> -
<span property="url" typeof="Link">
<a property="mediaType" content="audio/mp3" lang=""
rel="href" href="http://example.org/song1.mp3">Listen</a>
</span>
</li>
<li property="items" inlist="" typeof="Audio">
<span property="displayName">Song 2</span> -
<span property="url" typeof="Link">
<a property="mediaType" content="audio/mp3" lang=""
rel="href" href="http://example.org/song2.mp3">Listen</a>
</span>
</li>
</ol>
</div>
Example 255 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
_:b0 a as:Album ;
as:displayName "A Music Playlist" ;
as:items (
[
a as:Audio ;
as:displayName "Song 1" ;
as:url [
a as:Link ;
as:href <http://example.org/song1.mp3> ;
as:mediaType "audio/mp3" .
] .
]
[
a as:Audio ;
as:displayName "Song 2" ;
as:url [
a as:Link ;
as:href <http://example.org/song2.mpg> ;
as:mediaType "audio/mp3" .
]
]
) .
|
Notes: |
A type of Collection typically used to organize
Image , Video or Audio
objects.
|
Extends: |
Collection |
Properties: |
Inherits all properties from Collection . |
Folder |
URI: |
http://www.w3.org/ns/activitystreams#Folder |
Example 256 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Folder",
"displayName": "Some Documents",
"items": [
{
"@type": "Document",
"displayName": "4Q Sales Forecast",
"url": "http://example.org/4q-sales-forecast.pdf"
}
]
}
Example 257 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Folder">
<h2 itemprop="displayName">Some Documents</h2>
<ul>
<li itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Document">
<span itemprop="displayName">4Q Sales Forecast</span> -
<a itemprop="url"
href="http://example.org/4q-sales-forecast.pdf">Open</a>
</li>
</ul>
</div>
Example 258 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Folder">
<h2 property="displayName">Some Documents</h2>
<ul>
<li property="items" typeof="Document">
<span property="displayName">4Q Sales Forecast</span> -
<a property="url"
href="http://example.org/4q-sales-forecast.pdf">Open</a>
</li>
</ul>
</div>
Example 260 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
_:b0 a as:Folder ;
as:displayName "Some Documents" ;
as:items [
a as:Document;
as:displayName "4Q Sales Forecast" ;
as:url <http://example.org/4q-sales-forecast.pdf> .
] .
|
Notes: |
A type of Collection typically used to organize
objects such as Documents.
|
Extends: |
Collection |
Properties: |
Inherits all properties from Collection . |
Story |
URI: |
http://www.w3.org/ns/activitystreams#Story |
Example 261 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Story",
"displayName": "My Vacation",
"startIndex": 5,
"orderedItems": [
{
"@type": "Image",
"displayName": "Visiting the Vatican",
"url": "http://example.org/photo5.jpeg",
"location": {
"@type": "Place",
"displayName": "The Vatican"
}
},
{
"@type": "Image",
"displayName": "Visiting the Eiffel Tower",
"url": "http://example.org/photo6.jpeg",
"location": {
"@type": "Place",
"displayName": "The Eiffel Tower"
}
}
]
}
Example 262 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Story">
<h2 itemprop="displayName">My Vacation</h2>
<figure itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<figcaption itemprop="displayName">
Visiting the
<span itemprop="location" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<span itemprop="displayName">
Vatican
</span>
</span>
</figcaption>
<img itemprop="url"
href="http://example.org/photo5.jpeg" />
</figure>
<figure itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<figcaption itemprop="displayName">
Visiting the
<span itemprop="location" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<span itemprop="displayName">
Eiffel Tower
</span>
</span>
</figcaption>
<img itemprop="url"
href="http://example.org/photo6.jpeg" />
</figure>
</div>
Example 263 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Story">
<h2 property="displayName">My Vacation</h2>
<figure property="items" inlist="" typeof="Image">
<figcaption property="displayName">
Visiting the
<span property="location" typeof="Place">
<span property="displayName">
Vatican
</span>
</span>
</figcaption>
<img property="url"
href="http://example.org/photo5.jpeg" />
</figure>
<figure property="items" inlist="" typeof="Image">
<figcaption property="displayName">
Visiting the
<span property="location" typeof="Place">
<span property="displayName">
Eiffel Tower
</span>
</span>
</figcaption>
<img property="url"
href="http://example.org/photo6.jpeg" />
</figure>
</div>
Example 265 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
_:b0 a as:Story ;
as:displayName "My Vacation" ;
as:items (
[
a as:Image ;
as:displayName "Visiting The Vatican" ;
as:url <http://example.org/photo5.jpeg> ;
as:location [
a as:Place ;
as:displayName "The Vatican" .
] .
]
[
a as:Image ;
as:displayName "Visiting The Eiffel Tower" ;
as:url <http://example.org/photo6.jpeg> ;
as:location [
a as:Place ;
as:displayName "The Eiffel Tower" .
]
]
).
|
Notes: |
A type of Ordered Collection
usually containing Content Items
organized to "tell a story".
|
Extends: |
OrderedCollection |
Properties: |
Inherits all properties from OrderedCollection . |
Document |
URI: |
http://www.w3.org/ns/activitystreams#Document |
Example 266 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Document",
"displayName": "4Q Sales Forecast",
"url": "http://example.org/4q-sales-forecast.pdf"
}
Example 267 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Document">
<span itemprop="displayName">4Q Sales Forecast</span> -
<a itemprop="url"
href="http://example.org/4q-sales-forecast.pdf">Open</a>
</div>
Example 268 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Document">
<span property="displayName">4Q Sales Forecast</span> -
<a property="url"
href="http://example.org/4q-sales-forecast.pdf">Open</a>
</div>
Example 270 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Document ;
as:displayName "4Q Sales Forecast" ;
as:url <http://example.org/4q-sales-forecast.pdf> .
|
Notes: |
Represents a document of any kind.
|
Extends: |
Content |
Properties: |
Inherits all properties from Content . |
Audio |
URI: |
http://www.w3.org/ns/activitystreams#Audio |
Example 271 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Audio",
"displayName": "A Simple Podcast",
"url": {
"@type": "Link",
"href": "http://example.org/podcast.mp3",
"mediaType": "audio/mp3"
}
}
Example 272 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Audio">
<span itemprop="displayName">A Simple Podcast</span> -
<a itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/podcast.mp3"
type="audio/mp3">Listen</a>
</div>
Example 273 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Audio">
<span property="displayName">A Simple Podcast</span> -
<span property="url" typeof="Link">
<a property="mediaType" content="audio/mp3" lang=""
rel="href" href="http://example.org/podcast.mp3">Listen</a>
</span>
<span>
</div>
Example 275 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Audio ;
as:displayName "A Simple Podcast" ;
as:url [
a as:Link ;
as:href <http://example.org/podcast.mp3> ;
as:mediaType "audio/mp3"
] .
|
Notes: |
Represents an audio document of any kind.
|
Extends: |
Document |
Properties: |
Inherits all properties from Document . |
Image |
URI: |
http://www.w3.org/ns/activitystreams#Image |
Example 276 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Image",
"displayName": "A Simple Image",
"url": [
{
"@type": "Link",
"href": "http://example.org/image.jpeg",
"mediaType": "image/jpeg"
},
{
"@type": "Link",
"href": "http://example.org/image.png",
"mediaType": "image/png"
}
]
}
Example 277 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<span itemprop="displayName">A Simple Image</span> -
<a itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/image.jpeg"
type="image/jpeg">JPEG</a> |
<a itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/image.png"
type="image/png">PNG</a>
</div>
Example 278 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Image">
<span property="displayName">A Simple Image</span> -
<span property="url" typeof="Link">
<a property="mediaType" content="image/jpeg" lang=""
rel="href" src="http://example.org/image.jpeg">JPEG</a>
</span> |
<span property="url" typeof="Link">
<a property="mediaType" content="image/jpeg" lang=""
rel="href" src="http://example.org/image.png">PNG</a>
</span>
</div>
Example 280 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Image ;
as:displayName "A Simple Image" ;
as:url
[
a as:Link ;
as:href <http://example.org/image.jpeg> ;
as:mediaType "image/jpeg" .
] ,
[
a as:Link ;
as:href <http://example.org/image.png> ;
as:mediaType "image/png" .
] .
|
Notes: |
An image document of any kind
|
Extends: |
Document |
Properties: |
Inherits all properties from Document . |
Video |
URI: |
http://www.w3.org/ns/activitystreams#Video |
Example 281 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Video",
"displayName": "A Simple Video",
"url": "http://example.org/video.mkv",
"duration": "PT2H"
}
Example 282 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Video">
<span itemprop="displayName">A Simple Video</span>
<meta itemprop="duration" content="PT2H">(2 hours)<meta> -
<a itemprop="url"
href="http://example.org/video.mkv">Watch</a>
</div>
Example 283 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Video">
<span property="displayName">A Simple Video</span>
<span property="duration" content="PT2H" datatype="xsd:duration">
(2 hours)<span> -
<a property="url"
href="http://example.org/video.mkv">Watch</a>
</div>
Example 285 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Video ;
as:displayName "A Simple Video" ;
as:url <http://example.org/video.mkv> ;
as:duration "PT2H"^^xsd:duration.
|
Notes: |
|
Extends: |
Document |
Properties: |
Inherits all properties from Document . |
Note |
URI: |
http://www.w3.org/ns/activitystreams#Note |
Example 286 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"displayName": "A Short Note",
"content": "This is a short note"
}
Example 287 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<h2 itemprop="displayName">A Short Note</h2>
<section itemprop="content">
This is a short note
</section>
</div>
Example 288 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<h2 property="displayName">A Short Note</h2>
<section property="content">
This is a short note
</section>
</div>
Example 290 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Note ;
as:displayName "A Short Note" ;
as:content "This is a short note".
|
Notes: |
Represents a short written work typically less than a single paragraph in length.
|
Extends: |
Content |
Properties: |
Inherits all properties from Content . |
Page |
URI: |
http://www.w3.org/ns/activitystreams#Page |
Example 291 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Page",
"displayName": "A Webpage",
"url": "http://example.org/page.html"
}
Example 292 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Page">
<a itemprop="url"
href="http://example.org/page.html">
<meta itemprop="displayName">A Webpage</meta>
</a>
</div>
Example 293 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Page">
<a rel="url" href="http://example.org/page.html"
property="displayName">A Webpage</a>
</div>
Example 295 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Page ;
as:displayName "A Webpage" ;
as:url <http://example.org/page.html>.
|
Notes: |
Represents a Web Page.
|
Extends: |
Document |
Properties: |
Inherits all properties from Document . |
Question |
URI: |
http://www.w3.org/ns/activitystreams#Question |
Example 296 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Question",
"displayName": "What is the answer?",
"oneOf": [
{
"@type": "Note",
"displayName": "Option A"
},
{
"@type": "Note",
"displayName": "Option B"
}
]
}
Example 297 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Question">
<h2 itemprop="displayName">
What is the answer?
</h2>
<ul>
<li itemprop="oneOf" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">Option A</span>
</li>
<li itemprop="oneOf" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">Option B</span>
</li>
<ul>
</div>
Example 298 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Question">
<h2 property="displayName">What is the answer?</h2>
<ol>
<li property="oneOf" typeof="Note">
<span property="displayName">
Option A
</span>
</li>
<li property="oneOf" typeof="Note">
<span property="displayName">
Option B
</span>
</li>
</ol>
</div>
Example 300 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Question ;
as:displayName "What is the answer?" ;
as:oneOf
[
a as:Note ;
as:displayName "Option A"
] ,
[
a as:Note ;
as:displayName "Option B"
] .
|
Notes: |
Represents a question being asked. Question objects are unique
in that they are an extension of both Content
and IntransitiveActivity . That is, the
Question object is an Activity but the direct object is the
question itself.
|
Extends: |
Content AND IntransitiveActivity . |
Properties: |
oneOf | anyOf
Inherits all properties from Content and
IntransitiveActivity .
|
Event |
URI: |
http://www.w3.org/ns/activitystreams#Event |
Example 301 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Event",
"displayName": "A Party!",
"startTime": "2014-12-31T23:00:00-08:00",
"endTime": "2015-01-01T06:00:00-08:00"
}
Example 302 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<h2 itemprop="displayName">A Party</h2>
<div>Starts:
<meta itemprop="startTime" content="2014-12-31T23:00:00-08:00">
11:00 PM on Dec 31, 2014
</meta>
</div>
<div>Ends:
<meta itemprop="endTime" content="2015-01-01T06:00:00-08:00">
06:00 AM on Jan 1, 2015
</meta>
</div>
</div>
Example 303 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Event">
<h2 property="displayName">A Party</h2>
<div>Starts:
<time property="startTime" datatype="xsd:dateTime" datetime="2014-12-31T23:00:00-08:00">
2014-12-31T23:00:00-08:00
</time>
</div>
<div>Ends:
<time property="endTime" datatype="xsd:dateTime" datetime="2015-01-01T06:00:00-08:00">
2015-01-01T06:00:00-08:00
</meta>
</div>
</div>
Example 305 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Event ;
as:displayName "A Party!" ;
as:startTime "2014-12-31T23:00:00-08:00"^^xsd:dateTime ;
as:endTime "2015-01-01T06:00:00-08:00"^^xsd:dateTime.
|
Notes: |
Represents any kind of event.
|
Extends: |
Object |
Properties: |
Inherits all properties from Object .
|
Place |
URI: |
http://www.w3.org/ns/activitystreams#Place |
Example 306 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Work"
}
Example 307 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<span itemprop="displayName">Work</span>
</div>
Example 308 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="displayName">Work</span>
</div>
Example 310 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Place ;
as:displayName "Work" .
Example 311 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 312 <table itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<tr>
<td>Name</td>
<td itemprop="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td itemprop="latitude">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td itemprop="longitude">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td itemprop="radius">15</td>
</tr>
<tr>
<td>Units</td>
<td itemprop="units">miles</td>
</tr>
</table>
Example 313 <table vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<tr>
<td>Name</td>
<td property="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td property="latitude">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td property="longitude">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td property="radius">15</td>
</tr>
<tr>
<td>Units</td>
<td property="units">miles</td>
</tr>
</table>
Example 315 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Place ;
as:displayName "Fresno Area" ;
as:latitude "36.75"^^xsd:float ;
as:longitude "119.7667"^^xsd:float ;
as:radius "15"^^xsd:float ;
as:units "miles" .
|
Notes: |
Represents a logical or physical location. See
3.3.2 Representing Places for additional information.
|
Extends: |
Object |
Properties: |
accuracy |
altitude |
latitude |
longitude |
radius |
units
Inherits all properties from Object .
|
Mention |
URI: |
http://www.w3.org/ns/activitystreams#Mention |
Example 316 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Mention",
"href": "http://example.org/joe",
"displayName": "Joe"
}
Example 317 <span itemscope
itemtype="http://www.w3.org/ns/activitystreams#Mention">
<a itemprop="href" href="http://example.org/joe">
@<span itemprop="displayName">Joe</span>
</a>
</span>
Example 318 <span vocab="http://www.w3.org/ns/activitystreams#"
typeof="Mention">
<a property="href" href="http://example.org/joe">
@<span property="displayName">Joe</span>
</a>
</span>
Example 320 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Mention ;
as:href <http://example.org/joe> ;
as:displayName "Joe" .
|
Notes: |
A specialized Link that represents an @mention.
|
Extends: |
Link |
Properties: |
Inherits all properties from Link .
|
Profile |
URI: |
http://www.w3.org/ns/activitystreams#Profile |
Example 321 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Profile",
"displayName": "Sally's Profile",
"attributedTo": {
"@type": "Person",
"displayName": "Sally Smith"
}
}
Example 322 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Profile">
<h2 itemprop="displayName">Sally's Profile</h2>
<section itemprop="attributedTo" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally Smith</span>
</section>
</div>
Example 323 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Profile">
<h2 property="displayName">Sally's Profile</h2>
<section property="attributedTo" typeof="Person">
<span property="displayName">Sally Smith</span>
</section>
</div>
Example 325 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Profile ;
as:displayName "Sally's Profile" ;
as:attributedTo [
a as:Person ;
as:displayName "Sally Smith"
] .
|
Notes: |
A Profile is a content object that describes another Object,
typically used to describe Actor ,
objects. The describes property is used to
reference the object being described by the profile.
|
Extends: |
Content |
Properties: |
describes
Inherits all properties from Content .
|
3.3.1 Representing Relationships Between Entities
The Relationship
object is used to represent
relationships between individuals. It can be used, for instance,
to describe that one person is a friend of another, or that one
person is a member of a particular organization. The intent of
modeling Relationship in this way is to allow descriptions of
activities that operate on the relationships in general, and
to allow representation of Collections of relationships.
For instance, many social systems have a notion of a "friends list".
These are the collection of individuals that are directly connected
within a person's social graph. Suppose we have a user, Sally,
with direct relationships to users Joe and Jane. Sally considers Joe
to be a close friend while Jane is just an acquaintance.
Using the Relationship
object, we can model
these relationships as:
Example 326
{
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"items": [
{
"@type": "Relationship",
"subject": {
"@type": "Person",
"displayName": "Sally"
},
"relationship": "http://purl.org/vocab/relationship/closeFriendOf",
"object": {
"@type": "Person",
"displayName": "Joe"
}
},
{
"@type": "Relationship",
"subject": {
"@type": "Person",
"displayName": "Sally"
},
"relationship": "http://purl.org/vocab/relationship/acquaintanceOf",
"object": {
"@type": "Person",
"displayName": "Jane"
}
}
]
}
The relationship
property specifies the kind of relationship that exists between the
two individuals identified by the
subject
and
object
properties. Used together,
these three properties form what is commonly known as a
"reified statement"
where subject
identifies the
subject, relationship
identifies the predicate, and
object
identifies the
object.
While use of reified statements can be problematic and confusing
in certain situations, their use within the Activity Streams
vocabulary to describe relationships provides a straightforward
mechanism of describing changes to an individual's social graph.
For instance, to indicate that Sally has created a
new relationship to user Matt, an implementer can use the
Relationship
object together with the
Create
activity:
Example 327
{
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Create",
"actor": "http://sally.example.org",
"object": {
"@type": "Relationship",
"subject": "http://sally.example.org",
"relationship": "http://purl.org/vocab/relationship/closeFriendOf",
"object": "http://matt.example.org",
"startTime": "2015-04-21T12:34:56"
}
}
Additionally, modeling the relationship in this way allows
implementers to articulate additional properties of the relationship
itself. For instance, the date and time at which the relationship
began or ended.
The Activity Streams vocabulary does not define normative values
for use with the
relationship
property.
It is expected that implementations will make use of several
existing vocabularies that have been developed for the purpose
of describing relationships. Examples of such vocabularies include
the "Friend of a Friend"
and "Relationship"
vocabularies.
3.3.2 Representing Places
The Place
object is used to represent both
physical and logical locations. While numerous existing vocabularies
exist for describing locations in a variety of ways, inconsistencies
and incompatibilities between those vocabularies make it difficult
to achieve appropriate interoperability between implementations.
The Place
object is included within the Activity
vocabulary to provide a minimal, interoperable starting point for
describing locations consistently across Activity Streams 2.0
implementations.
The Place
object is intentionally flexible. It can,
for instance, be used to identify a location simply by name:
Example 330
{
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "San Francisco, CA"
}
Or, by longitude
and latitude
:
Example 331
{
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "San Francisco, CA",
"longitude": "122.4167",
"latitude": "37.7833"
}
The Place
object can also describe an area around a
given point using the radius
property, the
altitude
of the location, and a degree of
accuracy
.
While publishers are not required to use these specific
properties and MAY make use of other mechanisms for describing
locations, consuming implementations that support the
Place
object MUST support the use of
these properties.
4. Properties
Base URI: http://www.w3.org/ns/activitystreams#
.
The common properties include:
actor
|
attachment
|
attributedTo
|
bcc
|
bto
|
cc
|
context
|
current
|
first
|
generator
|
icon
|
image
|
inReplyTo
|
instrument
|
last
|
location
|
items
|
oneOf
|
anyOf
|
origin
|
next
|
object
|
prev
|
preview
|
result
|
replies
|
scope
|
tag
|
target
|
to
|
url
|
accuracy
|
alias
|
altitude
|
content
|
displayName
|
duration
|
height
|
href
|
hreflang
|
partOf
|
latitude
|
longitude
|
mediaType
|
priority
|
endTime
|
published
|
startTime
|
radius
|
rel
|
startIndex
|
summary
|
title
|
totalItems
|
units
|
updated
|
width
|
subject
|
relationship
|
describes
The "Domain" indicates the type of Object the property term applies to.
The "Range" indicates the type of value the property term can have.
Certain properties are marked as a "Subproperty Of" another term, meaning
that the term is a specialization of the referenced term. For instance,
actor
is a subproperty of
attributedTo
. Properties marked as being "Functional"
can have only one value. Items not marked as "Functional" can have
multiple values.
Term |
Description |
Example |
actor |
URI: |
http://www.w3.org/ns/activitystreams#actor |
Example 332 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/foo"
}
Example 333 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://sally.example.org">Sally</a>
offered
<a itemprop="object"
href="http://example.org/foo">
http://example.org/foo
</a>
</div>
Example 334 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<a property="actor"
href="http://sally.example.org">Sally</a>
offered
<a property="object"
href="http://example.org/foo">
http://example.org/foo
</a>
</div>
Example 336 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/foo> .
Example 337 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": {
"@type": "Person",
"@id": "http://sally.example.org",
"displayName": "Sally"
},
"object": "http://example.org/foo"
}
Example 338 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person"
itemid="http://sally.example.org">
<span itemprop="displayName">Sally</span>
</span>
offered
<a itemprop="object"
href="http://example.org/foo">
http://example.org/foo
</a>
</div>
Example 339 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<span property="actor" typeof="Person"
resource="http://sally.example.org">
<span property="displayName">Sally</span>
</span>
offered
<a property="object"
href="http://example.org/foo">
http://example.org/foo
</a>
</div>
Example 341 @prefix as: <http://www.w3.org/ns/activitystreams#> .
<http://sally.example.org> a as:Person ;
as:displayName "Sally" .
_:b0 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/foo> .
Example 342 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": [
"http://joe.example.org",
{
"@type": "Person",
"@id": "http://sally.example.org",
"displayName": "Sally"
}
],
"object": "http://example.org/foo"
}
Example 343 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://joe.example.org">Joe</a>
and
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person"
itemid="http://sally.example.org">
<span itemprop="displayName">Sally</span>
</span>
offered
<a itemprop="object"
href="http://example.org/foo">
http://example.org/foo
</a>
</div>
Example 344 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<a property="actor"
href="http://joe.example.org">Joe</a>
and
<span property="actor" typeof="Person"
resource="http://sally.example.org">
<span property="displayName">Sally</span>
</span>
offered
<a property="object"
href="http://example.org/foo">
http://example.org/foo
</a>
</div>
Example 346 @prefix as: <http://www.w3.org/ns/activitystreams#> .
<http://sally.example.org> a as:Person ;
as:displayName "Sally" .
_:b0 a as:Offer ;
as:actor
<http://sally.example.org> ,
<http://joe.example.org> ;
as:object <http://example.org/foo> .
|
Notes: |
Describes one or more entities that either performed or are
expected to perform the activity. Any single activity can have
multiple actor s. The actor MAY be
specified using an indirect Link .
|
Domain: |
Activity |
Range: |
Actor | Link |
Subproperty Of: |
attributedTo |
attachment |
URI: |
http://www.w3.org/ns/activitystreams#attachment |
Example 347 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"displayName": "A Simple Note",
"attachment": [
{
"@type": "Image",
"content": "A simple Image",
"url": "http://example.org/cat.jpeg"
}
]
}
Example 348 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">A Simple Note</span>
Attachments:
<ul>
<li itemprop="attachment" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<figure>
<figcaption itemprop="displayName">
A Simple Image
</figcaption>
<img itemprop="url"
href="http://example.org/cat.jpeg" />
</figure>
</li>
</ul>
</div>
Example 349 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span property="displayName">A Simple Note</span>
Attachments:
<ul>
<li property="attachment" typeof="Image">
<figure>
<figcaption property="displayName">
A Simple Image
</figcaption>
<img property="url"
href="http://example.org/cat.jpeg" />
</figure>
</li>
</ul>
</div>
Example 351 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Note ;
as:displayName "A Simple Note" ;
as:attachment [
a as:Image ;
as:displayName "A Simple Image" ;
as:url <http://example.org/cat.jpeg>
] .
|
Notes: |
Identifies a resource attached or related to an object
that potentially requires special handling. The intent is to
provide a model that is at least semantically similar to
attachments in email.
|
Domain: |
Object |
Range: |
Object | Link |
attributedTo |
URI: |
http://www.w3.org/ns/activitystreams#attributedTo
|
Example 352 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Image",
"displayName": "A Simple Image",
"url": "http://example.org/cat.jpeg",
"attributedTo": [
{
"@type": "Person",
"displayName": "Sally"
}
]
}
Example 353 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<span itemprop="displayName">A Simple Image</span>
<img itemprop="url" src="http://example.org/cat.jpeg"/>
<div itemprop="attributedTo" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
Attributed To:
<span itemprop="displayName">Sally</span>
</div>
</div>
Example 354 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Image">
<span property="displayName">A Simple Image</span>
<img property="url" src="http://example.org/cat.jpeg"/>
<div property="attributedTo" typeof="Note">
Attributed To:
<span property="displayName">Sally</span>
</div>
</div>
Example 356 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Image ;
as:displayName "A Simple Image" ;
as:url <http://example.org/cat.jpeg> ;
as:attributedTo [
a as:Person ;
as:displayName "Sally"
] .
Example 357 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Image",
"displayName": "A Simple Image",
"url": "http://example.org/cat.jpeg",
"attributedTo": [
"http://joe.example.org",
{
"@type": "Person",
"displayName": "Sally"
}
]
}
Example 358 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<span itemprop="displayName">A Simple Image</span>
<img itemprop="url" src="http://example.org/cat.jpeg"/>
Attributed To:
<span itemprop="attributedTo" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span> and
<a itemprop="attributedTo"
href="http://joe.example.org">Joe</a>
</div>
Example 359 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Image">
<span property="displayName">A Simple Image</span>
<img property="url" src="http://example.org/cat.jpeg"/>
Attributed To:
<span property="attributedTo" typeof="Note">
<span property="displayName">Sally</span>"
</span> and
<a property="attributedTo"
href="http://joe.example.org">Joe</a>
</div>
Example 361 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Image ;
as:displayName "A Simple Image" ;
as:url <http://example.org/cat.jpeg> ;
as:attributedTo
<http://joe.example.org> ,
[
a as:Person ;
as:displayName "Sally"
] .
|
Notes: |
Identifies one or more entities to which this object is attributed.
The attributed entities might not be Actors. For instance, an object
might be attributed to the completion of another activity.
|
Domain: |
Link | Object |
Range: |
Link | Object |
bcc |
URI: |
http://www.w3.org/ns/activitystreams#bcc |
Example 362 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org",
"bcc": [ "http://joe.example.org" ]
}
Example 363 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a itemprop="target"
href="http://john.example.org">
John
</a>
(bcc: <a itemprop="bcc"
href="http://joe.example.org">
John
</a>)
</div>
Example 364 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<a property="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a property="target"
href="http://john.example.org">
John
</a>
(bcc: <a property="bcc"
href="http://joe.example.org">
John
</a>)
</div>
Example 366 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target <http://john.example.org> ;
as:bcc <http://joe.example.org> .
|
Notes: |
Identifies one or more Actors that are part of the private
secondary audience of this Object.
|
Domain: |
Object |
Range: |
Actor | Link |
bto |
URI: |
http://www.w3.org/ns/activitystreams#bto |
Example 367 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org",
"bto": [ "http://joe.example.org" ]
}
Example 368 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a itemprop="target"
href="http://john.example.org">
John
</a>
(bto: <a itemprop="bto"
href="http://joe.example.org">
John
</a>)
</div>
Example 369 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<a property="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a property="target"
href="http://john.example.org">
John
</a>
(bto: <a property="bto"
href="http://joe.example.org">
John
</a>)
</div>
Example 371 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target <http://john.example.org> ;
as:bto <http://joe.example.org> .
|
Notes: |
Identifies an Actor that is part of the private primary audience
of this Object.
|
Domain: |
Object |
Range: |
Actor | Link |
cc |
URI: |
http://www.w3.org/ns/activitystreams#cc |
Example 372 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org",
"cc": [ "http://joe.example.org" ]
}
Example 373 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a itemprop="target"
href="http://john.example.org">
John
</a>
(cc: <a itemprop="cc"
href="http://joe.example.org">
John
</a>)
</div>
Example 374 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<a property="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a property="target"
href="http://john.example.org">
John
</a>
(cc: <a property="cc"
href="http://joe.example.org">
John
</a>)
</div>
Example 376 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target <http://john.example.org> ;
as:cc <http://joe.example.org> .
|
Notes: |
Identifies an Actor that is part of the public secondary audience
of this Object.
|
Domain: |
Object |
Range: |
Actor | Link |
context |
URI: |
http://www.w3.org/ns/activitystreams#context |
Example 377 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"items": [
{
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org",
"context": "http://example.org/contexts/1"
},
{
"@type": "Like",
"actor": "http://joe.example.org",
"object": "http://example.org/posts/2",
"context": "http://example.org/contexts/1"
}
]
}
Example 378 <div itemscope itemtype="http://www.w3.org/ns/activitystreams#Collection">
<ul>
<li itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<span itemprop="actor"
itemid="http://sally.example.org">
Sally
<span>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a itemprop="target"
href="http://john.example.org">
John
</a>
<a itemprop="context"
href="http://example.org/contexts/1">
http://example.org/contexts/1
</a>
</li>
<li itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Like">
<span itemprop="actor"
itemid="http://joe.example.org">
Joe
<span>
liked
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/2
</a>
<a itemprop="context"
href="http://example.org/contexts/1">
http://example.org/contexts/1
</a>
</li>
</ul>
</div>
Example 379 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<ul>
<li property="items" typeof="Offer">
<span property="actor"
resource="http://sally.example.org">
Sally
<span>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a property="target"
href="http://john.example.org">
John
</a>
<a property="context"
href="http://example.org/contexts/1">
http://example.org/contexts/1
</a>
</li>
<li property="items" typeof="Like">
<span property="actor"
resource="http://joe.example.org">
Joe
<span>
liked
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/2
</a>
<a property="context"
href="http://example.org/contexts/1">
http://example.org/contexts/1
</a>
</li>
</ul>
</div>
Example 381 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Collection ;
as:items _:b1 , _:b2 .
_:b1 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target <http://john.example.org> ;
as:context <http://example.org/contexts/1> .
_:b2 a as:Like ;
as:actor <http://joe.example.org> ;
as:object <http://example.org/posts/2> ;
as:context <http://example.org/contexts/1> .
|
Notes: |
Identifies the context within which the object exists or an
activity was performed.
The notion of "context" used is intentionally vague. The intended
function is to serve as a means of grouping objects and activities
that share a common originating context or purpose. An example
could be all activities relating to a common project or event.
|
Domain: |
Object |
Range: |
Object | Link |
current |
URI: |
http://www.w3.org/ns/activitystreams#current |
Example 382 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 3,
"current": "http://example.org/collection",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 383 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="3" />
<a itemprop="current"
href="http://example.org/collection">
Most Recent Items</a>
<ul>
<li>
<a itemprop="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 384 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="3" datatype="xsd:nonNegativeInteger" />
<a property="current"
href="http://example.org/collection">
Most Recent Items</a>
<ul>
<li>
<a property="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 386 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Collection ;
as:totalItems "5"^^xsd:nonNegativeInteger ;
as:current <http://example.org/collection> ;
as:items
<http://example.org/posts/1> ,
<http://example.org/posts/2> ,
<http://example.org/posts/3> .
Example 387 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 3,
"current": {
"@type": "Link",
"displayName": "Most Recent Items",
"href": "http://example.org/collection"
},
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 388 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="3" />
<span itemprop="current" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection">
<span itemprop="displayName">Most Recent Items</span>
</a>
</span>
<ul>
<li>
<a itemprop="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 389 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="3" datatype="xsd:nonNegativeInteger" />
<span property="current" typeof="Link">
<a property="href" href="http://example.org/collection">
<span property="displayName">Most Recent Items</span>
</a>
</span>
<ul>
<li>
<a property="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 391 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Collection ;
as:totalItems "3"^^xsd:nonNegativeInteger ;
as:current [
a as:Link ;
as:displayName "Most Recent Items" ;
as:href <http://example.org/collection>
] ;
as:items
<http://example.org/posts/1> ,
<http://example.org/posts/2> ,
<http://example.org/posts/3> .
|
Notes: |
In a paged Collection , indicates the page that
contains the most recently updated member items.
|
Domain: |
CollectionPage |
Range: |
CollectionPage | Link |
Functional: |
True |
first |
URI: |
http://www.w3.org/ns/activitystreams#first |
Example 392 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 3,
"first": "http://example.org/collection?page=0"
}
Example 393 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="3" />
<a itemprop="first"
href="http://example.org/collection?page=0">
First Page</a>
</div>
Example 394 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="3" datatype="xsd:nonNegativeInteger" />
<a property="first"
href="http://example.org/collection?page=0">
First Page</a>
</div>
Example 396 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Collection ;
as:totalItems "3"^^xsd:nonNegativeInteger ;
as:first <http://example.org/collection> .
Example 397 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 3,
"first": {
"@type": "Link",
"displayName": "First Page",
"href": "http://example.org/collection?page=0"
}
}
Example 398 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="3" />
<span itemprop="first" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection?page=0">
<span itemprop="displayName">First Page</span>
</a>
</span>
</div>
Example 399 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="3" datatype="xsd:nonNegativeInteger" />
<span property="first" typeof="Link">
<a property="displayName" rel="href" href="http://example.org/collection?page=0">
First Page
</a>
</span>
</div>
Example 401 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Collection ;
as:totalItems "3"^^xsd:nonNegativeInteger ;
as:first [
a as:Link ;
as:displayName "First Page" ;
as:href <http://example.org/collection?page=0>
] .
|
Notes: |
In a paged Collection , indicates the furthest
preceeding page of items in the collection.
|
Domain: |
CollectionPage |
Range: |
CollectionPage | Link |
Functional: |
True |
generator |
URI: |
http://www.w3.org/ns/activitystreams#generator |
Example 402 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"generator": {
"@type": "Application",
"displayName": "My Note Application"
}
}
Example 403 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="content">
A Simple Note
</span>
(<span itemprop="generator" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Application">
<span itemprop="displayName">My Note Application</span>
</span>)
</div>
Example 404 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span property="content">
A Simple Note
</span>
(<span property="generator" typeof="Application">
<span property="displayName">My Note Application</span>
</span>)
</div>
Example 406 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Note ;
as:content "A Simple Note" ;
as:generator [
a as:Application ;
as:displayName "My Note Application"
] .
|
Notes: |
Identifies the entity (e.g. an application) that generated the
object.
|
Domain: |
Object |
Range: |
Object | Link |
icon |
URI: |
http://www.w3.org/ns/activitystreams#icon |
Example 407 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A Simple note",
"icon": {
"@type": "Image",
"displayName": "Note",
"url": "http://example.org/note.png",
"width": 16,
"height": 16
}
}
Example 408 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<img itemprop="icon" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image"
src="http://www.example.org/note.png"
alt="Note"
width="16px" height="16px" />
<span itemprop="content">A Simple Note</span>
</div>
Example 409 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span property="content">A Simple Note</span>
<span property="icon" typeof="Image">
<img rel="url" src="http://www.example.org/note.png"
property="displayName" content="Note" alt="Note"
width="16" height="16" />
<span property="width" datatype="xsd:nonNegativeInteger">16</span>x
<span property="height" datatype="xsd:nonNegativeInteger">16</span>
</span>
</div>
Example 411 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:content "A Simple Note" ;
as:icon [
a as:Image ;
as:url <http://www.example.org/note.png> ;
as:displayName "Note" ;
as:width "16"^^xsd:nonNegativeInteger ;
as:height "16"^^xsd:nonNegativeInteger
] .
Example 412 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A Simple note",
"icon": [
{
"@type": "Image",
"displayName": "Note (16x16)",
"url": "http://example.org/note1.png",
"width": 16,
"height": 16
},
{
"@type": "Image",
"displayName": "Note (32x32)",
"url": "http://example.org/note2.png",
"width": 32,
"height": 32
}
]
}
Example 413 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<img itemprop="icon" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image"
src="http://www.example.org/note1.png"
srcset="http://www.example.org/note2.png 2x"
alt="Note"
width="16px" height="16px" />
<span itemprop="content">A Simple Note</span>
</div>
Example 414 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span property="content">A Simple Note</span>
<span property="icon" typeof="Image">
<img rel="url" src="http://www.example.org/note1.png"
property="displayName" content="Note (16x16)" alt="Note (16x16)"
width="16" height="16" />
<span property="width" datatype="xsd:nonNegativeInteger">16</span>x
<span property="height" datatype="xsd:nonNegativeInteger">16</span>
</span>
<span property="icon" typeof="Image">
<img rel="url" src="http://www.example.org/note2.png"
property="displayName" content="Note (32x32)" alt="Note (32x32)"
width="32" height="32" />
<span property="width" datatype="xsd:nonNegativeInteger">32</span>x
<span property="height" datatype="xsd:nonNegativeInteger">32</span>
</span>
</div>
Example 416 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:content "A Simple Note" ;
as:icon
[
a as:Image ;
as:url <http://www.example.org/note1.png> ;
as:displayName "Note (16x16)" ;
as:width "16"^^xsd:nonNegativeInteger ;
as:height "16"^^xsd:nonNegativeInteger
]
[
a as:Image ;
as:url <http://www.example.org/note2.png> ;
as:displayName "Note (32x32)" ;
as:width "32"^^xsd:nonNegativeInteger ;
as:height "32"^^xsd:nonNegativeInteger
] .
|
Notes: |
Indicates an entity that describes an icon for this object.
The image should have an aspect ratio of one (horizontal)
to one (vertical) and should be suitable for presentation at a
small size.
|
Domain: |
Object |
Range: |
Image | Link |
image |
URI: |
http://www.w3.org/ns/activitystreams#image |
Example 417 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A Simple note",
"image": {
"@type": "Image",
"displayName": "A Cat",
"url": "http://example.org/cat.png"
}
}
Example 418 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="content">A Simple Note</span>
<figure itemprop="image" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<figcaption itemprop="displayName">A Cat<figcaption>
<img itemprop="url"
src="http://www.example.org/cat.png" />
</figure>
</div>
Example 419 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span property="content">A Simple Note</span>
<figure property="image" typeof="Image">
<figcaption property="displayName">A Cat<figcaption>
<img property="url"
src="http://www.example.org/cat.png" />
</figure>
</div>
Example 421 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:content "A Simple Note" ;
as:image [
a as:Image ;
as:url <http://www.example.org/cat.png> ;
as:displayName "Note"
] .
Example 422 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A Simple note",
"image": [
{
"@type": "Image",
"displayName": "Cat 1",
"url": "http://example.org/cat1.png"
},
{
"@type": "Image",
"displayName": "Cat 2",
"url": "http://example.org/cat2.png"
}
]
}
Example 423 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="content">A Simple Note</span>
<figure itemprop="image" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<figcaption itemprop="displayName">Cat 1<figcaption>
<img itemprop="url"
src="http://www.example.org/cat1.png" />
</figure>
<figure itemprop="image" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<figcaption itemprop="displayName">Cat 2<figcaption>
<img itemprop="url"
src="http://www.example.org/cat2.png" />
</figure>
</div>
Example 424 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span property="content">A Simple Note</span>
<figure property="image" typeof="Image">
<figcaption property="displayName">Cat 1<figcaption>
<img property="url"
src="http://www.example.org/cat1.png" />
</figure>
<figure property="image" typeof="Image">
<figcaption property="displayName">Cat 2<figcaption>
<img property="url"
src="http://www.example.org/cat2.png" />
</figure>
</div>
Example 426 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:content "A Simple Note" ;
as:image
[
a as:Image ;
as:url <http://www.example.org/cat1.png> ;
as:displayName "Cat 1"
] ,
[
a as:Image ;
as:url <http://www.example.org/cat2.png> ;
as:displayName "Cat 2"
] .
|
Notes: |
Indicates an entity that describes an image for this object.
Unlike the icon property, there are no aspect ratio or display size
limitations assumed.
|
Domain: |
Object |
Range: |
Image | Link |
inReplyTo |
URI: |
http://www.w3.org/ns/activitystreams#inReplyTo |
Example 427 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"inReplyTo": {
"@type": "Note",
"content": "Another note"
}
}
Example 428 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
"<span itemprop="content">A simple note</span>
in reply to
"<span itemprop="inReplyTo" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
"<span itemprop="content">Another note</span>"
</span>"
</div>
Example 429 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span property="content">A simple note</span>
in reply to
<span property="inReplyTo" typeof="Note">
"<span property="content">Another note</span>
</span>
</div>
Example 431 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Note ;
as:content "A simple note" ;
as:inReplyTo [
a as:Note;
as:content "Another note"
] .
Example 432 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"inReplyTo": "http://example.org/posts/1"
}
Example 433 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
"<span itemprop="content">A simple note</span>
in reply to
<a itemprop="inReplyTo"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</div>
Example 434 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span property="content">A simple note</span>
in reply to
<a property="inReplyTo"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</div>
Example 436 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Note ;
as:content "A simple note" ;
as:inReplyTo <http://example.org/posts/1> .
|
Notes: |
Indicates one or more entities for which this object is considered
a response.
|
Domain: |
Object |
Range: |
Object | Link |
instrument |
URI: |
http://www.w3.org/ns/activitystreams#instrument |
Example 437 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Listen",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/foo.mp3",
"instrument": {
"@type": "Service",
"displayName": "Acme Music Service"
}
}
Example 438 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Listen">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
listened to
<a itemprop="object" href="http://example.org/foo.mp3" />
using
<span itemprop="instrument" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Service">
<span itemprop="displayName">
Acme Music Service
</span>
</span>
</div>
Example 439 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Listen">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
listened to
<a property="object" href="http://example.org/foo.mp3">
http://example.org/foo.mp3
>
using
<span property="instrument" typeof="Service">
<span property="displayName">
Acme Music Service
</span>
</span>
</div>
Example 441 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Listen ;
as:actor [
a as:Person ;
as:displayName "Sally"
] ;
as:object <http://example.org/foo.mp3> ;
as:instrument [
a as:Service ;
as:displayName "Acme Music Service"
] .
|
Notes: |
Identifies one or more objects used (or to be used) in the
completion of an Activity .
|
Domain: |
Activity |
Range: |
Object | Link |
last |
URI: |
http://www.w3.org/ns/activitystreams#last |
Example 442 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 3,
"last": "http://example.org/collection?page=1"
}
Example 443 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<a itemprop="last"
href="http://example.org/collection?page=1">
Last Page</a>
</div>
Example 444 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="3" datatype="xsd:nonNegativeInteger" />
<a property="last"
href="http://example.org/collection?page=1">
Last Page</a>
</div>
Example 446 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Collection ;
as:totalItems "5"^^xsd:nonNegativeInteger ;
as:last <http://example.org/collection?page=1>.
Example 447 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"last": {
"@type": "Link",
"displayName": "Last Page",
"href": "http://example.org/collection?page=1"
}
}
Example 448 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<span itemprop="last" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection?page=1">
<span itemprop="displayName">Last Page</span>
</a>
</span>
</div>
Example 449 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" datatype="xsd:nonNegativeInteger" />
<span property="last" typeof="Link">
<a property="displayName"
rel="href" href="http://example.org/collection?page=1">
Last Page
</a>
</span>
</div>
Example 451 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Collection ;
as:totalItems "3"^^xsd:nonNegativeInteger ;
as:last [
a as:Link ;
as:displayName "Last Page" ;
as:href <http://example.org/collection?page=1>
] .
|
Notes: |
In a paged Collection , indicates the furthest
proceeding page of the collection.
|
Domain: |
CollectionPage |
Range: |
CollectionPage | Link |
Functional: |
True |
location |
URI: |
http://www.w3.org/ns/activitystreams#location |
Example 452 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Person",
"displayName": "Sally",
"location": {
"@type": "Place",
"longitude": 12.34,
"latitude": 56.78,
"altitude": 90,
"units": "m"
}
}
Example 453 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
is at
<span itemprop="location" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
Latitude
<span itemprop="latitude">56.78</span>,
Longitude
<span itemprop="longitude">12.34</span>,
at an altitude of
<span itemprop="altitude">90</span>
<meta itemprop="units" content="m">meters</meta>
</span>
</div>
Example 454 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Person">
<span property="displayName">Sally</span>
is at
<span property="location" typeof="Place">
Latitude
<span property="latitude" datatype="xsd:float">56.78</span>,
Longitude
<span property="longitude" datatype="xsd:float">12.34</span>,
at an altitude of
<span property="altitude" datatype="xsd:float">90</span>
<meta property="units">meters</meta>
</span>
</div>
Example 456 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Person ;
as:displayName "Sally" ;
as:location [
a as:Place ;
as:latitude "56.78"^^xsd:float ;
as:longitude "12.34"^^xsd:float ;
as:altitude "90"^^xsd:float ;
as:units "meters"
] .
|
Notes: |
Indicates one or more physical or logical locations associated with
the object.
|
Domain: |
Object |
Range: |
Object | Link |
items |
URI: |
http://www.w3.org/ns/activitystreams#items |
Example 457 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 2,
"items": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 458 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="2" /<
<ul>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A Simple Note
</span>
</li>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 459 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="2" datatype="xsd:nonNegativeInteger" />
<ul>
<li property="items" typeof="Note">
<span property="displayName">
A Simple Note
</span>
</li>
<li property="items" typeof="Note">
<span property="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 461 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Collection ;
as:totalItems "2"^^xsd:nonNegativeInteger ;
as:items
[
a as:Note ;
as:displayName "A Simple Note"
] ,
[
a as:Note ;
as:displayName "Another Simple Note"
] .
Example 462 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "OrderedCollection",
"totalItems": 2,
"orderedItems": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 463 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#OrderedCollection">
<meta itemprop="totalItems" content="2" /<
<ol>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A Simple Note
</span>
</li>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
Another Simple Note
</span>
</li>
</ol>
</div>
Example 464 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="OrderedCollection">
<meta property="totalItems" content="2" datatype="xsd:nonNegativeInteger"/>
<ol>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
A Simple Note
</span>
</li>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
Another Simple Note
</span>
</li>
</ol>
</div>
Example 466 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
_:b0 a as:OrderedCollection ;
as:totalItems "2"^^xsd:nonNegativeInteger ;
as:items (
[
a as:Note ;
as:displayName "A Simple Note"
]
[
a as:Note ;
as:displayName "Another Simple Note"
]
) .
|
Notes: |
Identifies the items contained in a collection. The items might be
ordered or unordered.
|
Domain: |
Collection |
Range: |
Object | Link | Ordered
List of [Object | Link ]
|
oneOf |
URI: |
http://www.w3.org/ns/activitystreams#oneOf |
Example 467 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Question",
"displayName": "What is the answer?",
"oneOf": [
{
"@type": "Note",
"displayName": "Option A"
},
{
"@type": "Note",
"displayName": "Option B"
}
]
}
Example 468 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Question">
<h2 itemprop="displayName">
What is the answer?
</h2>
<ul>
<li itemprop="oneOf" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">Option A</span>
</li>
<li itemprop="oneOf" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">Option B</span>
</li>
<ul>
</div>
Example 469 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Question">
<h2 property="displayName">
What is the answer?
</h2>
<ul>
<li property="oneOf" typeof="Note">
<span property="displayName">Option A</span>
</li>
<li property="oneOf" typeof="Note">
<span property="displayName">Option B</span>
</li>
<ul>
</div>
Example 471 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Question ;
as:displayName "What is the answer?" ;
as:oneOf
[
a as:Note ;
as:displayName "Option A"
] ,
[
a as:Note ;
as:displayName "Option B"
] .
|
Notes: |
Identifies an exclusive option for a Question. Use of
oneOf implies that the Question can have only a single
answer. To indicate that a Question can have multiple answers, use
anyOf .
|
Domain: |
Question |
Range: |
Object | Link |
anyOf |
URI: |
http://www.w3.org/ns/activitystreams#anyOf |
Example 472 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Question",
"displayName": "What is the answer?",
"anyOf": [
{
"@type": "Note",
"displayName": "Option A",
},
{
"@type": "Note",
"displayName": "Option B"
}
]
}
Example 473 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Question">
<h2 itemprop="displayName">
What is the answer?
</h2>
<ul>
<li itemprop="anyOf" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">Option A</span>
</li>
<li itemprop="anyOf" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">Option B</span>
</li>
<ul>
</div>
Example 474 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Question">
<h2 property="displayName">
What is the answer?
</h2>
<ul>
<li property="anyOf" typeOf="Note">
<span property="displayName">Option A</span>
</li>
<li property="anyOf" typeof="Note">
<span property="displayName">Option B</span>
</li>
<ul>
</div>
Example 476 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Question ;
as:displayName "What is the answer?" ;
as:anyOf
[
a as:Note ;
as:displayName "Option A"
] ,
[
a as:Note ;
as:displayName "Option B"
] .
|
Notes: |
Identifies an inclusive option for a Question. Use of
anyOf implies that the Question can have multiple
answers. To indicate that a Question can have only one answer, use
oneOf .
|
Domain: |
Question |
Range: |
Object | Link |
origin |
URI: |
http://www.w3.org/ns/activitystreams#origin |
Example 477 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Move",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": {
"@type": "Collection",
"displayName": "List B"
},
"origin": {
"@type": "Collection",
"displayName": "List A"
}
}
Example 478 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Move">
<a itemprop="actor"
href="http://sally.example.org">
Sally
</a>
moved
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
to
<span itemprop="target" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<span itemprop="displayName">List B</span>
</span>
from
<span itemprop="origin" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<span itemprop="p-name">List A</span>
</span>
</div>
Example 479 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Move">
<a property="actor"
href="http://sally.example.org">
Sally
</a>
moved
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
to
<span property="target" typeof="Collection">
<span property="displayName">List B</span>
</span>
from
<span property="origin" typeof="Collection">
<span property="displayName">List A</span>
</span>
</div>
Example 481 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Move ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target [
a as:Collection ;
as:displayName "List B" .
] ;
as:origin [
a as:Collection ;
as:displayName "List A" .
].
|
Notes: |
Describes an indirect object of the activity from which
the activity is directed. The precise meaning of the origin is the
object of the English preposition "from". For instance, in the
activity "John moved an item to List B from List A", the origin of
the activity is "List A".
|
Domain: |
Activity |
Range: |
Object | Link |
next |
URI: |
http://www.w3.org/ns/activitystreams#next |
Example 482 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "CollectionPage",
"next": "http://example.org/collection?page=2",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 483 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#CollectionPage">
<a itemprop="next"
href="http://example.org/collection?page=2">
Next Page</a>
<ul>
<li>
<a itemprop="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 484 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="CollectionPage">
<a property="next"
href="http://example.org/collection?page=2">
Next Page</a>
<ul>
<li>
<a property="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 486 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:CollectionPage ;
as:next <http://example.org/collection?page=2> ;
as:items
<http://example.org/posts/1> ,
<http://example.org/posts/2> ,
<http://example.org/posts/3> .
Example 487 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "CollectionPage",
"next": {
"@type": "Link",
"displayName": "Next Page",
"href": "http://example.org/collection?page=2"
},
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 488 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#CollectionPage">
<span itemprop="next" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection?page=2">
<span itemprop="displayName">Next Page</span>
</a>
</span>
<ul>
<li>
<a itemprop="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 489 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="CollectionPage">
<span property="next" typeof="Link">
<a property="href" href="http://example.org/collection?page=2">
<span property="displayName">Next Page</span>
</a>
</span>
<ul>
<li>
<a property="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 491 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:CollectionPage ;
as:next [
a as:Link ;
as:displayName "Next Page" ;
as:href <http://example.org/collection?page=2> .
] ;
as:items
<http://example.org/posts/1> ,
<http://example.org/posts/2> ,
<http://example.org/posts/3> .
|
Notes: |
In a paged Collection , indicates the next page
of items.
|
Domain: |
CollectionPage |
Range: |
CollectionPage | Link |
Functional: |
True |
object |
URI: |
http://www.w3.org/ns/activitystreams#object |
Example 492 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Like",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1"
}
Example 493 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Like">
<a itemprop="actor"
href="http://sally.example.org">Sally</a>
liked
<a itemprop="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</a>
</div>
Example 494 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Like">
<a property="actor"
href="http://sally.example.org">Sally</a>
liked
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</div>
Example 496 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Like
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> .
Example 497 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Like",
"actor": "http://sally.example.org",
"object": {
"@type": "Note",
"content": "A simple note"
}
}
Example 498 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Like">
<a itemprop="actor"
href="http://sally.example.org">Sally</a>
liked
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
"<span itemprop="content">
A simple note
</span>"
</span>
</div>
Example 499 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Like">
<a property="actor"
href="http://sally.example.org">Sally</a>
liked
<span property="object" typeof="Note">
<span property="content">
A simple note
</span>
</span>
</div>
Example 501 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Like
as:actor <http://sally.example.org> ;
as:object [
a as:Note ;
as:content "A simple note" .
] .
Example 502 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Like",
"actor": "http://sally.example.org",
"object": [
"http://example.org/posts/1",
{
"@type": "Note",
"content": "A simple note"
}
]
}
Example 503 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Like">
<a itemprop="actor"
href="http://sally.example.org">Sally</a>
liked
<a itemprop="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</a> and
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
"<span itemprop="content">
A simple note
</span>"
</span>
</div>
Example 504 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Like">
<a property="actor"
href="http://sally.example.org">Sally</a>
liked
<a property="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</a> and
<span property="object" typeof="Note">
<span property="content">
A simple note
</span>
</span>
</div>
Example 506 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Like
as:actor <http://sally.example.org> ;
as:object (
<http://example.org/posts/1>
[
a as:Note ;
as:content "A simple note" .
]
) .
|
Notes: |
When used within an Activity , describes the
direct object of the activity. For instance, in the activity
"John added a movie to his wishlist", the object of the activity
is the movie added.
When used within a Relationship describes
the entity to which the subject is
related.
|
Domain: |
Activity | Relationship
|
Range: |
Object | Link |
prev |
URI: |
http://www.w3.org/ns/activitystreams#prev |
Example 507 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "CollectionPage",
"prev": "http://example.org/collection?page=1",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 508 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#CollectionPage">
<a itemprop="prev"
href="http://example.org/collection?page=1">
Previous Page</a>
<ul>
<li>
<a itemprop="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 509 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="CollectionPage">
<a property="prev"
href="http://example.org/collection?page=1">
Previous Page</a>
<ul>
<li>
<a property="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 511 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:CollectionPage ;
as:prev <http://example.org/collection?page=1> ;
as:items
<http://example.org/posts/1> ,
<http://example.org/posts/2> ,
<http://example.org/posts/3> .
Example 512 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "CollectionPage",
"prev": {
"@type": "Link",
"displayName": "Previous Page",
"href": "http://example.org/collection?page=1"
},
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 513 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#CollectionPage">
<span itemprop="prev" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection?page=1">
<span itemprop="displayName">Previous Page</span>
</a>
</span>
<ul>
<li>
<a itemprop="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a itemprop="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 514 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="CollectionPage">
<span property="prev" typeof="Link">
<a property="href" href="http://example.org/collection?page=1">
<span property="displayName">Previous Page</span>
</a>
</span>
<ul>
<li>
<a property="items"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/2">
http://example.org/posts/2
</a>
</li>
<li>
<a property="items"
href="http://example.org/posts/3">
http://example.org/posts/3
</a>
</li>
</ul>
</div>
Example 516 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:CollectionPage ;
as:prev [
a as:Link ;
as:displayName "Previous Page" ;
as:href <http://example.org/collection?page=1>
] ;
as:items
<http://example.org/posts/1> ,
<http://example.org/posts/2> ,
<http://example.org/posts/3> .
|
Notes: |
In a paged Collection , identifies the previous
page of items.
|
Domain: |
CollectionPage |
Range: |
CollectionPage | Link |
Functional: |
True |
preview |
URI: |
http://www.w3.org/ns/activitystreams#preview |
Example 517 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Video",
"displayName": "Cool New Movie",
"duration": "PT2H30M",
"preview": {
"@type": "Link",
"displayName": "Trailer",
"href": "http://example.org/trailer.mkv",
"mediaType": "video/mkv",
"duration": "PT1M"
}
}
Example 518 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Video">
<span itemprop="displayName">
Cool New Movie
</span>
<meta itemprop="duration" content="PT2H30M">(2H 30M)</meta>
- <span itemprop="preview" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<span itemprop="displayName">Trailer<span>
<meta itemprop="duration" content="PT1M">(1M)</meta>
<a itemprop="href"
href="http://example.org/trailer.mkv"
type="video/mkv">Watch</a>
</span>
</div>
Example 519 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Video">
<span property="displayName">
Cool New Movie
</span>
<span property="duration" content="PT2H30M" datatype="xsd:duration">(2H 30M)</span> -
<span property="preview" typeof="Link">
<a property="displayName"
rel="href" href="http://example.org/trailer.mkv">Trailer</a>
<span property="mediaType" lang="">video/mkv</span>
<span property="duration" content="PT1M" datatype="xsd:duration">(1M)</span>
</span>
</div>
Example 521 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Video ;
as:displayName "Cool New Movie" ;
as:duration "PT2H30M"^^xsd:duration ;
as:preview [
a as:Link ;
as:displayName "Trailer" ;
as:href <http://example.org/trailer.mkv> ;
as:mediaType "video/mkv" ;
as:duration "PT1M"^^xsd:duration
] .
|
Notes: |
Identifies an entity that provides a preview of this object.
|
Domain: |
Link | Object |
Range: |
Link | Object |
result |
URI: |
http://www.w3.org/ns/activitystreams#result |
Example 522 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": ["Activity", "http://www.verbs.example/Check"],
"actor": "http://sally.example.org",
"object": "http://example.org/flights/1",
"result": {
"@type": "http://www.types.example/flightstatus",
"displayName": "On Time"
}
}
Example 523 <div itemscope
itemtype="
http://www.w3.org/ns/activitystreams#Activity
http://www.verbs.example/Check">
<a itemprop="actor"
href="http://sally.example.org">Sally's</a>
<a itemprop="object"
href="http://example.org/flights/1">flight</a>
is
<span itemprop="result" itemscope
itemtype="http://www.types.example/flightstatus">
<span itemprop="displayName">On Time</span>
</span>
</div>
Example 524 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Activity http://www.verbs.example/Check">
<a property="actor"
href="http://sally.example.org">Sally's</a>
<a property="object"
href="http://example.org/flights/1">flight</a>
is
<span property="result"
typeof="http://www.types.example/flightstatus">
<span property="displayName">On Time</span>
</span>
</div>
Example 526 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Activity, <http://www.verbs.example/Check> ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/flights/1> ;
as:result [
a <http://www.types.example/flightstatus> ;
as:displayName "On Time"
] .
|
Notes: |
Describes the result of the activity. For instance, if a particular
action results in the creation of a new resource, the result
property can be used to describe that new resource.
|
Domain: |
Activity |
Range: |
Object | Link |
replies |
URI: |
http://www.w3.org/ns/activitystreams#replies |
Example 527 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"@id": "http://www.test.example/notes/1",
"content": "A simple note",
"replies": {
"@type": "Collection",
"totalItems": 1,
"items": [
{
"@type": "Note",
"content": "A response to the note",
"inReplyTo": "http://www.test.example/notes/1"
}
]
}
}
Example 528 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note"
itemid="http://www.test.example/notes/1">
<div itemprop="content">
A simple note
</div>
<div itemprop="replies" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="1" />
<ul>
<li itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="content">
A response to the note
</span>
<a itemprop="inReplyTo"
href="http://www.test.example/notes/1">
http://www.test.example/notes/1
</a>
</li>
</ul>
</div>
</div>
Example 529 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note" resource="http://www.test.example/notes/1">
<div property="content">
A simple note
</div>
<div property="replies" typeof="Collection">
<meta property="totalItems" content="1" datatype="xsd:nonNegativeInteger" /> datatype="xsd:nonNegativeInteger" />
<ul>
<li property="items" typeof="Note">
<span property="content">
A response to the note
</span>
<a property="inReplyTo"
href="http://www.test.example/notes/1" />
http://www.test.example/notes/1
</a>
</li>
</ul>
</div>
</div>
Example 531 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.test.example/notes/1> a as:Note ;
as:content "A simple note" ;
as:replies [
a as:Collection ;
as:totalItems "1"^^xsd:nonNegativeInteger ;
as:items [
a as:Note ;
as:content "A response to the note" ;
as:inReplyTo <http://www.test.example/notes/1>
]
] .
|
Notes: |
Identifies a Collection containing objects
considered to be responses to this object.
|
Domain: |
Object |
Range: |
Collection |
Functional: |
True |
scope |
URI: |
http://www.w3.org/ns/activitystreams#scope |
Example 532 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"scope": {
"@type": "http://example.org/Organization",
"displayName": "My Organization"
}
}
Example 533 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<div itemprop="content">
A simple note
</div>
<div itemprop="scope" itemscope
itemtype="http://example.org/Organization">
<span itemprop="displayName">
My Organization
</span>
</div>
</div>
Example 534 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<div property="content">
A simple note
</div>
<div property="scope" typeof="http://example.org/Organization">
<span property="displayName">
My Organization
</span>
</div>
</div>
Example 536 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix ex: <http://example.org/> .
_:b0 a as:Note ;
as:content "A simple note" ;
as:scope [
a ex:Organization ;
as:displayName "My Organization"
] .
|
Notes: |
Identifies one or more entities that represent the total population
of entities for which the object can considered to be relevant.
|
Domain: |
Object |
Range: |
Object | Link |
tag |
URI: |
http://www.w3.org/ns/activitystreams#tag |
Example 537 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Image",
"displayName": "Picture of Sally",
"url": "http://example.org/sally.jpg",
"tag": [
{
"@type": "Person",
"@id": "http://sally.example.org",
"displayName": "Sally"
}
]
}
Example 538 <figure itemscope
itemtype="http://www.w3.org/ns/activitystreams#Image">
<figcaption itemprop="displayName">
Picture of
<span itemprop="tag" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
</figcaption>
<img itemprop="url"
src="http://example.org/sally.jpg" />
</figure>
Example 539 <figure vocab="http://www.w3.org/ns/activitystreams#"
typeof="Image">
<figcaption property="displayName">
Picture of
<span property="tag" typeof="Person">
<span property="displayName">Sally</span>
</span>
</figcaption>
<img property="url"
src="http://example.org/sally.jpg" />
</figure>
Example 541 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Image ;
as:displayName "Picture of Sally" ;
as:url <http://example.org/sally.jpg> ;
as:tag <http://sally.example.org> .
<http://sally.example.org>
a as:Person ;
as:displayName "Sally" .
|
Notes: |
One or more "tags" that have been associated with an objects.
A tag can be any kind of Object. The key difference between
attachment and tag is that the
former implies association by inclusion, while the latter
implies associated by reference.
|
Domain: |
Object |
Range: |
Object | Link |
target |
URI: |
http://www.w3.org/ns/activitystreams#target |
Example 542 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org"
}
Example 543 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a itemprop="target"
href="http://john.example.org">
John
</a>
</div>
Example 544 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<a property="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a property="target"
href="http://john.example.org">
John
</a>
</div>
Example 546 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target <http://john.example.org> .
Example 547 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": {
"@type": "Person",
"displayName": "John"
}
}
Example 548 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<span itemprop="target" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">John</span>
</span>
</div>
Example 549 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<a property="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<span property="target" typeof="Person">
<span property="displayName">John</span>
</span>
</div>
Example 551 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target [
a as:Person ;
as:displayName "John"
].
|
Notes: |
Describes the indirect object, or target, of the activity. The
precise meaning of the target is largely dependent on the type of
action being described but will often be the object of the English
preposition "to". For instance, in the activity "John added a movie
to his wishlist", the target of the activity is John's wishlist. An
activity can have more than one target.
|
Domain: |
Activity |
Range: |
Object | Link |
to |
URI: |
http://www.w3.org/ns/activitystreams#to |
Example 552 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org",
"to": [ "http://joe.example.org" ]
}
Example 553 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a itemprop="target"
href="http://john.example.org">
John
</a>
(to: <a itemprop="to"
href="http://joe.example.org">
John
</a>)
</div>
Example 554 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<a property="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a property="target"
href="http://john.example.org">
John
</a>
(to: <a property="to"
href="http://joe.example.org">
John
</a>)
</div>
Example 556 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target <http://john.example.org> ;
as:to <http://joe.example.org> .
|
Notes: |
Identifies an entity considered to be part of the public primary
audience of an Object
|
Domain: |
Object |
Range: |
Object | Link |
url |
URI: |
http://www.w3.org/ns/activitystreams#url |
Example 557 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Document",
"displayName": "4Q Sales Forecast",
"url": "http://example.org/4q-sales-forecast.pdf"
}
Example 558 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Document">
<span itemprop="displayName">4Q Sales Forecast</span> -
<a itemprop="url"
href="http://example.org/4q-sales-forecast.pdf">Open</a>
</div>
Example 559 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Document">
<span property="displayName">4Q Sales Forecast</span> -
<a property="url"
href="http://example.org/4q-sales-forecast.pdf">Open</a>
</div>
Example 561 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Document ;
as:displayName "4Q Sales Forecast" ;
as:url <http://example.org/4q-sales-forecast.pdf> .
Example 562 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Document",
"displayName": "4Q Sales Forecast",
"url": {
"@type": "Link",
"href": "http://example.org/4q-sales-forecast.pdf"
}
}
Example 563 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Document">
<span itemprop="displayName">4Q Sales Forecast</span> -
<a itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/4q-sales-forecast.pdf">Open</a>
</div>
Example 564 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Document">
<span property="displayName">4Q Sales Forecast</span> -
<a property="url" typeof="Link"
href="http://example.org/4q-sales-forecast.pdf">Open</a>
</div>
Example 566 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Document ;
as:displayName "4Q Sales Forecast" ;
as:url [
a as:Link ;
as:href <http://example.org/4q-sales-forecast.pdf>
] .
Example 567 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Document",
"displayName": "4Q Sales Forecast",
"url": [
{
"@type": "Link",
"href": "http://example.org/4q-sales-forecast.pdf",
"mediaType": "application/pdf"
},
{
"@type": "Link",
"href": "http://example.org/4q-sales-forecase.html",
"mediaType": "text/html"
}
]
}
Example 568 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Document">
<span itemprop="displayName">4Q Sales Forecast</span> -
<a itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/4q-sales-forecast.pdf"
type="application/pdf">PDF</a> |
<a itemprop="url" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/4q-sales-forecast.html"
type="text/html">HTML</a>
</div>
Example 569 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Document">
<span property="displayName">4Q Sales Forecast</span> -
<span property="url" typeof="Link">
<a property="mediaType" content="application/pdf" lang=""
rel="href" href="http://example.org/4q-sales-forecast.pdf">PDF</a> |
</span>
<span property="url" typeof="Link">
<a property="mediaType" content="text/html" lang=""
rel="href" href="http://example.org/4q-sales-forecast.html">HTML</a>
</span>
</span>
</div>
Example 571 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Document ;
as:displayName "4Q Sales Forecast" ;
as:url
[
a as:Link ;
as:href <http://example.org/4q-sales-forecast.pdf> ;
as:mediaType "application/pdf"
] ,
[
a as:Link ;
as:href <http://example.org/4q-sales-forecast.html> ;
as:mediaType "text/html"
] .
|
Notes: |
Identifies one or more links to representations of the object
|
Domain: |
Object |
Range: |
xsd:anyURI | Link |
accuracy |
URI: |
http://www.w3.org/ns/activitystreams#accuracy |
Example 572 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"latitude": 36.75,
"longitude": 119.7667,
"accuracy": 94.5
}
Example 573 <table itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<tr>
<td>Latitude</td>
<td itemprop="latitude">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td itemprop="longitude">119.7667</td>
</tr>
<tr>
<td>Accuracy</td>
<td itemprop="accuracy">94.5</td>
</tr>
</table>
Example 574 <table vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<tr>
<td>Latitude</td>
<td property="latitude" datatype="xsd:float">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td property="longitude" datatype="xsd:float">119.7667</td>
</tr>
<tr>
<td>Accuracy</td>
<td property="accuracy" datatype="xsd:float">94.5</td>
</tr>
</table>
Example 576 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Place ;
as:latitude "36.75"^^xsd:float ;
as:longitude "119.7667"^^xsd:float ;
as:accuracy "94.5"^^xsd:float .
|
Notes: |
Indicates the accuracy of position coordinates on a
Place objects. Expressed in properties of
percentage. e.g. "94.0" means "94.0% accurate".
|
Domain: |
Place |
Range: |
xsd:float [>= 0.0f, <= 100.0f] |
Functional: |
True |
alias |
URI: |
http://www.w3.org/ns/activitystreams#alias |
Example 577 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Home",
"alias": "@home"
}
Example 578 <table itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<tr>
<td>Name</td>
<td itemprop="displayName">Home</td>
</tr>
<tr>
<td>Alias</td>
<td itemprop="alias">@home</td>
</tr>
</table>
Example 579 <table vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<tr>
<td>Name</td>
<td property="displayName">Home</td>
</tr>
<tr>
<td>Alias</td>
<td property="alias">@home</td>
</tr>
</table>
Example 581 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Place ;
as:displayName "Home" ;
as:alias <@home> .
|
Notes: |
Provides a contextually meaningful alternative label for the
object in addition to the id . For instance,
within some systems, groups can be identified by both a unique
global identifier and a more "human-friendly" label such as
"@friends " or "@network ". The value of
the alias property MUST match either the
isegment-nz-nc or IRI productions in
[RFC3987]. The use of a relative reference other than a simple
name is not allowed.
It is important to note that the meaning of the
alias value is implementation and context
dependent.
|
Domain: |
Object |
Range: |
xsd:anyURI |
Functional: |
True |
altitude |
URI: |
http://www.w3.org/ns/activitystreams#altitude |
Example 582 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"altitude": 15.0,
"latitude": 36.75,
"longitude": 119.7667,
"units": "miles"
}
Example 583 <table itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<tr>
<td>Name</td>
<td itemprop="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td itemprop="latitude">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td itemprop="longitude">119.7667</td>
</tr>
<tr>
<td>Altitude</td>
<td itemprop="altitude">15</td>
</tr>
<tr>
<td>Units</td>
<td itemprop="units">miles</td>
</tr>
</table>
Example 584 <table vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<tr>
<td>Name</td>
<td property="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td property="latitude" datatype="xsd:float">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td property="longitude" datatype="xsd:float">119.7667</td>
</tr>
<tr>
<td>Altitude</td>
<td property="altitude" datatype="xsd:float">15</td>
</tr>
<tr>
<td>Units</td>
<td property="units">miles</td>
</tr>
</table>
Example 586 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Place ;
as:displayName "Fresno Area" ;
as:latitude "36.75"^^xsd:float ;
as:longitude "119.7667"^^xsd:float ;
as:altitude "15"^^xsd:float ;
as:units "miles" .
|
Notes: |
Indicates the altitude of a place. The measurement units is
indicated using the units property. If
units is not specified, the default is assumed
to be "m " indicating meters.
|
Domain: |
Object |
Range: |
xsd:float |
Functional: |
True |
content |
URI: |
http://www.w3.org/ns/activitystreams#content |
Example 587 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note"
}
Example 588 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="content">
A simple note
</span>
</div>
Example 589 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="content">
A simple note
</span>
</div>
Example 591 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:content "A simple note".
Example 592 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"contentMap": [
"en": "A simple note",
"sp": "Una simple nota"
}
}
Example 593 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="content" lang="en">
A simple note
</span>
<span itemprop="content" lang="sp">
Una simple nota
</span>
</div>
Example 594 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="content" lang="en">
A simple note
</span>
<span property="content" lang="sp">
Una simple nota
</span>
</div>
Example 596 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:content "A simple note"@en ;
as:content "Una simple nota"@sp.
|
Notes: |
A natural language description of the object content. HTML
markup, including visual elements such as images, MAY be included.
The content MAY be expressed using multiple language-tagged values.
|
Domain: |
Object |
Range: |
xsd:string | rdf:langString |
displayName |
URI: |
http://www.w3.org/ns/activitystreams#displayName |
Example 597 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"displayName": "A simple note"
}
Example 598 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A simple note
</span>
</div>
Example 599 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="displayName">
A simple note
</span>
</div>
Example 601 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:displayName "A simple note" .
Example 602 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"displayNameMap": [
"en": "A simple note",
"sp": "Una simple nota"
}
}
Example 603 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName" lang="en">
A simple note
</span>
<span itemprop="displayName" lang="sp">
Una simple nota
</span>
</div>
Example 604 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="displayName" lang="en">
A simple note
</span>
<span property="displayName" lang="sp">
Una simple nota
</span>
</div>
Example 606 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:displayName "A simple note"@en ;
as:displayName "Una simple nota"@sp .
|
Notes: |
A simple, human-readable, plain-text name for the object. HTML
markup MUST NOT be included. The displayName MAY be expressed
using multiple language-tagged values.
|
Domain: |
Object | Link |
Range: |
xsd:string | rdf:langString |
duration |
URI: |
http://www.w3.org/ns/activitystreams#duration |
Example 607 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Video",
"displayName": "A Simple Video",
"url": "http://example.org/video.mkv",
"duration": "PT2H"
}
Example 608 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Video">
<span itemprop="displayName">A Simple Video</span>
<meta itemprop="duration" content="PT2H">(2 hours)<meta> -
<a itemprop="url"
href="http://example.org/video.mkv">Watch</a>
</div>
Example 609 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Video">
<span property="displayName">A Simple Video</span>
<meta property="duration" content="PT2H" datatype="xsd:duration">(2 hours)<meta> -
<a property="url"
href="http://example.org/video.mkv">Watch</a>
</div>
Example 611 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Video ;
as:displayName "A Simple Video" ;
as:url <http://example.org/video.mkv> ;
as:duration "PT2H"^^xsd:duration.
Example 612 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Video",
"displayName": "A Simple Video",
"url": "http://example.org/video.mkv",
"duration": 3600
}
Example 613 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Video">
<span itemprop="displayName">A Simple Video</span>
<meta itemprop="duration" content="3600">(2 hours)<meta> -
<a itemprop="url"
href="http://example.org/video.mkv">Watch</a>
</div>
Example 614 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Video">
<span property="displayName">A Simple Video</span>
<meta property="duration" content="3600" datatype="xsd:nonNegativeInteger">(2 hours)<meta> -
<a property="url"
href="http://example.org/video.mkv">Watch</a>
</div>
Example 616 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Video ;
as:displayName "A Simple Video" ;
as:url <http://example.org/video.mkv> ;
as:duration "3600"^^xsd:nonNegativeInteger.
|
Notes: |
When the object describes a time-bound resource, such as an audio or
video, a meeting, etc, the duration property
indicates the object's approximate duration. The value SHOULD
be expressed as an [RFC3339] duration (e.g. a
period of 5 seconds is represented as "PT5S ") but
MAY be specified as a non-negative integer specifying the
duration as a number of non-fractional seconds.
|
Domain: |
Content | Link |
Range: |
xsd:integer | xsd:duration |
Functional: |
True |
height |
URI: |
http://www.w3.org/ns/activitystreams#height |
Example 617 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Content",
"displayName": "Some generic content",
"content": "<p>This can be any kind of content</p>",
"height": 100,
"width": 100
}
Example 618 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Content"
style="width:100px; height:100px">
<div itemprop="displayName">Some generic content</div>
<div itemprop="content">
<p>This can be any kind of content</p>
</div>
<meta itemprop="height" content="100" />
<meta itemprop="width" content="100" />
</div>
Example 619 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Content">
<div property="displayName">Some generic content</div>
<div property="content" datatype="rdf:HTML">
<p>This can be any kind of content</p>
</div>
<meta property="height" content="100" />
<meta property="width" content="100" />
</div>
Example 621 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Content ;
as:displayName "Some generic content" ;
as:content "<p>This can be any kind of content</p>" ;
as:height "100"^^xsd:nonNegativeInteger ;
as:width "100"^^xsd:nonNegativeInteger .
|
Notes: |
When the object describes a visual resource, such as an image,
video or embeddable HTML, the height property
indicates the recommended display height in properties of
device-independent pixels.
|
Domain: |
Content | Link |
Range: |
xsd:nonNegativeInteger |
Functional: |
True |
href |
URI: |
http://www.w3.org/ns/activitystreams#href |
Example 622 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Link",
"href": "http://example.org/abc",
"mediaType": "text/html",
"displayName": "An example link"
}
Example 623 <a itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
itemprop="displayName">An example link</a>
Example 624 <span vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link">
<a property="displayName"
rel="href" href="http://example.org/abc">An example link</a> (
<span property="mediaType" lang="">text/html</span>)
</span>
Example 626 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Link ;
as:displayName "An example link" ;
as:href <http://example.org/abc> ;
as:mediaType "text/html" .
|
Notes: |
The target resource pointed to by a Link .
|
Domain: |
Link |
Range: |
xsd:anyURI |
Functional: |
True |
hreflang |
URI: |
http://www.w3.org/ns/activitystreams#hreflang |
Example 627 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"displayName": "An example link"
}
Example 628 <a itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
itemprop="displayName">An example link</a>
Example 629 <span vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link">
<a property="displayName"
rel="href" href="http://example.org/abc">An example link</a> (
<abbr property="hreflang" lang="" data-lt="English">en</abbr> -
<span property="mediaType" lang="">text/html</span>)
</span>
Example 631 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Link ;
as:displayName "An example link" ;
as:href <http://example.org/abc> ;
as:hreflang "en" ;
as:mediaType "text/html" .
|
Notes: |
Hints as to the language used by the target resource. Value MUST be
a [RFC5646] Language-Tag.
|
Domain: |
Link |
Range: |
[RFC5646] Language Tag |
Functional: |
True |
partOf |
URI: |
http://www.w3.org/ns/activitystreams#partOf
|
Example 632 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "CollectionPage",
"@id": "http://example.org/collection?page=1",
"partOf": "http://example.org/collection",
"items": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 633 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#CollectionPage"
itemid="http://example.org/collection?page=1">
<link itemprop="partOf" href="http://example.org/collection" />
<ul>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A Simple Note
</span>
</li>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 634 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="CollectionPage" resource="http://example.org/collection?page=1">
<link property="partOf" href="http://example.org/collection" />
<ul>
<li property="items" typeof="Note">
<span property="displayName">
A Simple Note
</span>
</li>
<li property="items" typeof="Note">
<span property="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 636 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://example.org/collection?page=1> a as:CollectionPage ;
as:partOf <http://example.org/collection> ;
as:items
[
a as:Note ;
as:displayName "A Simple Note"
],
[
a as:Note ;
as:displayName "Another Simple Note"
] .
|
Notes: |
Identifies the Collection to which a
CollectionPage objects items belong.
|
Domain: |
CollectionPage |
Range: |
Link | Collection |
Functional: |
True |
latitude |
URI: |
http://www.w3.org/ns/activitystreams#latitude |
Example 637 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 638 <table itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<tr>
<td>Name</td>
<td itemprop="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td itemprop="latitude">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td itemprop="longitude">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td itemprop="radius">15</td>
</tr>
<tr>
<td>Units</td>
<td itemprop="units">miles</td>
</tr>
</table>
Example 639 <table vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<tr>
<td>Name</td>
<td property="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td property="latitude" datatype="xsd:float">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td property="longitude" datatype="xsd:float">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td property="radius" datatype="xsd:float">15</td>
</tr>
<tr>
<td>Units</td>
<td property="units">miles</td>
</tr>
</table>
Example 641 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Place ;
as:displayName "Fresno Area" ;
as:latitude "36.75"^^xsd:float ;
as:longitude "119.7667"^^xsd:float ;
as:radius "15"^^xsd:float ;
as:units "miles" .
|
Notes: |
The latitude of a place
|
Domain: |
Place |
Range: |
xsd:float |
Functional: |
True |
longitude |
URI: |
http://www.w3.org/ns/activitystreams#longitude |
Example 642 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 643 <table itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<tr>
<td>Name</td>
<td itemprop="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td itemprop="latitude">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td itemprop="longitude">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td itemprop="radius">15</td>
</tr>
<tr>
<td>Units</td>
<td itemprop="units">miles</td>
</tr>
</table>
Example 644 <table vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<tr>
<td>Name</td>
<td property="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td property="latitude" datatype="xsd:float">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td property="longitude" datatype="xsd:float">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td property="radius" datatype="xsd:float">15</td>
</tr>
<tr>
<td>Units</td>
<td property="units">miles</td>
</tr>
</table>
Example 646 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Place ;
as:displayName "Fresno Area" ;
as:latitude "36.75"^^xsd:float ;
as:longitude "119.7667"^^xsd:float ;
as:radius "15"^^xsd:float ;
as:units "miles" .
|
Notes: |
The longitude of a place
|
Domain: |
Place |
Range: |
xsd:float |
Functional: |
True |
mediaType |
URI: |
http://www.w3.org/ns/activitystreams#mediaType |
Example 647 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"displayName": "An example link"
}
Example 648 <a itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
itemprop="displayName">An example link</a>
Example 649 <span vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link">
<a property="displayName"
rel="href" href="http://example.org/abc">An example link</a> (
<abbr property="hreflang" lang="" data-lt="English">en</abbr> -
<span property="mediaType" lang="">text/html</span>)
</span>
Example 651 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Link ;
as:displayName "An example link" ;
as:href <http://example.org/abc> ;
as:hreflang "en" ;
as:mediaType "text/html" .
|
Notes: |
When used on a Link, identifies the MIME media type of the
referenced resource.
|
Domain: |
Link |
Range: |
MIME Media Type |
Functional: |
True |
priority |
URI: |
http://www.w3.org/ns/activitystreams#priority |
Example 652 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org",
"priority": 0.80
}
Example 653 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<a itemprop="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a itemprop="target"
href="http://john.example.org">
John
</a>
<meta itemprop="priority" content="0.80" />
</div>
Example 654 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<a property="actor"
href="http://sally.example.org">
Sally
</a>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<a property="target"
href="http://john.example.org">
John
</a>
at priority
<span property="priority" datatype="xsd:float">0.80</span>
</div>
Example 656 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Offer ;
as:actor <http://sally.example.org> ;
as:object <http://example.org/posts/1> ;
as:target <http://john.example.org> ;
as:priority "0.80"^^xsd:float .
|
Notes: |
An optional indicator of the relative priority, or importance,
that the creator of the activity considers it to have. Represented
as a non-negative, numeric decimal between 0.00 and 1.00
(inclusive), with two decimal places of precision. If the property
is omitted or set to null, the assumption is that a default
priority can be assumed by the implementation. The value 0.00
represents the lowest possible priority while 1.00 represents the
highest.
The use of the priority property does not
impose any specific processing or display requirements on the
part of any consuming implementation.
Expressing the value as a range of numeric decimal values is
intended to provide the greatest level of flexibility in the
expression and consumption of prioritization detail. It is
expected that implementors consuming activity objects containing
priority will utilize and expose the
additional information in a number of different ways depending on
the unique requirements of each application use case.
Many existing systems do not represent priority values as numeric
ranges. Such systems might use fixed, labeled brackets such as
"low ", "normal " and "high "
or "urgent ". Similar mechanisms can be
established, by convention, when using the
priority property. In typical use, it is
RECOMMENDED that implementations wishing to work with such
defined categories treat priority property
values in the range 0.00 to 0.25 as
"low " priority; values greater than
0.25 to 0.75 as "normal "
priority; and values greater than 0.75 to
1.00 as "high " priority. Specific
implementations are free to establish alternative conventions for
the grouping of priority values with the caveat that such
conventions likely will not be understood by all implementations.
|
Domain: |
Activity |
Range: |
xsd:float [>= 0.00, <= 1.00] |
Functional: |
True |
endTime |
URI: |
http://www.w3.org/ns/activitystreams#endTime |
Example 657 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Event",
"displayName": "A Party!",
"startTime": "2014-12-31T23:00:00-08:00",
"endTime": "2015-01-01T06:00:00-08:00"
}
Example 658 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<h2 itemprop="displayName">A Party</h2>
<div>Starts:
<meta itemprop="startTime" content="2014-12-31T23:00:00-08:00">
11:00 PM on Dec 31, 2014
</meta>
</div>
<div>Ends:
<meta itemprop="endTime" content="2015-01-01T06:00:00-08:00">
06:00 AM on Jan 1, 2015
</meta>
</div>
</div>
Example 659 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Event">
<h2 property="displayName">A Party</h2>
Starts:
<time property="startTime" content="2014-12-31T23:00:00-08:00" datatype="xsd:dateTime"
datetime="2014-12-31T23:00:00-08:00">
11:00 PM on Dec 31, 2014
</time>
Ends:
<time property="endTime" content="2015-01-01T06:00:00-08:00" datatype="xsd:dateTime"
datetime="2015-01-01T06:00:00-08:00">
06:00 AM on Jan 1, 2015
</time>
</div>
Example 661 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Event ;
as:displayName "A Party!" ;
as:startTime "2014-12-31T23:00:00-08:00"^^xsd:dateTime ;
as:endTime "2015-01-01T06:00:00-08:00"^^xsd:dateTime .
|
Notes: |
The date and time describing the actual or expected ending time of
the object. When used with an Activity object,
for instance, the endTime property specifies
the moment the activity concluded or is expected to conclude.
|
Domain: |
Object |
Range: |
xsd:dateTime |
Functional: |
True |
published |
URI: |
http://www.w3.org/ns/activitystreams#published |
Example 662 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"published": "2014-12-12T12:12:12Z"
}
Example 663 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<div itemprop="content">
A simple note
</div>
<meta itemprop="published"
content="2014-12-12T12:12:12Z" />
</div>
Example 664 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<div property="content">
A simple note
</div>
<meta property="published"
content="2014-12-12T12:12:12Z" datatype="xsd:dateTime" />
</div>
Example 666 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:content "A simple note" ;
as:published "2014-12-12T12:12:12Z"^^xsd:dateTime.
|
Notes: |
The date and time at which the object was published
|
Domain: |
Object |
Range: |
xsd:dateTime |
Functional: |
True |
startTime |
URI: |
http://www.w3.org/ns/activitystreams#startTime |
Example 667 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Event",
"displayName": "A Party!",
"startTime": "2014-12-31T23:00:00-08:00",
"endTime": "2015-01-01T06:00:00-08:00"
}
Example 668 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<h2 itemprop="displayName">A Party</h2>
<div>Starts:
<meta itemprop="startTime" content="2014-12-31T23:00:00-08:00">
11:00 PM on Dec 31, 2014
</meta>
</div>
<div>Ends:
<meta itemprop="endTime" content="2015-01-01T06:00:00-08:00">
06:00 AM on Jan 1, 2015
</meta>
</div>
</div>
Example 669 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Event">
<h2 property="displayName">A Party</h2>
Starts:
<time property="startTime" content="2014-12-31T23:00:00-08:00" datatype="xsd:dateTime"
datetime="2014-12-31T23:00:00-08:00">
11:00 PM on Dec 31, 2014
</time>
Ends:
<time property="endTime" content="2015-01-01T06:00:00-08:00" datatype="xsd:dateTime"
datetime="2015-01-01T06:00:00-08:00">
06:00 AM on Jan 1, 2015
</time>
</div>
Example 671 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Event ;
as:displayName "A Party!" ;
as:startTime "2014-12-31T23:00:00-08:00"^^xsd:dateTime ;
as:endTime "2015-01-01T06:00:00-08:00"^^xsd:dateTime.
|
Notes: |
The date and time describing the actual or expected starting time
of the object. When used with an Activity
object, for instance, the startTime property
specifies the moment the activity began or is scheduled to begin.
|
Domain: |
Object |
Range: |
xsd:dateTime |
Functional: |
True |
radius |
URI: |
http://www.w3.org/ns/activitystreams#radius |
Example 672 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 673 <table itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<tr>
<td>Name</td>
<td itemprop="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td itemprop="latitude">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td itemprop="longitude">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td itemprop="radius">15</td>
</tr>
<tr>
<td>Units</td>
<td itemprop="units">miles</td>
</tr>
</table>
Example 674 <table vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<tr>
<td>Name</td>
<td property="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td property="latitude" datatype="xsd:float">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td property="longitude" datatype="xsd:float">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td property="radius" datatype="xsd:float">15</td>
</tr>
<tr>
<td>Units</td>
<td property="units">miles</td>
</tr>
</table>
Example 676 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Place ;
as:displayName "Fresno Area" ;
as:latitude "36.75"^^xsd:float ;
as:longitude "119.7667"^^xsd:float ;
as:radius "15"^^xsd:float ;
as:units "miles" .
|
Notes: |
The radius from the given latitude and longitude for a Place.
The units is expressed by the units property.
If units is not specified, the default is
assumed to be "m " indicating "meters".
|
Domain: |
Place |
Range: |
xsd:float [>= 0.0f] |
Functional: |
True |
rel |
URI: |
http://www.w3.org/ns/activitystreams#rel |
Example 677 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"displayName": "An example link",
"rel": ["canonical", "preview"]
}
Example 678 <a itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
rel="canonical preview"
itemprop="displayName">An example link</a>
Example 679 <span vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link">
<a property="displayName"
rel="href" href="http://example.org/abc">An example link</a> (
<abbr property="hreflang" lang="" data-lt="English">en</abbr> -
<span property="mediaType" lang="">text/html</span>)
<span property="rel" lang="">canonical</span>
<span property="rel" lang="">preview</span>
</span>
Example 681 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Link ;
as:displayName "An example link" ;
as:href <http://example.org/abc> ;
as:hreflang "en" ;
as:rel "canonical", "preview" ;
as:mediaType "text/html" .
|
Notes: |
A link relation associated with a Link . The
value MUST conform to both the [HTML5] and [RFC5988]
"link relation" definitions.
In the [HTML5], any string not containing the "space" U+0020,
"tab" (U+0009), "LF" (U+000A), "FF" (U+000C), "CR" (U+000D) or ","
(U+002C) characters can be used as a valid link relation.
|
Domain: |
Link |
Range: |
[RFC5988] or [HTML5] Link Relation |
startIndex |
URI: |
http://www.w3.org/ns/activitystreams#startIndex |
Example 682 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "OrderedCollectionPage",
"startIndex": 0,
"orderedItems": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 683 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#OrderedCollectionPage">
<meta itemprop="startIndex" content="0" />
<ol>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A Simple Note
</span>
</li>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
Another Simple Note
</span>
</li>
</ol>
</div>
Example 684 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="OrderedCollectionPage">
<meta property="startIndex" content="0" datatype="xsd:nonNegativeInteger" />
<ol>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
A Simple Note
</span>
</li>
<li property="items" inlist="" typeof="Note">
<span property="displayName">
Another Simple Note
</span>
</li>
</ol>
</div>
Example 686 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
_:b0 a as:OrderedCollectionPage ;
as:startIndex "0"^^xsd:nonNegativeInteger ;
as:items (
[
a as:Note ;
as:displayName "A Simple Note"
]
[
a as:Note ;
as:displayName "Another Simple Note"
]
) .
|
Notes: |
A non-negative integer value identifying the relative position
within the logical view of a strictly ordered collection.
|
Domain: |
OrderedCollectionPage |
Range: |
xsd:nonNegativeInteger |
Functional: |
True |
summary |
URI: |
http://www.w3.org/ns/activitystreams#summary |
Example 687 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"summary": "A simple note"
}
Example 688 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="summary">
A simple note
</span>
</div>
Example 689 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="summary">
A simple note
</span>
</div>
Example 691 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:summary "A simple note".
Example 692 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"summaryMap": [
"en": "A simple note",
"sp": "Una simple nota"
}
}
Example 693 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="summary" lang="en">
A simple note
</span>
<span itemprop="summary" lang="sp">
Una simple nota
</span>
</div>
Example 694 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="summary" lang="en">
A simple note
</span>
<span property="summary" lang="sp">
Una simple nota
</span>
</div>
Example 696 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:summary "A simple note"@en ;
as:summary "Una simple nota"@sp.
|
Notes: |
A natural language summarization of the object. HTML markup,
including visual images such as images, MAY be included. Multiple
language tagged summaries MAY be provided.
|
Domain: |
Object |
Range: |
xsd:string | rdf:langString |
title |
URI: |
http://www.w3.org/ns/activitystreams#title |
Example 697 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"title": "A simple note"
}
Example 698 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="title">
A simple note
</span>
</div>
Example 699 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="title">
A simple note
</span>
</div>
Example 701 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:title "A simple note".
Example 702 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"titleMap": [
"en": "A simple note",
"sp": "Una simple nota"
}
}
Example 703 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="title" lang="en">
A simple note
</span>
<span itemprop="title" lang="sp">
Una simple nota
</span>
</div>
Example 704 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="title" lang="en">
A simple note
</span>
<span property="title" lang="sp">
Una simple nota
</span>
</div>
Example 706 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:title "A simple note"@en ;
as:title "Una simple nota"@sp.
|
Notes: |
A natural language title of the object. HTML markup,
including visual images such as images, MAY be included. The
title and displayName
properties are closely related and overlap in function with the
key difference being that title is permitted
to contain HTML markup while displayName is
not.
|
Domain: |
Object | Link |
Range: |
xsd:string | rdf:langString |
totalItems |
URI: |
http://www.w3.org/ns/activitystreams#totalItems |
Example 707 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 2,
"items": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 708 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="2" />
<ul>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A Simple Note
</span>
</li>
<li itemscope itemprop="items"
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 709 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="2" datatype="xsd:nonNegativeInteger" />
<ul>
<li property="items" typeof="Note">
<span property="displayName">
A Simple Note
</span>
</li>
<li property="items" typeof="Note">
<span property="displayName">
Another Simple Note
</span>
</li>
</ul>
</div>
Example 711 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Collection ;
as:totalItems "2"^^xsd:nonNegativeInteger ;
as:items
[
a as:Note ;
as:displayName "A Simple Note"
] ,
[
a as:Note ;
as:displayName "Another Simple Note"
] .
|
Notes: |
A non-negative integer specifying the total number of objects
contained by the logical view of the collection. This number
might not reflect the actual number of items serialized
within the Collection object instance.
|
Domain: |
Collection |
Range: |
xsd:nonNegativeInteger |
Functional: |
True |
units |
URI: |
http://www.w3.org/ns/activitystreams#units |
Example 712 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 713 <table itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<tr>
<td>Name</td>
<td itemprop="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td itemprop="latitude">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td itemprop="longitude">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td itemprop="radius">15</td>
</tr>
<tr>
<td>Units</td>
<td itemprop="units">miles</td>
</tr>
</table>
Example 714 <table vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<tr>
<td>Name</td>
<td property="displayName">Fresno Area</td>
</tr>
<tr>
<td>Latitude</td>
<td property="latitude" datatype="xsd:float">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td property="longitude" datatype="xsd:float">119.7667</td>
</tr>
<tr>
<td>Radius</td>
<td property="radius" datatype="xsd:float">15</td>
</tr>
<tr>
<td>Units</td>
<td property="units">miles</td>
</tr>
</table>
Example 716 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Place ;
as:displayName "Fresno Area" ;
as:latitude "36.75"^^xsd:float ;
as:longitude "119.7667"^^xsd:float ;
as:radius "15"^^xsd:float ;
as:units "miles" .
|
Notes: |
Specifies the measurement units for the radius
and altitude properties on a
Place object. If not specified, the default is
assumed to be "m " for "meters".
|
Domain: |
Place |
Range: |
"cm " |
"feet " |
"inches " |
"km " |
"m " |
"miles " |
xsd:anyURI
|
Functional: |
True |
updated |
URI: |
http://www.w3.org/ns/activitystreams#updated |
Example 717 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"updated": "2014-12-12T12:12:12Z"
}
Example 718 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<div itemprop="content">
A simple note
</div>
<meta itemprop="updated"
content="2014-12-12T12:12:12Z" />
</div>
Example 719 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<div property="content">
A simple note
</div>
<time property="updated" datatype="xsd:dateTime" datetime="2014-12-12T12:12:12Z">
2014-12-12T12:12:12Z
>time>
</div>
Example 721 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Note ;
as:content "A simple note" ;
as:updated "2014-12-12T12:12:12Z"^^xsd:dateTime.
|
Notes: |
The date and time at which the object was updated
|
Domain: |
Object |
Range: |
xsd:dateTime |
Functional: |
True |
width |
URI: |
http://www.w3.org/ns/activitystreams#width |
Example 722 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Content",
"displayName": "Some generic content",
"content": "<p>This can be any kind of content</p>",
"height": 100,
"width": 100
}
Example 723 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Content"
style="width:100px; height:100px">
<div itemprop="displayName">Some generic content</div>
<div itemprop="content">
<p>This can be any kind of content</p>
</div>
<meta itemprop="height" content="100" />
<meta itemprop="width" content="100" />
</div>
Example 724 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Content">
<div property="displayName">Some generic content</div>
<div property="content">
<p>This can be any kind of content</p>
</div>
<meta property="height" content="100" datatype="xsd:nonNegativeInteger" />
<meta property="width" content="100" datatype="xsd:nonNegativeInteger" />
</div>
Example 726 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Content ;
as:displayName "Some generic content" ;
as:content "<p>This can be any kind of content</p>" ;
as:height "100"^^xsd:nonNegativeInteger ;
as:width "100"^^xsd:nonNegativeInteger .
|
Notes: |
When the object describes a visual resource, such as an image,
video or embeddable HTML, the width property
indicates the recommended display width in properties of
device-independent pixels.
|
Domain: |
Content | Link |
Range: |
xsd:nonNegativeInteger |
Functional: |
True |
subject |
URI: |
http://www.w3.org/ns/activitystreams#subject |
Example 727 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Relationship",
"subject": {
"@type": "Person",
"displayName": "Sally"
},
"relationship": "http://purl.org/vocab/relationship/closeFriendOf",
"object": {
"@type": "Person",
"displayName": "John"
}
}
Example 728 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Relationship">
<span itemprop="subject" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
<span itemprop="relationship"
itemid="http://purl.org/vocab/relationship/closeFriendOf">
knows
</span>
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">John</span>
</span>
</div>
Example 729 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Relationship">
<span property="subject" typeof="Person">
<span property="displayName">Sally</span>
</span>
<span property="relationship"
resource="http://purl.org/vocab/relationship/closeFriendOf">
knows
</span>
<span property="object" typeof="Person">
<span property="displayName">John</span>
</span>
</div>
Example 731 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix rel: <http://purl.org/vocab/relationship/> .
_:b0 a as:Relationship ;
as:relationship rel:closeFriendOf ;
as:subject [
a as:Person ;
as:displayName "Sally"
] ;
as:object [
a as:Person ;
as:displayName "John"
] .
|
Notes: |
On a Relationship object, the a
property identifies one of the connected individuals. For
instance, for a Relationship object describing
"John is related to Sally", subject would refer to
John.
|
Domain: |
Relationship |
Range: |
Link | Object |
Functional: |
True |
relationship |
URI: |
http://www.w3.org/ns/activitystreams#relationship
|
Example 732 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Relationship",
"subject": {
"@type": "Person",
"displayName": "Sally"
},
"relationship": "http://purl.org/vocab/relationship/closeFriendOf",
"object": {
"@type": "Person",
"displayName": "John"
}
}
Example 733 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Relationship">
<span itemprop="subject" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
<span itemprop="relationship"
itemid="http://purl.org/vocab/relationship/closeFriendOf">
knows
</span>
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">John</span>
</span>
</div>
Example 734 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Relationship">
<span property="subject" typeof="Person">
<span property="displayName">Sally</span>
</span>
<span property="relationship"
resource="http://purl.org/vocab/relationship/closeFriendOf">
knows
</span>
<span property="object" typeof="Person">
<span property="displayName">John</span>
</span>
</div>
Example 736 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix rel: <http://purl.org/vocab/relationship/> .
_:b0 a as:Relationship ;
as:relationship rel:closeFriendOf ;
as:subject [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Person ;
as:displayName "John" .
] .
|
Notes: |
On a Relationship object, the
relationship property identifies the kind of
relationship that exists between
subject and
object .
|
Domain: |
Relationship |
Range: |
Object |
describes |
URI: |
http://www.w3.org/ns/activitystreams#describes
|
Example 737 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Profile",
"describes": {
"@type": "Person",
"displayName": "Sally"
},
"url": "http://sally.example.org"
}
Example 738 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Profile">
<span itemprop="describes" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span> -
<a itemprop="url" href="http://sally.example.org">Profile</a>
</div>
Example 739 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Profile">
<span property="describes"
typeof="http://www.w3.org/ns/activitystreams#Person">
<span property="displayName">Sally</span>
</span> -
<a property="url" href="http://sally.example.org">Profile</a>
</div>
Example 741 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Profile ;
as:describes [
a as:Person ;
as:displayName "Sally"
] ;
as:url <http://sally.example.org> .
|
Notes: |
On a Profile object, the
describes property identifies the object described
by the Profile.
|
Domain: |
Profile |
Range: |
Object |
Functional: |
True |
5. Activity Streams 1.0 Properties
While the following properties are defined within the
http://www.w3.org/ns/activitystreams#
namespace URI,
their use SHOULD be considered deprecated within Activity Streams
2.0 implementations. They are included specifically for
interoperability purposes with Activity Streams 1.0.
Term |
Description |
author |
URI: |
http://www.w3.org/ns/activitystreams#author |
Notes: |
Identifies the author of an object (replaced by
attributedTo ).
|
Domain: |
Object
|
Equivalent To: |
attributedTo |
id |
URI: |
http://www.w3.org/ns/activitystreams#id |
Notes: |
Provides a permanent, universally unique identifier for the object
in the form of an absolute IRI [RFC3987]. Replaced in Activity
Streams 2.0 by the @id keyword.
|
Domain: |
Object
|
Equivalent To: |
[JSON-LD] "@id" |
verb |
URI: |
http://www.w3.org/ns/activitystreams#verb |
Notes: |
Identifies the type of action represented in the Activity. Replaced
in Activity Streams 2.0 by the JSON-LD @type keyword.
|
Domain: |
Activity |
Range: |
xsd:anyURI |
objectType |
URI: |
http://www.w3.org/ns/activitystreams#objectType |
Notes: |
Identifies the type of object. Replaced in Activity Streams 2.0 by
the JSON-LD @type keyword.
|
Domain: |
xsd:anyURI |
Equivalent To: |
[JSON-LD] @type |
downstreamDuplicates |
URI: |
http://www.w3.org/ns/activitystreams#downstreamDuplicates
|
Notes: |
The downstreamDuplicates property is used when
there are known objects, possibly in a different system, that
duplicate the content in this object. This would be used as a
hint for consumers to use when resolving duplicates between
objects received from different sources. In Activity Streams 2.0,
the downstreamDuplicates property is deprecated and SHOULD NOT be
used.
|
Domain: |
Object |
Range: |
xsd:anyURI |
provider |
URI: |
http://www.w3.org/ns/activitystreams#provider |
Notes: |
Identifies the entity (e.g. an application) that published the
object. Note that this is not necessarily the same entity that
generated the object.
|
Domain: |
Object |
Range: |
Object | Link |
upstreamDuplicates |
URI: |
http://www.w3.org/ns/activitystreams#upstreamDuplicates
|
Notes: |
The upstreamDuplicates property is used when
there are known objects, possibly in a different system, that
duplicate the content in this object. This would be used as a hint
for consumers to use when resolving duplicates between objects
received from different sources. In Activity Streams 2.0, the
upstreamDuplicates property is deprecated and SHOULD NOT be used.
|
Domain: |
Object |
Range: |
xsd:anyURI |
tags |
URI: |
http://www.w3.org/ns/activitystreams#tags |
Notes: |
In the Activity Streams 2.0 vocabulary, tags
is renamed to the singular form tag for
consistency.
|
Domain: |
Object |
Range: |
Object | Link |
Equivalent To: |
tag |
attachments |
URI: |
http://www.w3.org/ns/activitystreams#attachments |
Notes: |
In the Activity Streams 2.0 vocabulary, attachments
is renamed to the singular form attachment for
consistency.
|
Domain: |
Object |
Range: |
Object | Link |
Equivalent To: |
attachment |
rating |
URI: |
http://www.w3.org/ns/activitystreams#rating |
Notes: |
A quality rating expressed as a non-negative decimal number between
0.0 and 5.0 (inclusive) with one decimal place of precision.
|
Domain: |
Object |
Range: |
xsd:decimal [>= 0.0f, <=5.0f] |
Functional: |
True |