{"action":"created","issue":{"url":"https://api.github.com/repos/opencog/atomspace/issues/1242","repository_url":"https://api.github.com/repos/opencog/atomspace","labels_url":"https://api.github.com/repos/opencog/atomspace/issues/1242/labels{/name}","comments_url":"https://api.github.com/repos/opencog/atomspace/issues/1242/comments","events_url":"https://api.github.com/repos/opencog/atomspace/issues/1242/events","html_url":"https://github.com/opencog/atomspace/pull/1242","id":231967353,"number":1242,"title":"Control the number of matches being made for a GlobNode in pattern matching","user":{"login":"leungmanhin","id":7465047,"avatar_url":"https://avatars1.githubusercontent.com/u/7465047?v=3","gravatar_id":"","url":"https://api.github.com/users/leungmanhin","html_url":"https://github.com/leungmanhin","followers_url":"https://api.github.com/users/leungmanhin/followers","following_url":"https://api.github.com/users/leungmanhin/following{/other_user}","gists_url":"https://api.github.com/users/leungmanhin/gists{/gist_id}","starred_url":"https://api.github.com/users/leungmanhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leungmanhin/subscriptions","organizations_url":"https://api.github.com/users/leungmanhin/orgs","repos_url":"https://api.github.com/users/leungmanhin/repos","events_url":"https://api.github.com/users/leungmanhin/events{/privacy}","received_events_url":"https://api.github.com/users/leungmanhin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-29T09:09:36Z","updated_at":"2017-05-31T07:02:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opencog/atomspace/pulls/1242","html_url":"https://github.com/opencog/atomspace/pull/1242","diff_url":"https://github.com/opencog/atomspace/pull/1242.diff","patch_url":"https://github.com/opencog/atomspace/pull/1242.patch"},"body":"This can be done by using `IntervalLink` e.g.\r\n```\r\n(TypedVariable\r\n  (Glob \"$star\")\r\n  (IntervalLink (Number 0) (Number 1))\r\n```\r\nWe can also have type restriction as well by using `TypeSetLink` e.g.\r\n```\r\n(TypedVariable\r\n  (Glob \"$star\")\r\n  (TypeSetLink\r\n    (IntervalLink (Number 0) (Number -1))\r\n    (Type \"ConceptNode\")))\r\n```\r\n\r\nI have also updated the Pattern Matcher to adapt the changes, seems to work for various simple cases."},"comment":{"url":"https://api.github.com/repos/opencog/atomspace/issues/comments/305103175","html_url":"https://github.com/opencog/atomspace/pull/1242#issuecomment-305103175","issue_url":"https://api.github.com/repos/opencog/atomspace/issues/1242","id":305103175,"user":{"login":"bgoertzel","id":5907804,"avatar_url":"https://avatars2.githubusercontent.com/u/5907804?v=3","gravatar_id":"","url":"https://api.github.com/users/bgoertzel","html_url":"https://github.com/bgoertzel","followers_url":"https://api.github.com/users/bgoertzel/followers","following_url":"https://api.github.com/users/bgoertzel/following{/other_user}","gists_url":"https://api.github.com/users/bgoertzel/gists{/gist_id}","starred_url":"https://api.github.com/users/bgoertzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgoertzel/subscriptions","organizations_url":"https://api.github.com/users/bgoertzel/orgs","repos_url":"https://api.github.com/users/bgoertzel/repos","events_url":"https://api.github.com/users/bgoertzel/events{/privacy}","received_events_url":"https://api.github.com/users/bgoertzel/received_events","type":"User","site_admin":false},"created_at":"2017-05-31T07:02:57Z","updated_at":"2017-05-31T07:02:57Z","body":"hmm, but @linas seems heads-down focused on language learning work right now, and we may need this code approved/merged to proceed with Ghost (chatbot authoring) work... maybe you should merge it now if it looks OK and let Linas check it over later..."}}
{"actor":{"display_login":"bgoertzel"}}