{"action":"closed","issue":{"url":"https://api.github.com/repos/ColinMaudry/datagouvfr-rdf/issues/3","labels_url":"https://api.github.com/repos/ColinMaudry/datagouvfr-rdf/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ColinMaudry/datagouvfr-rdf/issues/3/comments","events_url":"https://api.github.com/repos/ColinMaudry/datagouvfr-rdf/issues/3/events","html_url":"https://github.com/ColinMaudry/datagouvfr-rdf/issues/3","id":52866140,"number":3,"title":"Extracting tags from datasets.csv","user":{"login":"ColinMaudry","id":3747136,"avatar_url":"https://avatars.githubusercontent.com/u/3747136?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinMaudry","html_url":"https://github.com/ColinMaudry","followers_url":"https://api.github.com/users/ColinMaudry/followers","following_url":"https://api.github.com/users/ColinMaudry/following{/other_user}","gists_url":"https://api.github.com/users/ColinMaudry/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinMaudry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinMaudry/subscriptions","organizations_url":"https://api.github.com/users/ColinMaudry/orgs","repos_url":"https://api.github.com/users/ColinMaudry/repos","events_url":"https://api.github.com/users/ColinMaudry/events{/privacy}","received_events_url":"https://api.github.com/users/ColinMaudry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ColinMaudry/datagouvfr-rdf/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"ColinMaudry","id":3747136,"avatar_url":"https://avatars.githubusercontent.com/u/3747136?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinMaudry","html_url":"https://github.com/ColinMaudry","followers_url":"https://api.github.com/users/ColinMaudry/followers","following_url":"https://api.github.com/users/ColinMaudry/following{/other_user}","gists_url":"https://api.github.com/users/ColinMaudry/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinMaudry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinMaudry/subscriptions","organizations_url":"https://api.github.com/users/ColinMaudry/orgs","repos_url":"https://api.github.com/users/ColinMaudry/repos","events_url":"https://api.github.com/users/ColinMaudry/events{/privacy}","received_events_url":"https://api.github.com/users/ColinMaudry/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ColinMaudry/datagouvfr-rdf/milestones/2","labels_url":"https://api.github.com/repos/ColinMaudry/datagouvfr-rdf/milestones/2/labels","id":914786,"number":2,"title":"0.2.0","description":null,"creator":{"login":"ColinMaudry","id":3747136,"avatar_url":"https://avatars.githubusercontent.com/u/3747136?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinMaudry","html_url":"https://github.com/ColinMaudry","followers_url":"https://api.github.com/users/ColinMaudry/followers","following_url":"https://api.github.com/users/ColinMaudry/following{/other_user}","gists_url":"https://api.github.com/users/ColinMaudry/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinMaudry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinMaudry/subscriptions","organizations_url":"https://api.github.com/users/ColinMaudry/orgs","repos_url":"https://api.github.com/users/ColinMaudry/repos","events_url":"https://api.github.com/users/ColinMaudry/events{/privacy}","received_events_url":"https://api.github.com/users/ColinMaudry/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"open","created_at":"2014-12-25T21:34:00Z","updated_at":"2015-01-10T23:41:11Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-12-25T15:31:04Z","updated_at":"2015-01-10T23:41:11Z","closed_at":"2015-01-10T23:41:11Z","body":"The field \"tags\" contains a comma separated list of tags.\r\n\r\nTARQL by @cygri breaks on them, not sure why, even when processed alone in the query.\r\n\r\n```sparql\r\nconstruct\r\n{\r\n  ?dataset dcat:keyword ?splitTags .\r\n}\r\nfrom <file:csv/datasets.csv#delimiter=%3B;encoding=utf-8>\r\n  where {\r\n  bind(uri(concat(\"http://data.gouv.fr/fr/datasets/\",?id,\"#this\")) as ?dataset)\r\n  bind(xs:string(?tags) as ?strTags)\r\n  ?splitTags apf:strSplit (?strTags \",\")\r\n  }\r\n```\r\nIt manages to output a couple dozens of lines, and then...\r\n```\r\ncom.hp.hpl.jena.graph.Node$NotLiteral: ?strTags is not a literal node\r\n\tat com.hp.hpl.jena.graph.Node.getLiteralLexicalForm(Node.java:241)\r\n\tat com.hp.hpl.jena.sparql.pfunction.library.strSplit.execEvaluated(strSplit.java:58)\r\n\tat com.hp.hpl.jena.sparql.pfunction.PFuncSimpleAndList.execEvaluated(PFuncSimpleAndList.java:44)\r\n\tat com.hp.hpl.jena.sparql.pfunction.PropertyFunctionEval.exec(PropertyFunctionEval.java:42)\r\n\tat com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase$RepeatApplyIteratorPF.nextStage(PropertyFunctionBase.java:108)\r\n\tat com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:110)\r\n\tat com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:67)\r\n\tat com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)\r\n\tat com.hp.hpl.jena.sparql.engine.iterator.QueryIterProcedure.hasNextBinding(QueryIterProcedure.java:74)\r\n\tat com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)\r\n\tat com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBinding(QueryIteratorWrapper.java:40)\r\n\tat com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)\r\n\tat com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBinding(QueryIteratorWrapper.java:40)\r\n\tat com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)\r\n\tat org.apache.jena.atlas.iterator.Iter$5.hasNext(Iter.java:359)\r\n\tat com.hp.hpl.jena.util.iterator.NiceIterator$1.hasNext(NiceIterator.java:103)\r\n\tat org.apache.jena.riot.system.StreamRDFLib.triplesToStream(StreamRDFLib.java:78)\r\n\tat org.deri.tarql.StreamingRDFWriter.writeTurtle(StreamingRDFWriter.java:49)\r\n\tat org.deri.tarql.tarql.exec(tarql.java:193)\r\n\tat arq.cmdline.CmdMain.mainMethod(CmdMain.java:102)\r\n\tat arq.cmdline.CmdMain.mainRun(CmdMain.java:63)\r\n\tat arq.cmdline.CmdMain.mainRun(CmdMain.java:50)\r\n\tat org.deri.tarql.tarql.main(tarql.java:51)\r\n```"}}