{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/75","repository_url":"https://api.github.com/repos/ckan/ckanext-dcat","labels_url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/75/comments","events_url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/75/events","html_url":"https://github.com/ckan/ckanext-dcat/issues/75","id":192799773,"number":75,"title":"Support for schema.org JSON-LD as a variation?","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-01T09:56:27Z","updated_at":"2016-12-06T10:27:39Z","closed_at":null,"body":"There is a DCAT-based structure in schema.org for representing datasets, see http://schema.org/Dataset and nearby. We are using it at Google for dataset search, see https://developers.google.com/search/docs/data-types/datasets - would it be possible/appropriate to include support for this within your extension somehow, or is it better to have a separate addon for this? \r\n\r\nThe syntax could be RDFa, Microdata or (probably best) JSON-LD, but should ideally be embedded in the main HTML page for each dataset. See http://developers.google.com/structured-data/testing-tool/ for Google's related Structured Data Testing Tool, which would show whether Google finds the markup."},"comment":{"url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/comments/265114668","html_url":"https://github.com/ckan/ckanext-dcat/issues/75#issuecomment-265114668","issue_url":"https://api.github.com/repos/ckan/ckanext-dcat/issues/75","id":265114668,"user":{"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},"created_at":"2016-12-06T10:27:39Z","updated_at":"2016-12-06T10:27:39Z","body":"@danbri sorry for the late reply\r\n\r\nPerhaps you can help clarify the benefits of adding support for Schema.org representations. There seems to be an assumption among data publishers that adding it will help dataset pages to be found more easily on the main Google search results. Can you confirm this is the case? How does that relate to the Science Search effort that you mention.\r\n\r\nJust to be clear, I think this feature is worth regardless of the better faring in Google search results but obviously it has a much greater appeal for users if that is true.\r\n\r\nLet's keep schema.org support on this extension for now, on a separate plugin so users just have to enable `ckan.plugins = dcat schemaorg ...` to have them both active. If the schemaorg plugin gets enough traction we may consider renaming the extension to something more generic than dcat. or moving it to a separate extension.\r\n\r\nIn terms of implementation, here's a rough spec in case someone has time to give it a go:\r\n\r\n* New `SchemaOrgProfile` class inheriting from `ckanext.dcat.profiles.RDFProfile`,that implements a `graph_from_dataset()` method. This will be very similar to the [DCAT one](`https://github.com/ckan/ckanext-dcat/blob/master/ckanext/dcat/profiles.py#L785) but simplified and adapted to the schema.org terms.\r\n\r\n* New `schemaorg_dataset_show` action mirroring the [`dcat_dataset_show`](https://github.com/ckan/ckanext-dcat/blob/master/ckanext/dcat/logic.py#L20) one but calling the serializer with the profile defined in the previous point and format json-ld.\r\n\r\n* A helper function that calls the action function above\r\n\r\n* As @rossjones rightly says, adding a call to this helper function on the [`read_base.html`](https://github.com/ckan/ckanext-dcat/blob/master/ckanext/dcat/templates/package/read_base.html) template.\r\n\r\n"}}
{"actor":{"display_login":"amercader"}}