[HTTP-in-RDF] StatusCode, statusCodeNumber, and dc:identifier

Dear ERT WG,

Please find below a description of the "StatusCode issue" [1]. Feel free 
to comment in advance of the meeting.

[1] <http://www.w3.org/WAI/ER/HTTP/issues#StatusCodeClass>


Original comment by David Remahl:
  - 
<http://lists.w3.org/Archives/Public/public-earl10-comments/2010Jul/0000.html>


Essence of the comment:
  - the StatusCode Class [2, 3] does not have an identifier for the 
status code number, and the commenter suggests using dct:identifier.

[2] <http://www.w3.org/TR/2009/WD-HTTP-in-RDF10-20091029/#StatusCodeClass>
[3] <http://www.w3.org/2008/http-statusCodes>


Following that suggestion, the RDF code [3] would look like this:

[[
<rdf:Description rdf:about="#statusCode404">
   <rdfs:isDefinedBy 
rdf:resource="http://www.rfc-editor.org/rfc/rfc2616.txt"/>
   <dct:isPartOf rdf:resource="#statusCodeGroup4xx"/>
   <dc:title xml:lang="en">Not Found</dc:title>
   <dc:identifier>302</dc:identifier>
   <rdf:type rdf:resource="http://www.w3.org/2006/http#StatusCode"/>
</rdf:Description>
]]


Issues:
  - #1. HTTP-in-RDF already provides a statusCodeNumber property [4], 
which records the *status code sent by the server*
  - #2. CarlosV suggests using and XMLInterger datatype rather than 
Literal values for the status code

[4] 
<http://www.w3.org/TR/2009/WD-HTTP-in-RDF10-20091029/#statusCodeNumberProperty>


Proposed resolution:
  - use dct:identifier (with or without XMLInteger datatype) in addition 
to statusCodeNumber, to represent the "should value" rather than what 
was actually sent by the server (could be useful for consistency checks)


Other options:
  - change statusCodeNumber from "value sent by the server" to "should 
value", and move it from Response to StatusCode class (possibly make it 
a sub-property of dct:identifier too)
  - create another property, say "statusCodeValue", as an XMLInteger 
datatype that lives in the StatusCode class (possibly make it a 
sub-property of dct:identifier too)


Thoughts?


Regards,
   Shadi

-- 
Shadi Abou-Zahra - http://www.w3.org/People/shadi/ |
   WAI International Program Office Activity Lead   |
  W3C Evaluation & Repair Tools Working Group Chair |

Received on Tuesday, 19 April 2011 22:10:25 UTC