{"action":"created","issue":{"url":"https://api.github.com/repos/shexSpec/shex/issues/13","repository_url":"https://api.github.com/repos/shexSpec/shex","labels_url":"https://api.github.com/repos/shexSpec/shex/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/shexSpec/shex/issues/13/comments","events_url":"https://api.github.com/repos/shexSpec/shex/issues/13/events","html_url":"https://github.com/shexSpec/shex/issues/13","id":193302679,"number":13,"title":"Should a shape imply NONLITERAL?","user":{"login":"ericprud","id":573478,"avatar_url":"https://avatars.githubusercontent.com/u/573478?v=3","gravatar_id":"","url":"https://api.github.com/users/ericprud","html_url":"https://github.com/ericprud","followers_url":"https://api.github.com/users/ericprud/followers","following_url":"https://api.github.com/users/ericprud/following{/other_user}","gists_url":"https://api.github.com/users/ericprud/gists{/gist_id}","starred_url":"https://api.github.com/users/ericprud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericprud/subscriptions","organizations_url":"https://api.github.com/users/ericprud/orgs","repos_url":"https://api.github.com/users/ericprud/repos","events_url":"https://api.github.com/users/ericprud/events{/privacy}","received_events_url":"https://api.github.com/users/ericprud/received_events","type":"User","site_admin":false},"labels":[{"id":514459282,"url":"https://api.github.com/repos/shexSpec/shex/labels/spec","name":"spec","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/shexSpec/shex/milestones/1","html_url":"https://github.com/shexSpec/shex/milestone/1","labels_url":"https://api.github.com/repos/shexSpec/shex/milestones/1/labels","id":2226900,"number":1,"title":"2.0","description":"Changes indended for the 2.0 release.","creator":{"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},"open_issues":7,"closed_issues":1,"state":"open","created_at":"2017-01-03T23:48:28Z","updated_at":"2017-01-09T10:36:46Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-12-03T17:33:28Z","updated_at":"2017-01-13T13:59:09Z","closed_at":null,"body":"Currently,\r\n```\r\nPREFIX : <http://a.example/>\r\n<s> :p1 1 .\r\n```\r\ntrivially satisfies\r\n```\r\nPREFIX : <http://a.example/>\r\n<S1> { :p1 @<S2> }\r\n<S2> { :p2 .? }\r\n```\r\nbecause :p2 is optional.\r\nAs a workaround, I added a NONLITERAL constraint::\r\n```\r\nPREFIX : <http://a.example/>\r\n<S1> { :p1 @<S2> }\r\n<S2> NONLITERAL { :p2 .? }\r\n```\r\nShould that be implicit when there's a shape (as implied by {}s)? RDF currently (and maybe forever) prohibits literals as subjects, which kind of works to our favor in this case.\r\n\r\nThis issue exists for nested shapes as well, e.g.\r\n```\r\nPREFIX : <http://a.example/>\r\n<S1> { :p1 { :p2 .? } }\r\n```\r\nvs.\r\n```\r\nPREFIX : <http://a.example/>\r\n<S1> { :p1 NONLITERAL { :p2 .? } }\r\n```"},"comment":{"url":"https://api.github.com/repos/shexSpec/shex/issues/comments/272448805","html_url":"https://github.com/shexSpec/shex/issues/13#issuecomment-272448805","issue_url":"https://api.github.com/repos/shexSpec/shex/issues/13","id":272448805,"user":{"login":"jimkont","id":1047581,"avatar_url":"https://avatars.githubusercontent.com/u/1047581?v=3","gravatar_id":"","url":"https://api.github.com/users/jimkont","html_url":"https://github.com/jimkont","followers_url":"https://api.github.com/users/jimkont/followers","following_url":"https://api.github.com/users/jimkont/following{/other_user}","gists_url":"https://api.github.com/users/jimkont/gists{/gist_id}","starred_url":"https://api.github.com/users/jimkont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimkont/subscriptions","organizations_url":"https://api.github.com/users/jimkont/orgs","repos_url":"https://api.github.com/users/jimkont/repos","events_url":"https://api.github.com/users/jimkont/events{/privacy}","received_events_url":"https://api.github.com/users/jimkont/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T13:59:09Z","updated_at":"2017-01-13T13:59:09Z","body":"Yes, this was my proposal, to make this a lint feature and mark this as a warning.\r\n\r\nIf the user wanted to define it this way on intention, would there be a way to do it with the implicit `nonliteral`?\r\ni.e. this value should have no outgoing arcs (iri or literal) but if it has arcs it should be `{ :p2 .? }`"}}
{"actor":{"display_login":"jimkont"}}