1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 02:02:16 -05:00

Merge branch 'premerge' into main

This commit is contained in:
Jonas Schäfer 2021-01-12 16:51:53 +01:00
commit 3b84714ae7
6 changed files with 271 additions and 9 deletions

View File

@ -0,0 +1,219 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE xep SYSTEM 'xep.dtd' [
<!ENTITY % ents SYSTEM 'xep.ent'>
%ents;
]>
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
<xep>
<header>
<title>DOAP usage in XMPP</title>
<abstract>This specification defines how XMPP projects can provide a machine-readable description of their abilities, and how external entities can interact with it.</abstract>
&LEGALNOTICE;
<number>xxxx</number>
<status>ProtoXEP</status>
<type>Informational</type>
<sig>Standards</sig>
<approver>Council</approver>
<dependencies>
<spec>https://www.w3.org/TR/rdf11-concepts/</spec>
<spec>http://usefulinc.com/ns/doap#</spec>
<spec>https://linkmauve.fr/ns/xmpp-doap#</spec>
<spec>https://schema.org/</spec>
</dependencies>
<supersedes/>
<supersededby/>
<shortname>NOT_YET_ASSIGNED</shortname>
<author>
<firstname>Emmanuel Gil</firstname>
<surname>Peyrot</surname>
<email>linkmauve@linkmauve.fr</email>
<jid>linkmauve@linkmauve.fr</jid>
</author>
<revision>
<version>0.0.1</version>
<date>2021-01-10</date>
<initials>egp</initials>
<remark><p>First draft.</p></remark>
</revision>
</header>
<section1 topic='Introduction' anchor='intro'>
<p>Gathering information on many implementations has always been a chore, there exist various lists or comparisons for XMPP clients, servers and libraries, but these are often out of date, inaccurate, incomplete, or generally unmaintained.</p>
<p>This specification aims at solving this problem by putting the work of publishing and keeping up to date said information onto the maintainers of the software. Given many already do maintain this kind of list, the inconvenience should be minimal.</p>
<p>The information listed SHOULD include, but isnt limited to, the project name, homepage, description, logo, screenshots if relevant, specifications supported (RFCs and XEPs). A full list of supported properties is described in RDF format at <link url='http://usefulinc.com/ns/doap#'>http://usefulinc.com/ns/doap#</link>.</p>
<p>A central point should be defined to gather the list of implementations publishing their information, this specifications proposes <link url='https://xmpp.org'>xmpp.org</link> for this purpose.</p>
</section1>
<section1 topic='Requirements' anchor='reqs'>
<p>Creating, publishing and maintaining a project description should be as easy as possible for producers.</p>
<p>Fetching, parsing and using a project description should be as easy as possible for consumers.</p>
<p>These two requirements have oriented the choice of technologies towards being as restrictive as possible:</p>
<ul>
<li>The chosen RDF serialisation format MUST be RDF/XML, assuming XMPP project authors are already familiar with XML as a serialisation format.</li>
<li>The resulting file should be published over HTTPS, without access restrictions.</li>
</ul>
</section1>
<section1 topic='Glossary' anchor='glossary'>
<dl>
<di>
<dt>DOAP</dt>
<dd>Description of a Project, the chosen RDF format used by this specification to describe the various properties of a project.</dd>
</di>
<di>
<dt>RDF</dt>
<dd>Resource Description Framework, a generic data model framework, supporting many serialisation formats and conversions between them. For the purpose of this specification we will only consider RDF/XML, an XML serialisation format, with the rationale that all XMPP authors are already familiar with this serialisation format.</dd>
</di>
</dl>
</section1>
<section1 topic='Use Cases' anchor='usecases'>
<p>A user might want to know which compliance suite level a given client supports before choosing it.</p>
<p>A sysadmin might want to know which compliance suite level a given server supports before choosing it.</p>
<p>An XMPP service might want to propose clients based on their advertised support of what they consider a modern client.</p>
<p>A specification author might want to know the list of projects implementing this specification, their support level and version.</p>
<p>An XMPP enthousiast website might want to automatically update their XMPP comparison page with up to date information.</p>
<section2 topic='Examples' anchor='examples'>
<p>This specification wont list every property one could add to their DOAP file, that is the role of the <link url='https://github.com/ewilderj/doap/wiki'>DOAP specification</link>, so it will start with examples.</p>
<p>Here is a minimal DOAP file, containing the same data as the <link url='https://xmpp.org/2017/03/new-xmpp-software-listing-rules/'>XMPP Software Listing</link>:</p>
<example caption='A Minimal DOAP File'><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns='http://usefulinc.com/ns/doap#'>
<Project xml:lang='en'>
<name>Poezio</name>
<homepage rdf:resource='https://poez.io'/>
<os>Linux</os>
</Project>
</rdf:RDF>
]]></example>
<p>But a lot more information can be added:</p>
<example caption='A More Featureful DOAP File'><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns='http://usefulinc.com/ns/doap#'
xmlns:xmpp='https://linkmauve.fr/ns/xmpp-doap#'
xmlns:schema='https://schema.org'>
<Project>
<name>poezio</name>
<created>2010-01-10</created>
<shortdesc xml:lang='en'>Free console XMPP client</shortdesc>
<shortdesc xml:lang='fr'>Client XMPP libre en console</shortdesc>
<description xml:lang='en'>Free and modern console XMPP client written in Python with the ncurses library</description>
<description xml:lang='fr'>Client console XMPP libre et moderne, écrit en Python avec la bibliothèque ncurses</description>
<homepage rdf:resource='https://poez.io/'/>
<schema:documentation rdf:resource='https://doc.poez.io/'/>
<download-page rdf:resource='https://poez.io/#download'/>
<bug-database rdf:resource='https://lab.louiz.org/poezio/poezio/-/issues'/>
<developer-forum rdf:resource='xmpp:poezio@muc.poez.io?join'/>
<support-forum rdf:resource='xmpp:poezio@muc.poez.io?join'/>
<license rdf:resource='https://git.poez.io/poezio/plain/COPYING'/>
<language>en</language>
<schema:logo rdf:resource='https://poez.io/img/logo.svg'/>
<schema:screenshot rdf:resource='https://poez.io/img/screenshot.png'/>
<programming-language>Python</programming-language>
<os>Linux</os>
<category rdf:resource='https://linkmauve.fr/ns/xmpp-doap#category-client'/>
<repository>
<GitRepository>
<browse rdf:resource='https://lab.louiz.org/poezio/poezio'/>
<location rdf:resource='https://lab.louiz.org/poezio/poezio.git'/>
</GitRepository>
</repository>
<implements rdf:resource='https://xmpp.org/rfcs/rfc6120.html'/>
<implements rdf:resource='https://xmpp.org/rfcs/rfc6121.html'/>
<implements rdf:resource='https://xmpp.org/rfcs/rfc6122.html'/>
<implements rdf:resource='https://xmpp.org/rfcs/rfc7590.html'/>
<implements>
<xmpp:SupportedXep>
<xmpp:xep rdf:resource='https://xmpp.org/extensions/xep-0030.html'/>
<xmpp:status>complete</xmpp:status>
<xmpp:version>2.5rc3</xmpp:version>
<xmpp:since>0.5</xmpp:since>
<xmpp:note xml:lang='en'>The 'disco' plugin can be loaded to make manual queries.</xmpp:note>
<xmpp:note xml:lang='fr'>Le plugin 'disco' peut être chargé pour faire des requêtes manuellement.</xmpp:note>
</xmpp:SupportedXep>
</implements>
<!-- And a lot more! -->
<release>
<Version>
<revision>0.13.1</revision>
<created>2020-05-31</created>
<file-release rdf:resource='https://lab.louiz.org/poezio/poezio/-/archive/v0.13.1/poezio-v0.13.1.tar.gz'/>
</Version>
</release>
</Project>
</rdf:RDF>
]]></example>
<p>It is recommended to start from such an example and tweak it to correspond to your project.</p>
</section2>
<section2 topic='Extensions Specific to XMPP' anchor='extensions'>
<p>As per the requirements, and as you may have seen in the previous example, we want to know the implementation status of each relevant XMPP specification, which isnt covered by the DOAP specification.</p>
<p>In order to support that, the <link url='https://linkmauve.fr/ns/xmpp-doap#'>https://linkmauve.fr/ns/xmpp-doap#</link> namespace defines the <tt>&lt;SupportedXep/&gt;</tt> element, which sports a few properties:</p>
<table>
<tr>
<th>Property</th>
<th>Description</th>
<th>Required</th>
</tr>
<tr>
<td>xep</td>
<td>The URL to the XEP document.</td>
<td>Required</td>
</tr>
<tr>
<td>status</td>
<td>The support status by this project, can be 'complete', 'partial', 'planned', 'deprecated', 'removed' or 'wontfix'.</td>
<td>Required</td>
</tr>
<tr>
<td>version</td>
<td>XEP version implemented by this software.</td>
<td>Optional</td>
</tr>
<tr>
<td>since</td>
<td>Software version this support first appeared in.</td>
<td>Optional</td>
</tr>
<tr>
<td>note</td>
<td>Any implementation note the project deems relevant.</td>
<td>Optional</td>
</tr>
</table>
</section2>
</section1>
<section1 topic='Business Rules' anchor='rules'>
<p>A project SHOULD publish the information it deems relevant in the format defined in this specification.</p>
<p>A project MAY maintain this information in another serialisation (JSON-LD, Turtle…), but MUST submit it in RDF/XML serialisation.</p>
<p>Once satisfied with it, a project SHOULD submit their DOAP file to xmpp.org following <link url='https://github.com/xsf/xmpp.org/blob/master/data/README.rst'>this process</link>.</p>
<p>xmpp.org SHOULD cache and host the given files on the behalf of projects, so that if their website goes down for whichever reason other consumers can keep working as usual.</p>
</section1>
<section1 topic='Internationalization Considerations' anchor='i18n'>
<p>Projects with an existing internationalization process are encouraged to use it to translate user-facing strings in the DOAP file.</p>
</section1>
<section1 topic='Security Considerations' anchor='security'>
<p>This document introduces no additional security considerations above and beyond those defined in the documents on which it depends.</p>
</section1>
<section1 topic='IANA Considerations' anchor='iana'>
<p>This document requires no interaction with &IANA;.</p>
</section1>
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
<p>This document requires no interaction with the &REGISTRAR;.</p>
</section1>
<section1 topic='Design Considerations' anchor='design'>
<p><link url='https://schema.org/'>https://schema.org/</link> was also considered, given the considerable overlap in features with DOAP, but it didnt contain many properties useful for software projects. Parts of its properties are reused in this specification, where DOAP was lacking (namely for the logo, screenshot and documentation properties).</p>
<p><link url='https://www.freedesktop.org/software/appstream/docs/'>AppStream</link> was also considered, but it lacks the extensibility and existing tooling of RDF, while being limited to being a description for software installers instead of a generic software description.</p>
</section1>
</xep>

View File

@ -11,7 +11,7 @@
&LEGALNOTICE;
<number>xxxx</number>
<status>ProtoXEP</status>
<type>Informational</type>
<type>Historical</type>
<sig>Standards</sig>
<approver>Council</approver>
<dependencies>
@ -27,6 +27,17 @@
<email>daniel@gultsch.de</email>
<jid>daniel@gultsch.de</jid>
</author>
<revision>
<version>0.0.2</version>
<date>2021-01-10</date>
<initials>egp</initials>
<remark>
<ul>
<li>Resubmitted on the Historical track.</li>
<li>Added a section on IANA considerations.</li>
</ul>
</remark>
</revision>
<revision>
<version>0.0.1</version>
<date>2018-05-31</date>
@ -70,4 +81,7 @@ data:image/jpeg,/9j/4AAQSkZJRgABAQEBLAEsAAD…]]></code>
<section1 topic='Security Considerations' anchor='security'>
<p>A aesgcm URL MUST never be linkified and clients MUST NOT offer another direct way for users to open them in a browser as this could leak the anchor with the encryption key to the server operator. This is also the reason the aesgcm URL was choosen in the first place to prevent users from accidentally opening a HTTP URL in the browser.</p>
</section1>
<section1 topic='IANA Considerations' anchor='iana'>
<p>The aesgcm scheme is not registered at the IANA, and it probably shouldnt be as it is mostly a hack in order to work around the limitations of &xep0384; version 0.3.0 with regards to the extensibility, as this extension could only encrypt the <code>&lt;body/&gt;</code> of a message.</p>
</section1>
</xep>

View File

@ -24,6 +24,12 @@
</schemaloc>
&infiniti;
&stpeter;
<revision>
<version>2.0.1</version>
<date>2021-01-12</date>
<initials>sw</initials>
<remark><p>Fix incorrect max sequence number in the text; it was given as one less than two to the power of 15, but in reality it is one less than two to the power of 16, which is clear from the context).</p></remark>
</revision>
<revision>
<version>2.0</version>
<date>2012-06-22</date>
@ -194,7 +200,7 @@
</iq>
]]></example>
<p>Each chunk of data is included as the XML character data of the &lt;data/&gt; element after being encoded as Base64 as specified in Section 4 of &rfc4648;. Each block MUST be a valid base64 block with padding at the end if needed.</p>
<p>The &lt;data/&gt; element MUST possess a 'seq' attribute; this is a 16-bit unsigned integer that acts as a counter for data chunks sent in a particular direction within this session. The 'seq' value starts at 0 (zero) for each sender and MUST be incremented for each packet sent by that entity. Thus, the second chunk sent has a 'seq' value of 1, the third chunk has a 'seq' value of 2, and so on. The counter loops at maximum, so that after value 65535 (2<span class='super'>15</span> - 1) the 'seq' MUST start again at 0.</p>
<p>The &lt;data/&gt; element MUST possess a 'seq' attribute; this is a 16-bit unsigned integer that acts as a counter for data chunks sent in a particular direction within this session. The 'seq' value starts at 0 (zero) for each sender and MUST be incremented for each packet sent by that entity. Thus, the second chunk sent has a 'seq' value of 1, the third chunk has a 'seq' value of 2, and so on. The counter loops at maximum, so that after value 65535 (2<span class='super'>16</span> - 1) the 'seq' MUST start again at 0.</p>
<p>The &lt;data/&gt; element MUST also possess a 'sid' attribute that ties the data chunk to this particular IBB session.</p>
<p>In the case of IQ stanzas, if the packet can be processed then the recipient MUST reply with an IQ stanza of type "result".</p>
<example caption='Acknowledging data received via IQ'><![CDATA[

View File

@ -29,6 +29,12 @@
<email>linuxwolf@outer-planes.net</email>
<jid>linuxwolf@outer-planes.net</jid>
</author>
<revision>
<version>0.3.1</version>
<date>2020-12-30</date>
<initials>ps</initials>
<remark>Add missing 'http:' prefix in example elements</remark>
</revision>
<revision>
<version>0.3</version>
<date>2004-01-20</date>
@ -82,8 +88,8 @@
target='http://www.jabber.org/members/index.php'>
<http:auth scheme='basic'>
<http:auth-param name='realm' value='www.jabber.org'/>
<auth-param name='username' value='defaultuser'/>
<auth-param name='password' value='defaultpwd'/>
<http:auth-param name='username' value='defaultuser'/>
<http:auth-param name='password' value='defaultpwd'/>
</http:auth>
</url-data>
</message>

View File

@ -33,6 +33,17 @@
&hildjj;
&seanegan;
&robmcqueen;
<revision>
<version>1.1</version>
<date>2020-11-27</date>
<initials>egp</initials>
<remark>
<ul>
<li>Make the 'foundation' attribute a string instead of an unsignedByte, in accordance with &rfc8445;.</li>
<li>Make the 'network' attribute optional, and add a mapping to SDP.</li>
</ul>
</remark>
</revision>
<revision>
<version>1.0</version>
<date>2009-06-10</date>
@ -383,7 +394,7 @@ INITIATOR RESPONDER
<tr>
<td>network</td>
<td>An index, starting at 0, referencing which network this candidate is on for a given peer (used for diagnostic purposes if the calling hardware has more than one Network Interface Card).</td>
<td>N/A</td>
<td>"extension-att-name network extension-att-value &lt;the network&gt;" in a=candidate line</td>
<td>0</td>
</tr>
<tr>
@ -1012,16 +1023,16 @@ Romeo Gateway Juliet
<xs:simpleContent>
<xs:extension base='empty'>
<xs:attribute name='component' type='xs:unsignedByte' use='required'/>
<xs:attribute name='foundation' type='xs:unsignedByte' use='required'/>
<xs:attribute name='foundation' type='xs:string' use='required'/>
<xs:attribute name='generation' type='xs:unsignedByte' use='required'/>
<xs:attribute name='id' type='xs:NCName' use='required'/>
<xs:attribute name='ip' type='xs:string' use='required'/>
<xs:attribute name='network' type='xs:unsignedByte' use='required'/>
<xs:attribute name='port' type='xs:unsignedShort' use='required'/>
<xs:attribute name='priority' type='xs:positiveInteger' use='required'/>
<xs:attribute name='protocol' type='xs:NCName' use='required'/>
<xs:attribute name='rel-addr' type='xs:string' use='optional'/>
<xs:attribute name='rel-port' type='xs:unsignedShort' use='optional'/>
<xs:attribute name='network' type='xs:unsignedByte' use='optional'/>
<xs:attribute name='type' use='required'>
<xs:simpleType>
<xs:restriction base='xs:NCName'>

View File

@ -27,6 +27,12 @@ Note to editor: Remove xep-file-metadata entity declared below and change all re
<supersededby/>
<shortname>sfs</shortname>
&larma;
<revision>
<version>0.1.1</version>
<date>2020-12-30</date>
<initials>ps</initials>
<remark>Fixed typo in example.</remark>
</revision>
<revision>
<version>0.1.0</version>
<date>2020-11-24</date>
@ -79,7 +85,7 @@ Note to editor: Remove xep-file-metadata entity declared below and change all re
<media-type>image/jpeg</media-type>
<name>summit.jpg</name>
<size>3032449</size>
<dimension>4096x2160</dimension>
<dimensions>4096x2160</dimensions>
<hash xmlns='urn:xmpp:hashes:2' algo='sha3-256'>2XarmwTlNxDAMkvymloX3S5+VbylNrJt/l5QyPa+YoU=</hash>
<hash xmlns='urn:xmpp:hashes:2' algo='id-blake2b256'>2AfMGH8O7UNPTvUVAM9aK13mpCY=</hash>
<desc>Photo from the summit.</desc>