This commit is contained in:
Richard Law
2020-06-05 12:22:58 +12:00
committed by GitHub
parent 63c2a470dc
commit c5134f07ce
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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),
+1 -1
View File
@@ -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']