{"action":"opened","issue":{"url":"https://api.github.com/repos/shexSpec/shex/issues/58","repository_url":"https://api.github.com/repos/shexSpec/shex","labels_url":"https://api.github.com/repos/shexSpec/shex/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/shexSpec/shex/issues/58/comments","events_url":"https://api.github.com/repos/shexSpec/shex/issues/58/events","html_url":"https://github.com/shexSpec/shex/issues/58","id":224368199,"number":58,"title":"reusable validator","user":{"login":"ericprud","id":573478,"avatar_url":"https://avatars0.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":[],"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://avatars3.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":2,"closed_issues":27,"state":"open","created_at":"2017-01-03T23:48:28Z","updated_at":"2017-04-26T07:23:42Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-04-26T07:23:42Z","updated_at":"2017-04-26T07:23:42Z","closed_at":null,"body":"It's common to create a validator with a schema and test many instances against it, e.g. an ingestion validator for a web service.\r\n\r\n``` diff\r\n- interface ShExProcessor {\r\n-     Promise validate((USVString or RDFGraph) schema,\r\n-                      (USVString or RDFGraph) graph,\r\n-                      ShapeMap shapeMap,\r\n-                      optional ShExOptions? options);\r\n- };\r\n+ interface ShExProcessor {\r\n+     Validator validate((USVString or RDFGraph) schema,\r\n+                        optional ValidatorOptions? options);\r\n+ };\r\n+ interface Validator {\r\n+     Promise validate((USVString or RDFGraph) graph,\r\n+                      ShapeMap shapeMap,\r\n+                      optional ValidationOptions? options);\r\n+ };\r\n```\r\n"}}
{"actor":{"display_login":"ericprud"}}