|
Astro::ADS::Query - Object definining an prospective ADS query. |
Astro::ADS::Query - Object definining an prospective ADS query.
$query = new Astro::ADS::Query( Authors => \@authors,
AuthorLogic => $aut_logic,
Objects => \@objects,
ObjectLogic => $obj_logic,
Bibcode => $bibcode,
Proxy => $proxy,
Timeout => $timeout,
URL => $url );
my $results = $query->querydb();
Stores information about an prospective ADS query and allows the query to be made, returning an Astro::ADS::Result object.
The object will by default pick up the proxy information from the HTTP_PROXY and NO_PROXY environment variables, see the LWP::UserAgent documentation for details.
$Id: Query.pm,v 1.19 2002/01/11 19:59:31 aa Exp $
$query = new Astro::ADS::Query( Authors => \@authors,
AuthorLogic => $aut_logic,
Objects => \@objects,
ObjectLogic => $obj_logic,
Bibcode => $bibcode,
Proxy => $proxy,
Timeout => $timeout,
URL => $url );
returns a reference to an ADS query object.
$results = $query->querydb();
$results = $query->followup( $bibcode, $link_type );
returns undef if no arguements passed. Possible $link_type values are AR, CITATIONS, REFERENCES and TOC.
$query->proxy( 'http://wwwcache.ex.ac.uk:8080/' ); $proxy_url = $query->proxy();
$query->timeout( 30 ); $proxy_timeout = $query->timeout();
$url = $query->url(); $query->url( "adsabs.harvard.edu" );
if not defined the default URL is cdsads.u-strasbg.fr
$agent_tag = $query->agent();
@authors = $query->authors(); $first_author = $query->authors(); $query->authors( \@authors );
if called in a scalar context it will return the first author.
$author_logic = $query->authorlogic(); $query->authorlogic( "AND" );
if called with no arguements, or invalid arguements, then the method will return the current logic.
@objects = $query->objects(); $query->objects( \@objects );
$obj_logic = $query->objectlogic(); $query->objectlogic( "AND" );
if called with no arguements, or invalid arguements, then the method will return the current logic.
$bibcode = $query->bibcode(); $query->bibcode( "1996PhDT........42J" );
$start_month = $query->startmonth(); $query->startmonth( "01" );
$end_month = $query->endmonth(); $query->endmonth( "12" );
$start_year = $query->startyear(); $query->start_year( "2001" );
$end_year = $query->endyear(); $query->end_year( "2002" );
$query->journal( "REFEREED" ); $query->journal( "OTHER" ); $query->journal( "ALL" );
$journals = $query->journal();
the default is ALL bibilographic sources
$query->configure( %options );
Does nothing if the array is not supplied.
Copyright (C) 2001 University of Exeter. All Rights Reserved.
This program was written as part of the eSTAR project and is free software; you can redistribute it and/or modify it under the terms of the GNU Public License.
Alasdair Allan <aa@astro.ex.ac.uk>,
|
Astro::ADS::Query - Object definining an prospective ADS query. |