Webservice::InterMine::Simple::Service
my $service = get_service("http://www.flymine.org/query/service"); my $query = $service->new_query; $query->add_view("Organism.shortName", "Organism.taxonId"); $query->add_constraint({path => "Organism.genus", op => "=", value => "Rattus"}); @rows = $query2->results_table; for my $row (@rows) { print "name: $row->[0], id: $row->[1]\n"; }
This is a basic representation of a connection to an InterMine web-service. It has some facilities for handling simple queries and templates.
Parameters:
The root url of the webservice.
The authorisation token of the user (optional)
The login name of the user (optional - requires a password)
The password of the user.
Construct a new query from an XML serialisation.
source_file => $filename
source_string => $string
Only one source argument is required.
Construct a new blank query.
Construct a new template object to retrieve results from the template with the given name.
Webservice::InterMine For a more powerful alternative
Alex Kalderimis <dev@intermine.org>
<dev@intermine.org>
Please report any bugs or feature requests to dev@intermine.org.
dev@intermine.org
You can find documentation for this module with the perldoc command.
perldoc Webservice::InterMine
You can also look for information at:
InterMine
http://www.intermine.org
Documentation
http://www.intermine.org/perlapi
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::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::InterMine::Simple
CPAN shell
perl -MCPAN -e shell install Webservice::InterMine::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.