{"action":"created","issue":{"url":"https://api.github.com/repos/marl/jams/issues/15","labels_url":"https://api.github.com/repos/marl/jams/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/marl/jams/issues/15/comments","events_url":"https://api.github.com/repos/marl/jams/issues/15/events","html_url":"https://github.com/marl/jams/issues/15","id":56055313,"number":15,"title":"JAMS annotation querying/filtering","user":{"login":"bmcfee","id":1190540,"avatar_url":"https://avatars.githubusercontent.com/u/1190540?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marl/jams/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/marl/jams/labels/pyjams","name":"pyjams","color":"bfe5bf"},{"url":"https://api.github.com/repos/marl/jams/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-30T16:39:18Z","updated_at":"2015-02-01T18:16:58Z","closed_at":null,"body":"It would be useful to have basic query functionality for selecting annotations from a jams object.\r\n\r\nThe top-level groupings are useful for organizing data into tasks, but provide no mechanism for filtering by namespace.  As a concrete example, each SALAMI jam has segment annotations from 3 namespaces (function, upper, and lower), and we should have an interface to pull out only the data relating to one of them.\r\n\r\nMore generally, one might want to select out multiple namespaces ['salami_upper', 'salami_lower'] or 'segment_*'.  This might be most simply accomplished by allowing regular expression queries.\r\n\r\nAs long as we're allowing querying on namespace, would it make sense to support querying on other fields?  Annotator/curator?  Metadata?  Everything?  Where does the madness stop?\r\n\r\nIt's probably good to implement this both at the level of `AnnotationArray` first, and then propagate up to `JAMS`.\r\n\r\nAny comments/suggestions before I dive in and start hacking this out?"},"comment":{"url":"https://api.github.com/repos/marl/jams/issues/comments/72376238","html_url":"https://github.com/marl/jams/issues/15#issuecomment-72376238","issue_url":"https://api.github.com/repos/marl/jams/issues/15","id":72376238,"user":{"login":"ejhumphrey","id":926379,"avatar_url":"https://avatars.githubusercontent.com/u/926379?v=3","gravatar_id":"","url":"https://api.github.com/users/ejhumphrey","html_url":"https://github.com/ejhumphrey","followers_url":"https://api.github.com/users/ejhumphrey/followers","following_url":"https://api.github.com/users/ejhumphrey/following{/other_user}","gists_url":"https://api.github.com/users/ejhumphrey/gists{/gist_id}","starred_url":"https://api.github.com/users/ejhumphrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejhumphrey/subscriptions","organizations_url":"https://api.github.com/users/ejhumphrey/orgs","repos_url":"https://api.github.com/users/ejhumphrey/repos","events_url":"https://api.github.com/users/ejhumphrey/events{/privacy}","received_events_url":"https://api.github.com/users/ejhumphrey/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T18:16:58Z","updated_at":"2015-02-01T18:16:58Z","body":"Not at a computer and will be concise than I prefer, but I realize this is\r\nunder active development and am confused a bit. I think searching /\r\nfiltering on annotation metadata is crucial, especially when attempting to\r\nconstrain to single corpora or specific annotators.\r\n\r\nOn 1 Feb 2015 11:29, \"Brian McFee\" <notifications@github.com> wrote:\r\n>\r\n> Discussed offline with @rabitt . Consensus: it only makes sense to\r\n\"search\" on collections of objects, which really only applies to\r\nAnnotationList.\r\n>\r\n> Sandbox and metadata searching would be nice, but not really necessary,\r\nsince you can query them directly.\r\n>\r\n> If we adopt #17 and remove the top-level groupings in favor of a single\r\nannotationlist, then the JAMS search simplifies to wrap the annotationlist\r\nsearch. This means that it can simply return a subset of the annotationlist\r\nwith no pollution of data types.\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub."}}