Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
4.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <?php
  2. namespace Friendica\Protocol;
  3. /**
  4. * Activity namespaces constants
  5. */
  6. final class ActivityNamespace
  7. {
  8. /**
  9. * Zot is a WebMTA which provides a decentralised identity and communications protocol using HTTPS/JSON.
  10. *
  11. * @var string
  12. * @see https://zotlabs.org/page/zotlabs/specs+zot6+home
  13. */
  14. const ZOT = 'http://purl.org/zot';
  15. /**
  16. * Friendica is using ActivityStreams in version 1.0 for its activities and object types.
  17. * Additional types are used for non standard activities.
  18. *
  19. * @var string
  20. * @see https://github.com/friendica/friendica/wiki/ActivityStreams
  21. */
  22. const DFRN = 'http://purl.org/macgirvin/dfrn/1.0';
  23. /**
  24. * This namespace defines an extension for expressing threaded
  25. * discussions within the Atom Syndication Format [RFC4287]
  26. *
  27. * @see https://tools.ietf.org/rfc/rfc4685.txt
  28. * @var string
  29. */
  30. const THREAD = 'http://purl.org/syndication/thread/1.0';
  31. /**
  32. * This namespace adds mechanisms to the Atom Syndication Format
  33. * that publishers of Atom Feed and Entry documents can use to
  34. * explicitly identify Atom entries that have been removed.
  35. *
  36. * @see https://tools.ietf.org/html/rfc6721
  37. * @var string
  38. */
  39. const TOMB = 'http://purl.org/atompub/tombstones/1.0';
  40. /**
  41. * This specification details a model for representing potential and completed activities
  42. * using the JSON format.
  43. *
  44. * @see https://www.w3.org/ns/activitystreams
  45. * @var string
  46. */
  47. const ACTIVITY2 = 'https://www.w3.org/ns/activitystreams#';
  48. /**
  49. * Atom Activities 1.0
  50. *
  51. * This namespace presents an XML format that allows activities on social objects
  52. * to be expressed within the Atom Syndication Format.
  53. *
  54. * @see http://activitystrea.ms/spec/1.0
  55. * @var string
  56. */
  57. const ACTIVITY = 'http://activitystrea.ms/spec/1.0/';
  58. /**
  59. * This namespace presents a base set of Object types and Verbs for use with Activity Streams.
  60. *
  61. * @see http://activitystrea.ms/head/activity-schema.html
  62. * @var string
  63. */
  64. const ACTIVITY_SCHEMA = 'http://activitystrea.ms/schema/1.0/';
  65. /**
  66. * Atom Media Extensions
  67. *
  68. * @var string
  69. */
  70. const MEDIA = 'http://purl.org/syndication/atommedia';
  71. /**
  72. * The Salmon Protocol is an open, simple, standards-based solution that lets
  73. * aggregators and sources unify the conversations.
  74. *
  75. * @see http://www.salmon-protocol.org/salmon-protocol-summary
  76. * @var string
  77. */
  78. const SALMON_ME = 'http://salmon-protocol.org/ns/magic-env';
  79. /**
  80. * OStatus is a minimal specification for distributed status updates or microblogging.
  81. *
  82. * @see https://ostatus.github.io/spec/OStatus%201.0%20Draft%202.html
  83. * @var string
  84. */
  85. const OSTATUSSUB = 'http://ostatus.org/schema/1.0/subscribe';
  86. /**
  87. * GeoRSS was designed as a lightweight, community driven way to extend existing feeds with geographic information.
  88. *
  89. * @see http://www.georss.org/
  90. * @var string
  91. */
  92. const GEORSS = 'http://www.georss.org/georss';
  93. /**
  94. * The Portable Contacts specification is designed to make it easier for developers
  95. * to give their users a secure way to access the address books and friends lists
  96. * they have built up all over the web.
  97. *
  98. * @see http://portablecontacts.net/draft-spec/
  99. * @var string
  100. */
  101. const POCO = 'http://portablecontacts.net/spec/1.0';
  102. /**
  103. * @var string
  104. */
  105. const FEED = 'http://schemas.google.com/g/2010#updates-from';
  106. /**
  107. * OStatus is a minimal specification for distributed status updates or microblogging.
  108. *
  109. * @see https://ostatus.github.io/spec/OStatus%201.0%20Draft%202.html
  110. * @var string
  111. */
  112. const OSTATUS = 'http://ostatus.org/schema/1.0';
  113. /**
  114. * @var string
  115. */
  116. const STATUSNET = 'http://status.net/schema/api/1/';
  117. /**
  118. * This namespace describes the Atom Activity Streams in RDF Vocabulary (AAIR),
  119. * defined as a dictionary of named properties and classes using W3C's RDF technology,
  120. * and specifically a mapping of the Atom Activity Streams work to RDF.
  121. *
  122. * @see http://xmlns.notu.be/aair/#RFC4287
  123. * @var string
  124. */
  125. const ATOM1 = 'http://www.w3.org/2005/Atom';
  126. /**
  127. * @var string
  128. */
  129. const MASTODON = 'http://mastodon.social/schema/1.0';
  130. }