forked from activitystreams/atom-activity
-
Notifications
You must be signed in to change notification settings - Fork 1
/
atom-activity.xml
1054 lines (885 loc) · 48.7 KB
/
atom-activity.xml
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="US-ASCII"?>
<?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 category="exp" docName="atom-activity-01" ipr="none">
<front>
<title abbrev="AtomActivity">Atom Activity Extensions (Draft)</title>
<author fullname="Martin Atkins" initials="M." surname="Atkins">
<organization>Six Apart</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 Keller" initials="M." surname="Keller">
<organization>MySpace, Facebook, Socialcast</organization>
</author>
<author fullname="Rob Dolin" initials="R." surname="Dolin">
<organization>Microsoft</organization>
</author>
<date month="March" year="2010" />
<abstract>
<t>This document presents an extension that allows activities on social
objects to be expressed within the Atom Syndication Format.</t>
</abstract>
<note title="Requirements Language">
<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>
</note>
</front>
<middle>
<section 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>
<section title="Notational Conventions">
<t>This document refers to elements in a number of XML namespaces as
defined in <xref target="xml-names"></xref>. For brevity, these elements
shall be referred to using prefixes rather than their full namespace
URIs. The aliases used within this document are listed in the following
table. The choices of namespace prefix are arbitrary and are not
semantically significant.</t>
<texttable>
<ttcol>Alias</ttcol>
<ttcol>Namespace URI</ttcol>
<ttcol>Specification</ttcol>
<c><spanx style="verb">atom:</spanx></c>
<c><spanx style="verb">http://www.w3.org/2005/Atom</spanx></c>
<c><xref target="RFC4287">The Atom Syndication Format</xref></c>
<c><spanx style="verb">thr:</spanx></c>
<c><spanx style="verb">http://purl.org/syndication/thread/1.0</spanx></c>
<c><xref target="RFC4685">Atom Threading Extensions</xref></c>
<c><spanx style="verb">activity:</spanx></c>
<c><spanx style="verb">http://activitystrea.ms/spec/1.0/</spanx></c>
<c>Atom Activity Extensions</c>
<c><spanx style="verb">media:</spanx></c>
<c><spanx style="verb">http://purl.org/syndication/atommedia</spanx></c>
<c>Atom Media Extensions</c>
</texttable>
<t>This specification uses a shorthand form of terms from the XML
Infoset <xref target="xml-infoset"></xref>. The phrase "Information
Item" is omitted when naming element and attribute information items.
Therefore, when this specification uses the term "element," it is
referring to an element information item in infoset terms. Likewise,
when this specification uses the term "attribute," it is referring 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 "the Atom specification" to refer to <xref
target="RFC4287"></xref>.</t>
</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>A URI value that identifies the action of the activity. This URI
MUST be an absolute URI, or a URI relative to the base URI 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 none of the provided verbs are 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 a natural language describing this
activity including visual elements such as thumbnails. Consumers MAY
use the value of this field, if set, as a fallback for when none of
the provided verbs are recognized. 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 absolute URI that uniquely
identifies the object. An Object construct SHOULD have exactly one
ID value. If an object construct does not have an ID value consumers
MAY use the <xref target="object.permalink">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 URI value 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.permalink" title="Permalink URL">
<t>This URI value 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.object-type" title="Object Type">
<t>A URI value that identifies the type of object. This URI
MUST be an absolute URI, or a URI relative to the base URI 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 title="Atom Representation">
<t>Activities can be represented in an Atom document using a combination
of conventions and custom extension elements. Activities are represented
using atom:entry elements but may exist in one of two forms, an Activity
Entry or an Object Entry.</t>
<section anchor="activityasentry"
title="Activity represented as atom:entry">
<t>Any valid Atom entry as defined by section 4.1.2 of <xref
target="RFC4287"></xref> is a representation of one or more activities
as defined in <xref target="activity"></xref>.</t>
<t>If the atom:entry contains at least one activity:object element
then it is a Full Activity Entry and MUST be interpreted as described
in <xref target="fullactivityentry"></xref>. Otherwise the entry is an
Implied Activity Shorthand Entry and MUST be interpreted as described
in <xref target="impliedactivityentry"></xref>.</t>
<t>Although there is not a one-to-one mapping between an Atom entry
and an activity, consumers SHOULD retain the value of the atom:id
element from which each activity was produced such that these
activities can be identified should an entry be referred to by another
Atom feature which is not aware of the activity streams data model
defined in this specification. This id is not unique across all
activities and has no semantic significance for Activity Streams
processing.</t>
<section anchor="fullactivityentry" title="Full Activity Entry">
<t>A Full Activity Entry represents a selection of one or more
Activity Constructs which have differing Objects but all share the
same values for the other Activity Construct properties. An activity
is produced for each <spanx style="verb">activity:object</spanx>
child element of the Full Activity Entry. In this section, "the
entry" shall refer to the <spanx style="verb">atom:entry</spanx>
element that is a Full Activity Entry.</t>
<t>The components of the Activity Constructs 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 each of the Activity
Constructs is represented by the atom:author 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 atom:author element is defined in <xref
target="object-as-author"></xref>.</t>
<t hangText="Object">Each <spanx style="verb">activity:object</spanx>
child element of the entry, as defined in <xref
target="xml.activity.object"></xref>, represents the <xref
target="activity.object">Object</xref> of its respective
Activity Construct.</t>
<t hangText="Target">The <xref
target="activity.target">Target</xref> of each of the Activity
Constructs is represented by the first activity:target child
element of the entry, as defined in <xref
target="xml.activity.target"></xref>. If no such element is
present, the Activity Constructs have no Target.</t>
<t hangText="Verb">Each <xref target="activity.verb">verb
URI</xref> of the Activity Construct is represented by an <spanx
style="verb">activity:verb</spanx> child element as defined in
<xref target="xml.activity.verb"></xref>.</t>
<t hangText="Time">The <xref target="activity.time">Time</xref>
of each of the Activity Constructs is represented by the
atom:published child element of the entry, as defined in section
4.2.9 of <xref target="RFC4287"></xref>.</t>
<t hangText="Title">If the entry has exactly one <spanx
style="verb">activity:object</spanx> child element, the the
<xref target="activity.title">Title</xref> of each of the single
Activity Construct represented by the entry is represented by
the <spanx style="verb">atom:title</spanx> child element as
defined in section 3.2.1 of <xref target="RFC4287"></xref>. If
there are multiple <spanx style="verb">activity:object</spanx>
child elements then this property is not set for any of the
Activity Constructs represented by the entry.</t>
<t hangText="Summary">If the entry has exactly one <spanx
style="verb">activity:object</spanx> child element, the the
<xref target="activity.summary">Summary</xref> of each of the single
Activity Construct represented by the entry is represented by
the <spanx style="verb">atom:content</spanx> child element as
defined in section 4.1.3 of <xref target="RFC4287"></xref>. If
there are multiple <spanx style="verb">activity:object</spanx>
child elements then this property is not set for any of the
Activity Constructs represented by the entry.</t>
</list></t>
<t>The set of activities represented by a full activity entry is the
set of activities created by combining the Object Construct
represented by each <spanx style="verb">activity:object</spanx>
element with the other common properties.</t>
<t>For entries that have multiple <spanx style="verb">activity:object</spanx>
child elements, publishers SHOULD also include in the entry <spanx
style="verb">atom:title</spanx>. <spanx style="verb">atom:content</spanx>
and <spanx style="verb">atom:link</spanx> elements that describe the
entire set of activities represented by the entry in a form that is
suitable for consumption by an Atom processor that does not accept
the Activity Streams extensions. These elements have no meaning for
activity streams processing.</t>
</section>
<section anchor="impliedactivityentry"
title="Implied Activity Shorthand">
<t>An implied activity shorthand entry represents exactly one
Activity Construct in terms of its object. In this mode, the <spanx
style="verb">atom:entry</spanx> actually directly represents the
Object Construct that is the object of the Activity Construct but
also represents the Activity Construct itself via additional
elements. 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 atom:author 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 atom:author element is defined in <xref
target="object-as-author"></xref>.</t>
<t hangText="Object">The <xref
target="activity.object">Object</xref> ofthe Activity Construct
is represented by the entry itself. The representation of an
Object Construct as an atom:entry element uses the child
elements defined in <xref
target="object-components"></xref>.</t>
<t hangText="Target">The Activity Construct does not have a
<xref target="activity.target">Target</xref>.</t>
<t hangText="Verb">Each <xref target="activity.verb">verb
URI</xref> of the Activity Construct is represented by an <spanx
style="verb">activity:verb</spanx> child element as defined in
<xref target="xml.activity.verb"></xref>. If the entry 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-verb"></xref>.</t>
<t hangText="Time">The <xref target="activity.time">Time</xref>
of each of the Activity Constructs is represented by the
atom:published 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 streams annotations 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 humans
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 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="object-element"></xref>. The components of the object are
represented using child elements as defined in <xref
target="object-components"></xref>.</t>
<section anchor="object-element"
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="impliedactivityentry"></xref>, an Object Construct is
represented using the <spanx style="verb">atom:entry</spanx>
element, using the elements defined in <xref
target="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="object-as-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.activity.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.activity.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 Types 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="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
3.2.1 of <xref target="RFC4287"></xref>.</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>).</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.permalink">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">Each <xref
target="object.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.activity.object-type"></xref>.</t>
</list></t>
</section>
<section anchor="object-as-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="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="rss2representation" title="RSS 2.0 Representation">
<t>Activities can be represented in an RSS 2.0.11 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 list 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="rss2representation"></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">Each <xref target="activity.verb">verb
URI</xref> of the Activity Construct is represented by an <spanx
style="verb">activity:verb</spanx> child element as defined in
<xref target="xml.activity.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-verb"></xref>.</t>
<t hangText="Time">The <xref target="activity.time">Time</xref> of
each of the Activity Constructs is represented by the pubDate
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.permalink">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.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.activity.object-type"></xref>.</t>
</list></t>
</section>
</section>
<section title="Elements used in XML Representations">
<t>This specification defines several extension elements in the XML
namespace <spanx style="verb">http://activitystrea.ms/spec/1.0/</spanx>.
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.activity.object-type"
title="The activity:object-type Element">
<t>An <spanx style="verb">activity:object-type</spanx> element
represents one of the Object Types of an Object Construct as defined
in <xref target="object.object-type"></xref>. Its content is an IRI
that identifies the object type.</t>
</section>
<section anchor="xml.activity.verb" title="The activity:verb Element">
<t>An <spanx style="verb">activity:verb</spanx> element represents one
of the Verbs of an Activity Construct as defined in <xref
target="activity.verb"></xref>. Its content is an IRI that identifies
the verb.</t>
</section>
<section anchor="xml.activity.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="object-components"></xref>, with the meanings defined in that
section, as well as any extension elements defined by the Atom
serializations of the object types listed for the object.</t>
</section>
<section anchor="xml.activity.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="object-components"></xref>, with the meanings defined in that
section, as well as any extension elements defined by the Atom
serializations of the object types listed for the object.</t>
</section>
</section>
<section anchor="post-verb" title="The "Post" Verb">
<t>This specificiation defines one initial verb and defers to other
specifications to define the full schema of verb and object types.</t>
<t>The "Post" verb describes the act of authoring an object and then
publishing it online. The verb URI for the "Post" verb is <spanx
style="verb">http://activitystrea.ms/schema/1.0/post</spanx>.</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>
<t>It is not appropriate to use the target of the Activity Construct to
represent an Object Construct that this new Object Construct is posted
in reply to. Instead, this SHOULD be represented as the In Reply To
Object component of the new object.</t>
</section>
<section 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 title="IANA Considerations">
<t>None.</t>
</section>
</middle>
<back>
<references title="Normative References">
<reference anchor="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="RFC4685">
<front>
<title>Atom Threading Extensions</title>
<author fullname="James Snell" initials="J." surname="Snell">
<organization></organization>
</author>
<date month="September" year="2006" />
</front>
</reference>
<reference anchor="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">
<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">
<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="RFC3339">
<front>
<title>Date and Time on the Internet: Timestamps</title>
<author fullname="Graham Klyne" initials="G." surname="Klyne">
<organization></organization>
</author>
<date month="July" year="2002" />
</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">
<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">
<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 title="Acknowledgements">
<t>...</t>
</section>
<section title="Examples">
<t>This appendix is non-normative. Where these examples include
fragments of XML documents, assume the namespace declarations <spanx
style="verb">xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/"</spanx>
are in scope.</t>
<section anchor="activityentryexample" title="Activity Entry Examples">
<figure anchor="activityentrysimple">
<preamble>A typical activity entry</preamble>
<artwork><![CDATA[<entry>
<id>tag:photopanic.example.com,2008:activity01</id>
<title>Geraldine posted a Photo on PhotoPanic</title>
<published>2008-11-02T15:29:00Z</published>
<link rel="alternate" type="text/html"
href="http://example.com/geraldine/activities/1" />
<activity:verb>
http://activitystrea.ms/schema/1.0/post
</activity:verb>
<activity:object>
<id>tag:photopanic.example.com,2008:photo01</id>
<title>My Cat</title>
<published>2008-11-02T15:29:00Z</published>
<link rel="alternate" type="text/html"
href="http://example.com/geraldine/photos/1" />
<activity:object-type>
tag:atomactivity.example.com,2008:photo
</activity:object-type>
<source>
<title>Geraldine's Photos</title>
<link rel="self" type="application/atom+xml"
href="http://example.com/geraldine/photofeed.xml" />
<link rel="alternate" type="text/html"
href="http://example.com/geraldine/" />
</source>
</activity:object>
<content type="html">
<p>Geraldine posted a Photo on PhotoPanic</p>
<img src="/geraldine/photo1.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 atom:title and
atom:content 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' in Geraldine's Photos", with the photo title and the
source feed title presented as links.</postamble>
</figure>
<figure anchor="activityentrycomplex">
<artwork><![CDATA[<entry>
<id>tag:photopanic.example.com,2009:/activity/4859568/PhotoAdd/2519358/2009171</id>
<title type="text">Geraldine added two new photos to the My Pets album.</title>
<published>2009-06-21T00:28:35Z</published>
<author>
<name>Geraldine</name>
<uri>http://example.com/geraldine</uri>
<id>tag:photopanic.example.com,2009:/Person/4859568</id>
<activity:object-type>
http://activitystrea.ms/schema/1.0/person
</activity:object-type>
<link rel="alternate" type="text/html"
href="http://example.com/geraldine" />
</author>
<link rel="alternate" type="text/html"
href="http://example.com/geraldine/activities/1234" />
<content type="xhtml">...</content>
<activity:target>
<activity:object-type>http://activitystrea.ms/schema/1.0/photo-album</activity:object-type>
<id>tag:photopanic.example.com,2009:/Photo_Album/2519358</id>
<title>My Pets</title>
<link rel="alternate" type="text/html"
href="/geraldine/albums/pets" />
</activity:target>
<activity:object>
<activity:object-type>http://activitystrea.ms/schema/1.0/photo</activity:object-type>
<activity:object-type>http://activitystrea.ms/schema/1.0/image</activity:object-type>
<id>tag:photopanic.example.com,2009:/Photo/2519358/60764840</id>
<title>My Cat</title>
<link rel="alternate" type="text/html"
href="/geraldine/photos/1643" />
<link rel="preview" type="image/jpeg"