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']