On Mon, May 14, 2012 at 10:18:19PM -0400, Tom Baker wrote:
> > It seems to me that a 303 redirect would be more appropriate than the
> > current 302 in this case. The redirect origin identifies a property,
> > the redirect target identifies a section of a document describing the
> > resource. So it's (part of) a related document.
>
> Agreed.
I was looking for examples of RDFa documents using 303 redirects for
serving up documentation about term URIs, but I'm seeing:
-- VoID uses 302 with content negotiation
$ curl -I
http://rdfs.org/ns/void#objectsTarget
HTTP/1.1 302 Found
Date: Tue, 15 May 2012 11:53:18 GMT
Server: Apache/2.2.11 (Debian) PHP/5.3.3-7 with Suhosin-Patch
mod_ssl/2.2.11 OpenSSL/0.9.8o
Location:
http://vocab.deri.ie/void
Content-Type: text/html; charset=iso-8859-1
$ curl --header "Accept: application/turtle"
http://vocab.deri.ie/void
[Turtle output]
$ curl --header "Accept: application/rdf+xml"
http://vocab.deri.ie/void
[RDF/XML output]
-- FOAF uses 303 with content negotiation
$ curl -I
http://xmlns.com/foaf/0.1/maker
HTTP/1.1 303 See Other
Date: Tue, 15 May 2012 11:50:00 GMT
Server: Apache/2.2.14 (Ubuntu)
Access-Control-Allow-Origin: *
Location:
http://xmlns.com/foaf/spec/
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1
$ curl --header "Accept: application/rdf+xml"
http://xmlns.com/foaf/spec/
[RDF/XML output]
Are there other examples demonstrating RDFa + 303 redirect, or would
DCMI be breaking new ground? If the latter, then I would want to put a
concise but complete explanation into place explaining our rationale.
As I understand it, one potential downside of using RDFa _only_ for
serving the RDF vocabulary (i.e., without supporting content negotiation
for RDF/XML and possibly Turtle) is that some RDF data consumers will
not have up-to-date tools for consuming the RDFa. Are there any other
potential negatives?
I'm wondering if best practice would be to implement content negotiation
_in addition_to_ RDFa? In that case, we could derive the RDF/XML (or
should it be Turtle?) from the RDFa, but we would need to configure
.htaccess with conditional redirects.