as2_core.ex6.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "@context": "https://www.w3.org/ns/activitystreams",
  3. "summary": "Martin's recent activities",
  4. "type": "Collection",
  5. "totalItems": 1,
  6. "items" : [
  7. {
  8. "type": "Add",
  9. "published": "2011-02-10T15:04:55Z",
  10. "generator": "http://example.org/activities-app",
  11. "nameMap": {
  12. "en": "Martin added a new image to his album.",
  13. "ga": "Martin phost le fisean nua a albam."
  14. },
  15. "actor": {
  16. "type": "Person",
  17. "id": "http://www.test.example/martin",
  18. "name": "Martin Smith",
  19. "url": "http://example.org/martin",
  20. "image": {
  21. "type": "Link",
  22. "href": "http://example.org/martin/image",
  23. "mediaType": "image/jpeg",
  24. "width": 250,
  25. "height": 250
  26. }
  27. },
  28. "object" : {
  29. "name": "My fluffy cat",
  30. "type": "Image",
  31. "id": "http://example.org/album/máiréad.jpg",
  32. "preview": {
  33. "type": "Link",
  34. "href": "http://example.org/album/máiréad.jpg",
  35. "mediaType": "image/jpeg"
  36. },
  37. "url": [
  38. {
  39. "type": "Link",
  40. "href": "http://example.org/album/máiréad.jpg",
  41. "mediaType": "image/jpeg"
  42. },
  43. {
  44. "type": "Link",
  45. "href": "http://example.org/album/máiréad.png",
  46. "mediaType": "image/png"
  47. }
  48. ]
  49. },
  50. "target": {
  51. "type": "Collection",
  52. "id": "http://example.org/album/",
  53. "nameMap": {
  54. "en": "Martin's Photo Album",
  55. "ga": "Grianghraif Mairtin"
  56. },
  57. "image": {
  58. "type": "Link",
  59. "href": "http://example.org/album/thumbnail.jpg",
  60. "mediaType": "image/jpeg"
  61. }
  62. }
  63. }
  64. ]
  65. }