Re: Schema.org context issue

Hi Alasdair,

Thanks for sharing this! We were bitten by this in the R bindings to
json-ld javascript library too.  It's a bit unfortunate that the
work-arounds aren't recognized as valid by Google's structured data testing
tool, though they are clearly valid JSON-LD generally.  Fortunately for us
the R developer of the bindings was able to fix this directly; it appears
that the system has switched from content negotiation to a redirect method,
but I'm not sure of the details.

- Carl
---
Carl Boettiger
http://carlboettiger.info/


On Tue, Jun 2, 2020 at 3:29 AM Gray, Alasdair J G <A.J.G.Gray@hw.ac.uk>
wrote:

> Hi
>
>
>
> About 2 weeks ago, Schema.org underwent some online attack which resulted
> in them changing the way they serve the @context file. This change breaks
> many frameworks that attempt to read the context file in dynamically.
>
>
>
> Two workarounds that I know of are:
>
>    1. Replace the short context reference of “@context”:”
>    https://schema.org”  with “@context”:“
>    https://schema.org/docs/jsonldcontext.jsonld”
>    2. Take a local copy of https://schema.org/docs/jsonldcontext.jsonld
>    and overwrite things locally
>
>
>
> I hope that helps people to understand why anything using JSON-LD with the
> Schema.org context has recently stopped working.
>
>
>
> Best regards
>
>
>
> Alasdair
>
>
>
> --
>
> Alasdair J G Gray
>
> Associate Professor in Computer Science,
> School of Mathematical and Computer Sciences
> Heriot-Watt University, Edinburgh, UK.
>
> Email: A.J.G.Gray@hw.ac.uk <A.J.G.Gray@hw.ac.uk>
> Web: http://www.macs.hw.ac.uk/~ajg33
> ORCID: http://orcid.org/0000-0002-5711-4872
> Office: Earl Mountbatten Building 1.39
> Twitter: @gray_alasdair
>
>
>
> To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
>
>
> ------------------------------
>
> Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With
> campuses and students across the entire globe we span the world, delivering
> innovation and educational excellence in business, engineering, design and
> the physical, social and life sciences. This email is generated from the
> Heriot-Watt University Group, which includes:
>
>    1. Heriot-Watt University, a Scottish charity registered under number
>    SC000278
>    2. Heriot- Watt Services Limited (Oriam), Scotland's national
>    performance centre for sport. Heriot-Watt Services Limited is a private
>    limited company registered is Scotland with registered number SC271030 and
>    registered office at Research & Enterprise Services Heriot-Watt University,
>    Riccarton, Edinburgh, EH14 4AS.
>
> The contents (including any attachments) are confidential. If you are not
> the intended recipient of this e-mail, any disclosure, copying,
> distribution or use of its contents is strictly prohibited, and you should
> please notify the sender immediately and then delete it (including any
> attachments) from your system.
>

Received on Tuesday, 2 June 2020 17:17:42 UTC