{"action":"opened","issue":{"url":"https://api.github.com/repos/YASGUI/YASR/issues/67","labels_url":"https://api.github.com/repos/YASGUI/YASR/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/YASGUI/YASR/issues/67/comments","events_url":"https://api.github.com/repos/YASGUI/YASR/issues/67/events","html_url":"https://github.com/YASGUI/YASR/issues/67","id":70884830,"number":67,"title":"Make handling of URI labels more consistent","user":{"login":"LaurensRietveld","id":988347,"avatar_url":"https://avatars.githubusercontent.com/u/988347?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurensRietveld","html_url":"https://github.com/LaurensRietveld","followers_url":"https://api.github.com/users/LaurensRietveld/followers","following_url":"https://api.github.com/users/LaurensRietveld/following{/other_user}","gists_url":"https://api.github.com/users/LaurensRietveld/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurensRietveld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurensRietveld/subscriptions","organizations_url":"https://api.github.com/users/LaurensRietveld/orgs","repos_url":"https://api.github.com/users/LaurensRietveld/repos","events_url":"https://api.github.com/users/LaurensRietveld/events{/privacy}","received_events_url":"https://api.github.com/users/LaurensRietveld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-25T09:38:45Z","updated_at":"2015-04-25T09:38:45Z","closed_at":null,"body":"How labels are handled right now: \r\n- By default, try fetching label as title from preflabel.org\r\n- Optionally, for the table and pivottable plugin, use the 'mergeLabelsWithUris' option (see http://yasr.yasgui.org/doc/) to merge bindings in the SPARQL resultset together (label with be text, URI will be href value)\r\n- Another option (presented here https://github.com/YASGUI/YASQE/issues/61) is to fetch the labels by dereferencing the URI\r\n\r\nThese options are now configurable per output plugin. To make these options more manageable, we should make the following improvements:\r\n- Add these option to the main YASR options object, instead of each plugin independently (and, if users want to change behaviour for one particular output plugin, they can overwrite it for that particular one)\r\n- Make the options more genereric, i.e. ideally:\r\n```js\r\nYASR.defaults.options.labels {\r\n    source: [preflabel | labelBinding | dereferenceableUri],\r\n    asText: [true|false]//display label as text instead of the URI, or display label as part of the title tag\r\n```\r\n\r\nOne catch: async options (preflabel and dereferenceable URIs) won't work for all plugins, e.g. the google charts\r\n\r\nThis change would probably not be fully backwards compatible, so we'd need to up the major semversion of YASR for this one"}}