Johan Sundström wrote: > On 1/25/07, David Huynh <[EMAIL PROTECTED]> wrote: >> Oh that might work! So, maybe something like this? >> >> <head> >> <link rel="exhibit/data" type="application/json" >> href="my-data.json" /> >> >> <link rel="exhibit/google-spreadsheets-data" type="application/jsonp" >> >> href="http://spreadsheets.google.com/feeds/list/o08841867754116283182.6102151849127695926/od6/public/basic?alt=json-in-javscript" >> /> >> >> <!-- Just for you, Google! --> >> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" >> >> href="http://www.foo.com/convert-exhibit-json-to-rss?url=http://people.csail.mit.edu/dfhuynh/my-data.json" >> /> >> >> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" >> >> href="http://spreadsheets.google.com/feeds/list/o08841867754116283182.6102151849127695926/od6/public/basic" >> /> >> </head> >> >> How confident are we that this will work? > > At the very least, it is worth a shot and doing some field testing. > > My own take on the problem is that we could add an exporter (the > options you see in the "Copy" menus of exhibits) that exports exhibit > html tables that could be put on pages that then need only be > decorated with a script tag pointing Simile-wards, and an onload > handler, creating your exhibit given an id of the table (or tables) > involved. > > Google is at least provably already very good at scraping content like > that, and will certainly serve the correct URL. Not completely > beautiful, as the data gets embedded in quite a lot of HTML cruft > (html tables never were very compact, storage-wise either), but it > gets the job done, and is dead simple.
One of the approaches I've taken in the past (see the SIMILE home page at http://simile.mit.edu/) is to have the source of the data be a (hidden?) part of the HTML itself. This allows for non-javascript-enabled browsers to fall back on something meaningful. While it is true that json might be more compact, having exhibit 'dynamize' a static HTML page that embeds everything and falls back to something useful even if CSS and JS are disabled is, IMHO, the best incremental way. We could even use RDF/A[1] directly for the HTML data inside the page that exhibit feeds off of. What do you say? [1] http://www.w3.org/TR/xhtml-rdfa-primer/ -- Stefano Mazzocchi Digital Libraries Research Group Research Scientist Massachusetts Institute of Technology E25-131, 77 Massachusetts Ave skype: stefanomazzocchi Cambridge, MA 02139-4307, USA email: stefanom at mit . edu ------------------------------------------------------------------- _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
