%ents; ABNF RFC 5234: Augmented BNF for Syntax Specifications: ABNF <http://tools.ietf.org/html/rfc5234>." > UTF-8 RFC 3629: UTF-8, a transformation format of ISO 10646 <http://tools.ietf.org/html/rfc3629>." > ]>
The 'xmpp.pubsub' URI Scheme This document defines the format of Uniform Resource Identifiers (URIs) to identify nodes in the context of Publish-Subscribe services as well as items within the scope of such nodes. &LEGALNOTICE; xxxx ProtoXEP Standards Track Standards Council XMPP Core XEP-0060 RFC 3986 NOT_YET_ASSIGNED Klaus Hartke hartke@tzi.org nx@jabber.org 0.0.1 2012-01-14 kh

Initial draft.

&xep0060; is an XMPP protocol extension for generic publish-subscribe functionality. Several protocols use Uniform Resource Identifiers (URIs) to refer to data. By defining a URI scheme for pubsub data, the gap between these two worlds is bridged. The 'xmpp.pubsub' URI scheme defined here can be used to reference any node within the context of a specific pubsub service, or an item within the scope of a specific node.

Note: XEP-0060, Section 4.6.1, specifies the use of JIDs for addressing pubsub nodes, which in combination with the &xmppiri; already provides a way to generate URIs for these nodes. This, however, does not allow addressing nodes that are addressable as a JID plus node (see XEP-0060, Section 4.6.2), and also does not allow referring to the items published to nodes.

The URI scheme defined herein is designed to meet the following requirements:

  1. Provide a way to address pubsub items and nodes.
  2. Address pubsub nodes as JID plus NodeID.
  3. Enable applications to fabricate a URI given a JID and a NodeID.
  4. Support relative URI references.

The URI scheme follows the generic syntax from &rfc3986; and is described using &ABNF;. The "host", "query", "gen-delims", "sub-delims", "pct-encoded", "reserved" and "unreserved" rules are defined in RFC 3986, and the "authxmpp" and "nodeid" rule are defined in RFC 5122.

Unless specified in the URI, the authority ("authxmpp") is assumed to be locally known, and the NodeID ("pubsub-nodeid") to refer to the root node (i.e., the service itself).

A number of characters that can appear in an NodeID and ItemID MUST be percent-encoded in pubsub-nodeid and pubsub-itemid respectively. These are the characters that cannot appear in a URI according to RFC 3986 as well as "%" (because it is used for percent-encoding) and all the characters in the "gen-delims" set (i.e., ":", "/", "?", "#", "[", "]" and "@").

Note that this specification, like any URI scheme specification, does not define syntax or meaning of a fragment identifier (see RFC 3986, Section 3.5), because these depend on the type of a retrieved representation. The character "#" in pubsub-nodeid's and pubsub-itemid's MUST be escaped as %23.

Since the scheme conforms to the URI generic syntax; URIs of this scheme are normalized and compared according to the algorithm defined in RFC 3986, Section 6.

The scheme and host are case-insensitive and normally provided in lowercase; all other components are compared in a case-sensitive manner. Characters other than those in the "reserved" set are equivalent to their percent-encoded octets (see RFC 3986, Section 2.1): the normal form is to not encode them. Non-ASCII characters can be encoded according to &UTF-8;, and then each octet of the corresponding UTF-8 sequence is percent-encoded to be represented as URI characters.

If no NodeID and no ItemID is specified, the slash character after host is OPTIONAL. Likewise, if a NodeID but no ItemID is specified, the slash character after pubsub-nodeid is OPTIONAL. The normal form is to provide the slash character in either case.

An 'xmpp.pubsub' URI designates a node within the context of a specific pubsub service, or an item within the scope of a node. A publish-subscribe service is an XMPP server or component that adheres to the protocol defined in XEP-0060. A node is a location to which information can be published and from which event notifications and/or payloads can be received. Nodes are uniquely identified by a NodeID within the context of a particular pubsub service. An item is an XML fragment which is published to a node, thereby generating an event. Items are uniquely identified by an ItemID within the scope of a node.

An application that processes an 'xmpp.pubsub' URI reconstructs the encapsulated XMPP address, NodeID and optionally ItemID, connects to an appropriate XMPP server, and sends an appropriate XMPP "stanza" (XML fragment) with the NodeID and ItemID to the XMPP address. The set of possible operations is defined in XEP-0060.

The query component provides a way to refer more specifically to data associated with the target. Possible values for URIs referring to nodes are: "meta-data" and "last-item".

If an authority ("authxmpp") is given in the URI string, this indicates the user the application should connect as. Otherwise, the application should connect as the default user.

TODO.

This document requests the registration of the Uniform Resource Identifier (URI) scheme 'xmpp.pubsub' with &IANA;. The registration request complies with &rfc4395;.

URI scheme name.
xmpp.pubsub
Status.
Permanent
URI scheme syntax.
See the syntax section of &SELF;.
URI scheme semantics.
See the semantics section of &SELF;.
Encoding considerations.
See the syntax section of &SELF;.
Applications/protocols that use this URI scheme name.
The 'xmpp.pubsub' URI scheme is intended to be used by interfaces to an XMPP network that wish to interact with XMPP pubsub services and need to identify pubsub nodes within the context of these services as well as items in the scope of these nodes.
Interoperability considerations.
None.
Security considerations.
See the security considerations section of &SELF;.
Contact.
XSF
Author/Change controller.
XSF
References.
&SELF;

No namespaces or parameters need to be registered with the ®ISTRAR; as a result of this document.

Some text in this document was borrowed or adapted from RFC 3986, RFC 5122 and XEP-0060.

This work was funded by Intel.