From 3995ec8aa65a62951f7d6bec9d406e74f1a83a13 Mon Sep 17 00:00:00 2001 From: Humberto Rocha Date: Fri, 23 Jun 2023 21:04:28 -0400 Subject: [PATCH] Add schema.org context --- core/ld.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/ld.py b/core/ld.py index fdb40b8..6baac29 100644 --- a/core/ld.py +++ b/core/ld.py @@ -547,6 +547,18 @@ schemas = { } }, }, + "schema.org": { + "contentType": "application/ld+json", + "documentUrl": "https://schema.org/docs/jsonldcontext.json", + "contextUrl": None, + "document": { + "@context": { + "schema": "http://schema.org/", + "PropertyValue": {"@id": "schema:PropertyValue"}, + "value": {"@id": "schema:value"}, + }, + }, + }, } DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S.Z"