culturecreates / artsdata-orion

Collection of data sources loaded into Artsdata by Culture Creates
0 stars 0 forks source link

Exercise: schema.org @context #32

Open saumier opened 6 months ago

saumier commented 6 months ago

Exercise

Very often a JSON-LD file contains "@context":"http://schema.org".

As a learning exercise to advance understanding of JSON-LD, please explain the steps to download the schema.org @context using curl starting with http://schema.org

Then add the @context to a comment in this issue as a JSON object.

Then do a JSON-LD Expanded version using JSON-LD Playground with the following JSON-LD:

{
  "@context": "http://schema.org",
  "name": "Test Event",
  "startDate": "2023-01-12T00:00:00Z"
}

Explain each line in the expanded version and how the @context works.

saumier commented 6 months ago

Solution

curl -i 'http://schema.org' --> redirects to https curl -i 'https://schema.org' --> link: </docs/jsonldcontext.jsonld>; rel="alternate"; type="application/ld+json" curl -i 'https://schema.org/docs/jsonldcontext.jsonld' --> remote @context