serving linked data
Kjetil Kjernsmo
kjetil at kjernsmo.net
Sat Dec 5 19:49:35 CET 2009
On Saturday 5. December 2009 03:07:49 Gregory Williams wrote:
> Not knowing of one right off I hacked up a small mod_perl module tonight
> to do it based on an RDF::Trine::Model, and doing the whole
> httpRange-14 conneg redirect dance. I haven't done any pretty printing
> code yet (hesitant to dive into templating modules), but if anyone
> thinks this would be useful code, I'd be happy to publish it. Thoughts?
Yeah, I've thought about too, but not done anything. It would be nice to
have.
My idea was to implement a system that would have only 303-URIs.
The same handler (or whatever, mod_perl seems to be going out) would handle
two servers, both e.g. http://id.example.org/dahut and
http://rdf.example.org/dahut . The former would be the URI of the actual
thing, the latter an information resource about it. The actual data would
be in an RDF database.
If a client chooses to dereference http://id.example.org/dahut, the server
would internally a do a DESCRIBE on the Request-URI and if it returns a
result, cache the result, and respond with a 303 with
Location: http://rdf.example.org/dahut which would return 200 with the
already (mem)cached result. If the DESCRIBE returned no result, the server
would return a 404.
Cheers,
Kjetil
--
Kjetil Kjernsmo
kjetil at kjernsmo.net
http://www.kjetil.kjernsmo.net/
More information about the Dev
mailing list