From c5134f07ce618a03c6e995e81611d85ed51132e9 Mon Sep 17 00:00:00 2001 From: Richard Law Date: Fri, 5 Jun 2020 12:22:58 +1200 Subject: [PATCH] fixes #444 (#445) --- pygeoapi/linked_data.py | 2 +- tests/test_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pygeoapi/linked_data.py b/pygeoapi/linked_data.py index 14fb2f8..fb89c05 100644 --- a/pygeoapi/linked_data.py +++ b/pygeoapi/linked_data.py @@ -60,7 +60,7 @@ def jsonldify(func): provider = meta.get('provider', {}) ident = meta.get('identification', {}) fcmld = { - "@context": "https://schema.org", + "@context": "https://schema.org/docs/jsonldcontext.jsonld", "@type": "DataCatalog", "@id": cfg.get('server', {}).get('url', None), "url": cfg.get('server', {}).get('url', None), diff --git a/tests/test_api.py b/tests/test_api.py index 23a767e..43db647 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -145,7 +145,7 @@ def test_root_structured_data(config, api_): assert root['description'] == 'pygeoapi provides an API to geospatial data' assert '@context' in root - assert root['@context'] == 'https://schema.org' + assert root['@context'] == 'https://schema.org/docs/jsonldcontext.jsonld' expanded = jsonld.expand(root)[0] assert '@type' in expanded assert 'http://schema.org/DataCatalog' in expanded['@type']