Re: PUT and extensions

One aspect I'm curious about how best to approach -

Assume that:

http://example.org/123

- has both RDF and HTML representations available. If I then PUT a new
version of (say) the RDF one, should that also change the HTML one?

As far as I can tell the specs are agnostic on this, though does seem
desirable that it should in a typical scenario. In practice I imagine
most systems (will) use a single, canonical internal representation
(whether RDF, HTML or more generally in a DB). But whether or not they
/can/ support changes coming in different types is another matter. The
current generation of CMSs usually support messages from a client
using a same-server HTML form, but little else. But to better support
the Web part of RWW, I reckon the surface area available for potential
clients to address should be maximised.

In the many-media type, client-from-anywhere scenario there's probably
increased chance of the client giving the server something it /doesn't
quite/ understand. Some extra sanity-checking and a few more of the
status codes will probably be needed. But given in practice if the
client has the correct authorization, then it should be reasonably
safe to assume that the message will be of the right shape.

For their CMS tools the IKS folks [1] are using an approach they call
"decoupled content management", which (if I understand it correctly)
involves serving HTML+RDFa but taking updates through JSON-LD. For my
RWWish play-project [2] I'm thinking of going a little further,
supporting triplestore-backed representations of RDF, HTML and JSON in
either direction. It'll mean quite a bit of extract work with
templating/parsing, but there are libs, and as I'm aiming towards a
platform-like system I reckon it makes sense.

Cheers,
Danny.

[1] http://wiki.iks-project.eu/index.php/VIE
see also:
https://plus.google.com/112609322932428633493/posts/BrsM6ygiDfc
[2] https://plus.google.com/u/0/b/102910670341143019851/102910670341143019851/posts

-- 
http://dannyayers.com

http://webbeep.it  - text to tones and back again

Received on Saturday, 7 April 2012 18:48:52 UTC