Web server 303 redirection for the semantic web

From CETAF ISTC Wiki

This page is a copy from http://wiki.pro-ibiosphere.eu/wiki/Web_server_303_redirection_for_the_semantic_web , which is not available anymore. An archived version can be found at the Internet Archive.

As explained on Best practices for stable URIs‎‎ for the purpose of semantic clarity, it is important to assign one URI to the abstract concept or physical object, and use another for the information resource (web page, rdf data document) returned. For the first URI no content should ever be returned directly. Instead, the first may be a URI containing a fragment identifier ("#" = hash at the end followed by an identifier), or the first URI is redirected on the web server to the second using an http 303 redirect. This page deals with the latter method.

APACHE example: TO ADD

NGINX example: TO ADD

A useful resource to check your setup is:

http://validator.linkeddata.org/vapour

Enter the URI for the abstract concept or physical object and observe the results. If you are comfortable with a Unix command line, you can also use: curl -I -H "Accept: application/rdf+xml" http://lod.taxonconcept.org/ses/mCcSp#Species

Another good resource is http://sindice.com/ . They have an inspector that does not seem to have a direct link but here is an example of how it works.

http://inspector.sindice.com/index.jsp?url=http%3A%2F%2Flod.taxonconcept.org%2Fses%2FmCcSp%23Species