-
Notifications
You must be signed in to change notification settings - Fork 8
/
note-20171225.html
1539 lines (1245 loc) · 103 KB
/
note-20171225.html
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
<!DOCTYPE html><html dir="ltr" typeof="bibo:Document " prefix="bibo: http://purl.org/ontology/bibo/ w3p: http://www.w3.org/2001/02pd/rec54#" lang="en"><head><meta charset="utf-8"><meta name="generator" content="ReSpec 19.0.1"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><style>/* --- EXAMPLES --- */
div.example-title {
min-width: 7.5em;
color: #b9ab2d;
}
div.example-title span {
text-transform: uppercase;
}
aside.example, div.example, div.illegal-example {
padding: 0.5em;
margin: 1em 0;
position: relative;
clear: both;
}
div.illegal-example { color: red }
div.illegal-example p { color: black }
aside.example, div.example {
padding: .5em;
border-left-width: .5em;
border-left-style: solid;
border-color: #e0cb52;
background: #fcfaee;
}
aside.example div.example {
border-left-width: .1em;
border-color: #999;
background: #fff;
}
aside.example div.example div.example-title {
color: #999;
}
</style><style>/* --- ISSUES/NOTES --- */
div.issue-title, div.note-title , div.ednote-title, div.warning-title {
padding-right: 1em;
min-width: 7.5em;
color: #b9ab2d;
}
div.issue-title { color: #e05252; }
div.note-title, div.ednote-title { color: #2b2; }
div.warning-title { color: #f22; }
div.issue-title span, div.note-title span, div.ednote-title span, div.warning-title span {
text-transform: uppercase;
}
div.note, div.issue, div.ednote, div.warning {
margin-top: 1em;
margin-bottom: 1em;
}
.note > p:first-child, .ednote > p:first-child, .issue > p:first-child, .warning > p:first-child { margin-top: 0 }
.issue, .note, .ednote, .warning {
padding: .5em;
border-left-width: .5em;
border-left-style: solid;
}
div.issue, div.note , div.ednote, div.warning {
padding: 1em 1.2em 0.5em;
margin: 1em 0;
position: relative;
clear: both;
}
span.note, span.ednote, span.issue, span.warning { padding: .1em .5em .15em; }
.issue {
border-color: #e05252;
background: #fbe9e9;
}
.note, .ednote {
border-color: #52e052;
background: #e9fbe9;
}
.warning {
border-color: #f11;
border-width: .2em;
border-style: solid;
background: #fbe9e9;
}
.warning-title:before{
content: "⚠"; /*U+26A0 WARNING SIGN*/
font-size: 3em;
float: left;
height: 100%;
padding-right: .3em;
vertical-align: top;
margin-top: -0.5em;
}
li.task-list-item {
list-style: none;
}
input.task-list-item-checkbox {
margin: 0 0.35em 0.25em -1.6em;
vertical-align: middle;
}
</style><meta property="dc:language" content="en" lang="">
<title>Social Web Protocols</title>
<style>/*****************************************************************
* ReSpec 3 CSS
* Robin Berjon - http://berjon.com/
*****************************************************************/
/* --- INLINES --- */
em.rfc2119 {
text-transform: lowercase;
font-variant: small-caps;
font-style: normal;
color: #900;
}
h1 acronym, h2 acronym, h3 acronym, h4 acronym, h5 acronym, h6 acronym, a acronym,
h1 abbr, h2 abbr, h3 abbr, h4 abbr, h5 abbr, h6 abbr, a abbr {
border: none;
}
dfn {
font-weight: bold;
}
a.internalDFN {
color: inherit;
border-bottom: 1px solid #99c;
text-decoration: none;
}
a.externalDFN {
color: inherit;
border-bottom: 1px dotted #ccc;
text-decoration: none;
}
a.bibref {
text-decoration: none;
}
cite .bibref {
font-style: normal;
}
code {
color: #C83500;
}
/* --- TOC --- */
.toc a, .tof a {
text-decoration: none;
}
a .secno, a .figno {
color: #000;
}
ul.tof, ol.tof {
list-style: none outside none;
}
.caption {
margin-top: 0.5em;
font-style: italic;
}
/* --- TABLE --- */
table.simple {
border-spacing: 0;
border-collapse: collapse;
border-bottom: 3px solid #005a9c;
}
.simple th {
background: #005a9c;
color: #fff;
padding: 3px 5px;
text-align: left;
}
.simple th[scope="row"] {
background: inherit;
color: inherit;
border-top: 1px solid #ddd;
}
.simple td {
padding: 3px 10px;
border-top: 1px solid #ddd;
}
.simple tr:nth-child(even) {
background: #f0f6ff;
}
/* --- DL --- */
.section dd > p:first-child {
margin-top: 0;
}
.section dd > p:last-child {
margin-bottom: 0;
}
.section dd {
margin-bottom: 1em;
}
.section dl.attrs dd, .section dl.eldef dd {
margin-bottom: 0;
}
@media print {
.removeOnSave {
display: none;
}
}
</style><style>/* --- EXAMPLES --- */
div.example-title {
min-width: 7.5em;
color: #b9ab2d;
}
div.example-title span {
text-transform: uppercase;
}
aside.example, div.example, div.illegal-example {
padding: 0.5em;
margin: 1em 0;
position: relative;
clear: both;
}
div.illegal-example { color: red }
div.illegal-example p { color: black }
aside.example, div.example {
padding: .5em;
border-left-width: .5em;
border-left-style: solid;
border-color: #e0cb52;
background: #fcfaee;
}
aside.example div.example {
border-left-width: .1em;
border-color: #999;
background: #fff;
}
aside.example div.example div.example-title {
color: #999;
}
table.th90 th {
height: 140px;
white-space: nowrap;
transform:
rotate(-90deg);
max-width: 4em;
}
table.th90 th, table.th90 td {
text-align: center;
}
</style><!--[if lt IE 9]><script src='https://www.w3.org/2008/site/js/html5shiv.js'></script><![endif]-->
<style id="respec-mainstyle">/*****************************************************************
* ReSpec 3 CSS
* Robin Berjon - http://berjon.com/
*****************************************************************/
/* Override code highlighter background */
.hljs {
background: transparent !important;
}
/* --- INLINES --- */
h1 abbr,
h2 abbr,
h3 abbr,
h4 abbr,
h5 abbr,
h6 abbr,
a abbr {
border: none;
}
dfn {
font-weight: bold;
}
a.internalDFN {
color: inherit;
border-bottom: 1px solid #99c;
text-decoration: none;
}
a.externalDFN {
color: inherit;
border-bottom: 1px dotted #ccc;
text-decoration: none;
}
a.bibref {
text-decoration: none;
}
cite .bibref {
font-style: normal;
}
code {
color: #c83500;
}
th code {
color: inherit;
}
/* --- TOC --- */
.toc a,
.tof a {
text-decoration: none;
}
a .secno,
a .figno {
color: #000;
}
ul.tof,
ol.tof {
list-style: none outside none;
}
.caption {
margin-top: 0.5em;
font-style: italic;
}
/* --- TABLE --- */
table.simple {
border-spacing: 0;
border-collapse: collapse;
border-bottom: 3px solid #005a9c;
}
.simple th {
background: #005a9c;
color: #fff;
padding: 3px 5px;
text-align: left;
}
.simple th[scope="row"] {
background: inherit;
color: inherit;
border-top: 1px solid #ddd;
}
.simple td {
padding: 3px 10px;
border-top: 1px solid #ddd;
}
.simple tr:nth-child(even) {
background: #f0f6ff;
}
/* --- DL --- */
.section dd > p:first-child {
margin-top: 0;
}
.section dd > p:last-child {
margin-bottom: 0;
}
.section dd {
margin-bottom: 1em;
}
.section dl.attrs dd,
.section dl.eldef dd {
margin-bottom: 0;
}
#issue-summary > ul,
.respec-dfn-list {
column-count: 2;
}
#issue-summary li,
.respec-dfn-list li {
list-style: none;
}
details.respec-tests-details {
margin-left: 1em;
display: inline-block;
vertical-align: top;
}
details.respec-tests-details > * {
padding-right: 2em;
}
details.respec-tests-details[open] {
z-index: 999999;
position: absolute;
border: thin solid #cad3e2;
border-radius: .3em;
background-color: white;
padding-bottom: .5em;
}
details.respec-tests-details[open] > summary {
border-bottom: thin solid #cad3e2;
padding-left: 1em;
margin-bottom: 1em;
line-height: 2em;
}
details.respec-tests-details > ul {
width: 100%;
margin-top: -0.3em;
}
details.respec-tests-details > li {
padding-left: 1em;
}
@media print {
.removeOnSave {
display: none;
}
}
</style><style>/*
github.com style (c) Vasily Polovnyov <[email protected]>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
color: #333;
background: #f8f8f8;
}
.hljs-comment,
.hljs-quote {
color: #998;
font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
color: #333;
font-weight: bold;
}
.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
color: #008080;
}
.hljs-string,
.hljs-doctag {
color: #d14;
}
.hljs-title,
.hljs-section,
.hljs-selector-id {
color: #900;
font-weight: bold;
}
.hljs-subst {
font-weight: normal;
}
.hljs-type,
.hljs-class .hljs-title {
color: #458;
font-weight: bold;
}
.hljs-tag,
.hljs-name,
.hljs-attribute {
color: #000080;
font-weight: normal;
}
.hljs-regexp,
.hljs-link {
color: #009926;
}
.hljs-symbol,
.hljs-bullet {
color: #990073;
}
.hljs-built_in,
.hljs-builtin-name {
color: #0086b3;
}
.hljs-meta {
color: #999;
font-weight: bold;
}
.hljs-deletion {
background: #fdd;
}
.hljs-addition {
background: #dfd;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}
</style><link rel="stylesheet" type="text/css" href="https://www.w3.org/StyleSheets/TR/2016/W3C-WG-NOTE"/><link rel="canonical" href="https://www.w3.org/TR/social-web-protocols/"><script id="initialUserConfig" type="application/json">{
"specStatus": "NOTE",
"shortName": "social-web-protocols",
"otherLinks": [
{
"key": "Repository",
"data": [
{
"value": "Git repository",
"href": "https://github.com/w3c-social/social-web-protocols"
},
{
"value": "Issues",
"href": "https://github.com/w3c-social/social-web-protocols/issues"
},
{
"value": "Commits",
"href": "https://github.com/w3c-social/social-web-protocols/gh-pages"
}
]
}
],
"editors": [
{
"name": "Amy Guy",
"url": "http://rhiaro.co.uk/",
"company": "University of Edinburgh",
"companyURL": "http://inf.ed.ac.uk/",
"mailto": "[email protected]",
"w3cid": "69000"
}
],
"previousMaturity": "WD",
"previousPublishDate": "2017-05-04",
"edDraftURI": "https://w3c-social.github.io/social-web-protocols",
"wg": "Social Web Working Group",
"wgURI": "https://www.w3.org/Social/WG",
"wgPublicList": "public-socialweb",
"wgPatentURI": "https://www.w3.org/2004/01/pp-impl/72531/status",
"localBiblio": {
"AS1": {
"title": "JSON Activity Streams 1.0.",
"href": "http://activitystrea.ms/specs/json/1.0/",
"authors": [
"J. Snell",
"M. Atkins",
"W. Norris",
"C. Messina",
"M. Wilkinson",
"R. Dolin"
],
"status": "Unofficial",
"publisher": "http://activitystrea.ms"
},
"microformats2": {
"title": "Microformats2",
"href": "https://microformats.org/wiki/microformats2",
"authors": [
"Tantek Çelik"
],
"status": "Living specification",
"publisher": "https://microformats.org"
},
"IndieAuth": {
"title": "IndieAuth",
"href": "https://www.w3.org/TR/indieauth",
"authors": [
"Aaron Parecki"
],
"status": "Note",
"publisher": "W3C"
},
"Accept-Post": {
"title": "The Accept-Post HTTP Header.",
"href": "http://tools.ietf.org/html/draft-wilde-accept-post",
"authors": [
"J. Arwe",
"S. Speicher",
"E. Wilde"
],
"status": "Internet Draft",
"publisher": "IETF"
}
},
"publishISODate": "2017-12-25T00:00:00.000Z",
"generatedSubtitle": "Working Group Note 25 December 2017"
}</script></head>
<body aria-busy="false" class="h-entry"><div class="head">
<p>
<a class="logo" href="https://www.w3.org/"><img src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" alt="W3C" width="72" height="48"></a>
</p>
<p><!--_hyper: 521055388;--></p>
<h1 class="title p-name" id="title">Social Web Protocols</h1>
<h2 id="w3c-working-group-note-25-december-2017"><abbr title="World Wide Web Consortium">W3C</abbr> Working Group Note <time class="dt-published" datetime="2017-12-25">25 December 2017</time></h2>
<dl>
<dt>This version:</dt>
<dd><a class="u-url" href="https://www.w3.org/TR/2017/NOTE-social-web-protocols-20171225/">https://www.w3.org/TR/2017/NOTE-social-web-protocols-20171225/</a></dd>
<dt>Latest published version:</dt>
<dd><a href="https://www.w3.org/TR/social-web-protocols/">https://www.w3.org/TR/social-web-protocols/</a></dd>
<dt>Latest editor's draft:</dt>
<dd><a href="https://w3c-social.github.io/social-web-protocols">https://w3c-social.github.io/social-web-protocols</a></dd>
<dt>Previous version:</dt>
<dd><a href="https://www.w3.org/TR/2017/WD-social-web-protocols-20170504/">https://www.w3.org/TR/2017/WD-social-web-protocols-20170504/</a></dd>
<dt>Editor:</dt>
<dd class="p-author h-card vcard" data-editor-id="69000"><a class="u-url url p-name fn" href="http://rhiaro.co.uk/">Amy Guy</a>, <a class="p-org org h-org h-card" href="http://inf.ed.ac.uk/">University of Edinburgh</a>, <span class="ed_mailto"><a class="u-email email" href="mailto:[email protected]">[email protected]</a></span></dd>
<dt>Repository:</dt>
<dd>
<a href="https://github.com/w3c-social/social-web-protocols">
Git repository
</a>
</dd>
<dd>
<a href="https://github.com/w3c-social/social-web-protocols/issues">
Issues
</a>
</dd>
<dd>
<a href="https://github.com/w3c-social/social-web-protocols/gh-pages">
Commits
</a>
</dd>
</dl>
<p class="copyright">
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> ©
2017
<a href="https://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup>
(<a href="https://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>,
<a href="https://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>,
<a href="https://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>).
<abbr title="World Wide Web Consortium">W3C</abbr> <a href="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
<a href="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and
<a rel="license" href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document">permissive document license</a>
rules apply.
</p>
<hr title="Separator for header">
</div>
<section id="abstract" class="introductory"><h2 id="abstract-0">Abstract</h2>
The Social Web Protocols are a collection of standards which enable various aspects of decentralised social interaction on the Web. This document describes the purposes of each, and how they fit together.
</section>
<section id="sotd" class="introductory"><h2 id="status-of-this-document">Status of This Document</h2>
<p>
<em>This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="https://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at https://www.w3.org/TR/.</em>
</p>
<p>
This document was published by the <a href="https://www.w3.org/Social/WG">Social Web Working Group</a> as a Working Group Note.
Comments regarding this document are welcome. Please send them to
<a href="mailto:[email protected]">[email protected]</a>
(<a href="mailto:[email protected]?subject=subscribe">subscribe</a>,
<a href="https://lists.w3.org/Archives/Public/public-socialweb/">archives</a>).
</p>
<p>
Publication as a Working Group Note does not imply endorsement by the <abbr title="World Wide Web Consortium">W3C</abbr>
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.
</p>
<p>
This document was produced by
a group
operating under the
<a href="https://www.w3.org/Consortium/Patent-Policy/"><abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>.
<abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a href="https://www.w3.org/2004/01/pp-impl/72531/status" rel="disclosure">public list of any patent
disclosures</a>
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
<a href="https://www.w3.org/Consortium/Patent-Policy/#def-essential">Essential
Claim(s)</a> must disclose the information in accordance with
<a href="https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure">section
6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>.
</p>
<p>This document is governed by the <a id="w3c_process_revision" href="https://www.w3.org/2017/Process-20170301/">1 March 2017 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document</a>.
</p>
</section><nav id="toc"><h2 class="introductory" id="table-of-contents">Table of Contents</h2><ol class="toc"><li class="tocline"><a href="#introduction" class="tocxref"><span class="secno">1. </span>Introduction</a></li><li class="tocline"><a href="#overview" class="tocxref"><span class="secno">2. </span>Overview</a><ol class="toc"><li class="tocline"><a href="#contents" class="tocxref"><span class="secno">2.1 </span>Contents</a></li><li class="tocline"><a href="#definitions" class="tocxref"><span class="secno">2.2 </span>Definitions</a></li><li class="tocline"><a href="#swwg-specs" class="tocxref"><span class="secno">2.3 </span>Specifications</a><ol class="toc"><li class="tocline"><a href="#requirements" class="tocxref"><span class="secno">2.3.1 </span>Requirements</a></li><li class="tocline"><a href="#how-do-the-specs-relate-to-each-other" class="tocxref"><span class="secno">2.3.2 </span>How do these specifications relate to each other?</a></li></ol></li></ol></li><li class="tocline"><a href="#reading" class="tocxref"><span class="secno">3. </span>Reading</a><ol class="toc"><li class="tocline"><a href="#content-representation" class="tocxref"><span class="secno">3.1 </span>Content representation</a><ol class="toc"><li class="tocline"><a href="#content-other" class="tocxref"><span class="secno">3.1.1 </span>Other ways of representing content</a></li></ol></li><li class="tocline"><a href="#objects" class="tocxref"><span class="secno">3.2 </span>Objects</a></li><li class="tocline"><a href="#collections" class="tocxref"><span class="secno">3.3 </span>Collections</a><ol class="toc"><li class="tocline"><a href="#streams-special" class="tocxref"><span class="secno">3.3.1 </span>Special streams</a></li><li class="tocline"><a href="#inbox-interop" class="tocxref"><span class="secno">3.3.2 </span>Inboxes</a></li></ol></li></ol></li><li class="tocline"><a href="#publishing" class="tocxref"><span class="secno">4. </span>Publishing</a><ol class="toc"><li class="tocline"><a href="#creating" class="tocxref"><span class="secno">4.1 </span>Creating</a></li><li class="tocline"><a href="#updating" class="tocxref"><span class="secno">4.2 </span>Updating</a></li><li class="tocline"><a href="#deleting" class="tocxref"><span class="secno">4.3 </span>Deleting</a></li></ol></li><li class="tocline"><a href="#subscribing" class="tocxref"><span class="secno">5. </span>Subscribing</a><ol class="toc"><li class="tocline"><a href="#subscribing-with-follow" class="tocxref"><span class="secno">5.1 </span>Subscribing with <code>as:Follow</code></a></li><li class="tocline"><a href="#subscribing-hub" class="tocxref"><span class="secno">5.2 </span>Subscribing with a hub</a></li></ol></li><li class="tocline"><a href="#delivery" class="tocxref"><span class="secno">6. </span>Delivery</a><ol class="toc"><li class="tocline"><a href="#targeting-and-discovery" class="tocxref"><span class="secno">6.1 </span>Targeting and discovery</a></li><li class="tocline"><a href="#delivery-generic" class="tocxref"><span class="secno">6.2 </span>Generic notifications</a></li><li class="tocline"><a href="#delivery-activities" class="tocxref"><span class="secno">6.3 </span>Activity notifications</a></li><li class="tocline"><a href="#delivery-mentioning" class="tocxref"><span class="secno">6.4 </span>Mentioning</a><ol class="toc"><li class="tocline"><a href="#webmention-updates" class="tocxref"><span class="secno">6.4.1 </span>Updates and deletes</a></li></ol></li><li class="tocline"><a href="#delivery-interop" class="tocxref"><span class="secno">6.5 </span>Delivery interop</a><ol class="toc"><li class="tocline"><a href="#wm-as-as" class="tocxref"><span class="secno">6.5.1 </span>Webmention as AS2 / ActivityPub</a></li><li class="tocline"><a href="#ldn-to-wm" class="tocxref"><span class="secno">6.5.2 </span>LDN to Webmention</a></li><li class="tocline"><a href="#wm-to-ldn" class="tocxref"><span class="secno">6.5.3 </span>Webmention to LDN</a></li></ol></li></ol></li><li class="tocline"><a href="#profiles" class="tocxref"><span class="secno">7. </span>Profiles</a><ol class="toc"><li class="tocline"><a href="#relationships" class="tocxref"><span class="secno">7.1 </span>Relationships</a></li><li class="tocline"><a href="#auth" class="tocxref"><span class="secno">7.2 </span>Authentication, authorization, and access control</a></li></ol></li><li class="tocline"><a href="#related-specs" class="tocxref"><span class="secno">8. </span>Related specifcations</a></li><li class="tocline"><a href="#change-log" class="tocxref"><span class="secno">A. </span>Change Log</a><ol class="toc"><li class="tocline"><a href="#changes-since-2017-05-04" class="tocxref"><span class="secno">A.1 </span>Changes from 4 May 2017 WD to this version</a></li><li class="tocline"><a href="#changes-since-2016-11-16" class="tocxref"><span class="secno">A.2 </span>Changes from 16 November 2016 WD to this version</a></li><li class="tocline"><a href="#changes-since-2016-11-01" class="tocxref"><span class="secno">A.3 </span>Changes from 1 November 2016 WD to this version</a></li><li class="tocline"><a href="#changes-since-2016-10-12" class="tocxref"><span class="secno">A.4 </span>Changes from 12 October 2016 WD to this version</a></li><li class="tocline"><a href="#changes-since-2016-08-23" class="tocxref"><span class="secno">A.5 </span>Changes from 23 August to 12 October 2016</a></li><li class="tocline"><a href="#changes-since-2016-06-03" class="tocxref"><span class="secno">A.6 </span>Changes from 3 June to 23 August 2016</a></li></ol></li><li class="tocline"><a href="#references" class="tocxref"><span class="secno">B. </span>References</a><ol class="toc"><li class="tocline"><a href="#informative-references" class="tocxref"><span class="secno">B.1 </span>Informative references</a></li></ol></li></ol></nav>
<section id="introduction">
<!--OddPage--><h2 id="x1-introduction"><span class="secno">1. </span>Introduction</h2>
<p>The <abbr title="World Wide Web Consortium">W3C</abbr> Social Web Working Group ran from June 2014 to December 2017, published seven recommendations and some notes. This is one of the notes, and it describes the work at the time of the group closing.</p>
<p>This work is by no means done, and the various communities involved have by no means gone to sleep. The endeavour continues in the <a href="https://www.w3.org/wiki/SocialCG">Social Web Community Group</a>, in which you are warmly invited to particiate.</p>
</section>
<section id="overview">
<!--OddPage--><h2 id="x2-overview"><span class="secno">2. </span>Overview</h2>
<p>People and the content they create are the core components of the social web; they make up the social graph. This document describes a standard way in which people can:</p>
<ul>
<li>create, update and delete social content;</li>
<li>connect with other people by subscribing to their content;</li>
<li>interact with other peoples' content;</li>
<li>be notified when other people interact with their content.</li>
</ul>
<p>regardless of <em>what that content</em> is or <em>where it is stored</em>.</p>
<p>These components are core building blocks for interoperable decentralised social systems.</p>
<p>Each of these components can be implemented independently as needed, or all together in one system, as well as extended to meet domain-specific requirements. Users can store their social data across any number of compliant servers, and use compliant clients hosted elsewhere to interact with their own content and the content of others.</p>
<p>The <a href="https://www.w3.org/2013/socialweb/social-wg-charter">Social Web Working Group Charter</a> proposes the following deliverables, which have been met by the Group, and will be referred to throughout this document:</p>
<dl>
<dt>Social Data Syntax</dt>
<dd>A JSON-based syntax to allow the transfer of social information, such as status updates, across differing social systems.</dd>
<dt>Social API</dt>
<dd>A document that defines a specification for a client-side API that lets developers embed and format third party information such as social status updates.</dd>
<dt>Federation Protocol</dt>
<dd>A Web protocol to allow the federation of activity-based status updates and other data (such as profile information) between heterogeneous Web-based social systems. Federation should include multiple servers sharing updates within a client-server architecture, and allow decentralized social systems to be built.</dd>
</dl>
<section id="contents">
<h3 id="x2-1-contents"><span class="secno">2.1 </span>Contents</h3>
<p>This is an overview of the specifications of the Social Web Working Group.</p>
<p>Due to the diversity of viable technical approaches proposed within the Working Group, several specifications reached recommendation which provide overlapping functionality through differing mechanisms. This document exists to provide informative guidance on how and when to implement the various specifications, as well as some hints towards routes to bridging between similar specifications.</p>
</section>
<section id="definitions">
<h3 id="x2-2-definitions"><span class="secno">2.2 </span>Definitions</h3>
<p>This document is divided into five sections, pertaining to the components above, and derived from the <a href="https://www.w3.org/wiki/Socialwg/Social_API/Requirements">Social API Requirements</a>. The various Social Web Working Group specifications implement different combinations of these requirements (see <a href="#requirements" class="sec-ref"><span class="secno">2.3.1</span> <span class="sec-title">Requirements</span></a>) so for clarity the requirement are defined here.</p>
<dl>
<dt><a href="#reading">reading</a></dt>
<dd>covers specifications which describe the syntax and vocabulary to be used for social content. Useful for applications which expose feeds, as well as those which consume them.</dd>
<dt>publishing</dt>
<dd>covers Social API specifications which tell clients how to instruct servers to <a href="#publishing">create</a>, <a href="#updating">update</a> or <a href="#deleting">delete</a> content.</dd>
<dt><a href="#subscribing">subscribing</a></dt>
<dd>covers Federation Protocol specifications which describe how to ask for notifications about content, and subsequently how those notifications should be delivered.</dd>
<dt><a href="#delivery">delivery</a></dt>
<dd>covers Federation Protocol specifications which describe how to deliver notifications which have not been solicited through subscription.</dd>
<dt><a href="#profiles">profiles</a></dt>
<dd>covers specifications which describe profiles.</dd>
</dl>
</section>
<section id="swwg-specs">
<h3 id="x2-3-specifications"><span class="secno">2.3 </span>Specifications</h3>
<p>These are the specifications produced by the Social Web Working Group. New implementation reports and feedback are always welcome (details for where to submit these are at the top of each document).</p>
<dl>
<dt>[<cite><a class="bibref" href="#bib-Activitypub">Activitypub</a></cite>]</dt>
<dd>JSON(-LD)-based APIs for client-to-server interactions (ie. publishing) and server-to-server interactions (ie. federation).</dd>
<dt>ActivityStreams 2.0 [<cite><a class="bibref" href="#bib-activitystreams-core">activitystreams-core</a></cite>] and [<cite><a class="bibref" href="#bib-activitystreams-vocabulary">activitystreams-vocabulary</a></cite>]</dt>
<dd>The syntax and vocabulary for <a href="#reading">representing</a> social activities, actors, objects, and collections in JSON(-LD).</dd>
<dt>Linked Data Notifications ([<cite><a class="bibref" href="#bib-LDN">LDN</a></cite>])</dt>
<dd>A JSON-LD-based protocol for <a href="#delivery">delivery</a>.</dd>
<dt>[<cite><a class="bibref" href="#bib-Micropub">Micropub</a></cite>]</dt>
<dd>A form-encoding and JSON-based API for client-to-server interactions (ie. publishing).</dd>
<dt>[<cite><a class="bibref" href="#bib-Webmention">Webmention</a></cite>]</dt>
<dd>A form-encoding-based protocol for <a href="#delivery">delivery</a>.</dd>
<dt>[<cite><a class="bibref" href="#bib-WebSub">WebSub</a></cite>]</dt>
<dd>A protocol for <a href="#subscribing">subscription</a> to any resource and <a href="#delivery">delivery</a> of updates about it.</dd>
</dl>
<p>Specifications which are not Social Web Working Group recommendations, but which are nonetheless relevent to the charter deliverables, are described in <a href="#related-specs" class="sec-ref"><span class="secno">8.</span> <span class="sec-title">Related specifcations</span></a>.</p>
<section id="requirements">
<h4 id="x2-3-1-requirements"><span class="secno">2.3.1 </span>Requirements</h4>
<p>This table shows the high level requirements according to the <a href="https://www.w3.org/2013/socialweb/social-wg-charter.html">Social Web Working Group charter</a> and the <a href="https://www.w3.org/wiki/Socialwg/Social_API/Requirements">Social API Requirements</a>, and how the specifications of the Working Group overlap with respect to each.</p>
<p>This table lists the requirements met by the core functionality of each specification. Some specifications may additionally touch on or make suggestions about other requirements, which can be useful when deciding how to combine specifications, and is highlighted as appropriate throughout this document.</p>
<table class="th90">
<tbody><tr>
<td></td>
<td colspan="3">Data syntax</td>
<td colspan="4">Social API</td>
<td colspan="2">Federation Protocol</td>
<td></td>
</tr>
<tr>
<th></th>
<th><a href="#content-representation">Vocabulary</a></th>
<th><a href="#content-representation">Syntax</a></th>
<th><a href="#profiles">Profiles</a></th>
<th><a href="#reading">Read</a></th>
<th><a href="#publishing">Create</a></th>
<th><a href="#updating">Update</a></th>
<th><a href="#deleting">Delete</a></th>
<th><a href="#subscribing">Subscription</a></th>
<th><a href="#delivery">Delivery</a></th>
</tr>
<tr>
<td style="text-align:left;">ActivityPub</td>
<td></td>
<td></td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
</tr>
<tr>
<td style="text-align:left;">ActivityStreams 2.0</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="text-align:left;">Linked Data Notifications</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>X</td>
</tr>
<tr>
<td style="text-align:left;">Micropub</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
<td></td>
</tr>
<tr>
<td style="text-align:left;">Webmention</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>X</td>
</tr>
<tr>
<td style="text-align:left;">WebSub<br></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>X</td>
<td></td>
</tr>
</tbody></table>
</section>
<section id="how-do-the-specs-relate-to-each-other">
<h4 id="x2-3-2-how-do-these-specifications-relate-to-each-other"><span class="secno">2.3.2 </span>How do these specifications relate to each other?</h4>
<p>As a quick reference, some key relationships between specifications are as follows:</p>
<ul>
<li><strong>ActivityPub and ActivityStreams 2.0</strong>: ActivityPub uses the AS2 syntax and vocabulary for the payload of all requests.</li>
<li><strong>ActivityPub and Linked Data Notifications</strong>: ActivityPub specialises LDN as the mechanism for delivery of notifications by requiring that payloads are AS2. <em>Inbox</em> endpoint discovery is the same. LDN receivers can understand requests from ActivityPub federated servers, but ActivityPub servers can't necessarily understand requests from generic LDN senders.</li>
<li><strong>ActivityStreams 2.0 and Linked Data Notifications</strong>: LDN <em class="rfc2119" title="MAY">MAY</em> use the AS2 syntax and vocabulary for the payload of notification requests.</li>
<li><strong>Webmention and Linked Data Notifications</strong>: Overlapping functionality that needs to be bridged due to different content types of requests. An LDN request <em class="rfc2119" title="MAY">MAY</em> contain the equivalent data as a Webmention request, but not necessarily vice versa.</li>
<li><strong>ActivityPub and Micropub</strong>: Overlapping functionality that needs to be bridged due to different vocabularies and possibly different content types of requests. Micropub specifies client-to-server interactions for content creation; ActivityPub specifies this, <em>plus</em> side-effects and server-to-server interactions.</li>
<li><strong>Micropub and Webmention</strong>: Are complementary but independent. Content can be created with Micropub, then Webmentions can be sent to any URLs referenced by the content.</li>
<li><strong>Micropub and Linked Data Notifications</strong>: Are complementary but independent. Content can be created with Micropub, then LDN discovery can be commenced on any relevant resources referenced by the content.</li>
<li><strong>Micropub and WebSub</strong>: Are complementary but independent. Content can be created with Micropub, then a WebSub <em>hub</em> can handle delivery to subscribers.</li>
<li><strong>ActivityPub and WebSub</strong>: Overlapping functionality using different content types and verification mechanisms.</li>
</ul>
</section>
</section>
</section>
<section id="reading">
<!--OddPage--><h2 id="x3-reading"><span class="secno">3. </span>Reading</h2>
<p>If you are a content publisher, this section is about how you should publish your content. If you are a content consumer, this is what you should expect to consume.</p>
<section id="content-representation">
<h3 id="x3-1-content-representation"><span class="secno">3.1 </span>Content representation</h3>
<p><strong>ActivityStreams 2.0</strong> is the recommended syntax ([<cite><a class="bibref" href="#bib-activitystreams-core">activitystreams-core</a></cite>]) and vocabulary ([<cite><a class="bibref" href="#bib-activitystreams-vocabulary">activitystreams-vocabulary</a></cite>]) for social data. ActivityStreams 2.0 represents content and interactions as <em>Objects</em> and <em>Activities</em>. The ActivityStreams vocabulary defines a finite set of common Object and Activity types and properties, as well as an extension mechanism for applications which want to expand on or specialise these.</p>
<p>ActivityStreams 2.0 content is served with the Content-Type <code>application/activity+json</code> or for JSON-LD extended implementations, <code>application/ld+json; profile="https://www.w3.org/ns/activitystreams"</code>. Consumers should recognise both of these Content-Types as ActivityStreams 2.0; <span title="after much wringing of hands and gnashing of teeth, the WG decided that">they should be treated as equivalent</span>.</p>
<p>In order to claim ActivityStreams 2.0 conformance, a data publisher must use ActivityStreams 2.0 vocabulary terms where available, and <em>only</em> use other vocabularies <em>in addition</em>, or where no appropriate ActivityStreams 2.0 term exists.</p>
<div class="note"><div role="heading" class="note-title marker" id="h-note" aria-level="4"><span>Note</span><span style="text-transform: none">: ActivityStreams 1.0</span></div><p class="">ActivityStreams 2.0 builds upon [<cite><a class="bibref" href="#bib-AS1">AS1</a></cite>] and is not fully backwards compatible; <a href="http://www.w3.org/TR/activitystreams-core#activitystreams-1.0">the relationship between AS1 and AS2 is documented in the AS2 spec</a>. If you have implemented [<cite><a class="bibref" href="#bib-AS1">AS1</a></cite>], you should transition to ActivityStreams 2.0.</p></div>
<p>To make content available as ActivityStreams 2.0 JSON, one could do so directly when requested with an appropriate <code>Accept</code> header (eg. <code>application/activity+json</code> or <code>application/ld+json</code>), or indirectly via a <code>rel="alternate" type="application/activity+json"</code> link . This link could be to a different domain, for third-party services which dynamically generate ActivityStreams 2.0 JSON on behalf of a publisher.</p>
<div class="note"><div role="heading" class="note-title marker" id="h-note-0" aria-level="4"><span>Note</span><span style="text-transform: none">: JSON-LD</span></div><div class="">
<p>When sent as JSON-LD, ActivityStreams 2.0 must be <a href="https://json-ld.org/spec/latest/json-ld-api/#compaction">compacted</a>, and must not use the <code>@graph</code> keyword. This is because an ActivityStreams 2.0 document requires a single <code>Object</code> as the root. To serve multiple resources, you can instead nest them.</p>
<p>The <a href="https://www.w3.org/ns/activitystreams#">ActivityStreams 2.0 JSON-LD context</a> (https://www.w3.org/ns/activitystreams#) aliases <code>@id</code> and <code>@type</code> to <code>id</code> and <code>type</code> respectively.</p>
</div></div>
<p><strong>[<cite><a class="bibref" href="#bib-Activitypub">Activitypub</a></cite>]</strong> uses ActivityStreams 2.0 for all data, and also <em>extends</em> ActivityStreams 2.0 with additional terms. Thus, ActivityPub requires responses to have the Content-Type <code>application/ld+json; profile="https://www.w3.org/ns/activitystreams"</code>. Publishers are however expected to also respect requests with the <code>application/activity+json</code> Accept header.</p>
<section id="content-other">
<h4 id="x3-1-1-other-ways-of-representing-content"><span class="secno">3.1.1 </span>Other ways of representing content</h4>
<p>If you don't like ActivityStreams 2.0, there are still some specifications you can use for particular tasks.</p>
<p><strong>[<cite><a class="bibref" href="#bib-LDN">LDN</a></cite>]</strong> notification contents can use any vocabulary, so long as the data is available as JSON-LD. Thus notifications <em class="rfc2119" title="MAY">MAY</em> use ActivityStreams 2.0, but don't have to.</p>
<p><strong>[<cite><a class="bibref" href="#bib-Micropub">Micropub</a></cite>]</strong> clients which expect to read data (this would usually be clients for <em><a href="#updating">updating</a></em>) are expecting it as JSON in the parsed microformats2 syntax ([<cite><a class="bibref" href="#bib-microformats2-parsing">microformats2-parsing</a></cite>]).</p>
<p><strong>[<cite><a class="bibref" href="#bib-WebSub">WebSub</a></cite>]</strong> is agnostic as to the Content-Type used by publishers; hubs are expected to deliver the new content to subscribers as-is produced by the publisher, at the publisher's <code>topic</code> URL.</p>
</section>
</section>
<section id="objects">
<h3 id="x3-2-objects"><span class="secno">3.2 </span>Objects</h3>
<p>All ActivityStreams 2.0 objects have URLs in the <code>id</code> property, which return the properties of an object. The response may vary depending on the requester's right to access the content.</p>
</section>
<section id="collections">
<h3 id="x3-3-collections"><span class="secno">3.3 </span>Collections</h3>
<p>Each ActivityStreams 2.0 collection has a URL in the <code>id</code> property which returns the contents of the stream (according to the requester's right to access). This could be paged - ActivityStreams 2.0 provides <a href="https://www.w3.org/TR/activitystreams-core/#paging">a paging mechanism</a>. It may include additional metadata about the stream (such as title, description).</p>
<p>Each <a href="#objects">object</a> in a collection contains at least its URL (<code>id</code>), as well as optionally other properties of the object.</p>
<p>Collections may represent changing streams of objects, or fixed sets. One <a href="#profiles">profile</a> may be associated with one or more streams of content. Streams may be generated automatically or manually, and might be segregated by post type, topic, audience, or any arbitrary criteria decided by the curator of the stream. A profile may include links to multiple streams, which a consumer could follow to read or subscribe to.</p>
<section id="streams-special">
<h4 id="x3-3-1-special-streams"><span class="secno">3.3.1 </span>Special streams</h4>
<p><strong>[<cite><a class="bibref" href="#bib-Activitypub">Activitypub</a></cite>]</strong> specifies two streams that <em class="rfc2119" title="MUST">MUST</em> be accessible from a profile via the following properties:</p>
<ul>
<li><code>inbox</code>: A reference to an ActivityStreams 2.0 collection comprising all the objects received by the actor.</li>
<li><code>outbox</code>: An ActivityStreams 2.0 collection comprising all the objects produced by the actor.</li>
</ul>
<p>ActivityPub also specifies further properties for accessing additional streams; <code>following</code> and <code>followers</code> are expected, and the rest are optional:</p>
<ul>
<li><code>following</code>: An ActivityStreams 2.0 collection of the actors that this actor is following.</li>
<li><code>followers</code>: An ActivityStreams 2.0 collection of the actors that follow this actor