Webservice::InterMine::Service - an object representation of an Webservice::InterMine Web-Service
use Webservice::InterMine; my $service = Webservice::InterMine->get_service('www.flymine.org/query/service'); my $query = $service->new_query; my $template = $service->template('Probe_Genes') or die "Cannot find template" # ... do stuff with your query/template
The service object is the portal to the webservice: it provides the model and templates for the objects you want to construct, and is used by the queries to return results. Generally you won't need to interact with it directly, or if you do, the methods you will be most interested in are those that return objects you can use for running queries.
A service can be constructed directly by passing a webservice url to the new method. To have access to private data (personal templates, saved queries and lists) you also need to provide login information in the form of a username and password. (AUTHENTICATION NOT IMPLEMENTED YET).
The values passed into the constructor can be accessed via these methods. Note that the url passed in will have a scheme added if none was provided.
This returns a new query object for you to define by adding constraints and a view to.
This checks to see if there is a template of this name in the webservice, and returns it to you if it exists.
returns the model for the webservice. This model is required by many modules for checking validity with the webservice database schema. See InterMine::Model
Returns the version of the webservice - used for determining compatibility with different query formats
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
You can also look for information at:
Webservice::InterMine
http://www.intermine.org
Documentation
http://www.intermine.org/perlapi
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.
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.