Hi Ryan,

Agreed! I've deprecated APPLICATION_RDF, then added APPLICATION_RDF_XML and
TEXT_RDF_N3. 

Concerning Turtle, as the suggested MIME type is "application/x-turtle" then
constant name would be "APPLICATION_TURTLE" but I'm unsure about adding this
as a built-in media type, especially if this changes to "application/turtle"
in the future (as suggested here:
http://www.dajobe.org/2004/01/turtle/#sec-mime).

Anyway, people can always manually define new media types if needed.Ex: new
MediaType("application/x-turtle").

Concerning the philosophical question, yes there is a 1-1 mapping between
MediaType as MIME types. See the RFC 1590 referred by the HTTP 1.1 spec:
http://www.ietf.org/rfc/rfc1590.txt I understand your concerns with some RDF
frameworks. There is a similar issue with XHTML which is mapped to various
media types depending on the case (application/xml, application/xhtml+xml or
text/html). Unfortunately you need to deal with this yourself. Maybe you can
use content negotiation if those frameworks correctly define the "Accept"
HTTP header.

Best regards,
Jerome  

> -----Message d'origine-----
> De : Ryan Daum [mailto:[EMAIL PROTECTED] 
> Envoyé : mardi 20 mars 2007 19:03
> À : [email protected]
> Objet : Re: MediaType.APPLICATION_RDF
> 
> Correction, I believe that should be TEXT_RDF_N3 and TEXT_RDF_NTRIPLE
> 
> 
> On 3/20/07, Ryan Daum <[EMAIL PROTECTED] > wrote:
> 
>       Just a quick note; technically speaking "RDF" isn't a 
> media type, but rather a data model.  There are several 
> serializations of RDF, the most popular being RDF/XML (let's 
> call it APPLICATION_RDFXML?), but there are others, like N3, 
> etc. that are quite popular. 
>       
>       It might be a good idea, before going 1.0, to clarify 
> this by renaming APPLICATION_RDF to APPLICATION_RDFXML and 
> adding APPLICATION_RDF_N3, and APPLICATION_RDF_NTRIPLE
>       
>       Also, philosophical question: is it really the case 
> that we can assume a 1-1 mapping between a MediaType and a 
> Mime-Type?  Mime-type application/rdf+xml is the "correct" 
> mime-type for RDF/XML, but in reality some frameworks (like 
> Mozilla's RDF stuff) expect it in application/xml ..  I'm 
> hacking around this in my RDFXMLRepresentation, but it seems 
> inelegant as it stands. 
>       
>       Ryan
>       
>       -- 
>       Ryan Daum
>       [EMAIL PROTECTED]
>       Senior Developer, Toronto 
>       647.724.5232 x 2073 
> 
> 
> 
> 
> -- 
> Ryan Daum
> [EMAIL PROTECTED]
> Senior Developer, Toronto
> 647.724.5232 x 2073 
> 

Reply via email to