No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0110.xml 7.8KB

  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM "xep.ent">
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>Generic Maps</title>
  10. <abstract>A protocol for transport of generic maps (graphical displays of specific subsets of buddies).</abstract>
  12. <number>0110</number>
  13. <status>Deferred</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <dependencies/>
  17. <supersedes/>
  18. <supersededby/>
  19. <shortname>Not yet assigned</shortname>
  20. <author>
  21. <firstname>Jiri</firstname>
  22. <surname>Komzak</surname>
  23. <email></email>
  24. <jid></jid>
  25. </author>
  26. <author>
  27. <firstname>Martin</firstname>
  28. <surname>Dzbor</surname>
  29. <email></email>
  30. <jid></jid>
  31. </author>
  32. <revision>
  33. <version>0.1</version>
  34. <date>2003-07-28</date>
  35. <initials>jk</initials>
  36. <remark>Initial version.</remark>
  37. </revision>
  38. </header>
  39. <section1 topic='Introduction'>
  40. <p>Generic maps provide a way to extending the roster into a general display showing contacts (JIDs) together with further additional information. The further information is provided by the position in the map (and possibly by the dot type - e.g. shape or colour). In addition to showing people belonging to one roster group, it is possible to cluster people, use more detailed inset maps etc. each of these features providing a unique context.</p>
  41. <p>The motivations for this document are:</p>
  42. <ul>
  43. <li>It is faster and easier to find people using a rich graphical view as compared to linear lists/trees</li>
  44. <li>Maps provide easily understandable further information (context) about the contact</li>
  45. <li>Maps show relations among JIDs and give better idea about their distribution in a given space (e.g. geographic region, company, campus)</li>
  46. </ul>
  47. </section1>
  48. <section1 topic='Requirements'>
  49. <p>The requirements for the protocol are:</p>
  50. <ul>
  51. <li>General definition of projection based on some attribute(s) of particular JIDs</li>
  52. <li>Scaleability - in display size and size of transmitted data</li>
  53. </ul>
  54. </section1>
  55. <section1 topic='Use Cases'>
  56. <p>Generic Map is actually XML description of a graphical display, which can then be sent as a part of &lt;message/&gt; or &lt;iq/&gt; packet together with information about how to obtain attributes needed for its display (other resources required).</p>
  57. <section2 topic='Generic Map message'>
  58. <p>Example 1 shows a typical message containing simple Generic Map.</p>
  59. <example caption='Generic map message'><![CDATA[
  60. <message to='' from='' id='map1'>
  61. <subject>Map of our office</subject>
  62. <body>Cool stuff, I can see you on-line in the map.</body>
  63. <map xmlns='' id='map1.ygf'>
  64. <layer id='inset_1' offset_x='0' offset_y='0' scale='1'>
  65. <img src='ortho_0.gif' width='242' height='243'/>
  66. <item jid='' x='135' y='35'/>
  67. <item jid='' x='175' y='155'/>
  68. </layer>
  69. </map>
  70. <x xmlns=jabber:x:oob>
  71. <url></url>
  72. <desc>ortho_0.gif - map for map1.ygf</desc>
  73. </x>
  74. </message>
  75. ]]></example>
  76. <p>Each map consists of one or more layers. The main purpose of layers is to combine maps and views to deliver information suitable for a particular context, and to offer greater flexibility to the user in respect to customization.</p>
  77. <p>Layers can be defined either inline or by a reference to another map. Each layer has a specified position in the map, a scale and a priority. The maps defined inline contain also projection, underlying image and a list of entities lying inside it (i.e. typically JIDs or clusters of JIDs). The underlying images are sent out of band using the jabber:x:oob namespace or possibly defined in some other way (e.g. xml-based SVG).</p>
  78. <p>The map in Example 1 uses an implicit map projection assuming that attributes x and y are directly the co-ordinates of a particular entity (e.g. in the image (ortho_0.gif) expressed in pixels.</p>
  79. </section2>
  80. <section2 topic='Definition of projection'>
  81. <p>A similar map with coordinates specified using geographic latitude + longitude (possibly obtained using Geographic Location Information <note>XEP-0080: Geographic Location Information <link url=''></link></note> extension) is shown in Example 2 (only the map tag is shown).</p>
  82. <example caption='Generic map tag using geographic coordinates'><![CDATA[
  83. <map xmlns='' id='map2.ygf'>
  84. <layer id='inset_1' offset_x='0' offset_y='0' scale='1'>
  85. <img src='ortho_0.gif' width='242' height='243'/>
  86. <projection x='(long-5)*10' y='(lat-40)*12'/>
  87. <item jid='' long='9' lat='51'/>
  88. <item jid='' long='12' lat='52'/>
  89. </layer>
  90. </map>
  91. ]]></example>
  92. <p>As can be seen in Example 2, the projection can be specified using any parameters either explicitly set in the item tags or obtained for the particular JID from some other source (e.g. JUD or LDAP).</p>
  93. </section2>
  94. <section2 topic='Scaleability'>
  95. <p>Another important feature of this proposal is scaleability, which is achieved by grouping the individual JIDs with similar properties (e.g. 'near' locations) into clusters. Cluster is basically a list of constituting entities (JIDs) that share similar values of specified attribute (e.g. JIDs that are co-located in the same town/region/country). The size of clusters may depend on the resolution and intended scale of the map. In the map clusters can be displayed using a distinctive icon.</p>
  96. <example caption='Generic map tag with clustered items'><![CDATA[
  97. <map xmlns='' id='map3.ygf'>
  98. <layer id='inset_1' offset_x='0' offset_y='0' scale='1'>
  99. <img src='ortho_0.gif' width='242' height='243'/>
  100. <item jid='' long='9' lat='51'/>
  101. <cluster size='10' x='38' y='135' size='5'>
  102. <item jid=''/>
  103. <item jid=''/>
  104. </cluster>
  105. </layer>
  106. </map>
  107. ]]></example>
  108. </section2>
  109. </section1>
  110. <section1 topic='Implementation Notes'>
  111. <p>The following guidelines may assist the developers of a mapping plug-in in the Jabber clients.</p>
  112. <section2 topic='Parsing equations for map projections'>
  113. <p>The expression in the &lt;projection/&gt; tag uses values of different attributes specified for the JID either directly in the &lt;map/&gt; tag or elsewhere in the environment.</p>
  114. </section2>
  115. <section2 topic='Transfering image files'>
  116. <p>The image files (maps) are transferred as an extra extension of packet using the filename as a unique id.</p>
  117. </section2>
  118. <section2 topic='Attributes for determination of coordinates'>
  119. <p>The attributes are either specified in the &lt;map/&gt; tag or known in the environment (e.g. presence), but they could be also provided by a subscribed service using Publish-Subscribe <note>XEP-0060: Publish-Subscribe <link url=''></link></note> (e.g. GPS or LBS from a mobile operator).</p>
  120. </section2>
  121. <section2 topic='Clusters - accumulation of attribute values'>
  122. <p>The clustering of items can be specified directly in the map tag or done using a pixel resolution of the display available.</p>
  123. </section2>
  124. </section1>
  125. <section1 topic='Security Considerations'>
  126. <p>No security features or concerns related to this proposal.</p>
  127. </section1>
  128. <section1 topic='IANA Considerations'>
  129. <p>No IANA interaction required.</p>
  130. </section1>
  131. <section1 topic='XMPP Registrar Considerations'>
  132. <p>The &REGISTRAR; will need to register the new namespace of "".</p>
  133. </section1>
  134. </xep>