forked from go-fed/activity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstreams_data_test.go
1131 lines (1130 loc) · 27.4 KB
/
streams_data_test.go
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
package streams
var repoExample1 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Object",
"id": "http://www.test.example/object/1",
"name": "A Simple, non-specific object"
}`
var repoExample3 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Activity",
"name": "Sally did something to a note",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Note",
"name": "A Note"
}
}`
var repoExample5 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally's notes",
"type": "Collection",
"totalItems": 2,
"items": [
{
"type": "Note",
"name": "A Simple Note"
},
{
"type": "Note",
"name": "Another Simple Note"
}
]
}`
var repoExample7 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Accept",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Invite",
"actor": "http://john.example.org",
"object": {
"type": "Event",
"name": "A Party!"
}
}
}`
var repoExample9 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally added an object",
"type": "Add",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": "http://example.org/abc"
}`
var repoExample11 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally arrived at work",
"type": "Arrive",
"actor": {
"type": "Person",
"name": "Sally"
},
"location": {
"type": "Place",
"name": "Work"
},
"origin": {
"type": "Place",
"name": "Home"
}
}`
var repoExample13 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally deleted a note",
"type": "Delete",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": "http://example.org/notes/1",
"origin": {
"type": "Collection",
"name": "Sally's Notes"
}
}`
var repoExample15 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally followed John",
"type": "Follow",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Person",
"name": "John"
}
}`
var repoExample17 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally joined a group",
"type": "Join",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Group",
"name": "A Simple Group"
}
}`
var repoExample19 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally left a group",
"type": "Leave",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Group",
"name": "A Simple Group"
}
}`
var repoExample21 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally offered 50% off to Lewis",
"type": "Offer",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "http://www.types.example/ProductOffer",
"name": "50% Off!"
},
"target": {
"type": "Person",
"name": "Lewis"
}
}`
var repoExample24 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally invited John and Lisa to a party",
"type": "Invite",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Event",
"name": "A Party"
},
"target": [
{
"type": "Person",
"name": "John"
},
{
"type": "Person",
"name": "Lisa"
}
]
}`
var repoExample26 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally rejected an invitation to a party",
"type": "Reject",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Invite",
"actor": "http://john.example.org",
"object": {
"type": "Event",
"name": "A Party!"
}
}
}`
var repoExample28 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally removed a note from her notes folder",
"type": "Remove",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": "http://example.org/notes/1",
"target": {
"type": "Collection",
"name": "Notes Folder"
}
}`
var repoExample32 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally retracted her offer to John",
"type": "Undo",
"actor": "http://sally.example.org",
"object": {
"type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org"
}
}`
var repoExample34 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Application",
"name": "My Software Application."
}`
var repoExample37 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Group",
"name": "A Simple Group."
}`
var repoExample39 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Person",
"name": "Sally Smith."
}`
var repoExample42 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Service",
"name": "Acme Web Service"
}`
var repoExample48 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Document",
"name": "4Q Sales Forecast",
"url": "http://example.org/4q-sales-forecast.pdf"
}`
var repoExample50 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Image",
"name": "A Simple Image",
"url": [
{
"type": "Link",
"href": "http://example.org/image.jpeg",
"mediaType": "image/jpeg"
},
{
"type": "Link",
"href": "http://example.org/image.png",
"mediaType": "image/png"
}
]
}`
var repoExample52 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Note",
"name": "A Short Note",
"content": "This is a short note"
}`
var repoExample55 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Question",
"name": "What is the answer?",
"oneOf": [
{
"type": "Note",
"name": "Option A"
},
{
"type": "Note",
"name": "Option B"
}
]
}`
var repoExample57 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Place",
"name": "Work"
}`
var repoExample59 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally offered the Foo object",
"type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/foo"
}`
var repoExample61 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally and Joe offered the Foo object",
"type": "Offer",
"actor": [
"http://joe.example.org",
{
"type": "Person",
"id": "http://sally.example.org",
"name": "Sally"
}
],
"object": "http://example.org/foo"
}`
var repoExample64 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Note",
"name": "A Simple Note",
"attachment": {
"type": "Image",
"content": "A simple Image",
"url": "http://example.org/cat.jpeg"
}
}`
var repoExample66 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Image",
"name": "A Simple Image",
"url": "http://example.org/cat.jpeg",
"attributedTo": [
"http://joe.example.org",
{
"type": "Person",
"name": "Sally"
}
]
}`
var repoExample68 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally offered a post to John",
"type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org",
"bcc": "http://joe.example.org"
}`
var repoExample70 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally offered a post to John",
"type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org",
"cc": "http://joe.example.org"
}`
var repoExample72 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally's blog posts",
"type": "Collection",
"totalItems": 3,
"current": {
"type": "Link",
"name": "Most Recent Items",
"href": "http://example.org/collection"
},
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3"
]
}`
var repoExample74 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally's blog posts",
"type": "Collection",
"totalItems": 3,
"first": {
"type": "Link",
"name": "First Page",
"href": "http://example.org/collection?page=0"
}
}`
var repoExample77 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "A simple note",
"type": "Note",
"content": "A simple note",
"icon": {
"type": "Image",
"name": "Note",
"url": "http://example.org/note.png",
"width": 16,
"height": 16
}
}`
var repoExample80 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "A simple note",
"type": "Note",
"content": "A simple note",
"image": {
"type": "Image",
"name": "A Cat",
"url": "http://example.org/cat.png"
}
}`
var repoExample83 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "A simple note",
"type": "Note",
"content": "A simple note",
"inReplyTo": {
"name": "Another note",
"type": "Note",
"content": "Another note"
}
}`
var repoExample87 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "A collection",
"type": "Collection",
"totalItems": 3,
"last": "http://example.org/collection?page=1"
}`
var repoExample89 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Person",
"name": "Sally",
"location": {
"name": "Over the Arabian Sea, east of Socotra Island Nature Sanctuary",
"type": "Place",
"longitude": 12.34,
"latitude": 56.78,
"altitude": 90,
"units": "m"
}
}`
var repoExample91 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally's notes",
"type": "Collection",
"totalItems": 2,
"items": [
{
"type": "Note",
"name": "A Simple Note"
},
{
"type": "Note",
"name": "Another Simple Note"
}
]
}`
var repoExample93 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Question",
"name": "What is the answer?",
"oneOf": [
{
"type": "Note",
"name": "Option A"
},
{
"type": "Note",
"name": "Option B"
}
]
}`
var repoExample96 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Page 2 of Sally's blog posts",
"type": "CollectionPage",
"next": "http://example.org/collection?page=2",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3"
]
}`
var repoExample98 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally liked a post",
"type": "Like",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1"
}`
var repoExample100 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally liked a note",
"type": "Like",
"actor": "http://sally.example.org",
"object": [
"http://example.org/posts/1",
{
"type": "Note",
"name": "A simple note",
"content": "A simple note"
}
]
}`
var repoExample104 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Page 1 of Sally's blog posts",
"type": "CollectionPage",
"prev": "http://example.org/collection?page=1",
"items": [
"http://example.org/posts/1",
"http://example.org/posts/2",
"http://example.org/posts/3"
]
}`
var repoExample106 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Video",
"name": "Cool New Movie",
"duration": "PT2H30M",
"preview": {
"type": "Video",
"name": "Trailer",
"duration": "PT1M",
"url": {
"href": "http://example.org/trailer.mkv",
"mediaType": "video/mkv"
}
}
}`
var repoExample108 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally checked that her flight was on time",
"type": ["Activity", "http://www.verbs.example/Check"],
"actor": "http://sally.example.org",
"object": "http://example.org/flights/1",
"result": {
"type": "http://www.types.example/flightstatus",
"name": "On Time"
}
}`
var repoExample112 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "A simple note",
"type": "Note",
"id": "http://www.test.example/notes/1",
"content": "A simple note",
"replies": {
"type": "Collection",
"totalItems": 1,
"items": {
"name": "A response to the note",
"type": "Note",
"content": "A response to the note",
"inReplyTo": "http://www.test.example/notes/1"
}
}
}`
var repoExample118 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Image",
"name": "Picture of Sally",
"url": "http://example.org/sally.jpg",
"tag": {
"type": "Person",
"id": "http://sally.example.org",
"name": "Sally"
}
}`
var repoExample120 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally offered the post to John",
"type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org"
}`
var repoExample123 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally offered the post to John",
"type": "Offer",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": "http://john.example.org",
"to": "http://joe.example.org"
}`
var repoExample125 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Document",
"name": "4Q Sales Forecast",
"url": {
"type": "Link",
"href": "http://example.org/4q-sales-forecast.pdf"
}
}`
var repoExample127 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Liu Gu Lu Cun, Pingdu, Qingdao, Shandong, China",
"type": "Place",
"latitude": 36.75,
"longitude": 119.7667,
"accuracy": 94.5
}`
var repoExample129 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Place",
"name": "Fresno Area",
"altitude": 15.0,
"latitude": 36.75,
"longitude": 119.7667,
"units": "miles"
}`
var repoExample131 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "A simple note",
"type": "Note",
"contentMap": {
"en": "A <i>simple</i> note",
"sp": "Una <i>simple</i> nota"
}
}`
var repoExample133 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Note",
"nameMap": {
"en": "A simple note",
"sp": "Una simple nota"
}
}`
var repoExample136 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Link",
"href": "http://example.org/image.png",
"height": 100,
"width": 100
}`
var repoExample138 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"name": "An example link"
}`
var repoExample140 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Place",
"name": "Fresno Area",
"latitude": 36.75,
"longitude": 119.7667,
"radius": 15,
"units": "miles"
}`
var repoExample142 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"name": "An example link"
}`
var repoExample144 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Event",
"name": "A Party!",
"startTime": "2014-12-31T23:00:00-08:00",
"endTime": "2015-01-01T06:00:00-08:00"
}`
var repoExample146 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Event",
"name": "A Party!",
"startTime": "2014-12-31T23:00:00-08:00",
"endTime": "2015-01-01T06:00:00-08:00"
}`
var repoExample149 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Link",
"href": "http://example.org/abc",
"hreflang": "en",
"mediaType": "text/html",
"name": "An example link",
"rel": ["canonical", "preview"]
}`
var repoExample152 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "A simple note",
"type": "Note",
"summary": "A simple <i>note</i>"
}`
var repoExample156 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally's notes",
"type": "Collection",
"totalItems": 2,
"items": [
{
"type": "Note",
"name": "A Simple Note"
},
{
"type": "Note",
"name": "Another Simple Note"
}
]
}`
var repoExample158 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "A simple note",
"type": "Note",
"content": "A simple note",
"updated": "2014-12-12T12:12:12Z"
}`
var repoExample161 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally read an article about Activity Streams",
"type": "View",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": {
"type": "Article",
"name": "An article about Activity Streams"
}
}`
var repoExample163 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally listened to a piece of music",
"type": "Listen",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": "http://example.org/music.mp3"
}`
var repoExample166 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally moved a post from List A to List B",
"type": "Move",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1",
"target": {
"type": "Collection",
"name": "List B"
},
"origin": {
"type": "Collection",
"name": "List A"
}
}`
var repoExample168 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally moved a post from List A to List B",
"type": "Move",
"actor": {
"type": "Person",
"name": "Sally"
},
"object": "http://example.org/posts/1",
"target": {
"type": "Collection",
"name": "List B"
},
"origin": {
"type": "Collection",
"name": "List A"
}
}`
var repoExample170 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally announced that she had arrived at work",
"type": "Announce",
"actor": {
"type": "Person",
"id": "http://sally.example.org",
"name": "Sally"
},
"object": {
"type": "Arrive",
"actor": "http://sally.example.org",
"location": {
"type": "Place",
"name": "Work"
}
}
}`
var repoExample173 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally blocked Joe",
"type": "Block",
"actor": "http://sally.example.org",
"object": "http://joe.example.org"
}`
var repoExample175 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally disliked a post",
"type": "Dislike",
"actor": "http://sally.example.org",
"object": "http://example.org/posts/1"
}`
var repoExample180 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally's friends list",
"type": "Collection",
"items": [
{
"name": "Sally is following Joe",
"type": "Relationship",
"subject": {
"type": "Person",
"name": "Sally"
},
"relationship": "IsFollowing",
"object": {
"type": "Person",
"name": "Joe"
}
},
{
"name": "Sally is a contact of Jane",
"type": "Relationship",
"subject": {
"type": "Person",
"name": "Sally"
},
"relationship": "IsContact",
"object": {
"type": "Person",
"name": "Jane"
}
}
]
}`
var repoExample182 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Travel",
"name": "Sally went to work",
"actor": {
"type": "Person",
"name": "Sally"
},
"target": {
"type": "Place",
"name": "Work"
}
}`
var repoExample184 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "OrderedCollection",
"totalItems": 3,
"name": "Vacation photos 2016",
"orderedItems": [
{
"type": "Image",
"id": "http://image.example/1"
},
{
"type": "Tombstone",
"formerType": "Image",
"id": "http://image.example/2",
"deleted": "2016-03-17T00:00:00Z"
},
{
"type": "Image",
"id": "http://image.example/3"
}
]
}`
var repoExample186 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"type": "Organization",
"name": "Example Co."
}`
var repoExample188 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Sally and John's relationship history",
"type": "Collection",
"items": [
{
"name": "John accepted Sally's friend request",
"id": "http://example.org/activities/122",
"type": "Accept",
"actor": "acct:[email protected]",
"object": "http://example.org/connection-requests/123",
"inReplyTo": "http://example.org/connection-requests/123",
"context": "http://example.org/connections/123",
"result": [
"http://example.org/activities/123",
"http://example.org/activities/124",
"http://example.org/activities/125",
"http://example.org/activities/126"
]
},
{
"name": "John followed Sally",
"id": "http://example.org/activities/123",
"type": "Follow",
"actor": "acct:[email protected]",
"object": "acct:[email protected]",
"context": "http://example.org/connections/123"
},
{
"name": "Sally followed John",
"id": "http://example.org/activities/124",
"type": "Follow",
"actor": "acct:[email protected]",
"object": "acct:[email protected]",
"context": "http://example.org/connections/123"
},
{
"name": "John added Sally to his friends list",
"id": "http://example.org/activities/125",
"type": "Add",
"actor": "acct:[email protected]",
"object": "http://example.org/connections/123",
"target": {
"type": "Collection",
"name": "John's Connections"
},
"context": "http://example.org/connections/123"
},
{
"name": "Sally added John to her friends list",
"id": "http://example.org/activities/126",
"type": "Add",
"actor": "acct:[email protected]",
"object": "http://example.org/connections/123",
"target": {
"type": "Collection",
"name": "Sally's Connections"
},
"context": "http://example.org/connections/123"
}
]
}`
var repoExample190 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"id": "http://polls.example.org/question/1",
"name": "A question about robots",
"type": "Question",
"content": "I'd like to build a robot to feed my cat. Which platform is best?",
"oneOf": [
{"name": "arduino"},
{"name": "raspberry pi"}
]
}`
var repoExample192 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "A question about robots",
"id": "http://polls.example.org/question/1",
"type": "Question",
"content": "I'd like to build a robot to feed my cat. Which platform is best?",
"oneOf": [
{"name": "arduino"},
{"name": "raspberry pi"}
],
"replies": {
"type": "Collection",
"totalItems": 3,
"items": [
{
"attributedTo": "http://sally.example.org",
"inReplyTo": "http://polls.example.org/question/1",
"name": "arduino"
},
{
"attributedTo": "http://joe.example.org",
"inReplyTo": "http://polls.example.org/question/1",
"name": "arduino"
},
{
"attributedTo": "http://john.example.org",
"inReplyTo": "http://polls.example.org/question/1",
"name": "raspberry pi"
}
]
},
"result": {
"type": "Note",
"content": "Users are favoriting &quot;arduino&quot; by a 33% margin."
}
}`
var repoExample194 = `{
"@context": "http://www.w3.org/ns/activitystreams",
"name": "Activities in Project XYZ",
"type": "Collection",
"items": [
{
"name": "Sally created a note",
"type": "Create",
"id": "http://activities.example.com/1",
"actor": "http://sally.example.org",
"object": {
"name": "A note",
"type": "Note",
"id": "http://notes.example.com/1",
"content": "A note"
},
"context": {
"type": "http://example.org/Project",
"name": "Project XYZ"
},
"audience": {
"type": "Group",
"name": "Project XYZ Working Group"
},
"to": "http://john.example.org"
},
{
"name": "John liked Sally's note",
"type": "Like",