gleanerio / gleaner

Gleaner: JSON-LD and structured data on the web harvesting
https://gleaner.io
Apache License 2.0
17 stars 11 forks source link

context negotiation based on link in header as alternative to content negotiation #21

Open fils opened 4 years ago

fils commented 4 years ago

Due to: https://github.com/schemaorg/schemaorg/issues/2578

The manner for getting the context has been updated. Note the link header use as an option (?) for resolving the context. We may not be able to simply content negotiate, we will need to look for the link header too.

fils commented 4 years ago

Further info.. related to schema.org recently dropped support for content negotiation. They instead adopted a Link header, with rel="alternate" and type="application/ld+json".

So schema.org headers will be like: