diff --git a/static/responses/rdf/test.rdf b/static/responses/rdf/test.rdf new file mode 100644 index 0000000..5fb0606 --- /dev/null +++ b/static/responses/rdf/test.rdf @@ -0,0 +1,103 @@ + + + + DSP TEST External Catalogue + + DSP TEST External Catalogue (DEFRA) + + + eng/portal.opensearch + eng/rdf.search?any= + + eng + + + + + DEFRA + + + + + + + + + + application/xml + XML + + + + + + + + + text/html + HTML + + + + + + + a5df0b0f-90a9-4d46-8ede-38d6802c2eae_resource + Swirrl PMD Test record 2: OGL/Non-Spatial Data + This is a test record for Swirrl PublishMyData integration Attribution Statement: © Environment Agency copyright and/or database right 2015. All rights reserved. Lineage: + Open Government Licence + OpenData + + + + + <http://www.opengis.net/def/crs/OGC/1.3/CRS84> + Polygon((-6.236 49.943, -6.236 55.816, 2.072 55.816, 2.072 49.943, -6.236 49.943)) + + + + + / + + 2000-01-01 + 2020-10-12 + + + Department for Environment Food and Rural Affairs + + open@defra.gov.uk + + + + + eng + + + + http://www + Open Government Licence + + + + + + https://support.environment.data.gov.uk/hc/en-gb + DSP_CUSTOMER_FORUM + + + http: + http: + + + Open Government Licence + + + + + diff --git a/static/sites/mock-ckan.conf b/static/sites/mock-ckan.conf index 0cd1f9c..723b29f 100644 --- a/static/sites/mock-ckan.conf +++ b/static/sites/mock-ckan.conf @@ -15,6 +15,12 @@ server { add_header Cache-Control no-cache; + location ~^/rdf(/.*) { + root $mock_ckan_responses_root/rdf; + default_type "application/rdf+xml"; + try_files $1 =404; + } + location /api { root $mock_ckan_responses_root/json; types { }