{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/csvw/issues/358","labels_url":"https://api.github.com/repos/w3c/csvw/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/w3c/csvw/issues/358/comments","events_url":"https://api.github.com/repos/w3c/csvw/issues/358/events","html_url":"https://github.com/w3c/csvw/issues/358","id":61155138,"number":358,"title":"URI Template with null variable doesn't evaluate to null","user":{"login":"6a6d74","id":2519144,"avatar_url":"https://avatars.githubusercontent.com/u/2519144?v=3","gravatar_id":"","url":"https://api.github.com/users/6a6d74","html_url":"https://github.com/6a6d74","followers_url":"https://api.github.com/users/6a6d74/followers","following_url":"https://api.github.com/users/6a6d74/following{/other_user}","gists_url":"https://api.github.com/users/6a6d74/gists{/gist_id}","starred_url":"https://api.github.com/users/6a6d74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/6a6d74/subscriptions","organizations_url":"https://api.github.com/users/6a6d74/orgs","repos_url":"https://api.github.com/users/6a6d74/repos","events_url":"https://api.github.com/users/6a6d74/events{/privacy}","received_events_url":"https://api.github.com/users/6a6d74/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/csvw/labels/CSV%20to%20JSON%20mapping","name":"CSV to JSON mapping","color":"84b6eb"},{"url":"https://api.github.com/repos/w3c/csvw/labels/CSV%20to%20RDF%20mapping","name":"CSV to RDF mapping","color":"009800"},{"url":"https://api.github.com/repos/w3c/csvw/labels/Metadata%20vocabulary%20document","name":"Metadata vocabulary document","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-13T17:42:12Z","updated_at":"2015-03-18T14:34:13Z","closed_at":null,"body":"Currently, the [public-sector-roles-and-salaries example][1] produces the following output for \"Sir Alan\" - even though the value of his `reportsTo` field is `null` (determined from the lexical cell value `\"xx\"`.\r\n\r\n[1]:http://w3c.github.io/csvw/csv2rdf/#example-public-sector-roles-and-salaries\r\n\r\n```\r\n<http://example.org/senior-roles.csv#post-90334>\r\n  dc:identifier \"90334\" ;\r\n  foaf:name \"Sir Alan Langlands\" ;\r\n  <http://example.org/def/reportsTo> <http://example.org/senior-roles.csv#post-> ;\r\n  ...\r\n```\r\n\r\nBut it is not the behaviour we want..\r\n\r\nThe algorithm states\r\n\r\n> If the valueUrl for the current cell is not null, then valueUrl identifies a node Vurl that is related the current subject using the predicate P\r\n\r\nMy intent was that because \"Sir Alan\" has a null value for reportsTo then this triple would not get included. Of course, now that you point it out. the URI Template with a null value does get evaluated as you've shown above.\r\n\r\nThe algorithm needs amending."},"comment":{"url":"https://api.github.com/repos/w3c/csvw/issues/comments/82997369","html_url":"https://github.com/w3c/csvw/issues/358#issuecomment-82997369","issue_url":"https://api.github.com/repos/w3c/csvw/issues/358","id":82997369,"user":{"login":"gkellogg","id":46296,"avatar_url":"https://avatars.githubusercontent.com/u/46296?v=3","gravatar_id":"","url":"https://api.github.com/users/gkellogg","html_url":"https://github.com/gkellogg","followers_url":"https://api.github.com/users/gkellogg/followers","following_url":"https://api.github.com/users/gkellogg/following{/other_user}","gists_url":"https://api.github.com/users/gkellogg/gists{/gist_id}","starred_url":"https://api.github.com/users/gkellogg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkellogg/subscriptions","organizations_url":"https://api.github.com/users/gkellogg/orgs","repos_url":"https://api.github.com/users/gkellogg/repos","events_url":"https://api.github.com/users/gkellogg/events{/privacy}","received_events_url":"https://api.github.com/users/gkellogg/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T14:34:13Z","updated_at":"2015-03-18T14:34:13Z","body":"I believe the PR has a commit that reflects this understanding."}}