HALLO is a perl program implementing a web-service in order to extract a list of publications from HAL. It offers an alternative to classical web interfaces to HAL.
HALLO is released under the terms of the GPL, and can be downloaded here: HALLOv3-20150324.tar.gz
top
To run HALLO, you need :
- to have an internet connection,
- a perl interpreter installed on your machine,
- a Java runtime environment (for JabRef),
- the curl program,
- the following perl libraries (some are parts of Perl's core module):
- Getopt::Std
- File::Spec
- File::Basename
- Encode
- WWW::Curl::Easy
- JSON
- IO::File
- POSIX
- Data::Dumper
- LaTeX::Encode
Under linux-based systems, you can install curl and these perl libraries by invoking e.g.
sudo aptitude install libcurl4-openssl-dev
|
sudo aptitude install libcpan-meta-perl
|
sudo cpan install WWW::Curl::Easy
|
sudo cpan install JSON
|
(and so on for the others perl libraries)
|
Once all these requirements are met, all you need to do to run HALLO, is to download HALLO's sources, extract them, go inside HALLO's directory, and run
perl main.pl --help
to get the list of options.
Detailed information about the installation procedure can be found in the INSTALL and README files included in HALLO's tarball.
top
Basically, all HALLO needs is a file containing requests of form:
FIELD1:VALUE1 OP ... OP FIELDn:VALUEn
where:
A FIELD can be one of these:
- 'author' (refers to HAL's field: 'authLastName_sci')
- 'authorfname' (refers to HAL's field: 'authFirstName_sci')
- 'abstract' (refers to HAL's field: 'abstract_s')
- 'labId' (refers to HAL's field: 'structId_i')
- 'lab' (refers to HAL's field: 'structAcronym_sci')
- 'title' (refers to HAL's field: 'title_s')
- 'year' (refers to HAL's field: 'producedDateY_i')
- 'id' (refers to HAL's field: 'halId_s')
Please note that lab Ids can be found at
https://aurehal.archives-ouvertes.fr.
A VALUE is a string representing a number, a name, or a time span between [ ] (such as [2012 TO *]). * are allowed as jokers (meaning any char).
Values are not case-sensitive.
An OPerator can either be + (meaning "and"), | (meaning "or"), or _ (meaning "and not").
Spaces around OP are *mandatory* (while spaces around the ":" separating keys from values are *forbidden*).
Example:
select all publications from the lab LIFO after 2006 where the author is not parmentier is written
lab:LIFO + year:[2006 TO *] _ author:parmentier
Say your requests are written in the file FOO.req, you can extract a bibtex file from HAL using the following command line:
perl main.pl -i FOO.req -d -b
The -i option is used to define the input file, the -d asks HALLO to decode accents into latex representations (such as \'e), and the -b option is used to indicate that we want to produce a bibtex file only (no HTML output or LaTeX output). As a result the file FOO.bib will be created. For more explanations, see the README file included in HALLO's sources.
top