mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -05:00
0.6
This commit is contained in:
parent
2203f34e1d
commit
e696a6d10e
350
xep-0277.xml
Normal file → Executable file
350
xep-0277.xml
Normal file → Executable file
@ -34,6 +34,12 @@
|
||||
<jid>vanaryon@jappix.com</jid>
|
||||
<uri>http://vanaryon.eu/</uri>
|
||||
</author>
|
||||
<revision>
|
||||
<version>0.6</version>
|
||||
<date>2012-05-22</date>
|
||||
<initials>snd</initials>
|
||||
<remark><p>Added node configuration suggestions; removed file attachments; added rich content examples; change atom:content to atom:title anywhere in the document; invented the "Aggregator" entity; changed nodes metainformation locations; added possibility to add own content to repost.</p></remark>
|
||||
</revision>
|
||||
<revision>
|
||||
<version>0.5</version>
|
||||
<date>2011-06-15</date>
|
||||
@ -44,7 +50,7 @@
|
||||
<version>0.4</version>
|
||||
<date>2011-06-01</date>
|
||||
<initials>vs</initials>
|
||||
<remark><p>Added microblog informations feature, ID innacurracy fixed, urn:xmpp:inbox support added, new commenting namespaces, first comment marker, security considerations added.</p></remark>
|
||||
<remark><p>Added microblog metadata feature, ID innacurracy fixed, urn:xmpp:inbox support added, new commenting namespaces, first comment marker, security considerations added.</p></remark>
|
||||
</revision>
|
||||
<revision>
|
||||
<version>0.3</version>
|
||||
@ -81,7 +87,7 @@
|
||||
<li>People learn about your posts only if they have permission to view them.</li>
|
||||
<li>Your microblogging feed is discovered based on your identity at a domain or with a service.</li>
|
||||
</ul>
|
||||
<p>These characteristics map well to instant messaging systems such as those built using Jabber/XMPP technologies (e.g., permissions can be based on existing presence subscriptions as reflected in the XMPP roster or "buddy list"). Furthermore, the push nature of XMPP (especially as formalized in the &xep0163; profile of &xep0060; overcomes the problems of polling for updates via HTTP, which has caused scaling issues in existing microblogging services. Therefore this specification defines a method for microblogging over XMPP, building on the existing method for transporting Atom syndication data &rfc4287; over XMPP as described in &atomsub;. These XMPP-based methods are complementary to HTTP-based methods, and can provide an XMPP interface to existing microblogging services (which may also be accessible via HTTP, Short Message Service (SMS), and other message transports).</p>
|
||||
<p>These characteristics map well to instant messaging systems such as those built using Jabber/XMPP technologies (e.g., permissions can be based on existing presence subscriptions as reflected in the XMPP roster or "buddy list"). Furthermore, the push nature of XMPP (especially as formalized in the &xep0163; profile of &xep0060;) overcomes the problems of polling for updates via HTTP, which has caused scaling issues in existing microblogging services. Therefore this specification defines a method for microblogging over XMPP, building on the existing method for transporting Atom syndication data &rfc4287; over XMPP as described in &atomsub;. These XMPP-based methods are complementary to HTTP-based methods, and can provide an XMPP interface to existing microblogging services (which may also be accessible via HTTP, Short Message Service (SMS), and other messaging transports).</p>
|
||||
</section1>
|
||||
|
||||
<section1 topic='Protocol' anchor='proto'>
|
||||
@ -101,7 +107,7 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
</section2>
|
||||
<section2 topic='Publishing a Post' anchor='publish'>
|
||||
<p>Romeo can publish a post via any interface provided by his service, such as a website, the Atom Publishing Protocol (see &rfc5023;), SMS, an IM bot, or XMPP pubsub. Here we assume that the post is provided via XMPP pubsub.</p>
|
||||
<p>The post content itself can be either text ("content" element "type" attribute with "text" value) or XHTML ("content" element "type" attribute with "xhtml" value). If Romeo publishes XHTML content, his client MUST publish two "content" elements: a text one, and a XHTML one. For XHTML publishing, see &xep0060;.</p>
|
||||
<p>The post content itself can be either text (content element without "type" attribute or with "type" attribute with "text" value) or XHTML ("content" element "type" attribute with "xhtml" value). If Romeo publishes XHTML content, his client MUST publish two "content" elements: a text one, and a XHTML one. For XHTML publishing, see &xep0060;.</p>
|
||||
<p>Note: Publishing via HTTP, AtomPub, SMS, or IM bot is simpler for the client (e.g., because the client does not need to generate an Item ID).</p>
|
||||
<example caption="Publishing a post"><![CDATA[
|
||||
<iq from='romeo@montague.lit/pda'
|
||||
@ -112,18 +118,7 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item id='1cb57d9c-1c46-11dd-838c-001143d5d5db'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<source>
|
||||
<author>
|
||||
<name>Romeo Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
<content type='text'>hanging out at the Caf&#233; Napolitano</content>
|
||||
<link rel='alternate'
|
||||
type='text/html'
|
||||
href='http://montague.lit/romeo/posts/1cb57d9c-1c46-11dd-838c-001143d5d5db'/>
|
||||
<link rel='alternate'
|
||||
href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=1cb57d9c-1c46-11dd-838c-001143d5d5db'/>
|
||||
<title type='text'>hanging out at the Caf&#233; Napolitano</title>
|
||||
<id>tag:montague.lit,2008-05-08:posts-1cb57d9c-1c46-11dd-838c-001143d5d5db</id>
|
||||
<published>2008-05-08T18:30:02Z</published>
|
||||
<updated>2008-05-08T18:30:02Z</updated>
|
||||
@ -133,9 +128,36 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
</pubsub>
|
||||
</iq>
|
||||
]]></example>
|
||||
<p>Note: The "title" element is required to be included in an "atom:entry" element according to &rfc4287;. An implementation MAY provide also "atom:summary" and/or "atom:content" elements too if it needs.</p>
|
||||
<section3 topic="Publishing a Post with Rich Content" anchor="rich_content">
|
||||
<p>It's possible to insert some rich content in the post or comment. It can be some text formatting, images, etc. Only "xhtml" content type is supported for the moment by this document but possibly it will be extended later. Also, it is RECOMMENDED for the client to restrict XHTML content to the XHTML-IM subset (&xep0071;).</p>
|
||||
<example caption="Publishing a post with rich content"><![CDATA[
|
||||
<iq from='romeo@montague.lit/pda'
|
||||
id='pub1'
|
||||
to='romeo@montague.lit'
|
||||
type='set'>
|
||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item id='1cb57d9c-1c46-11dd-838c-001143d5d5db'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<title type='xhtml'>
|
||||
<div xmlns="http://www.w3.org/1999/xhtml">
|
||||
<p>hanging out at the <strong>Caf&#233; Napolitano</strong></p>
|
||||
</div>
|
||||
</title>
|
||||
<id>tag:montague.lit,2008-05-08:posts-1cb57d9c-1c46-11dd-838c-001143d5d5db</id>
|
||||
<published>2008-05-08T18:30:02Z</published>
|
||||
<updated>2008-05-08T18:30:02Z</updated>
|
||||
</entry>
|
||||
</item>
|
||||
</publish>
|
||||
</pubsub>
|
||||
</iq>
|
||||
]]></example>
|
||||
</section3>
|
||||
</section2>
|
||||
<section2 topic='Receiving a Post' anchor='receive'>
|
||||
<p>Because Juliet has sent presence to Romeo including Entity Capabilities data that encapsulates the "urn:xmpp:microblog:0+notify" feature, Romeo's XMPP server will send a PEP notification to Juliet. The notification can include an XMPP message body for backwards-compatibility with Jabber clients that are not pubsub-capable (see <a href="#body">Message Body</a>).</p>
|
||||
<p>Because Juliet has sent presence to Romeo including Entity Capabilities data that encapsulates the "urn:xmpp:microblog:0+notify" feature, Romeo's XMPP server will send a PEP notification to Juliet. The notification can include an XMPP message body for backwards-compatibility with Jabber clients that are not pubsub-capable (see <link url="#body">Message Body</link>).</p>
|
||||
<example caption="Receiving a post"><![CDATA[
|
||||
<message from='romeo@montague.lit'
|
||||
to='juliet@capulet.lit'
|
||||
@ -143,15 +165,9 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
<body>hanging out at the Caf&#233; Napolitano</body>
|
||||
<event xmlns='http://jabber.org/protocol/pubsub#event'>
|
||||
<items node='urn:xmpp:microblog:0'>
|
||||
<item id='1cb57d9c-1c46-11dd-838c-001143d5d5db'>
|
||||
<item id='1cb57d9c-1c46-11dd-838c-001143d5d5db' publisher='romeo@montague.lit'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<source>
|
||||
<author>
|
||||
<name>Romeo Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
<content type='text'>hanging out at the Caf&#233; Napolitano</content>
|
||||
<title type='text'>hanging out at the Caf&#233; Napolitano</title>
|
||||
<link rel='alternate'
|
||||
type='text/html'
|
||||
href='http://montague.lit/romeo/posts/1cb57d9c-1c46-11dd-838c-001143d5d5db'/>
|
||||
@ -166,10 +182,12 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
</event>
|
||||
</message>
|
||||
]]></example>
|
||||
<p>Note: these alternate links were not posted by client because client can't compute them itself. These things SHOULD be inserted at server side though.</p>
|
||||
</section2>
|
||||
<section2 topic='Replying to a Post' anchor='reply'>
|
||||
<p>Anyone can publish a post in reply to Romeo's post. Here we assume that a reply comes from Benvolio.</p>
|
||||
<p>Note: Inclusion of the <in-reply-to/> element defined in &rfc4685; indicates the post to which the user is replying. This reply includes two such elements (one pointing to the HTTP URL for the post and the other pointing to the XMPP URI for the post.</p>
|
||||
<p>Note: Inclusion of the "thr:in-reply-to" element defined in &rfc4685; indicates the post to which the user is replying. This reply includes two such elements (one pointing to the HTTP URL for the post and the other pointing to the XMPP URI for the post.</p>
|
||||
<p>Note: The post can be a reply to more than the only one another.</p>
|
||||
<example caption="Publishing a reply"><![CDATA[
|
||||
<iq from='benvolio@montague.lit/mobile'
|
||||
id='uv2x37s5'
|
||||
@ -180,13 +198,11 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
<item id='c4145006-1c53-11dd-b2d5-000bcd82471e'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'
|
||||
xmlns:thr='http://purl.org/syndication/thread/1.0'>
|
||||
<source>
|
||||
<author>
|
||||
<name>Benvolio Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
<content type='text'>@romeo cappuccino this late in the day?</content>
|
||||
<title type='text'>@romeo cappuccino this late in the day?</title>
|
||||
<link rel='alternate'
|
||||
type='text/html'
|
||||
href='http://montague.lit/benvolio/posts/c4145006-1c53-11dd-b2d5-000bcd82471e'/>
|
||||
@ -213,8 +229,9 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
<p>Assuming that Romeo has also shared presence with Benvolio and has advertised support for "urn:xmpp:microblog:0+notify", he will receive the reply that Benvolio sent.</p>
|
||||
</section2>
|
||||
<section2 topic='Repeating a Post' anchor='repeat'>
|
||||
<p>When Benvolio wants to repeat a Romeo's post, his client publishes the same post under a different name. But to be able to track the repeated post original author, Benvolio's client MAY use two specific <author /> child nodes, <name /> and <uri />, containing, respectively, the name of the original post author, and his XMPP URI (JID).</p>
|
||||
<p>If a comments link is present (see the <link url='#post_comments'>Post Comments</link> section of this document), the client SHOULD repeat it to keep the same discussion about the post.</p>
|
||||
<p>When Benvolio wants to repeat a Romeo's post, his client publishes the same post under a different name. But to be able to track the repeated post original author, Benvolio's client MAY use specific "atom:author" child node, "atom:name" and "atom:uri", containing, respectively, the name of the original post author, and his XMPP URI (JID).</p>
|
||||
<p>If a comments link is present (see the <link url='#post_comments'>Post Comments</link> section of this document), the client SHOULD repeat it to keep the same discussion about the post. The client also MAY create a separate node to discuss and specify it or specify both.</p>
|
||||
<p>The client SHOULD also put an "atom:link" element with "rel" attribute set to "via" and point it to the original post.</p>
|
||||
<example caption="Repeating a Post"><![CDATA[
|
||||
<iq from='benvolio@montague.lit/mobile'
|
||||
id='pub2'
|
||||
@ -224,18 +241,19 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item id='1re57d3c-1q46-11dd-748r-024943d2d5rt'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<source>
|
||||
<author>
|
||||
<name>Romeo Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
<content type='text'>hanging out at the Caf&#233; Napolitano</content>
|
||||
<title type='text'>hanging out at the Caf&#233; Napolitano</title>
|
||||
<link rel='alternate'
|
||||
type='text/html'
|
||||
href='http://montague.lit/benvolio/posts/1re57d3c-1q46-11dd-748r-024943d2d5rt'/>
|
||||
<link rel='alternate'
|
||||
href='xmpp:benvolio@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=1re57d3c-1q46-11dd-748r-024943d2d5rt'/>
|
||||
<link rel='via'
|
||||
href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=1cb57d9c-1c46-11dd-838c-001143d5d5db'
|
||||
ref='tag:montague.lit,2008-05-08:posts-1cb57d9c-1c46-11dd-838c-001143d5d5db'/>
|
||||
<id>tag:montague.lit,2008-05-08:posts-1re57d3c-1q46-11dd-748r-024943d2d5rt</id>
|
||||
<published>2008-05-08T18:30:02Z</published>
|
||||
<updated>2008-05-08T18:32:02Z</updated>
|
||||
@ -246,64 +264,25 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
</iq>
|
||||
]]></example>
|
||||
<p>Thus, a different author JID value lets the client know the microblog item has been repeated from another one.</p>
|
||||
<p>It's also possible for Benvolio to add his own thougths to the repost. To do this he SHOULD wrap the original content in the "xhtml:blockquote" element and after it add his own content. Also, the client MAY post reply without quotation to the original thread to inform users about the repost.</p>
|
||||
</section2>
|
||||
<section2 topic='Attaching files to a Post' anchor='attach'>
|
||||
<p>Romeo might want to attach some files, such as pictures of his last vacations, or documents he wants to share. For each file to publish, Romeo's client MUST add a <link /> element. The "href" and "rel" attributes MUST be added; the "title", "type" and "length" ones MIGHT be added.</p>
|
||||
<example caption="Attaching some files to a Post"><![CDATA[
|
||||
<iq from='romeo@montague.lit/pda'
|
||||
id='pub3'
|
||||
to='romeo@montague.lit'
|
||||
type='set'>
|
||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item id='1df87v1q-2d12-43se-761w-318790d3g1sq'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<source>
|
||||
<author>
|
||||
<name>Romeo Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
<content type='text'>Beautiful Eiffel Tower!</content>
|
||||
<link rel='alternate'
|
||||
type='text/html'
|
||||
href='http://montague.lit/romeo/posts/1df87v1q-2d12-43se-761w-318790d3g1sq'/>
|
||||
<link rel='alternate'
|
||||
href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=1df87v1q-2d12-43se-761w-318790d3g1sq'/>
|
||||
<link rel='enclosure'
|
||||
title='Head in the clouds'
|
||||
type='image/jpeg'
|
||||
length='156732'
|
||||
href='http://montague.lit/romeo/files/uei8327hdz12.jpg'>
|
||||
<link xmlns='urn:xmpp:microblog:0'
|
||||
rel='self'
|
||||
title='thumb'
|
||||
type='image/jpeg'
|
||||
length='31723'
|
||||
href='http://montague.lit/romeo/files/uei8327hdz12_thumb.jpg'/>
|
||||
</link>
|
||||
<link rel='enclosure'
|
||||
title='Trip report'
|
||||
type='application/pdf'
|
||||
length='67123'
|
||||
href='http://montague.lit/romeo/files/82he1oh2084s.pdf'/>
|
||||
<id>tag:montague.lit,2008-05-08:posts-1df87v1q-2d12-43se-761w-318790d3g1sq</id>
|
||||
<published>2008-05-08T18:35:02Z</published>
|
||||
<updated>2008-05-08T18:35:02Z</updated>
|
||||
</entry>
|
||||
</item>
|
||||
</publish>
|
||||
</pubsub>
|
||||
</iq>
|
||||
<section2 topic="Post Categories" anchor="categories">
|
||||
<p>It's often handy to specify categories (or tags) to a post to make it easier to find it or to structure a blog. It's possible by adding "atom:category" element to the entry (it can be blog or replies entry).</p>
|
||||
<example caption="Specify post's categories"><![CDATA[
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
...
|
||||
<category term='humour'/>
|
||||
<category term='xmpp'/>
|
||||
...
|
||||
</entry>
|
||||
]]></example>
|
||||
<p>If client can generate some thumbnails images of the attached file (for pictures, videos or documents), it MAY create one or more <link /> sub-elements to the parent file <link /> element. It MUST set "xmlns" attribute to "urn:xmpp:microblog:0"; "rel" attribute to "self"; "title" attribute to "thumb"; "href" to the path of the thumbnail image. It SHOULD also have a "type" attribute specifying the thumbnail file MIME type.</p>
|
||||
</section2>
|
||||
</section1>
|
||||
|
||||
<section1 topic='Comments' anchor='comments'>
|
||||
<p>Juliet and Benvolio may want to discuss about latest Romeo's post. Romeo's client MIGHT add a <link /> element to the PubSub item. The element MUST have "rel", "title" and "href" attributes, where "rel" MUST have the "replies" value; "title" MUST have the "comments" value; "href" MUST be an XMPP URI (see &rfc5122; and &rfc3986;).</p>
|
||||
<p>Juliet and Benvolio may want to discuss about latest Romeo's post. To enable this, Romeo's client MAY add a "atom:link" element to the PubSub item. The element MUST have "rel", "title" and "href" attributes, where "rel" MUST have the "replies" value; "title" MUST have the "comments" value; "href" MUST be an XMPP URI (see &rfc5122; and &rfc3986;).</p>
|
||||
<section2 topic='Post Comments' anchor='post_comments'>
|
||||
<p>We assume Romeo's client first created a comments node (named "urn:xmpp:microblog:0:comments/ID", where "ID" is the microblog item ID, or the SHA-1 encoded attachement URI, as defined in &rfc3174;), with defaults "pubsub#access_model" and "pubsub#publish_model" privacy settings (see &xep0060; for node creation and configuration).</p>
|
||||
<p>We assume Romeo's client first created a comments node (named "urn:xmpp:microblog:0:comments/ID", where "ID" is the microblog item ID, or the SHA-1 encoded attachment URI, as defined in &rfc3174;).</p>
|
||||
<example caption="Adding a comments link to a Post"><![CDATA[
|
||||
<iq from='romeo@montague.lit/pda'
|
||||
id='pub4'
|
||||
@ -313,18 +292,7 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item id='2ze57d9c-1c46-21df-830c-002143d3d2qgf'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<source>
|
||||
<author>
|
||||
<name>Romeo Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
<content type='text'>hanging out at the Caf&#233; Napolitano</content>
|
||||
<link rel='alternate'
|
||||
type='text/html'
|
||||
href='http://montague.lit/romeo/posts/2ze57d9c-1c46-21df-830c-002143d3d2qgf'/>
|
||||
<link rel='alternate'
|
||||
href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=2ze57d9c-1c46-21df-830c-002143d3d2qgf'/>
|
||||
<title type='text'>hanging out at the Caf&#233; Napolitano</title>
|
||||
<link rel='replies'
|
||||
title='comments'
|
||||
href='xmpp:pubsub.montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Fdd88c9bc58886fce0049ed050df0c5f2'/>
|
||||
@ -337,54 +305,9 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
</pubsub>
|
||||
</iq>
|
||||
]]></example>
|
||||
<p>If the comment to publish is the first item of the node, the client MAY add a "link" element, with the "rel=start" attribute. In this way, clients can determine which comment is the first one of a discussion.</p>
|
||||
</section2>
|
||||
<section2 topic='Attachement Comments' anchor='attachement_comments'>
|
||||
<p>As we do for <link url='#post_comments'>Post Comments</link>, Romeo's client MAY create one comments PubSub node for each attachement of a post (see section of <link url='#attach'>Attaching files to a Post</link> of this document).</p>
|
||||
<p>The element to create MUST be children of the parent "link" element of the attachement. Some attributes differ from the original commenting specification: "xmlns" attribute MUST be set to value "urn:xmpp:microblog:0"; "title" attribute MUST be set to value "comments_file".</p>
|
||||
<example caption="Adding a comments link to an Attachement"><![CDATA[
|
||||
<iq from='romeo@montague.lit/pda'
|
||||
id='pub5'
|
||||
to='romeo@montague.lit'
|
||||
type='set'>
|
||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item id='1af87d4i-3f09-41gt-871e-098182g4b2az'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<source>
|
||||
<author>
|
||||
<name>Romeo Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
<content type='text'>I love cranberries!</content>
|
||||
<link rel='alternate'
|
||||
type='text/html'
|
||||
href='http://montague.lit/romeo/posts/1af87d4i-3f09-41gt-871e-098182g4b2az'/>
|
||||
<link rel='alternate'
|
||||
href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=1af87d4i-3f09-41gt-871e-098182g4b2az'/>
|
||||
<link rel='enclosure'
|
||||
title='Delicious'
|
||||
type='image/jpeg'
|
||||
length='91741'
|
||||
href='http://montague.lit/romeo/files/efoq9172kwq.jpg'>
|
||||
<link xmlns='urn:xmpp:microblog:0'
|
||||
rel='replies'
|
||||
title='comments_file'
|
||||
href='xmpp:pubsub.montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Fa9fe0b44ea62c6be71fac8471696fece'/>
|
||||
</link>
|
||||
<id>tag:montague.lit,2008-05-08:posts-1af87d4i-3f09-41gt-871e-098182g4b2az</id>
|
||||
<published>2008-05-08T18:54:02Z</published>
|
||||
<updated>2008-05-08T18:54:02Z</updated>
|
||||
</entry>
|
||||
</item>
|
||||
</publish>
|
||||
</pubsub>
|
||||
</iq>
|
||||
]]></example>
|
||||
</section2>
|
||||
<section2 topic='Adding a comment' anchor='comment_add'>
|
||||
<p>If Juliet wants to comment Romeo's latest post, her client MUST then send a new Atom entry to the defined PubSub node.</p>
|
||||
<section2 topic='Adding a Comment' anchor='comment_add'>
|
||||
<p>If Juliet wants to comment Romeo's latest post, her client sends a new Atom entry to the defined PubSub node.</p>
|
||||
<p>Note: A comments node SHOULD be located at a generic publish-subscribe node that is not attached to a user's IM account, but MAY be located at a personal eventing (PEP) node.</p>
|
||||
<example caption="Adding a comment to a comments node"><![CDATA[
|
||||
<iq from='juliet@capulet.lit/pc'
|
||||
@ -395,13 +318,11 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
<publish node='urn:xmpp:microblog:0:comments/dd88c9bc58886fce0049ed050df0c5f2'>
|
||||
<item id='b2106a80de39ef5ec6b8f7b69cb610c2'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<source>
|
||||
<author>
|
||||
<name>Juliet Capulet</name>
|
||||
<uri>xmpp:juliet@capulet.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
<content type='text'>She is so pretty!</content>
|
||||
<title type='text'>She is so pretty!</title>
|
||||
<published>2008-05-08T18:39:02Z</published>
|
||||
</entry>
|
||||
</item>
|
||||
@ -413,8 +334,78 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
</section2>
|
||||
</section1>
|
||||
|
||||
<section1 topic="Pubsub Node Configuration" anchor="node_config">
|
||||
<p>We have described two pubsub nodes types here: the one is for the microblog itself and the other one is for comments to posts.</p>
|
||||
<p>Usage specific requires the special parameters to these nodes to be specified. This section describes recommendation for them.</p>
|
||||
<section2 topic="Microblog node configuration" anchor="microblog_node_config">
|
||||
<p>Here are recommendations for a microblogging node (usually located at PEP and named by the "urn:xmpp:microblog:0" namespace) configuration:</p>
|
||||
<ol>
|
||||
<li>The "pubsub#notify_retract" MUST be set to true to provide clients the ability to track if some items were retracted and reflect such changes in the UI correctly.</li>
|
||||
<li>The "pubsub#max_items" SHOULD be increased from the default value to some reasonable value.</li>
|
||||
<li>The "pubsub#send_last_published_item" SHOULD be changed to "never".</li>
|
||||
</ol>
|
||||
</section2>
|
||||
<section2 topic="Comments node configuration" anchor="comments_node_config">
|
||||
<p>Here are recommendations for a comments node configuration:</p>
|
||||
<ol>
|
||||
<li>The "pubsub#notify_retract" MUST be set to true to provide clients the ability to track if some items were retracted and reflect such changes in the UI correctly.</li>
|
||||
<li>The "pubsub#max_items" SHOULD be increased from the default value to some reasonable value.</li>
|
||||
<li>The "pubsub#access_model" SHOULD be set to "open" to allow any user to comment to a post. Other values are suitable too according to the user's settings.</li>
|
||||
</ol>
|
||||
</section2>
|
||||
</section1>
|
||||
|
||||
<section1 topic='Microblog Metadata' anchor='metadata'>
|
||||
<p>In order to provide users with some metadata (i.e. blog title or author information) about the microblog, the client MUST to add an item with such information. The client MUST set the ID of the item to "0".</p>
|
||||
<example caption="Publishing microblog metadata"><![CDATA[
|
||||
<iq from='romeo@montague.lit/pc'
|
||||
id='pub8'
|
||||
to='romeo@montague.lit'
|
||||
type='set'>
|
||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item id='0'>
|
||||
<feed xmlns='http://www.w3.org/2005/Atom'>
|
||||
<title>Romeo&apos;s Microblog</title>
|
||||
<id>tag:montague.lit,2008:home</id>
|
||||
<updated>2008-05-08T18:30:02Z</updated>
|
||||
<author>
|
||||
<name>Romeo Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</feed>
|
||||
</item>
|
||||
</publish>
|
||||
</pubsub>
|
||||
</iq>
|
||||
]]></example>
|
||||
<p>It also necessary to link a comments node to the post which discussed in the node. We will do it by adding the "atom:link" element with "rel=start" attribute:</p>
|
||||
|
||||
<example caption="Publishing comments node metadata"><![CDATA[
|
||||
<iq from='romeo@montague.lit/pc'
|
||||
id='pub8'
|
||||
to='pubsub.montague.lit'
|
||||
type='set'>
|
||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item id='0'>
|
||||
<feed xmlns='http://www.w3.org/2005/Atom'>
|
||||
<title>Comments to a post</title>
|
||||
<id>tag:pubsub.montague.lit,2008:comments-2ze57d9c-1c46-21df-830c-002143d3d2qgf</id>
|
||||
<updated>2008-05-08T18:30:02Z</updated>
|
||||
<link rel='start'
|
||||
href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=1cb57d9c-1c46-11dd-838c-001143d5d5db'
|
||||
ref='tag:montague.lit,2008-05-08:posts-1cb57d9c-1c46-11dd-838c-001143d5d5db'/>
|
||||
</feed>
|
||||
</item>
|
||||
</publish>
|
||||
</pubsub>
|
||||
</iq>
|
||||
]]></example>
|
||||
</section1>
|
||||
|
||||
<section1 topic='Geotagging' anchor='geotagging'>
|
||||
<p>Juliet may want to know which places are Romeo's notices related to. That's why Romeo's client MIGHT geotag microblog entries, using the &xep0080; protocol for storing geolocation informations.</p>
|
||||
<p>Juliet may want to know which places are Romeo's notices related to. That's why Romeo's client MAY geotag microblog entries, using the &xep0080; protocol for storing geolocation information.</p>
|
||||
<p>Romeo's client MUST create a "geoloc" element, with the &xep0080; reference namespace: "http://jabber.org/protocol/geoloc".</p>
|
||||
<example caption="Geotagging a Post"><![CDATA[
|
||||
<iq from='romeo@montague.lit/mobile'
|
||||
@ -425,18 +416,11 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
<publish node='urn:xmpp:microblog:0'>
|
||||
<item id='1zr23z8a-3g12-34fh-750b-120867gjc1sqh'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<source>
|
||||
<author>
|
||||
<name>Romeo Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
<content type='text'>Is lost in the forest. Need help!</content>
|
||||
<link rel='alternate'
|
||||
type='text/html'
|
||||
href='http://montague.lit/romeo/posts/1zr23z8a-3g12-34fh-750b-120867gjc1sqh'/>
|
||||
<link rel='alternate'
|
||||
href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=1zr23z8a-3g12-34fh-750b-120867gjc1sqh'/>
|
||||
<title type='text'>Is lost in the forest. Need help!</title>
|
||||
<link rel='replies'
|
||||
title='comments'
|
||||
href='xmpp:pubsub.montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2F36ec6dfe61e52b1e2cdb248823520233'/>
|
||||
@ -458,48 +442,32 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0
|
||||
]]></example>
|
||||
</section1>
|
||||
|
||||
<section1 topic='Microblog informations' anchor='informations'>
|
||||
<p>Romeo may want to publish some informations about his microblog, such as its title, an alternate web-version URI or the last time it was updated.</p>
|
||||
<p>Romeo's client MAY publish these informations once he defined them. If so, his client MUST send them to the "urn:xmpp:microblog:0:informations" node, containing one only item, with the ID set to "0".</p>
|
||||
<example caption="Publishing microblog informations"><![CDATA[
|
||||
<iq from='romeo@montague.lit/pc'
|
||||
id='pub8'
|
||||
to='romeo@montague.lit'
|
||||
type='set'>
|
||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||
<publish node='urn:xmpp:microblog:0:informations'>
|
||||
<item id='0'>
|
||||
<entry xmlns='http://www.w3.org/2005/Atom'>
|
||||
<source>
|
||||
<title>Romeo&apos;s Microblog</title>
|
||||
<link href='http://montague.lit/romeo'/>
|
||||
<id>tag:montague.lit,2008:home</id>
|
||||
<updated>2008-05-08T18:30:02Z</updated>
|
||||
<author>
|
||||
<name>Romeo Montague</name>
|
||||
<uri>xmpp:romeo@montague.lit</uri>
|
||||
</author>
|
||||
</source>
|
||||
</entry>
|
||||
</item>
|
||||
</publish>
|
||||
</pubsub>
|
||||
</iq>
|
||||
]]></example>
|
||||
</section1>
|
||||
|
||||
<section1 topic='Notifications' anchor='body'>
|
||||
<p>When replying to a comment, it is RECOMMENDED the user's client send a notification to the people who commented on the comments node, as defined in a forthcoming specification currently located at <<link url='http://xmpp.org/extensions/inbox/notification-inbox.html'>http://xmpp.org/extensions/inbox/notification-inbox.html</link>>.</p>
|
||||
<p>When quoting an user's name (e.g., by using @user tag), it is also RECOMMENDED to send a similar notification.</p>
|
||||
<section1 topic="Aggregators" anchor="aggregators">
|
||||
<p>In order to provide some statistical information, to represent the blogs other ways than XMPP (i.e. in web or NNTP), we will need other entities called "Aggregators".</p>
|
||||
<p>You can think of aggregators like about search engines in the web: they gather information from the whole web and then represent it suitable ways. The same is true here: Aggregators just subscibe to many entities and then they can build a database to make queries and show appropriate information according to these queries. Also they can be used to represent information in web or other networks.</p>
|
||||
<p>Unlike web search engines, an XMPP aggregator does not need to gather information by downloading it frequently to check if something was changed. Instead, it can listen to pubsub events and make its database up-to-date based on this information.</p>
|
||||
<p>Aggregators can be started by different people with different aims. It can be aggregator which devoted to the concrete blog service provider which will be subscribed only to its own users, or it can be a global search engine which tries to subscribe to most of users or to aggregate the feeds of other aggregators.</p>
|
||||
<p>This section will describe most used aggregator usecases but the list is not exhaustive.</p>
|
||||
<section2 topic="Pubsub Item ID vs. Atom Entry id" anchor="pubsub_id_vs_atom_id">
|
||||
<p>There are two different things that carry a similar sense: the XMPP pubsub Item ID and the "atom:id" element. This section is devoted to make a separation between them.</p>
|
||||
<p>The pubsub Item ID MUST be used when linking to an entry with an XMPP channel (i.e. by including it in the URI with the "xmpp" schema). the Atom entry ID MUST be built according to &rfc4287; and used in aggregators with the aim of revealing of post duplicates, reposts, mentions, syndications, etc.</p>
|
||||
<p>Note that the rules of comparing, building and security notes for "atom:id" are listed in the &rfc4287;.</p>
|
||||
</section2>
|
||||
<section2 topic="Aggregator Usecases" anchor="aggregator_usecases">
|
||||
<section3 topic="Representing Posts in the Web" anchor="aggregator_web">
|
||||
<p>One of the possible aims of aggregator services is to provide web representaion of blogs.</p>
|
||||
<p>TBD: insert alternate link to the post with the http address of the post.</p>
|
||||
</section3>
|
||||
</section2>
|
||||
</section1>
|
||||
|
||||
<section1 topic='Message Body' anchor='body'>
|
||||
<p>Depending on service policies and the value of the "pubsub#include_body" node configuration option, microblogging notifications SHOULD include a message <body/> element for backwards-compatibility with Jabber clients that are not pubsub-capable. It is RECOMMENDED for the XML character value of the <body/> element to be the same as that of the <content/> child of the Atom <entry/>.</p>
|
||||
<p>Depending on service policies and the value of the "pubsub#include_body" node configuration option, microblogging notifications SHOULD include a message "body" element for backwards-compatibility with Jabber clients that are not pubsub-capable. It is RECOMMENDED for the XML character value of the "body" element to be the same as that of the "atom:title" child of the "atom:entry".</p>
|
||||
</section1>
|
||||
|
||||
<section1 topic='Security Considerations' anchor='security'>
|
||||
<section2 topic='Comment author' anchor='comment_author'>
|
||||
<p>The client SHOULD check that the comment author informations (provided in the "author" element) are valid, by checking that the "publisher" item attribute value matches the "uri" element value. If there is a difference, the comment MIGHT be displayed, but it is RECOMMENDED to specify there is a security problem.</p>
|
||||
<section2 topic='Comment Author' anchor='comment_author'>
|
||||
<p>The client SHOULD check that the comment author information (provided in the "author" element) is valid, by checking that the "publisher" item attribute value matches the "uri" element value. If there is a difference or the check can not be performed because there was not a "publisher" attribute included, the comment can be displayed, but it is RECOMMENDED to specify there is a security problem.</p>
|
||||
</section2>
|
||||
</section1>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user