A little hack for making URIs resolve

Hello,
As we move our KB to a new domain and make more URIs resolvable, we have
devised a little php script (attached) that is used to make a URI resolvable
for the data gathered for our ReSIST activity (old domain at
http://resist.ecs.soton.ac.uk/).
It is sort of interesting, and might be useful for others to customise for
their own environment.
We will use virtual hosts {cordis, dblp, nsf, ...}.rkbexplorer.com for the
gathered rdf with browsing and sparql endpoint, etc.
We then trap 404 for the sites, and do a spaqrl lookup (on the appropriate
3store in our case) (404.php attached).
The little hack is to then be able to cache the results at the obvious file
point, so that the web server simply returns the file next time. Flushing
the cache is done by removing the file.

Best
Hugh

PS
.htaccess (or various other config places) for trapping 404 is
ErrorDocument 404 /rdf/404.php
-- 
Hugh Glaser,  Reader
              Dependable Systems & Software Engineering
              School of Electronics and Computer Science,
              University of Southampton,
              Southampton SO17 1BJ
Work: +44 (0)23 8059 3670, Fax: +44 (0)23 8059 3045
Mobile: +44 (0)78 9422 3822, Home: +44 (0)23 8061 5652
http://www.ecs.soton.ac.uk/~hg/

Received on Monday, 4 June 2007 15:40:47 UTC