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