jimregan / mlode

Automatically exported from code.google.com/p/mlode
0 stars 0 forks source link

Validating Cornetto #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

How many triples are affected? (if less than 3-5% of the whole data set,
please set priority to _low_)

Please use labels and text to provide additional information.

Original issue reported on code.google.com by mohamedd...@gmail.com on 17 Aug 2012 at 3:14

GoogleCodeExporter commented 9 years ago
Testing with Vapour:
http://idi.fundacionctic.org/vapour?uri=http%3A%2F%2Fpurl.org%2Fvocabularies%2Fc
ornetto%2Fsynset-iets-2-noun.rdf&defaultResponse=dontmind&userAgent=vapour.sourc
eforge.net

Failed only when requesting while dereferencing resource URI without specifying 
the desired content type (HTTP response code should be 303, the output is 302 
redirect not 303 

Original comment by mohamedd...@gmail.com on 20 Aug 2012 at 4:16

GoogleCodeExporter commented 9 years ago
Testing with eyeball:

No problem found.

Original comment by mohamedd...@gmail.com on 20 Aug 2012 at 4:17

GoogleCodeExporter commented 9 years ago
Testing with:
curl -IL -H "Accept: application/rdf+xml" 
http://purl.org/vocabularies/cornetto/synset-iets-2-noun.rdf

Output:

HTTP/1.1 302 Moved Temporarily
Date: Mon, 20 Aug 2012 16:18:21 GMT
Server: 1060 NetKernel v3.3 - Powered by Jetty
Location: 
http://semanticweb.cs.vu.nl/europeana/lod/purl/vocabularies/cornetto/synset-iets
-2-noun.rdf
Content-Type: text/html; charset=iso-8859-1
X-Purl: 2.0; http://localhost:8080
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 324

HTTP/1.1 200 OK
Date: Mon, 20 Aug 2012 16:18:21 GMT
Content-Length: 38
Content-Type: application/rdf+xml

Issues:
- Replay with 302 Moved Temporarily not as supposed to be 303.
- The returned data is in text/html format not in rdf/xml as it is supposed to 
be.

Original comment by mohamedd...@gmail.com on 20 Aug 2012 at 4:23

GoogleCodeExporter commented 9 years ago
Although 302 is generally wrong, it is implemented right:
http://lists.w3.org/Archives/Public/public-swbp-wg/2006Jan/0076.html

 The temporary URI SHOULD be given by the Location field in the
   response. Unless the request method was HEAD, the entity of the
   response SHOULD contain a short hypertext note with a hyperlink to
   the new URI(s).

Actually, -I is a head request so the first request shouldn't contain any 
content. Besides that the second request (200 OK) returns "Content-Type: 
application/rdf+xml" 

The problem with 302 and purl.org is very old and probably unresolved (please 
research, start here: 
http://lists.w3.org/Archives/Public/public-swbp-wg/2006Jan/0076.html)

see also:
http://www.w3.org/TR/cooluris/

Original comment by kur...@googlemail.com on 20 Aug 2012 at 7:25

GoogleCodeExporter commented 9 years ago
Linking can't be verified because of no SPAQL endpoint found.

Original comment by mohamedd...@gmail.com on 23 Aug 2012 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by mohamedd...@gmail.com on 2 Sep 2012 at 9:56