Opening contribution to the Task force for the strategic project on the development and use of common ESS tools and services for dissemination. Eurostat, Luxembourg, 20 September 2012.
1. Links and Widgets:
the Fabric of the Web
Xavier Badosa (@badosa)
Statistical Institute of Catalonia (Idescat)
Task force for the strategic project on the development and
use of common ESS tools and services for dissemination
Eurostat, Luxembourg, 20 September 2012
27. For a map of Esterri de Cardós, visit For statistics on Esterri de Cardós, visit
the Cartographic Institute of Catalonia. the Statistical Institute of Catalonia.
30. spreading atoms in the digital space
from a macro website
to micro services
Content Mobility
31. spreading atoms in the digital space
from a macro website
to micro services
Content dissemination with zero distortion
Increased visibility Content Mobility
Increased customer base
brand strengthening
Better customer service
36. <iframe src="http://www.slideshare.net/slideshow/
embed_code/8495428" width="427" height="356"
frameborder="0" marginwidth="0" marginheight="0"
scrolling="no" style="border:1px solid #CCC;border-width:
1px 1px 0;margin-bottom:5px" allowfullscreen> </iframe>
<div style="margin-bottom:5px"> <strong> <a
href="http://www.slideshare.net/badosa/
idescat-on-the-google-public-data-explorer" title="Idescat on
the Google Public Data Explorer" target="_blank">Idescat on the
Google Public Data Explorer</a> </strong> from <strong><a
href="http://www.slideshare.net/badosa" target="_blank">Xavier
Badosa</a></strong> </div>
Widgets
mechanism: many
interface:
content retrieval:
distance: 0 clicks
37. <blockquote class="twitter-tweet"><p>Data Protocols:
community-based, light-weight <a
href="https://twitter.com/search/?q=%23data"><s>#</s>
<b>data</b></a> <a href="https://twitter.com/search/?
q=%23protocols"><s>#</s><b>protocols</b></a> for
collaborative, distributed work with data <a href="http://t.co/
KTzLtvo8" title="http://ow.ly/cjz0o">ow.ly/cjz0o</a> <a
href="https://twitter.com/search/?q=%23json"><s>#</s><b>json</b>
</a> <a href="https://twitter.com/search/?q=%23api"><s>#</s><b>api
</b></a></p>— JSON-stat.org (@jsonstat) <a
href="https://twitter.com/jsonstat/status/225589541841551360"
data-datetime="2012-07-18T13:55:12+00:00">July 18, 2012</a>
</blockquote><script src="//platform.twitter.com/widgets.js" charset="utf-
8"></script>
Widgets
mechanism: many
interface:
content retrieval:
distance: 0 clicks
70. It’s a widget but it’s a link too.
(The widget promotes the widget.)
must be built
71. It’s a widget but it’s a link too.
(The widget promotes the widget.)
Clicks / visit ……………………….… 0.6%
Clicks on content / clicks …….… 93% must be built
Clicks on footer/ clicks ………….. 7%
Clicks on footer / visit ……….. 0.04%
72. Main content
Maximize
looks/usefulness
must be built
73. Main content
Maximize
looks/usefulness
Resizability
must be built
93. 1. Protect the provider ’s website
end end end end
user user user user
94. 1. Protect the provider ’s website
A different content server for third parties
www.idescat.cat api.idescat.cat
end end end end
user user user user
113. shared interface
...ifr?p=i/21,7,22 data
...ifr?p=i/6,13,9 data
...ifr?p=i/36,39,15 data
...ifr?p=i/8,23,14 data
...ifr?p=i/16,10,40 data
...ifr?p=i/24,52,11 data
7 ...ifr?p=i/2,41,28 data
124. <body>
<script type="text/javascript">
var setup=getURIParameters();
buildDOM(setup.layout);
var data=AjaxRetrieveData(setup.content);
insertDataOnDOM(data);
</script>
</body>
125. <table>
<caption>Tuvalu population by sex</caption>
<thead>
<tr><th></th><th scope="col">2002</th></tr>
</thead>
<tfoot>
<tr><td colspan="2">Source: Central Statistics Division – Government of Tuvalu.</td></tr>
</tfoot>
<tbody>
<tr><th scope="row">Men</th><td> 4,729 </td></tr>
<tr><th scope="row">Women</th><td> 4,832 </td></tr>
<tr><th scope="row">Total</th><td> 9,561 </td></tr>
</tbody>
</table>
<body>
<script type="text/javascript">
var setup=getURIParameters();
buildDOM(setup.layout);
var data=AjaxRetrieveData(setup.content);
insertDataOnDOM(data);
</script>
</body>
126. shared interface
...ifr#p=i/21,7,22 data
...ifr#p=i/6,13,9 data
...ifr#p=i/36,39,15 data
...ifr#p=i/8,23,14 data
...ifr#p=i/16,10,40 data
...ifr#p=i/24,52,11 data
7 ...ifr#p=i/2,41,28 data
129. A script is unaware about itself
<script type="text/javascript" src="
http://api.idescat.cat/{widget}.js#
geo=tv&class=sex&metric=pop&time=2002&…
"></script>
130. A script is unaware about itself
<script type="text/javascript" src="
http://api.idescat.cat/{widget}.js#
geo=tv&class=sex&metric=pop&time=2002&…
"></script>
hack
var s=document.getElementsByTagName('script');
var params=s[s.length-1].src.replace(/^[^#]+#?/,'');
137. Widgets
mechanism: many
interface: must be built
content retrieval: yes
distance: 0 clicks
138. 1. Use a dedicated server for third party services
2. Implement a different cache policy for interface/data
3. Run in the client as many computing tasks
as possible
content retrieval: yes
139. 4. Main content widgets must be resizable
5. Side content widgets must be customizable
(layout / content)
(If both resizable and customizable, better.)
interface: must be built
140. 6. Provide an <iframe /> façade
7. But also a <script /> façade
8. Allow auto-embedding
mechanism: many
142. Thank you
Slide #1ff. Web image by zzathras777 (CC BY-NC)
Slide #4 PageRank chart by 345Kai (Public domain)
Slide #10ff. Australian one way sign (GNU Free Documentation
License)
Slide #13 Bruce Lee image, author unknown
Slide #16ff. Chain links image by Eric M. Martin (CC BY-NC-ND)
Slide #32 Peacocks image by Michelle Kinsey Bruns (CC BY-SA)
Slide #39 Magic wand image by Sheeshoo (CC BY-NC-SA)