Creastes a hash-ref of sanction source configuration, including their url, description and parser callback. It accepts the following list of named args:
The token required for accessing EU sanctions (usually added as an arg to URL).
EU Sanctions full url, token included.
OFAC-SDN download url.
OFAC Consilidated download url.
MHT Sanctions download url.
If the arg is a country code, it's returned in lower case; otherwise the arg is converted to country code.
Processes an entry retrieved from sanction resources and saves it into the specified key-value dataset. An entry may have multilpe names (aliases), each of which will be taken as a key in the dataset with the same values/info.
It takes following list of args:
name: an array of names/aliases
date_of_birth: an array of dates of birth
Dates of birth are not of standardized format in some data sources; so they are processed in three steps: 1- as a first step it will be tried to converetd them into epoch, saved as dob_epoch; 2- otherwise to extract year (or an array of years) of birth, saved as dob_year; and 3- finally, to saved as raw text in dob_text.
place_of_birth: an array of country names or codes
residence: an array of country names or codes
nationality: an array of country names or codes
citizen: an array of country names or codes
postal_code: an array of postal/zip codes
national_id: an array of national ID numbers
passport_no: an array of passort numbers
Fetches latest version of lists, and returns combined hash of successfully downloaded ones
Get the sanction entries from a file locally
Get the sanction entries from a remote source includes retry mechanism
To install Data::Validate::Sanctions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Validate::Sanctions
CPAN shell
perl -MCPAN -e shell install Data::Validate::Sanctions
For more information on module installation, please visit the detailed CPAN module installation guide.