This document defines a protocol for making annotations about roster items and other entities.
NOTICE: This Historical specification provides canonical documentation of a protocol that is in use within the Jabber/XMPP community. This document is not a standards-track specification within the XMPP Standards Foundation's standards process; however, it may be converted to standards-track in the future or may be obsoleted by a more modern protocol.
Series: XEP
Number: 0145
Publisher: XMPP Standards Foundation
Status:
Active
Type:
Historical
Version: 1.0
Last Updated: 2006-03-23
Approving Body: XMPP Council
Dependencies: XMPP Core, XEP-0049
Supersedes: None
Superseded By: None
Short Name: rosternotes
Schema: <http://www.xmpp.org/schemas/rosternotes.xsd>
Wiki Page: <http://wiki.jabber.org/index.php/Annotations (XEP-0145)>
Email:
steve@zeank.in-berlin.de
JabberID:
zeank@jwchat.org
This XMPP Extension Protocol is copyright 1999 - 2007 by the XMPP Standards Foundation (XSF) and is in full conformance with the XSF's Intellectual Property Rights Policy <http://www.xmpp.org/extensions/ipr-policy.shtml>. This material may be distributed only subject to the terms and conditions set forth in the Creative Commons Attribution License (<http://creativecommons.org/licenses/by/2.5/>).
The preferred venue for discussion of this document is the Standards discussion list: <http://mail.jabber.org/mailman/listinfo/standards>.
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The following keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
1. Introduction
2. The storage:rosternotes Namespace
3. Security Considerations
4. IANA Considerations
5. XMPP Registrar Considerations
6. XML Schema
Notes
Revision History
Many modern IM clients offer functionality that enables users to make notes about items in their roster. This comes in handy if users don't have meaningful information in their vCard or if you need to remember additional things related to a roster item.
This specification defines a protocol for storing annotations about a given set of entities. Its primary goal is to enable users to store some personal piece of information with their roster items. Private XML Storage [1] provides with a convenient method for storing user data on the server using the 'jabber:iq:private' namespace; all we need to do is define a namespace and schema for storing this sort of information. For this the 'storage' element introduced in Bookmark Storage [2] is reused, and a new namespace of 'storage:rosternotes' is added.
Annotations are stored using server-side private XML storage (the 'jabber:iq:private' namespace). A storage element marked by the storage:rosternotes namespace contains a collection of one or more <note/> elements, each representing a note about a given entity. For any given JID there MUST NOT be more than one note.
The 'jid' attribute of the <note/> element SHOULD be used without a resource. Along with the annotation a client MAY choose to store creation time ('cdate') and modification time ('mdate') as attributes to the <note/> element containing the note; these attributes MUST conform to the DateTime profile specified in XMPP Date and Time Profiles [3] and the timezone SHOULD be UTC.
<iq type='set' id='a1'> <query xmlns='jabber:iq:private'> <storage xmlns='storage:rosternotes'> <note jid='hamlet@shakespeare.lit' cdate='2004-09-24T15:23:21Z' mdate='2004-09-24T15:23:21Z'>Seems to be a good writer</note> <note jid='juliet@capulet.com' cdate='2004-09-27T17:23:14Z' mdate='2004-09-28T12:43:12Z'>Oh my sweetest love ...</note> </storage> </query> </iq>
Note: All notes are stored as a "bundle" within the same <storage/> element.
Retrieving notes uses the protocol described in XEP-0049.
<iq type='get' id='a2'> <query xmlns='jabber:iq:private'> <storage xmlns='storage:rosternotes'/> </query> </iq>
<iq type='result' id='a2'> <query xmlns='jabber:iq:private'> <storage xmlns='storage:rosternotes'> <note jid='hamlet@shakespeare.lit' cdate='2004-09-24T15:23:21Z' mdate='2004-09-24T15:23:21Z'>Seems to be a good writer</note> <note jid='juliet@capulet.com' cdate='2004-09-27T17:23:14Z' mdate='2004-09-28T12:43:12Z'>Oh my sweetest love ...</note> </storage> </query> </iq>
For error conditions please refer to XEP-0049.
Security considerations related to private XML storage are described in XEP-0049.
No interaction with the Internet Assigned Numbers Authority (IANA) [4] is required as a result of this document.
No namespaces or parameters need to be registered with the XMPP Registrar [5] as a result of this document.
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='storage:rosternotes' xmlns='storage:rosternotes' elementFormDefault='qualified'> <xs:annotation> <xs:documentation> The protocol documented by this schema is defined in XEP-0145: http://www.xmpp.org/extensions/xep-0145.html </xs:documentation> </xs:annotation> <xs:element name='storage'> <xs:complexType> <xs:sequence> <xs:element ref='note' minOccurs='0' maxOccurs='unbounded'/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name='note'> <xs:complexType> <xs:simpleContent> <xs:extension base='xs:string'> <xs:attribute name='jid' type='xs:string' use='required'/> <xs:attribute name='cdate' type='xs:dateTime' use='optional'/> <xs:attribute name='mdate' type='xs:dateTime' use='optional'/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:schema>
1. XEP-0049: Private XML Storage <http://www.xmpp.org/extensions/xep-0049.html>.
2. XEP-0048: Bookmark Storage <http://www.xmpp.org/extensions/xep-0048.html>.
3. XEP-0082: XMPP Date and Time Profiles <http://www.xmpp.org/extensions/xep-0082.html>.
4. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>.
5. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <http://www.xmpp.org/registrar/>.
Per a vote of the Jabber Council, advanced to Active.
(psa)Editorial review: changed type to Historical; changed namespace to storage:rosternotes; corrected schema; specified use of DateTime profile from XEP-0082; corrected some small textual errors.
(psa)Initial version.
(st)END