W3C home > Mailing lists > Public > public-schemaorg@w3.org > April 2019

Re: content negotiation isn't working

From: Richard Wallis <richard.wallis@dataliberate.com>
Date: Wed, 10 Apr 2019 12:26:46 +0100
Message-ID: <CAD47Kz7aP34Ssr4Y5XnkBfyKUBW3myvPBLQmHNtZAwc0PyzW-g@mail.gmail.com>
To: Mark Wilkinson UPM <mark.wilkinson@upm.es>
Cc: "schema.org Mailing List" <public-schemaorg@w3.org>
Hi Mark,

I have just tested this, using curl.   Although I did not get the required
output for *all* the accept types you listed I did get the correct output
serialisations for the types listed on the developers page
<https://schema.org/docs/developers.html#conneg>:

   -

   curl  -s -L --header "Accept: application/ld+json" http://schema.org/Book

   -

   curl  -s -L --header "Accept: application/rdf+xml" http://schema.org/Book
   -

   curl  -s -L --header "Accept: text/plain" http://schema.org/Book
   -

   curl  -s -L --header "Accept: application/x-turtle"
   http://schema.org/Book
   -

   curl  -s -L --header "Accept: text/csv" http://schema.org/Book

~Richard

Richard Wallis
Founder, Data Liberate
http://dataliberate.com
Linkedin: http://www.linkedin.com/in/richardwallis
Twitter: @rjw



On Wed, 10 Apr 2019 at 12:07, Mark Wilkinson UPM <mark.wilkinson@upm.es>
wrote:

> Dear Schema-team,
>
>
> It appears that content negotiation isn't quite working properly for
> schema.org terms, as described in https://schema.org/docs/developers.html
>
> The Accept header:  Accept: text/turtle, application/ld+json,
> application/rdf+xml, text/xhtml+xml, application/n3, application/rdf+n3,
> application/turtle, application/x-turtle, text/n3, text/turtle,
> text/rdf+n3, text/rdf+turtle, application/n-triples
>
> includes several of the content-types that you provide, but calls using
> that header return HTML...
>
>
> Am I misunderstanding?
>
>
> Mark
>
>
>
> --
> Dr. Mark D. Wilkinson
> BBVA-UPM Industry Chair on Biotechnology
> Isaac Peral Distinguished Researcher
> Centro de Biotecnología y Genómica de Plantas UPM-INIA (CBGP)
> Campus Montegancedo,
> Autopista M-40 (Km 38)
> 28223-Pozuelo de Alarcón (Madrid)
>
>
> "The urge to save humanity is almost always a false front
> for the urge to rule it"
>
>                         -- H. L. Mencken
>
>
>
Received on Wednesday, 10 April 2019 11:27:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:12:46 UTC