The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Webservice::InterMine::Role::HasQuery

SYNOPSIS

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;
  }

DESCRIPTION

A consumer of this role gains many of the capabilities of a query, such as reading results, iteration, introspection of views and constraints.

view

Return the list of columns in the view.

view_size

Return the size of the view list.

select(@columns)

Return a new query with the given columns selected for output.

where(@constraint_args)

Return a new query with the given constraints applied.

SEE ALSO

AUTHOR

Alex Kalderimis dev@intermine.org

BUGS

Please report any bugs or feature requests to dev@intermine.org.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Webservice::InterMine::Role::HasQuery

You can also look for information at:

COPYRIGHT AND LICENSE

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.