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

NAME

Webservice::InterMine::Simple::Service

SYNOPSIS

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

DESCRIPTION

This is a basic representation of a connection to an InterMine web-service. It has some facilities for handling simple queries and templates.

METHODS

new - Construct a new service.

Parameters:

root => $url

The root url of the webservice.

token => $token

The authorisation token of the user (optional)

user => $username

The login name of the user (optional - requires a password)

pass => $password

The password of the user.

new_from_xml

Construct a new query from an XML serialisation.

Parameters:

  • source_file => $filename

  • source_string => $string

Only one source argument is required.

new_query

Construct a new blank query.

template($name)

Construct a new template object to retrieve results from the template with the given name.

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

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.