diff --git a/ckanext/dcat/tests/profiles/base/test_base_profile.py b/ckanext/dcat/tests/profiles/base/test_base_profile.py index 221c772c..52bf8bc1 100644 --- a/ckanext/dcat/tests/profiles/base/test_base_profile.py +++ b/ckanext/dcat/tests/profiles/base/test_base_profile.py @@ -660,7 +660,7 @@ def test_publisher_foaf(self): p = RDFProfile(g) - publisher = p._publisher(URIRef('http://example.org'), DCT.publisher) + publisher = p._agent_details(URIRef('http://example.org'), DCT.publisher) assert publisher['uri'] == 'http://orgs.vocab.org/some-org' assert publisher['name'] == 'Publishing Organization for dataset 1' @@ -688,7 +688,7 @@ def test_publisher_ref(self): p = RDFProfile(g) - publisher = p._publisher(URIRef('http://example.org'), DCT.publisher) + publisher = p._agent_details(URIRef('http://example.org'), DCT.publisher) assert publisher['uri'] == 'http://orgs.vocab.org/some-org' diff --git a/examples/ckan/dataset.json b/examples/ckan/dataset.json index c1d887d1..a9a34c67 100644 --- a/examples/ckan/dataset.json +++ b/examples/ckan/dataset.json @@ -11,9 +11,15 @@ "name": "Geological Society", "mbox": "info@gs.org" }, - "distribution": [{"accessURL": "http://www.bgs.ac.uk/gbase/geochemcd/home.html", - "byteSize": null, - "description": "Resource locator", - "format": "text/html", - "title": ""}] + "creator": { + "name": "John Doe", + "mbox": "johndoe@example.com" + }, + "distribution": [{ + "accessURL": "http://www.bgs.ac.uk/gbase/geochemcd/home.html", + "byteSize": null, + "description": "Resource locator", + "format": "text/html", + "title": "" + }] } diff --git a/examples/ckan/full_ckan_dataset.json b/examples/ckan/full_ckan_dataset.json index 24a17bcc..e62927c7 100644 --- a/examples/ckan/full_ckan_dataset.json +++ b/examples/ckan/full_ckan_dataset.json @@ -1,6 +1,6 @@ { - "author": null, - "author_email": null, + "author": "John Doe", + "author_email": "johndoe@example.com", "extras": [ { "__extras": { diff --git a/examples/ckan/temp b/examples/ckan/temp new file mode 100644 index 00000000..e69de29b