Webservice::InterMine::Role::HasQuery
Common behaviour for objects that can represent themselves as queries.
use Webservice::InterMine; my $service = Webservice::InterMine->get_service('www.flymine.org/query/service', $token); # Lists are consumers of HasQuery my $list = $service->list("my_genes"); my $sub_list = $service->new_list( name => "genes in my_genes with a certain domain", content => $list->where("proteins.proteinDomain.name" => "Some-Protein-Domain")); for my $row ($sub_list->select("symbol")->all()) { say @$row; }
A consumer of this role gains many of the capabilities of a query, such as reading results, iteration, introspection of views and constraints.
Return the list of columns in the view.
Return the size of the view list.
Return a new query with the given columns selected for output.
Return a new query with the given constraints applied.
Webservice::InterMine::Cookbook - A guide to using the Webservice::InterMine Perl API.
Webservice::InterMine - Provides the main interface to these modules.
Webservice::InterMine::List - A consumer of HasQuery
Alex Kalderimis dev@intermine.org
dev@intermine.org
Please report any bugs or feature requests to dev@intermine.org.
You can find documentation for this module with the perldoc command.
perldoc Webservice::InterMine::Role::HasQuery
You can also look for information at:
Webservice::InterMine
http://www.intermine.org
Documentation
http://www.intermine.org/wiki/PerlWebServiceAPI
Copyright 2006 - 2011 FlyMine, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Webservice::InterMine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::InterMine
CPAN shell
perl -MCPAN -e shell install Webservice::InterMine
For more information on module installation, please visit the detailed CPAN module installation guide.