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 August 2014 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.1 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
Class |
Description |
Example |
Object |
URI: |
http://www.w3.org/ns/activitystreams#Object |
Example 1 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Object",
"@id": "urn:example:object:1",
"displayName": "A Simple, non-specific object"
}
Example 2 <div itemscope
itemid="urn: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="urn: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#>.
<urn: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 <a vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
property="displayName">An example link</a>
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,
"itemsPerPage": 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" /<
<meta itemprop="itemsPerPage" 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" /<
<meta property="itemsPerPage" content="2" />
<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:itemsPerPage "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. The
model for collections within the Activity Vocabulary is designed
largely around the abstract model of "logical feeds" and "pages"
discussed in [RFC5005], Section 1.2.
Specifically, a "logical collection" is a complete set of
Object or Link instances while an
individual Collection object may contain only a
specific subset of those members. Paging properties such as
next , prev ,
first , and last are used
to connect multiple Collection objects
containing different subsets of member items of a single logical
collection together.
When multiple, separate Collection instances
share the same identity (represented in the
JSON-LD serialization
using the @id property) and each specifies distinct,
non-overlapping subsets of member items (using the
items property), the membership
of the logical collection is the intersection of each of the
subsets. However, when there is overlap in the items contained by
multiple Collection instances (e.g. when
Object or Link intances with the
same identity appear in more than one Collection ),
member instances with the most recently updated timestamps -- as
determined by examining first the updated and
then published properties -- MUST be
considered to be the most current representations. If those
members do not have either an updated or
published property specified, then the containing
Collection object's updated
and published properties are used. If no timestamps
are available to use for comparison, implementations MAY use
other means to determine the precedence of member instance
representations.
When the members of a Collection are ordered, the
ordering imposed applies only to the subset of members contained
within that one specific Collection instance.
|
Extends: |
Object |
Properties: |
totalItems |
itemsPerPage |
current |
next |
prev |
first |
last |
self |
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,
"itemsPerPage": 2,
"startIndex": 0,
"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" /<
<meta itemprop="itemsPerPage" content="2" />
<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 33 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="OrderedCollection">
<meta property="totalItems" content="2" /<
<meta property="itemsPerPage" content="2" />
<meta property="startIndex" content="0" />
<ol>
<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>
</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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:startIndex "0"^^xsd:nonNegativeInteger ;
as:items [
rdf:first [
a as:Note ;
as:displayName "A Simple Note" .
] ;
rdf:rest [
rdf:first [
a as:Note ;
as:displayName "Another Simple Note" .
] ;
rdf:rest rdf:nil .
] .
].
|
Notes: |
A subclass of Collection in which members
of the logical collection are assumed to always be strictly
ordered.
Using paging with an OrderedCollection can be
tricky because there is no guarantee that implementations will
process the distinct pages in any predictable order. Therefore,
it is strongly recommended that OrderedCollection
instances that require paging always include the
first , next ,
prev and last paging
properties. Implementations that wish to reconstruct the
appropriate complete ordering of member instances in the logical
collection would navigate to the OrderedCollection
instance identified by the first (or
last ) link, then recursively follow the
next (or prev ) link until all pages
have been processed.
|
Extends: |
Collection |
Properties: |
startIndex
Inherits all properties from Collection .
|
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
|
Favorite
|
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 36 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Accept",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Invite",
"actor": "acct:john@example.org",
"object": {
"@type": "Event",
"displayName": "A Party!"
}
}
}
Example 37 <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">
<link itemprop="actor"
href="acct:john@example.org">John's</link>
invitation to
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<span itemprop="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 38 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Accept">
<span propery="actor" typeof="Person">
<span property="displayName">
Sally
</span>
<span>
accepted
<span property="object" typeof="Invite">
<link property="actor"
href="acct:john@example.org">John's</link>
invitation to
<span property="object" typeof="Event">
<span property="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 40 @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 <acct: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 41 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "TentativeAccept",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Invite",
"actor": "acct:john@example.org",
"object": {
"@type": "Event",
"displayName": "A Party!"
}
}
}
Example 42 <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">
<link itemprop="actor"
href="acct:john@example.org">John's</link>
invitation to
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<span itemprop="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 43 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="TentativeAccept">
<span propery="actor" typeof="Person">
<span property="displayName">
Sally
</span>
<span>
tentatively accepted
<span property="object" typeof="Invite">
<link property="actor"
href="acct:john@example.org">John's</link>
invitation to
<span property="object" typeof="Event">
<span property="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 45 @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 <acct: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 46 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Add",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/abc"
}
Example 47 <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 48 <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 50 @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 51 {
"@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 52 <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 53 <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>
to
<span property="target"
typeof="Album">
"<span property="displayName">My Cat Pictures</span>"
</span>
</div>
Example 55 @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> ;
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 56 {
"@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 57 <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 58 <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 60 @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 61 {
"@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 62 <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 63 <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 65 @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 66 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Delete",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1"
}
Example 67 <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 68 <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 70 @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 . |
Favorite |
URI: |
http://www.w3.org/ns/activitystreams#Favorite |
Example 71 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Favorite",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1"
}
Example 72 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Favorite">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally</span>
</span>
favorited
<a itemprop="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 73 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Favorite">
<span property="actor" typeof="Person">
<span property="displayName">Sally</span>
</span>
favorited
<a property="object"
href="http://example.org/notes/1">
http://example.org/notes/1
</a>
</div>
Example 75 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Favorite ;
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.
The Favorite and Like
activity types MAY be used as equivalent synonyms if an
implementation chooses.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Follow |
URI: |
http://www.w3.org/ns/activitystreams#Follow |
Example 76 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Follow",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Person",
"displayName": "John"
}
}
Example 77 <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 78 <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 80 @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 81 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Ignore",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1"
}
Example 82 <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 83 <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 85 @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 86 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Join",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Group",
"displayName": "A Simple Group"
}
}
Example 87 <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 88 <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 90 @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 91 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Leave",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Place",
"displayName": "Work"
}
}
Example 92 <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 93 <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 95 @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 96 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Leave",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Group",
"displayName": "A Simple Group"
}
}
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#Group">
<span itemprop="displayName">A Simple Group</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="Group">
<span property="displayName">A Simple Group</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: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 101 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Like",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1"
}
Example 102 <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 103 <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 105 @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.
The Favorite and Like activity types
MAY be used as equivalent synonyms if an implementation chooses.
|
Extends: |
Activity |
Properties: |
Inherits all properties from Activity . |
Offer |
URI: |
http://www.w3.org/ns/activitystreams#Offer |
Example 106 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "urn:examples:types:ProductOffer",
"displayName": "50% Off!"
}
}
Example 107 <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="urn:examples:types:ProductOffer">
<span itemprop="displayName">
50% Off!
</span>
</span>
</div>
Example 108 <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="urn:examples:types:ProductOffer">
<span property="displayName">
50% Off!
</span>
</span>
</div>
Example 110 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a <urn:examples:types: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 111 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Invite",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "urn:example:types:Present",
"displayName": "A Present"
},
"target": {
"@type": "Person",
"displayName": "John"
}
}
Example 112 <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 113 <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 115 @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 116 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Reject",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Invite",
"actor": "acct:john@example.org",
"object": {
"@type": "Event",
"displayName": "A Party!"
}
}
}
Example 117 <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">
<link itemprop="actor"
href="acct:john@example.org">John's</link>
invitation to
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Event">
<span itemprop="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 118 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Reject">
<span propery="actor" typeof="Person">
<span property="displayName">
Sally
</span>
<span>
rejected
<span property="object" typeof="Invite">
<link property="actor"
href="acct:john@example.org">John's</link>
invitation to
<span property="object" typeof="Event">
<span property="displayName">
A Party!
</span>
</span>
</span>
</div>
Example 120 @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 <acct: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 121 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "TentativeReject",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Invite",
"actor": "acct:john@example.org",
"object": {
"@type": "Event",
"displayName": "A Party!"
}
}
}
Example 122 <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">
<link itemprop="actor"
href="acct:john@example.org">John's</link>
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="TentativeReject">
<span propery="actor" typeof="Person">
<span property="displayName">
Sally
</span>
<span>
tentatively rejected
<span property="object" typeof="Invite">
<link property="actor"
href="acct:john@example.org">John's</link>
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:TentativeReject ;
as:actor [
a as:Person ;
as:displayName "Sally" .
] ;
as:object [
a as:Invite ;
as:actor <acct: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 126 {
"@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 127 <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 128 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Remove">
<span propery="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 130 @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 131 {
"@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 132 <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 133 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Remove">
<span propery="actor" typeof="http://example.org/Role">
<span property="displayName">
The Moderator
</span>
<span>
removed
<span propery="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 135 @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 136 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Undo",
"actor": "acct:sally@example.org",
"object": {
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": "acct:john@example.org"
}
}
Example 137 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Undo">
<link itemprop="actor"
href="acct:sally@example.org">
Sally
</link>
stopped
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:sally@example.org" />
sharing
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link itemprop="target"
href="acct:john@example.org">
John
</link>
</span>
</div>
Example 138 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Undo">
<link property="actor"
href="acct:sally@example.org">
Sally
</link>
stopped
<span property="object" typeof="Offer">
<link property="actor"
href="acct:sally@example.org" />
sharing
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link property="target"
href="acct:john@example.org">
John
</link>
</span>
</div>
Example 140 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Undo ;
as:actor <acct:sally@example.org> ;
as:object [
a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/posts/1> ;
as:target <acct:john@example.org> .
] .
|
Notes: |
Indicates that the actor is undoing the
object . 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 141 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Update",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/notes/1"
}
Example 142 <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 143 <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 145 @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 . 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 146 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Experience",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": {
"@type": "Article",
"displayName": "An article about Activity Streams"
}
}
Example 147 <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 148 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Update">
<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 150 @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 151 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "View",
"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#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 153 <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 155 @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 156 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Listen",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/music.mp3"
}
Example 157 <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 158 <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 160 @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 161 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Read",
"actor": {
"@type": "Person",
"displayName": "Sally"
},
"object": "http://example.org/posts/1"
}
Example 162 <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 163 <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 165 @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 166 {
"@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 167 <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 168 <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="origin" typeof="Collection">
<span property="displayName">List B</span>
</span>
</div>
Example 170 @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 171 {
"@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 172 <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 173 <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 175 @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 176 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Announce",
"actor": {
"@type": "Person",
"@id": "acct:sally@example.org",
"displayName": "Sally"
},
"object": {
"@type": "Arrive",
"actor": "acct:sally@example.org",
"location": {
"@type": "Place",
"displayName": "Work"
}
}
}
Example 177 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Announce">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person"
itemid="acct: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="acct: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 178 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Announce">
<span property="actor" typeof="Person"
resource="acct:sally@example.org">
<span property="displayName">Sally</span>
</span>
announced
<span property="object" typeof="Arrive">
<span property="actor" typeof="Person"
resource="acct:sally@example.org">her</span>
<span property="location" typeof="Place">
at <span property="displayName">Work</span>
</span>
</span>
</div>
Example 180 @prefix as: <http://www.w3.org/ns/activitystreams#> .
<acct:sally@example.org> a as:Person ;
as:displayName "Sally" .
_:b0 a as:Announce ;
as:actor <acct:sally@example.org> ;
as:object [
a as:Arrive ;
as:actor <acct:sally@example.org> ;
as:location [
a as:Place ;
as:displayName "Work" .
] .
] .
|
Notes: |
Indicates that the actor is announcing the
object to target . 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 181 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Block",
"actor": "acct:sally@example.org",
"object": "acct:joe@example.org"
}
Example 182 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Block">
<link itemprop="actor"
href="acct:sally@example.org">Sally</link>
blocked
<link itemprop="object"
href="acct:joe@example.org">Joe</link>
</div>
Example 183 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Block">
<link property="actor"
href="acct:sally@example.org">Sally</link>
blocked
<link property="object"
href="acct:joe@example.org">Joe</link>
</div>
Example 185 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Block ;
as:actor <acct:sally@example.org> ;
as:object <acct: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 186 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Flag",
"actor": "acct:sally@example.org",
"object": {
"@type": "Note",
"content": "An inappropriate note"
}
}
Example 187 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Flag">
<link itemprop="actor"
href="acct:sally@example.org">Sally</link>
flagged
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
"<span itemprop="content">
An inappropriate note
</span>"
</span>
</div>
Example 188 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Flag">
<link property="actor"
href="acct:sally@example.org">Sally</link>
flagged
<span property="object" typeof="Note">
"<span property="content">
An inappropriate note
</span>"
</span>
</div>
Example 190 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Flag ;
as:actor <acct: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 191 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Dislike",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1"
}
Example 192 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Dislike">
<link itemprop="actor"
href="acct:sally@example.org">Sally</link>
dislikes
<a itemprop="object" href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</div>
Example 193 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Dislike">
<link property="actor"
href="acct:sally@example.org">Sally</link>
dislikes
<a property="object" href="http://example.org/posts/1">
http://example.org/posts/1
</a>
</div>
Example 195 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Dislike ;
as:actor <acct: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
|
Person
|
Process
|
Service
Class |
Description |
Properties |
Application |
URI: |
http://www.w3.org/ns/activitystreams#Application |
Example 196 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Application",
"displayName": "My Software Application."
}
Example 197 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Application">
<span itemprop="displayName">My Software Application</span>
</div>
Example 198 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Application">
<span property="displayName">My Software Application</span>
</div>
Example 200 @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 201 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Group",
"displayName": "A Simple Group."
}
Example 202 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Group">
<span itemprop="displayName">A Simple Group</span>
</div>
Example 203 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Group">
<span property="displayName">A Simple Group</span>
</div>
Example 205 @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 . |
Person |
URI: |
http://www.w3.org/ns/activitystreams#Person |
Example 206 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Person",
"displayName": "Sally Smith."
}
Example 207 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person">
<span itemprop="displayName">Sally Smith</span>
</div>
Example 208 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Person">
<span property="displayName">Sally Smith</span>
</div>
Example 210 @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 211 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Process",
"displayName": "A Long Running Process"
}
Example 212 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Process">
<span itemprop="displayName">A Long Running Process</span>
</div>
Example 213 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Process">
<span property="displayName">A Long Running Process</span>
</div>
Example 215 @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 216 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Service",
"displayName": "Acme Web Service"
}
Example 217 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Service">
<span itemprop="displayName">Acme Web Service</span>
</div>
Example 218 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Service">
<span property="displayName">Acme Web Service</span>
</div>
Example 220 @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 221 {
"@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 222 <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 223 <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 225 @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.
|
Extends: |
Object |
Properties: |
subject |
object |
relationship
Inherits all properties from Object .
|
Content |
URI: |
http://www.w3.org/ns/activitystreams#Content |
Example 226 {
"@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 227 <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 228 <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">
<p>This can be any kind of content</p>
</div>
<meta property="height" content="100" />
<meta property="width" content="100" />
</div>
Example 230 @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 "<This can be any kind of content>" ;
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 231 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Article",
"displayName": "A Blog Post",
"content": "<div>... a long blog post</div>",
"attributedTo": "acct:sally@example.org"
}
Example 232 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Article">
<h2 itemprop="displayName">A Blog Post</h2>
<div>By <a itemprop="attributedTo"
href="acct:sally@example.org">Sally</a></div>
<section itemprop="content"
<div>... a long blog post</div>
</section>
</div>
Example 233 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Article">
<h2 property="displayName">A Blog Post</h2>
<div>By <a property="attributedTo"
href="acct:sally@example.org">Sally</a></div>
<section property="content"
<div>... a long blog post</div>
</section>
</div>
Example 235 @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 <acct: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 236 {
"@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 237 <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 238 <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>
<img property="url" typeof="Link"
src="http://example.org/dog.jpeg"
type="image/jpeg" />
</figure>
<figure property="items" typeof="Image">
<figcaption property="displayName">
My Cat
</figcaption>
<img property="url" typeof="Link"
src="http://example.org/cat.jpeg"
type="image/jpeg" />
</figure>
</div>
Example 240 @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 241 {
"@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 242 <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 243 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Album">
<h2 property="displayName">A Music Playlist</h2>
<ol>
<li property="items" typeof="Audio">
<span property="displayName">Song 1</span> -
<a property="url" typeof="Link"
href="http://example.org/song1.mp3"
type="audio/mp3">Listen</a>
</li>
<li property="items" typeof="Audio">
<span property="displayName">Song 2</span> -
<a property="url" typeof="Link"
href="http://example.org/song2.mp3"
type="audio/mp3">Listen</a>
</li>
</ol>
</div>
Example 245 @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 [
rdf:first [
a as:Audio ;
as:displayName "Song 1" ;
as:url [
a as:Link ;
as:href <http://example.org/song1.mp3> ;
as:mediaType "audio/mp3" .
] .
] ;
rdf:rest [
rdf:first [
a as:Audio ;
as:displayName "Song 2" ;
as:url [
a as:Link ;
as:href <http://example.org/song2.mpg> ;
as:mediaType "audio/mp3" .
]
] ;
rdf:rest rdf:nil .
] ;
] .
|
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 246 {
"@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 247 <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 248 <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 250 @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 251 {
"@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 252 <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 253 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Story">
<h2 property="displayName">My Vacation</h2>
<figure property="items" 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" 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 255 @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 [
rdf:first [
a as:Image ;
as:displayName "Visiting The Vatican" ;
as:url <http://example.org/photo5.jpeg> ;
as:location [
a as:Place ;
as:displayName "The Vatican" .
] .
] ;
rdf:rest [
rdf:first [
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" .
]
] ;
rdf:rest rdf:nil .
] ;
] .
|
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 256 {
"@context": "http://www.w3.org/ns/activitystreams",
"@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#Document">
<span itemprop="displayName">4Q Sales Forecast</span> -
<a itemprop="url"
href="http://example.org/4q-sales-forecast.pdf">Open</a>
</div>
Example 258 <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 260 @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 261 {
"@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 262 <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 263 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Audio">
<span property="displayName">A Simple Podcast</span> -
<a property="url" typeof="Link"
href="http://example.org/podcast.mp3"
type="audio/mp3">Listen</a>
</div>
Example 265 @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 266 {
"@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 267 <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 268 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Image">
<span property="displayName">A Simple Image</span> -
<a property="url" typeof="Link"
href="http://example.org/image.jpeg"
type="image/jpeg">JPEG</a> |
<a property="url" typeof="Link"
href="http://example.org/image.png"
type="image/png">PNG</a>
</div>
Example 270 @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 271 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Video",
"displayName": "A Simple Video",
"url": "http://example.org/video.mkv",
"duration": "PT2H"
}
Example 272 <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 273 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Video">
<span property="displayName">A Simple Video</span>
<meta property="duration" content="PT2H">(2 hours)<meta> -
<a property="url"
href="http://example.org/video.mkv">Watch<a>
</div>
Example 275 @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 276 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"displayName": "A Short Note",
"content": "This is a short note"
}
Example 277 <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 278 <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 280 @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 281 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Page",
"displayName": "A Webpage",
"url": "http://example.org/page.html"
}
Example 282 <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 283 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Page">
<a property="url"
href="http://example.org/page.html">
<meta property="displayName">A Webpage</meta>
</a>
</div>
Example 285 @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 286 {
"@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 287 <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 288 <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 290 @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 291 {
"@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 292 <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 293 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Event">
<h2 property="displayName">A Party</h2>
<div>Starts:
<meta property="startTime" content="2014-12-31T23:00:00-08:00">
11:00 PM on Dec 31, 2014
</meta>
</div>
<div>Ends:
<meta property="endTime" content="2015-01-01T06:00:00-08:00">
06:00 AM on Jan 1, 2015
</meta>
</div>
</div>
Example 295 @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 296 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Work"
}
Example 297 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Place">
<span itemprop="displayName">Work</span>
</div>
Example 298 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="displayName">Work</span>
</div>
Example 300 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Place ;
as:displayName "Work" .
Example 301 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 302 <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 303 <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 305 @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.
|
Extends: |
Object |
Properties: |
accuracy |
altitude |
latitude |
longitude |
radius |
units
Inherits all properties from Object .
|
Mention |
URI: |
http://www.w3.org/ns/activitystreams#Mention |
Example 306 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Mention",
"href": "http://example.org/joe",
"displayName": "Joe"
}
Example 307 <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 308 <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 310 @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 311 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Profile",
"displayName": "Sally's Profile",
"attributedTo": {
"@type": "Person",
"displayName": "Sally Smith"
}
}
Example 312 <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 313 <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 315 @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 document that describes another Object, typically
used to describe Person objects. The describes
property is used to reference the object 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 sytems 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 316
{
"@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 317
{
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Create",
"actor": "acct:sally@example.org",
"object": {
"@type": "Relationship",
"subject": "acct:sally@example.org",
"relationship": "http://purl.org/vocab/relationship/closeFriendOf",
"object": "acct: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 318
{
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "San Francisco, CA"
}
Or, by longitude
and latitude
:
Example 319
{
"@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
|
self
|
tag
|
target
|
to
|
url
|
accuracy
|
alias
|
altitude
|
content
|
displayName
|
duration
|
height
|
href
|
hreflang
|
itemsPerPage
|
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 320 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/foo"
}
Example 321 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:sally@example.org">Sally</link>
offered
<a itemprop="object"
href="http://example.org/foo">
http://example.org/foo
</a>
</div>
Example 322 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<link property="actor"
href="acct:sally@example.org">Sally</link>
offered
<a property="object"
href="http://example.org/foo">
http://example.org/foo
</a>
</div>
Example 324 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/foo> .
Example 325 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": {
"@type": "Person",
"@id": "acct:sally@example.org",
"displayName": "Sally"
},
"object": "http://example.org/foo"
}
Example 326 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person"
itemid="acct: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 327 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<span property="actor" typeof="Person"
resource="acct: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 329 @prefix as: <http://www.w3.org/ns/activitystreams#> .
<acct:sally@example.org> a as:Person ;
as:displayName "Sally" .
_:b0 a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/foo> .
Example 330 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": [
"acct:joe@example.org",
{
"@type": "Person",
"@id": "acct:sally@example.org",
"displayName": "Sally"
}
],
"object": "http://example.org/foo"
}
Example 331 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:joe@example.org">Joe</link>
and
<span itemprop="actor" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Person"
itemid="acct: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 332 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<link property="actor"
href="acct:joe@example.org">Joe</link>
and
<span property="actor" typeof="Person"
resource="acct: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 334 @prefix as: <http://www.w3.org/ns/activitystreams#> .
<acct:sally@example.org> a as:Person ;
as:displayName "Sally" .
_:b0 a as:Offer ;
as:actor (
<acct:sally@example.org>
<acct: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 335 {
"@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 336 <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 337 <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 339 @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 an entity that is directly or indirected attached to this object
|
Domain: |
Object |
Range: |
Object | Link |
attributedTo |
URI: |
http://www.w3.org/ns/activitystreams#attributedTo
|
Example 340 {
"@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 341 <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 342 <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 344 @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 345 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Image",
"displayName": "A Simple Image",
"url": "http://example.org/cat.jpeg",
"attributedTo": [
"acct:joe@example.org",
{
"@type": "Person",
"displayName": "Sally"
}
]
}
Example 346 <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
<link itemprop="attributedTo"
href="acct:joe@example.org">Joe<link>
</div>
Example 347 <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
<link property="attributedTo"
href="acct:joe@example.org">Joe<link>
</div>
Example 349 @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 (
<acct: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 350 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": "acct:john@example.org",
"bcc": [ "acct:joe@example.org" ]
}
Example 351 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link itemprop="target"
href="acct:john@example.org">
John
</link>
(bcc: <link itemprop="bcc"
href="acct:joe@example.org">
John
</link>)
</div>
Example 352 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<link property="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link property="target"
href="acct:john@example.org">
John
</link>
(bcc: <link property="bcc"
href="acct:joe@example.org">
John
</link>)
</div>
Example 354 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/posts/1> ;
as:target <acct:john@example.org> ;
as:bcc <acct: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 355 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": "acct:john@example.org",
"bto": [ "acct:joe@example.org" ]
}
Example 356 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link itemprop="target"
href="acct:john@example.org">
John
</link>
(bto: <link itemprop="bto"
href="acct:joe@example.org">
John
</link>)
</div>
Example 357 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<link property="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link property="target"
href="acct:john@example.org">
John
</link>
(bto: <link property="bto"
href="acct:joe@example.org">
John
</link>)
</div>
Example 359 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/posts/1> ;
as:target <acct:john@example.org> ;
as:bto <acct: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 360 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": "acct:john@example.org",
"cc": [ "acct:joe@example.org" ]
}
Example 361 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link itemprop="target"
href="acct:john@example.org">
John
</link>
(cc: <link itemprop="cc"
href="acct:joe@example.org">
John
</link>)
</div>
Example 362 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<link property="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link property="target"
href="acct:john@example.org">
John
</link>
(cc: <link property="cc"
href="acct:joe@example.org">
John
</link>)
</div>
Example 364 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/posts/1> ;
as:target <acct:john@example.org> ;
as:cc <acct: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 365 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"items": [
{
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": "acct:john@example.org",
"context": "http://example.org/contexts/1"
},
{
"@type": "Like",
"actor": "acct:joe@example.org",
"object": "http://example.org/posts/2",
"context": "http://example.org/contexts/1"
}
]
}
Example 366 <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="acct:sally@example.org">
Sally
<span>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link itemprop="target"
href="acct:john@example.org">
John
<link>
<link itemprop="context"
href="http://example.org/contexts/1" />
</li>
<li itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Like">
<span itemprop="actor"
itemid="acct:joe@example.org">
Joe
<span>
liked
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/2
</a>
<link itemprop="context"
href="http://example.org/contexts/1" />
</li>
</ul>
</div>
Example 367 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<ul>
<li property="items" typeof="Offer">
<span property="actor"
resource="acct:sally@example.org">
Sally
<span>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link property="target"
href="acct:john@example.org">
John
<link>
<link property="context"
href="http://example.org/contexts/1" />
</li>
<li property="items" typeof="Like">
<span property="actor"
resource="acct:joe@example.org">
Joe
<span>
liked
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/2
</a>
<link property="context"
href="http://example.org/contexts/1" />
</li>
</ul>
</div>
Example 369 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Collection ;
as:items ( _:b1 _:b2 ) .
_:b1 a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/posts/1> ;
as:target <acct:john@example.org> ;
as:context <http://example.org/contexts/1> .
_:b2 a as:Like ;
as:actor <acct: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 370 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"current": "http://example.org/collection",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 371 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" 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 372 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<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 374 @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:itemsPerPage "2"^^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 375 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 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 376 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" 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 377 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<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 379 @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:itemsPerPage "2"^^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: |
Collection |
Range: |
Collection | Link |
Functional: |
True |
first |
URI: |
http://www.w3.org/ns/activitystreams#first |
Example 380 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"first": "http://example.org/collection",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 381 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<a itemprop="first"
href="http://example.org/collection">
First 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 382 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<a property="first"
href="http://example.org/collection">
First 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 384 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:first <http://example.org/collection> ;
as:items (
<http://example.org/posts/1>
<http://example.org/posts/2>
<http://example.org/posts/3>
).
Example 385 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"first": {
"@type": "Link",
"displayName": "First Page",
"href": "http://example.org/collection"
},
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 386 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<span itemprop="first" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection">
<span itemprop="displayName">First 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 387 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<span property="first" typeof="Link">
<a property="href" href="http://example.org/collection">
<span property="displayName">First 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 389 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:first [
a as:Link ;
as:displayName "First Page" ;
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 furthest
preceeding page of items in the collection.
|
Domain: |
Collection |
Range: |
Collection | Link |
Functional: |
True |
generator |
URI: |
http://www.w3.org/ns/activitystreams#generator |
Example 390 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"generator": {
"@type": "Application",
"displayName": "My Note Application"
}
}
Example 391 <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 392 <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 394 @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 395 {
"@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 396 <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 397 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<img property="icon" typeof="Image"
src="http://www.example.org/note.png"
alt="Note"
width="16px" height="16px" />
<span itemprop="content">A Simple Note</span>
</div>
Example 399 @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 400 {
"@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 401 <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 402 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<img property="icon" typeof="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 404 @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 405 {
"@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 406 <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 407 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span itemprop="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 409 @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 410 {
"@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 411 <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 412 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<span itemprop="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 414 @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 415 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"inReplyTo": {
"@type": "Note",
"content": "Another note"
}
}
Example 416 <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 417 <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 419 @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 420 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"inReplyTo": "http://example.org/posts/1"
}
Example 421 <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 422 <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 424 @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 425 {
"@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 426 <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 427 <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" />
using
<span property="instrument" typeof="Service">
<span property="displayName">
Acme Music Service
</span>
</span>
</div>
Example 429 @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 430 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"last": "http://example.org/collection",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 431 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<a itemprop="last"
href="http://example.org/collection">
Last 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 432 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<a property="last"
href="http://example.org/collection">
Last 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 434 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:last <http://example.org/collection> ;
as:items (
<http://example.org/posts/1>
<http://example.org/posts/2>
<http://example.org/posts/3>
).
Example 435 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"last": {
"@type": "Link",
"displayName": "Last Page",
"href": "http://example.org/collection"
},
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 436 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<span itemprop="last" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection">
<span itemprop="displayName">Last 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 437 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<span property="last" typeof="Link">
<a property="href" href="http://example.org/collection">
<span property="displayName">Last 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 439 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:last [
a as:Link ;
as:displayName "Last Page" ;
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 furthest
proceeding page of the collection.
|
Domain: |
Collection |
Range: |
Collection | Link |
Functional: |
True |
location |
URI: |
http://www.w3.org/ns/activitystreams#location |
Example 440 {
"@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 441 <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 442 <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">56.78</span>,
Longitude
<span property="longitude">12.34</span>,
at an altitude of
<span property="altitude">90</span>
<meta property="units" content="m">meters</meta>
</span>
</div>
Example 444 @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 445 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 2,
"itemsPerPage": 2,
"items": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 446 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="2" /<
<meta itemprop="itemsPerPage" 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 447 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="2" /<
<meta property="itemsPerPage" content="2" />
<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 449 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:items (
[
a as:Note ;
as:displayName "A Simple Note" .
]
[
a as:Note ;
as:displayName "Another Simple Note" .
]
).
Example 450 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "OrderedCollection",
"totalItems": 2,
"itemsPerPage": 2,
"startIndex": 0,
"orderedItems": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 451 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#OrderedCollection">
<meta itemprop="totalItems" content="2" /<
<meta itemprop="itemsPerPage" content="2" />
<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 452 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="OrderedCollection">
<meta property="totalItems" content="2" /<
<meta property="itemsPerPage" content="2" />
<meta property="startIndex" content="0" />
<ol>
<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>
</ol>
</div>
Example 454 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:startIndex "0"^^xsd:nonNegativeInteger ;
as:items [
rdf:first [
a as:Note ;
as:displayName "A Simple Note" .
] ;
rdf:rest [
rdf:first [
a as:Note ;
as:displayName "Another Simple Note" .
] ;
rdf:rest rdf:nil .
] .
].
|
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 455 {
"@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 456 <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 457 <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 459 @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 460 {
"@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 461 <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 462 <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 464 @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 465 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Move",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": {
"@type": "Collection",
"displayName": "List B"
},
"origin": {
"@type": "Collection",
"displayName": "List A"
}
}
Example 466 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Move">
<link itemprop="actor"
href="acct:sally@example.org">
Sally
</link>
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 467 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Move">
<link property="actor"
href="acct:sally@example.org">
Sally
</link>
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 469 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Move ;
as:actor <acct: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 A from List B", the origin of
the activity is "List B".
|
Domain: |
Activity |
Range: |
Object | Link |
next |
URI: |
http://www.w3.org/ns/activitystreams#next |
Example 470 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"next": "http://example.org/collection",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 471 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<a itemprop="next"
href="http://example.org/collection">
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 472 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<a property="next"
href="http://example.org/collection">
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 474 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:next <http://example.org/collection> ;
as:items (
<http://example.org/posts/1>
<http://example.org/posts/2>
<http://example.org/posts/3>
).
Example 475 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"next": {
"@type": "Link",
"displayName": "Next Page",
"href": "http://example.org/collection"
},
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 476 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<span itemprop="next" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection">
<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 477 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<span property="next" typeof="Link">
<a property="href" href="http://example.org/collection">
<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 479 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:next [
a as:Link ;
as:displayName "Next Page" ;
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 next page
of items.
|
Domain: |
Collection |
Range: |
Object | Link |
Functional: |
True |
object |
URI: |
http://www.w3.org/ns/activitystreams#object |
Example 480 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Like",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1"
}
Example 481 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Like">
<link itemprop="actor"
href="acct:sally@example.org">Sally</link>
liked
<a itemprop="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</a>
</div>
Example 482 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Like">
<link property="actor"
href="acct:sally@example.org">Sally</link>
liked
<a property="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</a>
</div>
Example 484 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Like
as:actor <acct:sally@example.org> ;
as:object <http://example.org/posts/1> .
Example 485 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Like",
"actor": "acct:sally@example.org",
"object": {
"@type": "Note",
"content": "A simple note"
}
}
Example 486 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Like">
<link itemprop="actor"
href="acct:sally@example.org">Sally</link>
liked
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
"<span itemprop="content">
A simple note
</span>"
</span>
</div>
Example 487 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Like">
<link property="actor"
href="acct:sally@example.org">Sally</link>
liked
<span property="object" typeof="Note">
"<span property="content">
A simple note
</span>"
</span>
</div>
Example 489 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Like
as:actor <acct:sally@example.org> ;
as:object [
a as:Note;
as:content "A simple note" .
] .
Example 490 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Like",
"actor": "acct:sally@example.org",
"object": [
"http://example.org/posts/1",
{
"@type": "Note",
"content": "A simple note"
}
]
}
Example 491 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Like">
<link itemprop="actor"
href="acct:sally@example.org">Sally</link>
liked
<link itemprop="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</link> and
<span itemprop="object" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
"<span itemprop="content">
A simple note
</span>"
</span>
</div>
Example 492 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Like">
<link property="actor"
href="acct:sally@example.org">Sally</link>
liked
<link property="object"
href="http://example.org/posts/1">
"http://example.org/posts/1"
</link> and
<span property="object" typeof="Note">
"<span property="content">
A simple note
</span>"
</span>
</div>
Example 494 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Like
as:actor <acct: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 495 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"prev": "http://example.org/collection",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 496 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<a itemprop="prev"
href="http://example.org/collection">
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 497 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<a property="prev"
href="http://example.org/collection">
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 499 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:prev <http://example.org/collection> ;
as:items (
<http://example.org/posts/1>
<http://example.org/posts/2>
<http://example.org/posts/3>
).
Example 500 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"prev": {
"@type": "Link",
"displayName": "Previous Page",
"href": "http://example.org/collection"
},
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 501 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<span itemprop="prev" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection">
<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 502 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<span property="prev" typeof="Link">
<a property="href" href="http://example.org/collection">
<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 504 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:prev [
a as:Link ;
as:displayName "Previous Page" ;
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 , identifies the previous
page of items.
|
Domain: |
Collection |
Range: |
Collection | Link |
Functional: |
True |
preview |
URI: |
http://www.w3.org/ns/activitystreams#preview |
Example 505 {
"@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 506 <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 507 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Video">
<span property="displayName">
Cool New Movie
</span>
<meta property="duration" content="PT2H30M">(2H 30M)</meta>
- <span property="preview" typeof="Link">
<span property="displayName">Trailer<span>
<meta property="duration" content="PT1M">(1M)</meta>
<a property="href"
href="http://example.org/trailer.mkv"
type="video/mkv">Watch</a>
</span>
</div>
Example 509 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Movie ;
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 510 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": ["Activity", "urn:example:verbs:Check"],
"actor": "acct:sally@example.org",
"object": "http://example.org/flights/1",
"result": {
"@type": "urn:example:types:flightstatus",
"displayName": "On Time"
}
}
Example 511 <div itemscope
itemtype="
http://www.w3.org/ns/activitystreams#Activity
urn:example:verbs:Check">
<link itemprop="actor"
href="acct:sally@example.org">Sally's</link>
<link itemprop="object"
href="http://example.org/flights/1">flight</link>
is
<span itemprop="result" itemscope
itemtype="urn:example:types:flightstatus">
<span itemprop="displayName">On Time</span>
</span>
</div>
Example 512 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="
http://www.w3.org/ns/activitystreams#Activity
urn:example:verbs:Check">
<link property="actor"
href="acct:sally@example.org">Sally's</link>
<link property="object"
href="http://example.org/flights/1">flight</link>
is
<span property="result"
typeof="urn:example:types:flightstatus">
<span property="displayName">On Time</span>
</span>
</div>
Example 514 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Activity,
<urn:example:verbs:Check> ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/flights/1> ;
as:result [
a <urn:example:types: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 515 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"@id": "urn:example:notes:1",
"content": "A simple note",
"replies": {
"@type": "Collection",
"totalItems": 1,
"itemsPerPage": 1,
"items": [
{
"@type": "Note",
"content": "A response to the note",
"inReplyTo": "urn:example:notes:1"
}
]
}
}
Example 516 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note"
itemid="urn: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" />
<meta itemprop="itemsPerPage" content="1" />
<ul>
<li itemprop="items" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="content">
A response to the note
</span>
<link itemprop="inReplyTo"
href="urn:example:notes:1" />
</li>
</ul>
</div>
</div>
Example 517 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note" resource="urn:example:notes:1">
<div property="content">
A simple note
</div>
<div property="replies" typeof="Collection">
<meta property="totalItems" content="1" />
<meta property="itemsPerPage" content="1" />
<ul>
<li property="items" typeof="Note">
<span property="content">
A response to the note
</span>
<link property="inReplyTo"
href="urn:example:notes:1" />
</li>
</ul>
</div>
</div>
Example 519 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<urn:example:notes:1> a as:Note ;
as:content "A simple note" ;
as:replies _:b0 .
_:b0 a as:Collection ;
as:totalItems "1"^^xsd:nonNegativeInteger ;
as:itemsPerPage "1"^^xsd:nonNegativeInteger ;
as:items [
a as:Note ;
as:content "A response to the note" ;
as:inReplyTo <urn: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 520 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"scope": {
"@type": "http://example.org/Organization",
"displayName": "My Organization"
}
}
Example 521 <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 522 <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 524 @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 |
self |
URI: |
http://www.w3.org/ns/activitystreams#self |
Example 525 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"self": "http://example.org/collection",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 526 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<a itemprop="self"
href="http://example.org/collection">
This 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 527 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<a property="self"
href="http://example.org/collection">
This 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 529 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:self <http://example.org/collection> ;
as:items (
<http://example.org/posts/1>
<http://example.org/posts/2>
<http://example.org/posts/3>
).
Example 530 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 5,
"itemsPerPage": 3,
"self": {
"@type": "Link",
"displayName": "This Page",
"href": "http://example.org/collection"
},
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3",
]
}
Example 531 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="5" />
<meta itemprop="itemsPerPage" content="3" />
<span itemprop="self" itemscope
itemtype="http://www.w3.org/ns/activitystreams#Link">
<a itemprop="href" href="http://example.org/collection">
<span itemprop="displayName">This 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 532 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="5" />
<meta property="itemsPerPage" content="3" />
<span property="self" typeof="Link">
<a property="href" href="http://example.org/collection">
<span property="displayName">This 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 534 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:self [
a as:Link ;
as:displayName "This Page" ;
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 , identifies this page of
entries.
|
Domain: |
Collection |
Range: |
Collection | Link |
Functional: |
True |
tag |
URI: |
http://www.w3.org/ns/activitystreams#tag |
Example 535 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Image",
"displayName": "Picture of Sally",
"url": "http://example.org/sally.jpg",
"tag": [
{
"@type": "Person",
"@id": "acct:sally@example.org"
}
]
}
Example 536 <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 537 <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 539 @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 [
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 540 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": "acct:john@example.org"
}
Example 541 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link itemprop="target"
href="acct:john@example.org">
John
</link>
</div>
Example 542 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<link property="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link property="target"
href="acct:john@example.org">
John
</link>
</div>
Example 544 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/posts/1> ;
as:target <acct:john@example.org> .
Example 545 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": {
"@type": "Person",
"displayName": "John"
}
}
Example 546 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:sally@example.org">
Sally
</link>
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 547 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<link property="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a property="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 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <acct: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 550 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": "acct:john@example.org",
"to": [ "acct:joe@example.org" ]
}
Example 551 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link itemprop="target"
href="acct:john@example.org">
John
</link>
(to: <link itemprop="to"
href="acct:joe@example.org">
John
</link>)
</div>
Example 552 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<link property="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link property="target"
href="acct:john@example.org">
John
</link>
(to: <link property="to"
href="acct:joe@example.org">
John
</link>)
</div>
Example 554 @prefix as: <http://www.w3.org/ns/activitystreams#> .
_:b0 a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/posts/1> ;
as:target <acct:john@example.org> ;
as:to <acct: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 555 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Document",
"displayName": "4Q Sales Forecast",
"url": "http://example.org/4q-sales-forecast.pdf"
}
Example 556 <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 557 <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 559 @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 560 {
"@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 561 <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 562 <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 564 @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 565 {
"@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 566 <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 567 <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"
type="application/pdf">PDF</a> |
<a property="url" typeof="Link"
href="http://example.org/4q-sales-forecast.html"
type="text/html">HTML</a>
</div>
Example 569 @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 570 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"latitude": 36.75,
"longitude": 119.7667,
"accuracy": 94.5
}
Example 571 <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 572 <table vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<tr>
<td>Latitude</td>
<td property="latitude">36.75</td>
</tr>
<tr>
<td>Longitude</td>
<td property="longitude">119.7667</td>
</tr>
<tr>
<td>Accuracy</td>
<td property="accuracy">94.5</td>
</tr>
</table>
Example 574 @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 575 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Home",
"alias": "@home"
}
Example 576 <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 577 <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 579 @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 580 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"altitude": 15.0,
"latitude": 36.75,
"longitude": 119.7667,
"units": "miles"
}
Example 581 <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 582 <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>Altitude</td>
<td property="altitude">15</td>
</tr>
<tr>
<td>Units</td>
<td property="units">miles</td>
</tr>
</table>
Example 584 @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 585 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note"
}
Example 586 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="content">
A simple note
</span>
</div>
Example 587 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="content">
A simple note
</span>
</div>
Example 589 @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 590 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"contentMap": [
"en": "A simple note",
"sp": "Una simple nota"
}
}
Example 591 <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 592 <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 594 @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 595 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"displayName": "A simple note"
}
Example 596 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="displayName">
A simple note
</span>
</div>
Example 597 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="displayName">
A simple note
</span>
</div>
Example 599 @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 600 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"displayNameMap": [
"en": "A simple note",
"sp": "Una simple nota"
}
}
Example 601 <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 602 <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 604 @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 605 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Video",
"displayName": "A Simple Video",
"url": "http://example.org/video.mkv",
"duration": "PT2H"
}
Example 606 <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 607 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Video">
<span property="displayName">A Simple Video</span>
<meta property="duration" content="PT2H">(2 hours)<meta> -
<a property="url"
href="http://example.org/video.mkv">Watch<a>
</div>
Example 609 @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 610 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Video",
"displayName": "A Simple Video",
"url": "http://example.org/video.mkv",
"duration": 3600
}
Example 611 <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 612 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Video">
<span property="displayName">A Simple Video</span>
<meta property="duration" content="3600">(2 hours)<meta> -
<a property="url"
href="http://example.org/video.mkv">Watch<a>
</div>
Example 614 @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 615 {
"@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 616 <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 617 <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">
<p>This can be any kind of content</p>
</div>
<meta property="height" content="100" />
<meta property="width" content="100" />
</div>
Example 619 @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 "<This can be any kind of content>" ;
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 620 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"displayName": "An example link"
}
Example 621 <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 622 <a vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
property="displayName">An example link</a>
Example 624 @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: |
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 625 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"displayName": "An example link"
}
Example 626 <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 627 <a vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
property="displayName">An example link</a>
Example 629 @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 |
itemsPerPage |
URI: |
http://www.w3.org/ns/activitystreams#itemsPerPage
|
Example 630 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 2,
"itemsPerPage": 2,
"items": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 631 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="2" /<
<meta itemprop="itemsPerPage" 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 632 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="2" /<
<meta property="itemsPerPage" content="2" />
<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 634 @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:itemsPerPage "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 maximum number of items that
will be included in the value of the items
array.
|
Domain: |
Collection |
Range: |
xsd:nonNegativeInteger |
Functional: |
True |
latitude |
URI: |
http://www.w3.org/ns/activitystreams#latitude |
Example 635 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 636 <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 637 <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 639 @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 640 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 641 <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 642 <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 644 @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 645 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"displayName": "An example link"
}
Example 646 <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 647 <a vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
property="displayName">An example link</a>
Example 649 @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 650 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Offer",
"actor": "acct:sally@example.org",
"object": "http://example.org/posts/1",
"target": "acct:john@example.org",
"priority": 0.80
}
Example 651 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Offer">
<link itemprop="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a itemprop="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link itemprop="target"
href="acct:john@example.org">
John
</link>
<meta itemprop="priority" content="0.80" />
</div>
Example 652 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Offer">
<link property="actor"
href="acct:sally@example.org">
Sally
</link>
offered
<a property="object"
href="http://example.org/posts/1">
http://example.org/posts/1
</a>
with
<link property="target"
href="acct:john@example.org">
John
</link>
<meta property="priority" content="0.80" />
</div>
Example 654 @prefix as: <http://www.w3.org/ns/activitystreams#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:b0 a as:Offer ;
as:actor <acct:sally@example.org> ;
as:object <http://example.org/posts/1> ;
as:target <acct: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 655 {
"@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 656 <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 657 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Event">
<h2 property="displayName">A Party</h2>
<div>Starts:
<meta property="startTime" content="2014-12-31T23:00:00-08:00">
11:00 PM on Dec 31, 2014
</meta>
</div>
<div>Ends:
<meta property="endTime" content="2015-01-01T06:00:00-08:00">
06:00 AM on Jan 1, 2015
</meta>
</div>
</div>
Example 659 @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 660 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"published": "2014-12-12T12:12:12Z"
}
Example 661 <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 662 <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" />
</div>
Example 664 @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 665 {
"@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 666 <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 667 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Event">
<h2 property="displayName">A Party</h2>
<div>Starts:
<meta property="startTime" content="2014-12-31T23:00:00-08:00">
11:00 PM on Dec 31, 2014
</meta>
</div>
<div>Ends:
<meta property="endTime" content="2015-01-01T06:00:00-08:00">
06:00 AM on Jan 1, 2015
</meta>
</div>
</div>
Example 669 @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 670 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 671 <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 672 <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 674 @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 675 {
"@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 676 <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 677 <a vocab="http://www.w3.org/ns/activitystreams#"
typeof="Link"
href="http://example.org/abc"
hreflang="en"
type="text/html"
rel="canonical preview"
property="displayName">An example link</a>
Example 679 @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 680 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "OrderedCollection",
"totalItems": 2,
"itemsPerPage": 2,
"startIndex": 0,
"orderedItems": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 681 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#OrderedCollection">
<meta itemprop="totalItems" content="2" /<
<meta itemprop="itemsPerPage" content="2" />
<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 682 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="OrderedCollection">
<meta property="totalItems" content="2" /<
<meta property="itemsPerPage" content="2" />
<meta property="startIndex" content="0" />
<ol>
<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>
</ol>
</div>
Example 684 @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:itemsPerPage "2"^^xsd:nonNegativeInteger ;
as:startIndex "0"^^xsd:nonNegativeInteger ;
as:items [
rdf:first [
a as:Note ;
as:displayName "A Simple Note" .
] ;
rdf:rest [
rdf:first [
a as:Note ;
as:displayName "Another Simple Note" .
] ;
rdf:rest rdf:nil .
] .
].
|
Notes: |
A non-negative integer value identifying the relative position
within the logical view of a strictly ordered collection.
|
Domain: |
OrderedCollection |
Range: |
xsd:nonNegativeInteger |
Functional: |
True |
summary |
URI: |
http://www.w3.org/ns/activitystreams#summary |
Example 685 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"summary": "A simple note"
}
Example 686 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="summary">
A simple note
</span>
</div>
Example 687 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="summary">
A simple note
</span>
</div>
Example 689 @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 690 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"summaryMap": [
"en": "A simple note",
"sp": "Una simple nota"
}
}
Example 691 <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 692 <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 694 @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 695 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"title": "A simple note"
}
Example 696 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Note">
<span itemprop="title">
A simple note
</span>
</div>
Example 697 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Place">
<span property="title">
A simple note
</span>
</div>
Example 699 @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 700 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"titleMap": [
"en": "A simple note",
"sp": "Una simple nota"
}
}
Example 701 <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 702 <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 704 @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 705 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Collection",
"totalItems": 2,
"itemsPerPage": 2,
"items": [
{
"@type": "Note",
"displayName": "A Simple Note"
},
{
"@type": "Note",
"displayName": "Another Simple Note"
}
]
}
Example 706 <div itemscope
itemtype="http://www.w3.org/ns/activitystreams#Collection">
<meta itemprop="totalItems" content="2" /<
<meta itemprop="itemsPerPage" 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 707 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Collection">
<meta property="totalItems" content="2" /<
<meta property="itemsPerPage" content="2" />
<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 709 @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:itemsPerPage "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 710 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Place",
"displayName": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}
Example 711 <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 712 <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 714 @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 715 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Note",
"content": "A simple note",
"updated": "2014-12-12T12:12:12Z"
}
Example 716 <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 717 <div vocab="http://www.w3.org/ns/activitystreams#"
typeof="Note">
<div property="content">
A simple note
</div>
<meta property="updated"
content="2014-12-12T12:12:12Z" />
</div>
Example 719 @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 720 {
"@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 721 <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 722 <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">
<p>This can be any kind of content</p>
</div>
<meta property="height" content="100" />
<meta property="width" content="100" />
</div>
Example 724 @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 "<This can be any kind of content>" ;
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 725 {
"@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 726 <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 727 <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 729 @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 730 {
"@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 731 <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 732 <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 734 @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 735 {
"@context": "http://www.w3.org/ns/activitystreams",
"@type": "Profile",
"describes": {
"@type": "Person",
"displayName": "Sally"
},
"url": "http://sally.example.org"
}
Example 736 <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 737 <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 739 @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 |