-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathatom-activity.xml
More file actions
1040 lines (885 loc) · 50.4 KB
/
atom-activity.xml
File metadata and controls
1040 lines (885 loc) · 50.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type='text/xsl' href='./rfc2629.xslt' ?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<?rfc private="Activity Streams Working Group"?>
<rfc>
<front>
<title abbrev="AtomActivity">Atom Activity Streams 1.0</title>
<author fullname="Martin Atkins" initials="M." surname="Atkins">
<organization>SAY Media</organization>
</author>
<author fullname="Will Norris" initials="W." surname="Norris">
<organization>Google</organization>
</author>
<author fullname="Chris Messina" initials="C." surname="Messina">
<organization>Citizen Agency, Google</organization>
</author>
<author fullname="Monica Wilkinson" initials="M." surname="Wilkinson">
<organization>MySpace, Facebook, VMware</organization>
</author>
<author fullname="Rob Dolin" initials="R." surname="Dolin">
<organization>Microsoft</organization>
</author>
<date day="13" month="February" year="2011" />
<abstract>
<t>This document presents an XML format that allows activities on social
objects to be expressed within the Atom Syndication Format.</t>
</abstract>
</front>
<middle>
<section anchor="introduction" title="Introduction">
<t>The Atom Syndication Format, as defined in <xref
target="RFC4287"></xref>, is widely used to transmit various types of
web content such as weblog posts, news headlines, as well as user
activities within social sites. In the case of user activities, Atom
lacks the ability to express much of the activity-specific metadata in a
machine-parseable format. Activity Streams is an XML format designed to
allow this additional activity metadata to be expressed within existing
Atom entries and feeds.</t>
<t>It is a goal of this specification to provide sufficient metadata
about an activity such that a consumer of the data can present it to a
user in a rich human-friendly format. This may include constructing
readable sentences about the activity that occurred, visual
representations of the activity, or combining similar activities for
display.</t>
<section anchor="namespace" title="Namespace and Version">
<t>The XML Namespaces <xref target="xml-names"></xref> URI for the XML
data format described in this specification is:
<list>
<t><spanx style="verb">http://activitystrea.ms/spec/1.0/</spanx></t>
</list>
</t>
<t>For convenience, this data format may be referred to as "Atom
Activities 1.0".</t>
</section>
<section anchor="conventions" title="Notational Conventions">
<t>This specification uses the namespace prefix "activity:" for the
Namespace URI identified in <xref target="namespace"></xref>, and the
namespace prefix "atom:" for the Namespace URI identified in Section
1.2 of <xref target="RFC4287"></xref>. Note that the choice of
namespace prefixes is arbitrary and not semantically significant.</t>
<t>This specification uses a shorthand form of terms from the XML
Infoset <xref target="xml-infoset"></xref>. The term "element" is used
to refer to an element information item, and "attribute" is used to refer
to an attribute information item.</t>
<t>This specification allows the use of IRIs <xref
target="RFC3987"></xref>. Every URI <xref target="RFC3986"></xref> is
also an IRI, so a URI may be used wherever an IRI is named. 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 <xref target="RFC3987"></xref>.
When an IRI is serving as an identifier, it MUST NOT be so mapped.</t>
<t>The text of this specification provides the sole definition of
conformance. Examples in this specification are non-normative.</t>
<t>This specification uses "Atom" to refer to <xref
target="RFC4287"></xref>.</t>
<t>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 <xref
target="RFC2119"></xref>.</t>
</section>
</section>
<section anchor="concepts" title="Activity Concepts">
<t>In its simplest form, an activity consists of an actor, a verb, and
an object. It tells the story of a person performing an action on or
with an object -- "Geraldine posted a photo" or "John shared a video".
In most cases these elements will be explicitly declared, but they may
also be implied.</t>
<section anchor="activity" title="The Activity Construct">
<t>An activity consists of the following logical components:</t>
<section anchor="activity.time" title="Time">
<t>A Date Construct, as defined in section 3.3 of <xref
target="RFC4287"></xref>, that identifies the time at which the
activity occurred. It is important to note that this is not
necessarily the same as the time at which the activity was
published. An Activity construct MUST have exactly one Time
value.</t>
</section>
<section anchor="activity.actor" title="Actor">
<t>An <xref target="object">Object Construct</xref> that identifies
the entity that performed the activity. An Activity construct MUST
have exactly one actor.</t>
</section>
<section anchor="activity.verb" title="Verb">
<t>An IRI reference that identifies the action of the activity. This
value MUST be an absolute IRI, or a IRI relative to the base IRI of
<spanx style="verb">http://activitystrea.ms/schema/1.0/</spanx>. An
Activity construct MUST have exactly one verb.</t>
</section>
<section anchor="activity.object" title="Object">
<t>This <xref target="object">Object Construct</xref> identifies the
primary object of the activity. An Activity construct MUST have
exactly one object.</t>
</section>
<section anchor="activity.target" title="Target">
<t>The target of an activity is an <xref target="object">Object
Construct</xref> that represents the object to which the activity
was performed. The exact meaning of an activity's target is
dependent on the verb of the activity, but will often be the object
of the English preposition "to". For example, in the activity "John
saved a movie to his wishlist", the target of the activity is
"wishlist". The activity target MUST NOT be used to identify an
indirect object that is not a target of the activity. An Activity
construct MAY have a target but it MUST NOT have more than one.</t>
</section>
<section anchor="activity.title" title="Title">
<t>An HTML representation of the natural language title for this
activity. Consumers MAY use the value of this field, if set, as a
fallback for when the provided verb is not recognized. An
Activity Construct MAY have a title but it MUST NOT have more than
one.</t>
</section>
<section anchor="activity.summary" title="Summary">
<t>An HTML representation of the activity, including visual elements
such as thumbnails. Consumers MAY use the value of this field to
present the activity to a user, in lieu of constructing a
representation from each of the activity's components. Publishers
SHOULD include a summary for activities in order to provide a
fallback for parsers that are not Activity Streams aware.
An Activity Construct MAY have a summary but it MUST NOT have more
than one.</t>
</section>
</section>
<section anchor="object" title="The Object Construct">
<t>An object construct is a thing, real or imaginary, which
participates in an activity. It may be the entity performing the
activity, or the entity on which the activity was performed. An object
consists of the logical components defined in the following sections.
Certain object types may further refine the meaning of these
components, or they may define additional components. If an object
type defines an additional component then it SHOULD also define the
representation of that component in one or more serialization
formats.</t>
<section anchor="object.id" title="ID">
<t>The id of an object construct is an IRI that uniquely identifies
the object. Note that the definition of "IRI" excludes relative
references. An Object construct SHOULD have an ID value, and MUST
NOT have more than one.</t>
<t>If an object construct does not have an ID value consumers MAY use
the <xref target="object.url">Permalink URL</xref> as a weaker
identifier, but must in this case allow for the fact that Permalink
URL is not defined to be unique across all objects and be prepared
to handle duplicates.</t>
</section>
<section anchor="object.name" title="Name">
<t>This string value provides a human readable display name for the
object, if the object has a name. An Object construct MAY have a
name, but MUST NOT have more than one.</t>
</section>
<section anchor="object.summary" title="Summary">
<t>This string value provides a human readable description or
summary of the Object. An Object construct MAY have a summary, but
MUST NOT have more than one.</t>
</section>
<section anchor="object.image" title="Representative Image">
<t>This IRI reference identifies an image resource which provides a visual
representation of the object, intended for human consumption. An Object
construct MAY have a representative image, but MUST NOT have more than
one.</t>
</section>
<section anchor="object.url" title="Permalink URL">
<t>This IRI reference identifies a resource which provides an HTML
representation of the object. An Object construct MAY have a
Permalink URL, but MUST NOT have more than one.</t>
</section>
<section anchor="object.type" title="Object Type">
<t>An IRI reference that identifies the type of object. This value
MUST be an absolute IRI, or a IRI relative to the base IRI of
<spanx style="verb">http://activitystrea.ms/schema/1.0/</spanx>. An
Object construct MAY have a type, but MUST NOT have more than one.</t>
<t>If no object type is present, the object has no specific type.
Consumers SHOULD refer to such objects only by their names. For
example, when forming an activity sentence a consumer might say
"Johan posted 'My Cat'" rather than "Johan posted a photo: 'My
Cat'".</t>
</section>
</section>
</section>
<section anchor="atom" title="Atom Representation">
<t>Activities can be represented in an Atom document using a combination
of conventions and custom extension elements. This specification defines
two ways that an activity can be represented using <spanx
style="verb">atom:entry</spanx> elements, as a Full Activity Entry or
using Implied Activity Shorthand. Other specifications may define
additional representations.</t>
<section anchor="atom.activity" title="Activity Representations">
<t>Any valid Atom entry as defined by section 4.1.2 of <xref
target="RFC4287"></xref> is a representation of an activity as defined
in <xref target="activity"></xref>.</t>
<t>If the <spanx style="verb">atom:entry</spanx> contains an
<spanx style="verb">activity:object</spanx> element then it is a Full
Activity Entry and MUST be interpreted as described in
<xref target="atom.activity.full"></xref>. Otherwise the entry is an
Implied Activity Shorthand Entry and MUST be interpreted as described
in <xref target="atom.activity.implied"></xref>.</t>
<section anchor="atom.activity.full" title="Full Activity Entry">
<t>A Full Activity Entry is one in which the
<spanx style="verb">atom:entry</spanx> represents the full
<xref target="activity">Activity Construct</xref>. The components of
the activity are represented by child elements of the
<spanx style="verb">atom:entry</spanx>. In this section, "the entry"
refers to the <spanx style="verb">atom:entry</spanx> element that
represents the Full Activity Entry.</t>
<t>The components of the Activity Construct are represented in a
Full Activity Entry as follows:</t>
<t><list style="hanging">
<t hangText="Actor">The <xref target="activity.actor">Actor</xref>
of the Activity Construct is represented by the
<spanx style="verb">atom:author</spanx> element that
applies to the entry, as defined by section 4.2.1 of <xref
target="RFC4287"></xref>. The representation of an Object
Construct as an <spanx style="verb">atom:author</spanx> element
is defined in <xref target="atom.object.author"></xref>.</t>
<t hangText="Object">The <xref target="activity.object">Object</xref>
of the Activity Construct is represented by the
<spanx style="verb">activity:object</spanx> child element of the entry,
as defined in <xref target="xml.object"></xref>.</t>
<t hangText="Target">The <xref target="activity.target">Target</xref>
of the Activity Construct is represented by the
<spanx style="verb">activity:target</spanx> child
element of the entry, as defined in <xref
target="xml.target"></xref>. If no such element is
present, the Activity Construct has no Target.</t>
<t hangText="Verb">The <xref target="activity.verb">verb
IRI</xref> of the Activity Construct is represented by an <spanx
style="verb">activity:verb</spanx> child element as defined in
<xref target="xml.verb"></xref>. If the entry has no
<spanx style="verb">activity:verb</spanx> child element, then
the Activity Construct has the "Post" verb as defined in
<xref target="post"></xref>.</t>
<t hangText="Time">The <xref target="activity.time">Time</xref>
of the Activity Construct is represented by the
<spanx style="verb">atom:published</spanx> child element of the
entry, as defined in section 4.2.9 of
<xref target="RFC4287"></xref>.</t>
<t hangText="Title">The <xref target="activity.title">Title</xref>
of the Activity Construct is represented by the
<spanx style="verb">atom:title</spanx> child element of the
entry, as defined in section 4.2.14 of
<xref target="RFC4287"></xref>. Consumers MUST convert the value
into HTML if necessary.</t>
<t hangText="Summary">The <xref target="activity.summary">Summary</xref>
of the Activity Construct is represented either by the
<spanx style="verb">atom:content</spanx> or <spanx style="verb">atom:summary</spanx> child element of the
entry, as defined in section 4.1.3 and section 4.2.13 of
<xref target="RFC4287"></xref> respectively. If <spanx style="verb">atom:summary</spanx> is present it MUST contain the summary of the Activity Construct. If <spanx style="verb">atom:summary</spanx> is not present then the <spanx style="verb">atom:content</spanx> element MUST contain the summary of the Activity Construct. Consumers MUST convert the value
into HTML if necessary.</t>
</list>
</t>
</section>
<section anchor="atom.activity.implied"
title="Implied Activity Shorthand">
<t>An implied activity shorthand entry represents an
Activity Construct in terms of its object. In this mode, the <spanx
style="verb">atom:entry</spanx> primarily represents the
Object Construct that is the object of the Activity Construct, but
also represents certain additional components of the Activity
Construct. In this section, "the entry" refers to the <spanx
style="verb">atom:entry</spanx> element.</t>
<t>The components of the Activity Construct are represented in an
Implied Activity Shorthand Entry as follows:</t>
<t><list style="hanging">
<t hangText="Actor">The <xref target="activity.actor">Actor</xref>
of the Activity Construct is represented by the
<spanx style="verb">atom:author</spanx> element that
applies to the entry, as defined by section 4.2.1 of <xref
target="RFC4287"></xref>. The representation of an Object
Construct as an <spanx style="verb">atom:author element</spanx>
is defined in <xref target="atom.object.author"></xref>.</t>
<t hangText="Object">The <xref
target="activity.object">Object</xref> of the Activity Construct
is represented by the entry itself. The representation of an
Object Construct as an <spanx style="verb">atom:entry</spanx>
element uses the child elements defined in <xref
target="atom.object.components"></xref>.</t>
<t hangText="Target">The Activity Construct does not have a
<xref target="activity.target">Target</xref>.</t>
<t hangText="Verb">The <xref target="activity.verb">verb
IRI</xref> of the Activity Construct is represented by an <spanx
style="verb">activity:verb</spanx> child element as defined in
<xref target="xml.verb"></xref>. If the entry has no
<spanx style="verb">activity:verb</spanx> child element, then
the Activity Construct has the "Post" verb as defined in
<xref target="post"></xref>.</t>
<t hangText="Time">The <xref target="activity.time">Time</xref>
of the Activity Construct is represented by the
<spanx style="verb">atom:published</spanx> child element of the
entry, as defined in section 4.2.9 of
<xref target="RFC4287"></xref>.</t>
<t hangText="Title">The Activity Construct does not have a <xref
target="activity.title">Title</xref>.</t>
<t hangText="Summary">The Activity Construct does not have a <xref
target="activity.summary">Summary</xref>.</t>
</list></t>
<t>The Implied Activity Shorthand is an accommodation to allow
activity metadata to be added to a feed that is
considered by traditional Atom consumers to be a list of content
objects rather than a list of activities, without changing the
meaning of that feed. Such feeds can often be recognized
by the fact that the <spanx style="verb">atom:title</spanx> element
of each entry is the title of an object rather than a sentence
describing an activity.</t>
</section>
</section>
<section anchor="atom.object" title="Object Representations">
<t><xref target="object">Object constructs</xref> are used to identify
a number of different components in an activity, including the <xref
target="activity.actor">Actor</xref> and <xref
target="activity.target">Object</xref> of an activity, among others.
Depending on what an object is used to identify, it is rendered in
Atom using a different root element, as defined in <xref
target="atom.object.elements"></xref>. The components of the object are
represented using child elements as defined in <xref
target="atom.object.components"></xref>.</t>
<section anchor="atom.object.elements"
title="Object Construct Representations">
<t>Object constructs can be represented using the following
elements:</t>
<t><list style="hanging">
<t hangText="atom:entry">When used to describe the object of an
Implied Activity as defined in <xref
target="atom.activity.implied"></xref>, an Object Construct is
represented using the <spanx style="verb">atom:entry</spanx>
element, using the elements defined in <xref
target="atom.object.components"></xref>.</t>
<t hangText="atom:author">When used to describe the <xref
target="activity.actor">Actor of an Activity Construct</xref>,
an Object Construct is represented using the <spanx
style="verb">atom:author</spanx> element, as defined in <xref
target="atom.object.author"></xref>.</t>
<t hangText="activity:object">When used to describe the <xref
target="activity.object">Object of an Activity Construct</xref>,
an Object Construct is represented using the <spanx
style="verb">activity:object</spanx> element as defined in <xref
target="xml.object"></xref>.</t>
<t hangText="activity:target">When used to describe the <xref
target="activity.target">Target of an Activity Construct</xref>,
an Object Construct is represented using the <spanx
style="verb">activity:target</spanx> element as defined in <xref
target="xml.target"></xref>.</t>
<t hangText="other elements">Other specifications or object
types may define additional elements that can be used to
represent objects.</t>
</list></t>
<t>The element used to represent the Object MAY have additional
attributes and child elements that represent properties defined by
the Object Type of the Object or by other extensions. These
extensions are defined by the Atom representation provided for the
Object Type or extension.</t>
</section>
<section anchor="atom.object.components"
title="Common Representation for Object Construct Components">
<t>Unless specified otherwise, the components of an Object Construct
are represented using child elements of the representative element
as follows, regardless of the type of element used to describe the
Object Construct:</t>
<t><list style="hanging">
<t hangText="ID">The <xref target="object.id">ID</xref> of the
Object Construct is represented using the <spanx style="verb">atom:id</spanx>
element, as defined in section 4.2.6 of <xref
target="RFC4287"></xref>.</t>
<t hangText="Name">The <xref target="object.name">name</xref> of
the Object Construct is represented using the <spanx
style="verb">atom:title</spanx> element, as defined in section
4.2.14 of <xref target="RFC4287"></xref>. Consumers MUST convert
the value into HTML if necessary.</t>
<t hangText="Summary">The <xref
target="object.summary">summary</xref> of the Object Construct
is represented using the <spanx style="verb">atom:summary</spanx>
element, as defined in section 4.2.13 of <xref
target="RFC4287"></xref>. Consumers MUST convert the value into
HTML if necessary.</t>
<t hangText="Representative Image">The <xref
target="object.image">representative image</xref> of the Object
Construct is represented by the first <spanx style="verb">atom:link</spanx>
element whose rel attribute value is "preview" and a whose type
attribute value is an image media type.</t>
<t hangText="Permalink URL">The <xref
target="object.url">permalink URL</xref> of the Object
Construct is represented by the href attribute of an <spanx
style="verb">atom:link</spanx> element, whose rel attribute
value is "alternate" and whose type attribute value is
"text/html".</t>
<t hangText="Object Type">The <xref
target="object.type">object type URL</xref> of the Object
Construct is represented by an <spanx style="verb">activity:object-type</spanx>
element as defined in <xref
target="xml.object-type"></xref>.</t>
</list></t>
</section>
<section anchor="atom.object.author"
title="Object represented as atom:author">
<t>When used to describe the <xref target="activity.actor">Actor of
an Activity</xref>, an Object Construct is represented using the
<spanx style="verb">atom:author</spanx> element (see section 4.2.1
of <xref target="RFC4287"></xref>). The components of the Object
Construct are represented using child elements as defined in <xref
target="atom.object.components"></xref>, with the following
exceptions:</t>
<t><list style="hanging">
<t hangText="Name">The name of the Object Construct is
represented using the <spanx style="verb">atom:name</spanx>
element, as defined in section 3.2.1 of <xref
target="RFC4287"></xref>.</t>
<t hangText="Permalink URL">The URL of the Object Construct is
represented by the href attribute of an <spanx style="verb">atom:link</spanx>
element, whose rel attribute value is "alternate" and a whose
type attribute value is "text/html". If no such <spanx
style="verb">atom:link</spanx> element is present, consumers
SHOULD accept the content of the <spanx style="verb">atom:uri</spanx>
element as representing the Object Permalink URL.</t>
</list></t>
</section>
</section>
</section>
<section anchor="rss" title="RSS 2.0 Representation">
<t>Activities can be represented in an RSS 2.0 document, as defined
by <xref target="RSS2"></xref>, using a combination of conventions and
custom extension elements. An activity is represented using an RSS
"item" element. The RSS serialization only supports a subset of the
activity data model allowing descriptions of simple activities that have
only a verb and an object. This serialization is optimized for posting
activities describing the creation of new objects. Publishers with a
need for representing other fields that are not catered for by this
serialization are recommended to use the Atom serialization instead for
best results. This RSS serialization is defined only as a means for
those already publishing streams of objects as RSS to produce minimally
useful lists of activities for activity-aware consumers.</t>
<t>A specific RSS document has a single activity actor that applies to
all activities it represents. This actor has no known id, name, url or
object type but it is assumed that all activities in the feed share the
same actor and therefore consumers MAY use information obtained from
another source, such as the user account which is assumed to be the
subject of the feed, to populate these properties.</t>
<section anchor="rss.activity"
title="Activity Construct Represented as RSS "item"">
<t>In this section, "the item" refers to the RSS "item" element which
is representing the activity.</t>
<t>An RSS "item" element represents exactly one Activity Construct in
terms of its object. The item actually directly represents both the
Object Construct that is the object of the Activity Construct and the
Activity Construct itself via different subsets of the child
elements.</t>
<t>The components of the Activity Construct are represented in an RSS
item as follows:</t>
<t><list style="hanging">
<t hangText="Actor">The <xref target="activity.actor">Actor</xref>
of the Activity Construct is the feed-wide actor as described in
<xref target="rss"></xref>.</t>
<t hangText="Object">The <xref
target="activity.object">Object</xref> of the Activity Construct
is represented by the item itself. The representation of an Object
Construct as an RSS item element is defined in <xref
target="rss.object"></xref>.</t>
<t hangText="Target">The Activity Construct does not have a <xref
target="activity.target">Target</xref>.</t>
<t hangText="Verb">The <xref target="activity.verb">verb
IRI</xref> of the Activity Construct is represented by an <spanx
style="verb">activity:verb</spanx> child element as defined in
<xref target="xml.verb"></xref>. If the item has no
<spanx style="verb">activity:verb</spanx> child elements then the
Activity Construct has only the "Post" verb as defined in <xref
target="post"></xref>.</t>
<t hangText="Time">The <xref target="activity.time">Time</xref> of
the Activity Construct is represented by the
<spanx style="verb">pubDate</spanx> child element of the item, as
defined in <xref target="RSS2"></xref>.</t>
<t hangText="Title">The Activity Construct does not have a <xref
target="activity.title">Title</xref>.</t>
<t hangText="Summary">The Activity Construct does not have a <xref
target="activity.summary">Summary</xref>.</t>
</list></t>
</section>
<section anchor="rss.object"
title="Object Construct Represented as RSS "item"">
<t>The components of an Object Construct are represented using child
elements of an RSS <spanx style="verb">item</spanx> element as
follows:</t>
<t><list style="hanging">
<t hangText="ID">The <xref target="object.id">ID</xref> of the
Object Construct is represented using the RSS <spanx style="verb">guid</spanx>
element, as defined in <xref target="RSS2"></xref>, if and only if
its value conforms to the syntax of an IRI as defined in <xref
target="RFC3987"></xref>. If the value is not a valid IRI then the
Object Construct has no ID.</t>
<t hangText="Name">The <xref target="object.name">name</xref> of
the Object Construct is represented using the RSS <spanx
style="verb">title</spanx> element, as defined in <xref
target="RSS2"></xref>.</t>
<t hangText="Summary">The Object Construct has no <xref
target="object.summary">summary</xref>.</t>
<t hangText="Representative Image">The <xref
target="object.image">representative image</xref> of the Object
Construct is represented by the href attribute of an <spanx
style="verb">atom:link</spanx> element, whose rel attribute value
is "preview" and a whose type attribute value is an appropriate
image media type.</t>
<t hangText="Permalink URL">The <xref
target="object.url">permalink URL</xref> of the Object
Construct is represented by the first RSS <spanx style="verb">link</spanx>
child element, as defined in <xref target="RSS2"></xref>. If no
such element is present, the value of the first <spanx
style="verb">guid</spanx> child element that is marked as a
permalink as defined in <xref target="RSS2"></xref> represents the
Permalink URL. If neither element is present, the Object Construct
has no Permalink URL.</t>
<t hangText="Object Type">Each <xref
target="object.type">object type URL</xref> of the Object
Construct is represented by an
<spanx style="verb">activity:object-type</spanx> element as defined
in <xref target="xml.object-type"></xref>.</t>
</list></t>
</section>
</section>
<section anchor="xml" title="Elements used in XML Representations">
<t>This specification defines several elements in the XML namespace
defined in <xref target="namespace"></xref>. These elements are used in
both the Atom and RSS serializations and may be used by other XML-based
serializations of the activity streams data model defined by other
specifications.</t>
<section anchor="xml.verb" title="The activity:verb Element">
<t>The <spanx style="verb">activity:verb</spanx> element represents the
Verb of an Activity Construct as defined in <xref
target="activity.verb"></xref>. Its content is an IRI reference that
identifies the verb.</t>
<section anchor="xml.verb.comparing"
title="Comparing activity:verb">
<t>The value of <spanx style="verb">activity:verb</spanx>
elements can be used to determine whether an Activity construct
contains a recognized verb. Processors MUST compare <spanx
style="verb">activity:verb</spanx> elements on a
character-by-character basis (in a case-sensitive fashion).
Comparison operations MUST be based solely on the IRI character
strings and MUST NOT rely on dereferencing the IRIs or URIs mapped
from them. As a result, two IRIs that resolve to the same resource
but are not character-for-character identical will be considered
different for the purposes of identifier comparison.</t>
<t>Processors SHOULD resolve relative IRIs to their absolute form
using the base <spanx
style="verb">http://activitystrea.ms/schema/1.0/</spanx> prior to
comparison. For example, processors SHOULD consider the following
IRIs as equivalent for the purpose of comparison:
<list style="symbols">
<t><spanx style="verb">http://activitystrea.ms/schema/1.0/post</spanx></t>
<t><spanx style="verb">post</spanx></t>
</list>
</t>
</section>
</section>
<section anchor="xml.object"
title="The activity:object Element">
<t>An <spanx style="verb">activity:object</spanx> element represents
the Object Construct that is the Object of an Activity Construct as
defined in <xref target="activity.object"></xref>.</t>
<t>The content model of an <spanx style="verb">activity:object</spanx>
element includes the elements indicated in <xref
target="atom.object.components"></xref>, with the meanings defined in that
section, as well as any extension elements defined by the Atom
serializations of the object type listed for the object.</t>
</section>
<section anchor="xml.object-type"
title="The activity:object-type Element">
<t>An <spanx style="verb">activity:object-type</spanx> element
represents the Object Type of an Object Construct as defined
in <xref target="object.type"></xref>. Its content is an IRI
reference that identifies the object type.</t>
<section anchor="xml.object-type.comparing"
title="Comparing activity:object-type">
<t>The value of <spanx style="verb">activity:object-type</spanx>
elements can be used to determine whether an Object construct is of a
recognized type. Processors MUST compare
<spanx style="verb">activity:object-type</spanx> elements using the
same comparison rules described in <xref
target="xml.verb.comparing"></xref>.</t>
</section>
</section>
<section anchor="xml.target"
title="The activity:target Element">
<t>An <spanx style="verb">activity:target</spanx> element represents
the Object Construct that is the Target of an Activity Construct as
defined in <xref target="activity.target"></xref>.</t>
<t>The content model of an <spanx style="verb">activity:target</spanx>
element includes the elements indicated in <xref
target="atom.object.components"></xref>, with the meanings defined in that
section, as well as any extension elements defined by the Atom
serializations of the object type listed for the object.</t>
</section>
</section>
<section anchor="post" title="The "Post" Verb">
<t>This specification defines one initial verb and defers to other
specifications to define the full schema of verbs and object types.</t>
<t>The "Post" verb describes the act of authoring an object and then
publishing it online. The IRI reference for the "Post" verb is:
<list>
<t><spanx style="verb">post</spanx></t>
</list>
</t>
<t>The actor of an Activity Construct using the "Post" verb is an Object
Construct representing the person or object that authored and posted the
item represented by the object of the Activity Construct.</t>
<t>The target of the Activity Construct, if present, represents the item
into which the object is posted. For example, this could represent a
blog that the author has posted in.</t>
</section>
<section anchor="security" title="Security Considerations">
<t>As this specification defines an extension to the Atom Syndication
Format, it is subject to the same security considerations defined in
<xref target="RFC4287"></xref>.</t>
<t>Publishers or Consumers implementing Activity Streams as a stream of
public data may also want to consider the potential for unsolicited
commercial or malicious content and should take preventative measures to
recognize such content and either identify it or not include it in their
stream implementations.</t>
<t>Publishers should take reasonable measures to make sure potentially
malicious user input such as cross-site scripting attacks are not
included in the Activity Streams data they publish.</t>
<t>Consumers that re-emit ingested content to end-users MUST take
reasonable measures if emitting ingested content to make sure
potentially malicious ingested input is not re-emitted.</t>
<t>Consumers that re-emit ingested content for crawling by search
engines should take reasonable measures to limit any use of their site
as a Search Engine Optimization loophole. This may include converting
un-trusted hyperlinks to text or including a rel="nofollow"
attribute.</t>
</section>
<section anchor="iana" title="IANA Considerations">
<t>None.</t>
</section>
<section anchor="license" title="License">
<t>As of [date], the following persons or entities have made this
Specification available under the Open Web Foundation Agreement Version
1.0, which is available at
<eref target="http://www.openwebfoundation.org/legal/" />.
<list>
<t>[List of persons or entities]</t>
</list>
</t>
<t>You can review the signed copies of the Open Web Foundation Agreement
Version 1.0 for this Specification at
<eref target="http://activitystrea.ms/licensing/" />, which may also
include additional parties to those listed above.</t>
<t>Your use of this Specification may be subject to other third party
rights. THIS SPECIFICATION IS PROVIDED “AS IS.” The contributors expressly
disclaim any warranties (express, implied, or otherwise), including
implied warranties of merchantability, non-infringement, fitness for a
particular purpose, or title, related to the Specification. The entire
risk as to implementing or otherwise using the Specification is assumed by
the Specification implementer and user. IN NO EVENT WILL ANY PARTY BE
LIABLE TO ANY OTHER PARTY FOR LOST PROFITS OR ANY FORM OF INDIRECT,
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER FROM ANY
CAUSES OF ACTION OF ANY KIND WITH RESPECT TO THIS SPECIFICATION OR ITS
GOVERNING AGREEMENT, WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING
NEGLIGENCE), OR OTHERWISE, AND WHETHER OR NOT THE OTHER PARTY HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</t>
</section>
</middle>
<back>
<references title="Normative References">
<reference anchor="RFC4287" target="http://tools.ietf.org/html/rfc4287">
<front>
<title>The Atom Syndication Format</title>
<author fullname="Mark Nottingham" initials="M."
surname="Nottingham">
<organization></organization>
</author>
<author fullname="Robert Sayre" initials="R." surname="Sayre">
<organization></organization>
</author>
<date month="December" year="2005" />
</front>
</reference>
<reference anchor="RFC2119" target="http://tools.ietf.org/html/rfc2119">
<front>
<title>Key words for use in RFCs to Indicate Requirement
Levels</title>
<author fullname="Scott Bradner" initials="S." surname="Bradner">
<organization></organization>
</author>
<date month="March" year="1997" />
</front>
</reference>
<reference anchor="RFC3986" target="http://tools.ietf.org/html/rfc3986">
<front>
<title>Uniform Resource Identifiers (URI): Generic Syntax</title>
<author fullname="Tim Berners-Lee" initials="T."
surname="Berners-Lee">
<organization></organization>
</author>
<author fullname="Roy Fielding" initials="R." surname="Fielding">
<organization></organization>
</author>
<author fullname="Larry Masinter" initials="L." surname="Masinter">
<organization></organization>
</author>
<date month="January" year="2005" />
</front>
</reference>
<reference anchor="RFC3987" target="http://tools.ietf.org/html/rfc3987">
<front>
<title>Internationalized Resource Identifiers (IRIs)</title>
<author fullname="Martin Duerst" initials="M." surname="Duerst">
<organization></organization>
</author>
<author fullname="Michel Suignard" initials="M." surname="Suignard">
<organization></organization>
</author>
<date month="January" year="2005" />
</front>
</reference>
<reference anchor="RSS2" target="http://www.rssboard.org/rss-2-0-11">
<front>
<title>RSS 2.0 Specification</title>
<author fullname="RSS Advisory Board">
<organization></organization>
</author>
<date day="30" month="March" year="2009" />
</front>
</reference>
<reference anchor="xml-names" target="http://www.w3.org/TR/REC-xml-names/">
<front>
<title>Namespaces in XML 1.0 (Third Edition)</title>
<author fullname="Tim Bray" initials="T." surname="Bray">
<organization></organization>
</author>
<date day="8" month="December" year="2009" />
</front>
</reference>
<reference anchor="xml-infoset" target="http://www.w3.org/TR/xml-infoset/">
<front>
<title>XML Information Set (Second Edition)</title>
<author fullname="John Cowan" initials="J." surname="Cowan">
<organization></organization>
</author>
<date day="4" month="February" year="2004" />
</front>
</reference>
</references>
<section anchor="acknowledgements" title="Acknowledgements">
<t>The authors wish to thank the Activity Streams community and
implementers for their support, encouragement, and enthusiasm including
but not limited to: Abdul Qabiz, Adina Levin, Adrian Chan, Adriana Javier,
Alexandre Loureiro Solleiro, Ari Steinberg, Arne Roomann-Kurrik, Beau
Lebens, Ben Hedrington, Ben Metcalfe, Ben Werdmuller, Bill de hÓra, Bob
Aman, Bob Wyman, Brynn Evans, Charlie Cauthen, Chris Chabot, Christian
Crumlish, Dan Brickley, Danny Ayers, Dare Obasanjo, Darren Bounds, David
Cramer, David Recordon, DeWitt Clinton, Douglas Pearce, Ed Summers, Elias
Bizannes, Elisabeth Norris, Eric Woods, Evan Prodromou, Gee-Hsien Chuang,
Greg Biggers, Hillary Madsen, Howard Liptzin, Ian Kennedy, Ivan Pulleyn,
Jacob Kim, James Falkner, James Walker, Jason Kahn, Jeff Kunins, Jian Lin,
John Panzer, Jon Paul Davies, Jonathan Coffman, Jonathan Dugan, Joseph
Boyle, Joseph Hosten, Joseph Smarr, Jud Valeski, Julien Genestoux, Jyri
Engeström, Kaliya Hamlin, Kevin Marks, Laurent Eschenauer, Manu Mukerji,
Mark Weitzel, Marshall Kirkpatrick, Mary Hoder, Matt Leventi, Matt
Wilkinson, Matthias Muller-Prove, Max Engel, Melvin Carvalho, Michael
Richardson, Nate Benes, NeilFred Picciotto, Nick Lothian, Nissan Dookeran,
Nitya Narasimhan, Pablo Martin, Pat G. Cappalaere, Peter Ferne, Peter
Reiser, Peter Saint-Andre, Phil Wolff, Philip (flip) Kromer, Rick Severson,
Robert Langbert, Todd Barnard, Ryan Boyd, Sam Sethi, Scott Raymond, Scott
Seely, Simon Grant, Simon Wistow, Stephen Garcia, Steve Ivy, Steven
Livingstone-Perez, Sylvain Carle, Sylvain Hellegouarch, Tantek Celik, Tatu
Saloranta, Tim Moore, Timothy Young, Todd Barnard, Tosh Meston, and Tyler
Gillies.</t>
</section>
<section anchor="examples" title="Examples">
<t>This appendix is non-normative.</t>
<section anchor="examples.full" title="Full Activity Entry Examples">
<figure anchor="examples.full.simple">
<preamble>A typical activity entry:</preamble>
<artwork><![CDATA[
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/">
<id>tag:photopanic.example.com,2009:activity/4859/4352</id>
<title>Geraldine posted a Photo on PhotoPanic</title>
<published>2009-11-02T15:29:00Z</published>
<link rel="alternate" type="text/html" href="http://example.com/geraldine/activities/4352" />
<activity:verb>post</activity:verb>
<activity:object>
<id>tag:photopanic.example.com,2009:photo/4352</id>
<title>My Cat</title>
<published>2009-11-02T15:29:00Z</published>
<link rel="alternate" type="text/html" href="http://example.com/geraldine/photos/4352" />
<activity:object-type>photo</activity:object-type>
</activity:object>
<content type="html">
<p>Geraldine posted a Photo on PhotoPanic</p>
<img src="/geraldine/photos/4352.jpg">
</content>
</entry>
]]></artwork>
<postamble>This example shows a typical activity entry using the
post verb defined by this specification and a hypothetical "photo"
object type. It also demonstrates the use of
<spanx style="verb">atom:title</spanx> and
<spanx style="verb">atom:content</spanx> to provide fallback content
for feed processors that do not support activity extensions. An
activity stream application might render this entry into the sentence
"Geraldine posted a photo titled 'My Cat'", with the photo title
presented as a link.</postamble>
</figure>
<figure anchor="examples.full.complex">
<preamble>A slightly more complex activity entry:</preamble>
<artwork><![CDATA[
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/">
<id>tag:photopanic.example.com,2009:/activity/4859/1643</id>
<title>Geraldine posted a photo to the My Pets album.</title>
<published>2010-06-21T00:28:35Z</published>
<link rel="alternate" type="text/html" href="http://example.com/geraldine/activities/1643" />
<author>
<name>Geraldine</name>
<uri>http://example.com/geraldine</uri>
<id>tag:photopanic.example.com,2009:person/4859</id>
<activity:object-type>person</activity:object-type>
<link rel="alternate" type="text/html" href="http://example.com/geraldine" />
</author>
<activity:object>
<id>tag:photopanic.example.com,2009:photo/1643</id>
<title>My Cat</title>
<link rel="alternate" type="text/html" href="/geraldine/photos/1643" />
<link rel="preview" type="image/jpeg" href="/geraldine/photos/1643/thumb.jpg" />
<link rel="enclosure" type="image/jpeg" href="/geraldine/photos/1643/full.jpg" />
<activity:object-type>photo</activity:object-type>
</activity:object>