Closed eroux closed 6 years ago
Implemented as of commit f391dfa
I considered that a url is an alternate to itself, which is logically true. Therefore, I didn't parse the accept header to remove the current url from the alternates list (I tried but realized that it was a whole different story and I am not sure it worth the effort).
Looking at some other semantic systems, I think there are a few additional headers we could use. For instance
gives an interesting result:
In our case we can serve the .ttl directly and not care about the redirection, but the
TCN
andAlternates
headers are interesting and I think we should use them.The
Link
s would certainly be a little convoluted to produce so I don't think it's really interesting for us...As we have direct links for ttl, jsonld, etc. we should also use the Content-Location header, for instance when doing
we should see: