{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/1890","repository_url":"https://api.github.com/repos/ckan/ckan","labels_url":"https://api.github.com/repos/ckan/ckan/issues/1890/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/1890/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/1890/events","html_url":"https://github.com/ckan/ckan/issues/1890","id":40619944,"number":1890,"title":"Make consistent all forms of RDF output from CKAN","user":{"login":"augusto-herrmann","id":1058414,"avatar_url":"https://avatars.githubusercontent.com/u/1058414?v=3","gravatar_id":"","url":"https://api.github.com/users/augusto-herrmann","html_url":"https://github.com/augusto-herrmann","followers_url":"https://api.github.com/users/augusto-herrmann/followers","following_url":"https://api.github.com/users/augusto-herrmann/following{/other_user}","gists_url":"https://api.github.com/users/augusto-herrmann/gists{/gist_id}","starred_url":"https://api.github.com/users/augusto-herrmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augusto-herrmann/subscriptions","organizations_url":"https://api.github.com/users/augusto-herrmann/orgs","repos_url":"https://api.github.com/users/augusto-herrmann/repos","events_url":"https://api.github.com/users/augusto-herrmann/events{/privacy}","received_events_url":"https://api.github.com/users/augusto-herrmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"assignees":[{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ckan/ckan/milestones/6","html_url":"https://github.com/ckan/ckan/milestones/CKAN%202.4%20(old)","labels_url":"https://api.github.com/repos/ckan/ckan/milestones/6/labels","id":834156,"number":6,"title":"CKAN 2.4 (old)","description":"","creator":{"login":"amercader","id":200230,"avatar_url":"https://avatars.githubusercontent.com/u/200230?v=3","gravatar_id":"","url":"https://api.github.com/users/amercader","html_url":"https://github.com/amercader","followers_url":"https://api.github.com/users/amercader/followers","following_url":"https://api.github.com/users/amercader/following{/other_user}","gists_url":"https://api.github.com/users/amercader/gists{/gist_id}","starred_url":"https://api.github.com/users/amercader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amercader/subscriptions","organizations_url":"https://api.github.com/users/amercader/orgs","repos_url":"https://api.github.com/users/amercader/repos","events_url":"https://api.github.com/users/amercader/events{/privacy}","received_events_url":"https://api.github.com/users/amercader/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":144,"state":"closed","created_at":"2014-10-21T10:10:31Z","updated_at":"2016-10-26T10:00:27Z","due_on":null,"closed_at":"2016-03-17T11:27:20Z"},"comments":10,"created_at":"2014-08-19T18:12:47Z","updated_at":"2016-12-02T09:59:34Z","closed_at":"2016-02-12T16:13:26Z","body":"## Problem\n\nCKAN currently has 3 kinds of RDF output, all completely different from each other.\n\na) RDFa\n\nDescrbes the dataset by using Dublin Core and Open Graph vocabularies. Only very minimal metadata is displayed. At least it does link to the resources of the dataset. See, e.g., with RDFa Distiller:\n\nhttp://www.w3.org/2012/pyRdfa/extract?uri=http%3A%2F%2Fdatahub.io%2Fdataset%2Fminas-gerais-spending-data&format=turtle&rdfagraph=output&vocab_expansion=false&rdfa_lite=false&embedded_rdf=true&space_preserve=true&vocab_cache=true&vocab_cache_report=false&vocab_cache_refresh=false\n\nb) N3\n\nDescribes the dataset with DCAT alongside Dublin Core and FOAF. But it's a buggy mess. Has unprocessed template code in place of URIs. Has leftover placeholder text (i.e. every dataset in existence has `foaf:homepage <http://127.0.0.1:5000/dataset/testt>`). See, e.g.,\n\nhttp://datahub.io/dataset/minas-gerais-spending-data.n3\n\nc) RDF/XML\n\nThis is a little better and uses DCAT, DC and FOAF to display some more metadata (such as resources titles). See, e.g.\n\nhttp://datahub.io/dataset/minas-gerais-spending-data.rdf\n\nI think this should be fixed in future versions of CKAN, to make RDF support for the catalog metadata more consistent.\n## Proposed solution\n1. Have an internal mapping of every property of the data structures of CKAN (catalog, groups, organizations, datasets and resources) to RDF. Possibly reuse some of what already existing ones in [ckanext-dcat](https://github.com/ckan/ckanext-dcat/blob/master/ckanext/dcat/converters.py).\n2. Change the html templates to use these mapping for generating the RDFa markup.\n3. Also change the templates that output .rdf and .n3 to use the same mappings.\n\nThen RDF would be consistent among all three formats.\n"},"comment":{"url":"https://api.github.com/repos/ckan/ckan/issues/comments/264417062","html_url":"https://github.com/ckan/ckan/issues/1890#issuecomment-264417062","issue_url":"https://api.github.com/repos/ckan/ckan/issues/1890","id":264417062,"user":{"login":"danbri","id":170265,"avatar_url":"https://avatars.githubusercontent.com/u/170265?v=3","gravatar_id":"","url":"https://api.github.com/users/danbri","html_url":"https://github.com/danbri","followers_url":"https://api.github.com/users/danbri/followers","following_url":"https://api.github.com/users/danbri/following{/other_user}","gists_url":"https://api.github.com/users/danbri/gists{/gist_id}","starred_url":"https://api.github.com/users/danbri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbri/subscriptions","organizations_url":"https://api.github.com/users/danbri/orgs","repos_url":"https://api.github.com/users/danbri/repos","events_url":"https://api.github.com/users/danbri/events{/privacy}","received_events_url":"https://api.github.com/users/danbri/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T09:59:34Z","updated_at":"2016-12-02T09:59:34Z","body":"Related - see https://github.com/ckan/ckanext-dcat/issues/75#issuecomment-264140088 where I propose handling Schema.org (likely in JSON-LD) alongside DCAT. I'd argue that this would then be a strong candidate for going into core, but step-by-step eh? :)\r\n\r\nFWIW I agree with @cygri's comment above that there is scope for multiple different kinds of RDF description. I suggest the unification we should look for is not in terms of getting a single kind of description, but more on the software engineering side - it would be counter productive to have for example a schema.org-oriented addon and the DCAT addon competing for attention, installation, distribution. While I would love to have schema.org support within CKAN HTML pages it would be counter-productive for that to come at the cost of undermining DCAT's existing deployment success.\r\n\r\nSee also https://developers.google.com/search/docs/data-types/datasets which outlines our current focus at Google on these issues. It follows our general focus on schema.org but anticipates at least some partial DCAT support (at least in Microdata/RDFa/JSON-LD; Turtle would probably require a clientside Javascript convertor)."}}
{"actor":{"display_login":"danbri"}}