Webservice::InterMine::Query::Template - A representation of a webservice template
use Webservice::InterMine 'www.flymine.org/query/service'; my $template = Webservice::InterMine->template('Probe_Genes'); $template->get_constraint('B')->switch_off; my $results = $template->results_with(value1 => '1634044_at');
Templates are shortcuts to frequently run queries. They differ from other ways to acheive this (saved queries and scripts using the webservice) in a couple of ways:
Generally they have all the same methods as queries do (see Webservice::InterMine::Query), but they have a couple of extra methods:
results_with
returns results in the same format as the normal query results
method (which is also available to templates). This method requires the user to specify any values and operators which are different to the template defaults.
Returns a list of the constraint objects which represent editable constraints. all_constraints
still returns all the constraint objects, some of which may not be editable.
returns a human readable string with information about what each constraint does, listed by code.
These methods are used on constraints if they are switchable.
Alex Kalderimis <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
You can also look for information at:
Copyright 2006 - 2010 FlyMine, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.