Module:Authority control/config: Difference between revisions

From The Goon Show Depository
m (1 revision imported)
en>MSGJ
(example and regex fields are not needed)
Line 22: Line 22:
--See http://support.orcid.org/knowledgebase/articles/116780-structure-of-the-orcid-identifier
--See http://support.orcid.org/knowledgebase/articles/116780-structure-of-the-orcid-identifier
function p.validateIsni(id)
function p.validateIsni(id)
--P213 (ISNI) format regex: [0-9]{4} [0-9]{4} [0-9]{4} [0-9]{3}[0-9X] (e.g. 0000-0000-6653-4145)
--P496 (ORCID) format regex: 0000-000(1-[5-9]|2-[0-9]|3-[0-4])\d{3}-\d{3}[\dX] (e.g. 0000-0002-7398-5483)
id = id:gsub( '[ %-]', '' ):upper()
id = id:gsub( '[ %-]', '' ):upper()
if not id:match( '^%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d[%dX]$' ) then
if not id:match( '^%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d[%dX]$' ) then
Line 48: Line 46:


local function splitLccn(id)
local function splitLccn(id)
--P244's format regex: (n|nb|nr|no|ns|sh)([4-9][0-9]|00|20[0-1][0-9])[0-9]{6} (e.g. n78039510)
if id:match( '^%l%l?%l?%d%d%d%d%d%d%d%d%d?%d?$' ) then
if id:match( '^%l%l?%l?%d%d%d%d%d%d%d%d%d?%d?$' ) then
id = id:gsub( '^(%l+)(%d+)(%d%d%d%d%d%d)$', '%1/%2/%3' )
id = id:gsub( '^(%l+)(%d+)(%d%d%d%d%d%d)$', '%1/%2/%3' )
Line 141: Line 138:
property = 3372,
property = 3372,
section = 3,
section = 3,
example = '1',
link = 'https://www.aucklandartgallery.com/explore-art-and-ideas/artist/$1/',
link = 'https://www.aucklandartgallery.com/explore-art-and-ideas/artist/$1/',
label = 'Auckland',
label = 'Auckland',
pattern = '^%d+$',
pattern = '^%d+$',
regex = '\d+'
},
},
{ 'ACM-DL',
{ 'ACM-DL',
property = 864,
property = 864,
section = 6,
section = 6,
example = '12345678901',
pattern = '^%d%d%d%d%d%d%d%d%d%d%d$',
pattern = '^%d%d%d%d%d%d%d%d%d%d%d$',
link = 'https://dl.acm.org/profile/$1',
link = 'https://dl.acm.org/profile/$1',
label = 'Association for Computing Machinery',
label = 'Association for Computing Machinery',
idlink = 'ACM DL (identifier)',
idlink = 'ACM DL (identifier)',
regex = '\d{11}'
},
},
{ 'ADB',
{ 'ADB',
property = 1907,
property = 1907,
section = 5,
section = 5,
example = 'barton-sir-edmund-toby-71',
patterns = {'^[a-z][-a-z]+-[1-3]%d%d?%d?%d?$', '^[a-z][-a-z]+-[1-9]%d?%d?%d?$'},
patterns = {'^[a-z][-a-z]+-[1-3]%d%d?%d?%d?$', '^[a-z][-a-z]+-[1-9]%d?%d?%d?$'},
link = 'http://adb.anu.edu.au/biography/$1',
link = 'http://adb.anu.edu.au/biography/$1',
Line 169: Line 161:
patterns = {'^[A-Q]%d%d%d%d$', '^[A-Q]%d%d%d%d%.%d+$'},
patterns = {'^[A-Q]%d%d%d%d$', '^[A-Q]%d%d%d%d%.%d+$'},
section = 7,
section = 7,
example = 'D1204.1',
prefix = '[[Admiralty (identifier)|Admiralty]]'
prefix = '[[Admiralty (identifier)|Admiralty]]'
},
},
Line 175: Line 166:
property = 6804,
property = 6804,
section = 3,
section = 3,
example = '3625',
pattern = '^[1-9]%d*$',
pattern = '^[1-9]%d*$',
link = 'https://www.agsa.sa.gov.au/collection-publications/collection/creators/_/$1/',
link = 'https://www.agsa.sa.gov.au/collection-publications/collection/creators/_/$1/',
label = 'South Australia',
label = 'South Australia',
regex = '[1-9]\d*'
},
},
{ 'ARLHS',
{ 'ARLHS',
property = 2980,
property = 2980,
section = 7,
section = 7,
example = 'LAT023',
pattern = '^[A-Z][A-Z][A-Z]%d%d%d%d?[A-Z]?$',
pattern = '^[A-Z][A-Z][A-Z]%d%d%d%d?[A-Z]?$',
link = 'http://wlol.arlhs.com/lighthouse/$1.html',
link = 'http://wlol.arlhs.com/lighthouse/$1.html',
label = 'ARLHS',
label = 'ARLHS',
regex = '[A-Z]{3}\d{3,4}[A-Z]?',
},
},
{ 'autores.uy',
{ 'autores.uy',
property = 2558,
property = 2558,
section = 5,
section = 5,
example = '12345',
pattern = '^[1-9]%d?%d?%d?%d?$',
pattern = '^[1-9]%d?%d?%d?%d?$',
link = 'https://autores.uy/autor/$1',
link = 'https://autores.uy/autor/$1',
label = 'Uruguay',
label = 'Uruguay',
regex = '[1-9]\d{0,4}',
remark = "autores.uy is an author's database, that focus on [[Uruguay]]an authors. It was created and maintained by the Uruguayan chapter of Creative Commons. It also provides access to digitized works of the authors in public domain."
remark = "autores.uy is an author's database, that focus on [[Uruguay]]an authors. It was created and maintained by the Uruguayan chapter of Creative Commons. It also provides access to digitized works of the authors in public domain."
},
},
Line 203: Line 188:
property = 4186,
property = 4186,
section = 5,
section = 5,
example = 'PR00768b',
patterns = {'^[A-Z][A-Z][A-Z]%d%d%d%d[a-z]$', '^[A-Z][A-Z]%d%d%d%d%d[a-z]$'},
patterns = {'^[A-Z][A-Z][A-Z]%d%d%d%d[a-z]$', '^[A-Z][A-Z]%d%d%d%d%d[a-z]$'},
link = 'http://www.womenaustralia.info/biogs/$1.htm',
link = 'http://www.womenaustralia.info/biogs/$1.htm',
regex = '[A-Z]{3}\d{4})|([A-Z]{2}\d{5}',
label = 'Australian Women\'s Register',
label = 'Australian Women\'s Register',
},
},
Line 212: Line 195:
property = 1015,
property = 1015,
section = 2,
section = 2,
example = '1234567890123',
patterns = {'^[1-9]%d?%d?%d?%d?%d?%d?%d?%d?$', '^[1-9]%d%d%d%d%d%d%d%d%d%d%d%d$'},
patterns = {'^[1-9]%d?%d?%d?%d?%d?%d?%d?%d?$', '^[1-9]%d%d%d%d%d%d%d%d%d%d%d%d$'},
valid = p.bibsysV,
valid = p.bibsysV,
Line 222: Line 204:
property = 2092,
property = 2092,
section = 4,
section = 4,
example = '1',
pattern = '^%d+$',
pattern = '^%d+$',
link = 'https://www.bildindex.de/document/obj$1',
link = 'https://www.bildindex.de/document/obj$1',
label = 'Bildindex (Germany)',
label = 'Bildindex (Germany)',
regex = '\d+'
},
},
{ 'BNC',
{ 'BNC',
property = 1890,
property = 1890,
section = 2,
section = 2,
example = '123456789',
pattern = '^%d%d%d%d%d%d%d%d%d$',
pattern = '^%d%d%d%d%d%d%d%d%d$',
link = 'http://www.bncatalogo.cl/F?func=direct&local_base=red10&doc_number=$1',
link = 'http://www.bncatalogo.cl/F?func=direct&local_base=red10&doc_number=$1',
label = 'Chile',
label = 'Chile',
regex = '\d{9}'
},
},
{ 'BNE',  
{ 'BNE',  
property = 950,
property = 950,
section = 2,
section = 2,
example = 'XX1234567',
patterns = {'^[XF][XF]%d%d%d%d%d?%d?%d?$', '^a%d%d%d%d%d?%d?%d?$', '^bi[mcsv][aoei]%d%d%d%d%d%d%d%d%d%d$', '^Mi[sm][eoa]%d%d%d%d%d%d%d%d%d%d$'},
patterns = {'^[XF][XF]%d%d%d%d%d?%d?%d?$', '^a%d%d%d%d%d?%d?%d?$', '^bi[mcsv][aoei]%d%d%d%d%d%d%d%d%d%d$', '^Mi[sm][eoa]%d%d%d%d%d%d%d%d%d%d$'},
link = 'http://catalogo.bne.es/uhtbin/authoritybrowse.cgi?action=display&authority_id=$1',
link = 'http://catalogo.bne.es/uhtbin/authoritybrowse.cgi?action=display&authority_id=$1',
label = 'Spain',
label = 'Spain',
regex = '(XX|FF|a)\d{4,7}|(bima|bimo|bica|bis[eo]|bivi|Mise|Mimo|Mima)\d{10}',
remark = "National Library of Spain (BNE: ''Biblioteca Nacional de España'') is a major public library, the largest in Spain."
remark = "National Library of Spain (BNE: ''Biblioteca Nacional de España'') is a major public library, the largest in Spain."
},
},
Line 250: Line 226:
property = 268,
property = 268,
section = 2,
section = 2,
example = '123456789',
regex = '\d{8}[0-9bcdfghjkmnpqrstvwxz]',
link2 = p.bnfLink,
link2 = p.bnfLink,
remark = 'Authority data of people listed in the general catalogue of the National Library of France'
remark = 'Authority data of people listed in the general catalogue of the National Library of France'
Line 258: Line 232:
property = 3788,
property = 3788,
section = 2,
section = 2,
example = '000024044',
pattern = '^%d%d%d%d%d%d%d%d%d$',
pattern = '^%d%d%d%d%d%d%d%d%d$',
link = 'https://catalogo.bn.gov.ar/F/?func=direct&local_base=BNA10&doc_number=$1',
link = 'https://catalogo.bn.gov.ar/F/?func=direct&local_base=BNA10&doc_number=$1',
label = 'Argentina',
label = 'Argentina',
regex = '\d{9}'
},
},
{ 'Botanist',
{ 'Botanist',
property = 428,
property = 428,
section = 6,
section = 6,
example = 'L.',
valid = p.botanistV,
valid = p.botanistV,
link = 'https://www.ipni.org/ipni/advAuthorSearch.do?find_abbreviation=$1',
link = 'https://www.ipni.org/ipni/advAuthorSearch.do?find_abbreviation=$1',
label = 'International Plant Names Index',
label = 'International Plant Names Index',
regex = "('t )?(d')?(de )?(la )?(van (der )?)?(Ma?c)?(De)?(Di)?\p{Lu}?C?['\p{Ll}]*([-'. ]*(van )?(y )?(d[ae][nr]?[- ])?(Ma?c)?[\p{Lu}bht]?C?['\p{Ll}]*)*\.? ?f?\.?",
remark = 'Author citation (botany): standard form (official abbreviation) of a personal name for use in an author citation (only for names of algae, fungi and plants). Links to page at [[International Plant Names Index]] (IPNI).'
remark = 'Author citation (botany): standard form (official abbreviation) of a personal name for use in an author citation (only for names of algae, fungi and plants). Links to page at [[International Plant Names Index]] (IPNI).'
},
},
Line 277: Line 247:
property = 651,
property = 651,
section = 5,
section = 5,
example = '12345678',
patterns = {'^%d%d%d%d%d%d%d%d$', '^0?%d%d%d%d%d%d%d$', '^0?0?%d%d%d%d%d%d$'},
patterns = {'^%d%d%d%d%d%d%d%d$', '^0?%d%d%d%d%d%d%d$', '^0?0?%d%d%d%d%d%d$'},
link = 'http://www.biografischportaal.nl/en/persoon/$1',
link = 'http://www.biografischportaal.nl/en/persoon/$1',
label = 'Netherlands',
label = 'Netherlands',
regex = '\d{6,8}',
remark = 'Dutch project with material for 40,000 digitized biographies, including former colonies of the Netherlands.'
remark = 'Dutch project with material for 40,000 digitized biographies, including former colonies of the Netherlands.'
},
},
Line 287: Line 255:
property = 9984,
property = 9984,
section = 2,
section = 2,
example = '981058515460906706',
pattern = '^981[0-1]%d%d%d%d%d%d%d%d%d06706$',
pattern = '^981[0-1]%d%d%d%d%d%d%d%d%d06706$',
link = 'https://cantic.bnc.cat/registre/$1',
link = 'https://cantic.bnc.cat/registre/$1',
label = 'Catalonia',
label = 'Catalonia',
regex = '981(0|1)\d{9}06706'
},
},
{ 'CCG',
{ 'CCG',
property = 3920,
property = 3920,
section = 7,
section = 7,
example = 'A1761',
patterns = {'^[NAIP]?[1-9]%d*$', '^[NAIP]?[1-9]%d*%.%d+$'},
patterns = {'^[NAIP]?[1-9]%d*$', '^[NAIP]?[1-9]%d*%.%d+$'},
prefix = '[[CCG (identifier)|CCG]]',
prefix = '[[CCG (identifier)|CCG]]',
regex = '([NAIP])?[1-9]\d*(\.\d+)?'
},
},
{ 'CINII',
{ 'CINII',
property = 271,
property = 271,
section = 6,
section = 6,
example = 'DA12345678',
pattern = '^DA%d%d%d%d%d%d%d[%dX]$',
pattern = '^DA%d%d%d%d%d%d%d[%dX]$',
idlink = 'CiNii (identifier)',
idlink = 'CiNii (identifier)',
link = 'https://ci.nii.ac.jp/author/$1?l=en',
link = 'https://ci.nii.ac.jp/author/$1?l=en',
label = 'CiNii (Japan)',
label = 'CiNii (Japan)',
regex = 'DA\d{7}[\dX]',
remark = 'CiNii is a bibliographic database service for material in Japanese academic libraries. It is maintained by the [[National Institute of Informatics]].'
remark = 'CiNii is a bibliographic database service for material in Japanese academic libraries. It is maintained by the [[National Institute of Informatics]].'
},
},
Line 315: Line 277:
property = 1908,
property = 1908,
section = 8,
section = 8,
example = '1234567',
pattern = '^[1-9]%d*$',
pattern = '^[1-9]%d*$',
link = 'https://www.cwgc.org/find-war-dead/casualty/$1/',
link = 'https://www.cwgc.org/find-war-dead/casualty/$1/',
label = 'Commonwealth War Graves Commission',
label = 'Commonwealth War Graves Commission',
regex = '[1-9]\d*'
},
},
{ 'DAAO',
{ 'DAAO',
property = 1707,
property = 1707,
section = 4,
section = 4,
example = 'rolf-harris',
pattern = '^[a-z%-]+%d*$',
pattern = '^[a-z%-]+%d*$',
link = 'https://www.daao.org.au/bio/$1',
link = 'https://www.daao.org.au/bio/$1',
label = 'Australian Artists',
label = 'Australian Artists',
regex = '[a-z\-]+\d*'
},
},
  { 'Danish List of Lights and Fog signals',
  { 'Danish List of Lights and Fog signals',
Line 334: Line 292:
section = 7,
section = 7,
pattern = '^[1-9]%d*[A-Za-z]?$',
pattern = '^[1-9]%d*[A-Za-z]?$',
example = '1',
prefix = 'Denmark',
prefix = 'Denmark',
regex = '[1-9]\d*([a-z]| [A-Z])?*'
},
},
{ 'DBI',
{ 'DBI',
property = 1986,
property = 1986,
section = 5,
section = 5,
example = 'dante-alighieri',
link = 'https://www.treccani.it/enciclopedia/$1_(Dizionario-Biografico)',
link = 'https://www.treccani.it/enciclopedia/$1_(Dizionario-Biografico)',
label = 'Italian People',
label = 'Italian People',
Line 348: Line 303:
property = 2456,
property = 2456,
section = 6,
section = 6,
example = '89/4185-p',
patterns = {'^%d%d%d?%/%d+-?[%d]*[%a]*-?[%d]*$', '^[%a]+%/[%w]*-?[%d]*$'},
patterns = {'^%d%d%d?%/%d+-?[%d]*[%a]*-?[%d]*$', '^[%a]+%/[%w]*-?[%d]*$'},
link = 'https://dblp.org/pid/$1',
link = 'https://dblp.org/pid/$1',
label = 'DBLP (computer science)',
label = 'DBLP (computer science)',
regex = '\d{2,3}\/\d+(-\d+)?[a-zA-Z-]*(-\d+)?|[a-z]\/[0-9A-Za-z]*(-\d+)?'
},
},
{ 'DIB',
{ 'DIB',
property = 6829,
property = 6829,
section = 5,
section = 5,
example = '001953',
pattern = '^0[01]%d%d%d%d%.?[A-D]?$',
pattern = '^0[01]%d%d%d%d%.?[A-D]?$',
link = 'https://doi.org/10.3318/dib.$1.v1',
link = 'https://doi.org/10.3318/dib.$1.v1',
label = 'Ireland',
label = 'Ireland',
regex = '0[01]\d{4}(\.[A-D])?'
},
},
{ 'DSI',
{ 'DSI',
property = 2349,
property = 2349,
section = 4,
section = 4,
example = '1538',
pattern = '^[1-9]%d*$',
pattern = '^[1-9]%d*$',
link = 'http://www.uni-stuttgart.de/hi/gnt/dsi2/index.php?table_name=dsi&function=details&where_field=id&where_value=$1',
link = 'http://www.uni-stuttgart.de/hi/gnt/dsi2/index.php?table_name=dsi&function=details&where_field=id&where_value=$1',
label = 'Scientific illustrators',
label = 'Scientific illustrators',
regex = '[1-9]\d*'
},
},
{ 'DTBIO',
{ 'DTBIO',
property = 7902,
property = 7902,
section = 5,
section = 5,
example = '118554700',
pattern = '^1[0-9]%d%d%d%d%d%d%d?[0-9X]$',
pattern = '^1[0-9]%d%d%d%d%d%d%d?[0-9X]$',
link = 'https://www.deutsche-biographie.de/pnd$1.html?language=en',
link = 'https://www.deutsche-biographie.de/pnd$1.html?language=en',
label = 'Germany',
label = 'Germany',
regex = '1[0-9]{7,8}[0-9X]'
},
},
{ 'EMU',
{ 'EMU',
property = 4613,
property = 4613,
section = 2,
section = 2,
example = '15409',
pattern = '^%d%d?%d?%d?%d?%d?$',
pattern = '^%d%d?%d?%d?%d?%d?$',
link = 'http://esu.com.ua/search_articles.php?id=$1',
link = 'http://esu.com.ua/search_articles.php?id=$1',
label = 'Ukraine',
label = 'Ukraine',
regex = '\d{1,6}'
},
},
{ 'FAST',
{ 'FAST',
property = 2163,  
property = 2163,  
section = 8,
section = 8,
example = '1916996',
pattern = '^[1-9]%d?%d?%d?%d?%d?%d?%d?$',
pattern = '^[1-9]%d?%d?%d?%d?%d?%d?%d?$',
link = 'http://id.worldcat.org/fast/$1/',
link = 'http://id.worldcat.org/fast/$1/',
label = 'FAST',
label = 'FAST',
regex = '[1-9]\d{0,7}'
},
},
  { 'Finnish List of Lights',
  { 'Finnish List of Lights',
Line 403: Line 346:
section = 7,
section = 7,
pattern = '^%d+$',
pattern = '^%d+$',
example = '11632',
prefix = 'Finland',
prefix = 'Finland',
regex = '\d+'
},
},
  { 'FNZA',
  { 'FNZA',
property = 6792,
property = 6792,
section = 4,
section = 4,
example = '9785',
pattern = '^[1-9]%d*$',
pattern = '^[1-9]%d*$',
link = 'https://findnzartists.org.nz/artist/$1/',
link = 'https://findnzartists.org.nz/artist/$1/',
label = 'New Zealand Artists',
label = 'New Zealand Artists',
regex = '[1-9]\d*'
},
},
{ 'GND',
{ 'GND',
property = 227,
property = 227,
section = 2,
section = 2,
example = '4079154-3',
patterns = {'^1[012]?%d%d%d%d%d%d%d[0-9X]$', '^[47]%d%d%d%d%d%d%-%d$', '^[1-9]%d?%d?%d?%d?%d?%d?%d?%-[0-9X]$', '^3%d%d%d%d%d%d%d[0-9X]$'},
patterns = {'^1[012]?%d%d%d%d%d%d%d[0-9X]$', '^[47]%d%d%d%d%d%d%-%d$', '^[1-9]%d?%d?%d?%d?%d?%d?%d?%-[0-9X]$', '^3%d%d%d%d%d%d%d[0-9X]$'},
link = 'https://d-nb.info/gnd/$1',
link = 'https://d-nb.info/gnd/$1',
label = 'Germany',
label = 'Germany',
regex = '1[012]?\d{7}[0-9X]|[47]\d{6}-\d|[1-9]\d{0,7}-[0-9X]|3\d{7}[0-9X]',
remark = 'Authority data on people, corporations and subjects from the [[German National Library]] (DNB)'
remark = 'Authority data on people, corporations and subjects from the [[German National Library]] (DNB)'
},
},
Line 429: Line 366:
property = 1960,
property = 1960,
section = 6,
section = 6,
example = 'QPdLuj8AAAAJ',
pattern = '^[%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u]$',
pattern = '^[%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u]$',
link = 'https://scholar.google.com/citations?user=$1',
link = 'https://scholar.google.com/citations?user=$1',
label = 'Google Scholar',
label = 'Google Scholar',
regex = '[-_0-9A-Za-z]{12}'
},
},
{ 'HDS',
{ 'HDS',
property = 902,
property = 902,
section = 8,
section = 8,
example = '050123',
pattern = '^%d%d%d%d%d%d$',
pattern = '^%d%d%d%d%d%d$',
label = 'Historical Dictionary of Switzerland',
label = 'Historical Dictionary of Switzerland',
link = 'https://hls-dhs-dss.ch/fr/articles/$1',
link = 'https://hls-dhs-dss.ch/fr/articles/$1',
regex = '\d{6}',
remark = 'Historical Dictionary of Switzerland is an encyclopedia on the history of Switzerland.'
remark = 'Historical Dictionary of Switzerland is an encyclopedia on the history of Switzerland.'
},
},
Line 448: Line 381:
property = 1146,
property = 1146,
section = 8,
section = 8,
example = '123',
pattern = '^%d+$',
pattern = '^%d+$',
link = 'https://www.iaaf.org/athletes/_/$1',
link = 'https://www.iaaf.org/athletes/_/$1',
label = 'World Athletics',
label = 'World Athletics',
regex = '[0-9][0-9]*',
remark = 'The IAAF athlete database lists information about [[sport of athletics]] competitors.'
remark = 'The IAAF athlete database lists information about [[sport of athletics]] competitors.'
},
},
Line 458: Line 389:
property = 396,
property = 396,
section = 2,
section = 2,
example = 'CFIV000163',
pattern = '^%u%u[%u0-3]V%d%d%d%d%d%d$',
pattern = '^%u%u[%u0-3]V%d%d%d%d%d%d$',
link = 'https://opac.sbn.it/nome/$1',
link = 'https://opac.sbn.it/nome/$1',
label = 'Italy',
label = 'Italy',
regex = '\D{2}[A-Z0-3]V\d{6}',
remark = 'Central Institute for the Union Catalogue (ICCU: {{lang|it|Istituto Centrale per il Catalogo Unico}}) is an Italian government agency created to build a single catalog of all the libraries in the nation. It manages National Library Service ({{lang|it|Servizio bibliotecario nazionale}}).'
remark = 'Central Institute for the Union Catalogue (ICCU: {{lang|it|Istituto Centrale per il Catalogo Unico}}) is an Italian government agency created to build a single catalog of all the libraries in the nation. It manages National Library Service ({{lang|it|Servizio bibliotecario nazionale}}).'
},
},
Line 468: Line 397:
property = 1736,
property = 1736,
section = 4,
section = 4,
example = '1',
pattern = '^%d+$',
pattern = '^%d+$',
link = 'https://www.imj.org.il/artcenter/newsite/en/?artist=$1',
link = 'https://www.imj.org.il/artcenter/newsite/en/?artist=$1',
label = 'ICIA (Israel)',
label = 'ICIA (Israel)',
regex = '\d+'
},
},
{ 'IEU',
{ 'IEU',
property = 9070,
property = 9070,
section = 8,
section = 8,
example = 'N\\A\\NationalAcademyofArtandArchitecture',
pattern = '^[A-Z]\\[A-Z]\\%w+$',
pattern = '^[A-Z]\\[A-Z]\\%w+$',
link = 'http://www.encyclopediaofukraine.com/display.asp?linkpath=pages\\$1',
link = 'http://www.encyclopediaofukraine.com/display.asp?linkpath=pages\\$1',
label = 'Internet Encyclopedia of Ukraine',
label = 'Internet Encyclopedia of Ukraine',
regex = '[A-Z]\\[A-Z]\\[A-Za-z0-9]+'
},
},
{ 'ISNI',
{ 'ISNI',
property = 213,
property = 213,
section = 1,
section = 1,
example = '0000-0000-6653-4145',
prefix = '[[ISNI (identifier)|ISNI]]',
prefix = '[[ISNI (identifier)|ISNI]]',
valid = p.validateIsni,
valid = p.validateIsni,
link = 'https://isni.org/isni/$1',
link = 'https://isni.org/isni/$1',
regex = '[0-9]{4} [0-9]{4} [0-9]{4} [0-9]{3}[0-9X]',
remark = 'ISNI is a method for uniquely identifying the public identities of contributors to media content such as books, TV programmes, and newspaper articles. Please take care not to confuse ISNI and ORCID identifiers.'
remark = 'ISNI is a method for uniquely identifying the public identities of contributors to media content such as books, TV programmes, and newspaper articles. Please take care not to confuse ISNI and ORCID identifiers.'
},
},
Line 496: Line 419:
property = 8189,
property = 8189,
section = 2,
section = 2,
example = '987007305652505171',
pattern = '^9870[0-1]%d%d%d%d%d%d%d%d05171$',
pattern = '^9870[0-1]%d%d%d%d%d%d%d%d05171$',
link = 'http://uli.nli.org.il/F/?func=find-b&local_base=NLX10&find_code=UID&request=$1',
link = 'http://uli.nli.org.il/F/?func=find-b&local_base=NLX10&find_code=UID&request=$1',
label = 'Israel',
label = 'Israel',
regex = '9870(0|1)\d{8}05171'
},
},
{ 'Joconde',
{ 'Joconde',
property = 347,
property = 347,
section = 4,
section = 4,
example = '12345678901',
pattern = '^'..string.rep('[%-0-9A-Za-z]', 11)..'$',
pattern = '^'..string.rep('[%-0-9A-Za-z]', 11)..'$',
link = 'https://www.pop.culture.gouv.fr/notice/joconde/$1',
link = 'https://www.pop.culture.gouv.fr/notice/joconde/$1',
label = 'Joconde (France)',
label = 'Joconde (France)',
regex = '[\-0-9A-Za-z]{11}'
},
},
{ 'KANTO',
{ 'KANTO',
property = 8980,
property = 8980,
section = 2,
section = 2,
example = '000006943',
pattern = '^%d%d%d%d%d%d%d%d%d$',
pattern = '^%d%d%d%d%d%d%d%d%d$',
link = 'https://urn.fi/URN:NBN:fi:au:finaf:$1',
link = 'https://urn.fi/URN:NBN:fi:au:finaf:$1',
Line 522: Line 440:
property = 1248,
property = 1248,
section = 4,
section = 4,
example = '12345678-1234-1234-1234-1234567890AB',
idlink = 'KulturNav (identifier)',
idlink = 'KulturNav (identifier)',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
link = 'http://kulturnav.org/$1',
link = 'http://kulturnav.org/$1',
label = 'KulturNav (Norway)',
label = 'KulturNav (Norway)',
regex = '[0-9a-f]{8}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{4}\-[0-9a-f]{12}',
remark = 'KulturNav is a Norwegian cloud-based software service, allowing users to create, manage and distribute name authorities and terminology, focusing on the needs of museums and other cultural heritage institutions. The software is developed by KulturIT ANS and the development project is funded by the [[Arts Council Norway]].'
remark = 'KulturNav is a Norwegian cloud-based software service, allowing users to create, manage and distribute name authorities and terminology, focusing on the needs of museums and other cultural heritage institutions. The software is developed by KulturIT ANS and the development project is funded by the [[Arts Council Norway]].'
},
},
Line 533: Line 449:
property = 244,
property = 244,
section = 2,
section = 2,
example = 'n78039510',
valid = p.lccnV,
valid = p.lccnV,
link = 'https://id.loc.gov/authorities/$1',
link = 'https://id.loc.gov/authorities/$1',
Line 542: Line 457:
property = 886,
property = 886,
section = 8,
section = 8,
example = '1',
pattern = '^%d+$',
pattern = '^%d+$',
link = 'http://www.e-lir.ch/e-LIR___Lexicon.$1.450.0.html',
link = 'http://www.e-lir.ch/e-LIR___Lexicon.$1.450.0.html',
label = 'Lexicon Istoric Retic (Switzerland)',
label = 'Lexicon Istoric Retic (Switzerland)',
regex = '\d+',
remark = '{{lang|rm|Lexicon Istoric Retic}} (LIR) is a two volume version with a selection of articles published in Romansh.'
remark = '{{lang|rm|Lexicon Istoric Retic}} (LIR) is a two volume version with a selection of articles published in Romansh.'
},
},
Line 552: Line 465:
property = 1368,
property = 1368,
section = 2,
section = 2,
example = '123456789',
pattern = '^%d%d%d%d%d%d%d%d%d$',
pattern = '^%d%d%d%d%d%d%d%d%d$',
link = 'https://kopkatalogs.lv/F?func=direct&local_base=lnc10&doc_number=$1&P_CON_LNG=ENG',
link = 'https://kopkatalogs.lv/F?func=direct&local_base=lnc10&doc_number=$1&P_CON_LNG=ENG',
label = 'Latvia',
label = 'Latvia',
regex = '\d{9}'
},
},
{ 'Marina Militare',
{ 'Marina Militare',
property = 3863,
property = 3863,
section = 7,
section = 7,
example = '3856',
pattern = '^[1-9]%d*$',
pattern = '^[1-9]%d*$',
link = 'http://www.marina.difesa.it/cosa-facciamo/per-la-difesa-sicurezza/fari/Pagine/$1.aspx',
link = 'http://www.marina.difesa.it/cosa-facciamo/per-la-difesa-sicurezza/fari/Pagine/$1.aspx',
label = 'Italy',
label = 'Italy',
regex = '[1-9]\d*'
},
},
{ 'MarineTraffic',
{ 'MarineTraffic',
property = 3601,
property = 3601,
section = 7,
section = 7,
example = '1000004707',
pattern = '^%d%d%d%d%d%d%d%d%d%d$',
pattern = '^%d%d%d%d%d%d%d%d%d%d$',
link = 'https://www.marinetraffic.com/en/ais/details/lights/$1',
link = 'https://www.marinetraffic.com/en/ais/details/lights/$1',
label = 'MarineTraffic',
label = 'MarineTraffic',
regex = '\d{10}'
},
},
{ 'MATHSN',
{ 'MATHSN',
property = 4955,
property = 4955,
section = 6,
section = 6,
example = '175270',
pattern = '^[1-9]%d%d%d%d%d?%d?$',
pattern = '^[1-9]%d%d%d%d%d?%d?$',
link = 'https://mathscinet.ams.org/mathscinet/MRAuthorID/$1',
link = 'https://mathscinet.ams.org/mathscinet/MRAuthorID/$1',
label = 'MathSciNet',
label = 'MathSciNet',
regex = '[1-9]\d{4,6}'
},
},
{ 'MBA',
{ 'MBA',
property = 434,
property = 434,
section = 8,
section = 8,
example = '12345678-1234-1234-1234-1234567890AB',
category = 'MusicBrainz',
category = 'MusicBrainz',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
Line 594: Line 498:
prefix = '[[MBA (identifier)|MusicBrainz]]',
prefix = '[[MBA (identifier)|MusicBrainz]]',
label = 'artist',
label = 'artist',
regex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}',
remark = 'MusicBrainz is an open music encyclopedia that collects music metadata and makes it available to the public.'
remark = 'MusicBrainz is an open music encyclopedia that collects music metadata and makes it available to the public.'
},
},
Line 600: Line 503:
property = 982,
property = 982,
section = 8,
section = 8,
example = '12345678-1234-1234-1234-1234567890AB',
category = 'MusicBrainz area',
category = 'MusicBrainz area',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
Line 606: Line 508:
link = 'https://musicbrainz.org/area/$1',
link = 'https://musicbrainz.org/area/$1',
label = 'area',
label = 'area',
regex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
},
},
{ 'MBI',
{ 'MBI',
property = 1330,
property = 1330,
section = 8,
section = 8,
example = '12345678-1234-1234-1234-1234567890AB',
category = 'MusicBrainz instrument',
category = 'MusicBrainz instrument',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
Line 617: Line 517:
label = 'instrument',
label = 'instrument',
prefix = '[[MBI (identifier)|MusicBrainz]]',
prefix = '[[MBI (identifier)|MusicBrainz]]',
regex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
},
},
{ 'MBL',
{ 'MBL',
property = 966,
property = 966,
section = 8,
section = 8,
example = '12345678-1234-1234-1234-1234567890AB',
category = 'MusicBrainz label',
category = 'MusicBrainz label',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
Line 628: Line 526:
label = 'label',
label = 'label',
link = 'https://musicbrainz.org/label/$1',
link = 'https://musicbrainz.org/label/$1',
regex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
},
},
{ 'MBP',
{ 'MBP',
property = 1004,
property = 1004,
section = 8,
section = 8,
example = '12345678-1234-1234-1234-1234567890AB',
category = 'MusicBrainz place',
category = 'MusicBrainz place',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
Line 639: Line 535:
label = 'place',
label = 'place',
prefix = '[[MBP (identifier)|MusicBrainz]]',
prefix = '[[MBP (identifier)|MusicBrainz]]',
regex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
},
},
{ 'MBRG',
{ 'MBRG',
property = 436,
property = 436,
section = 8,
section = 8,
example = '12345678-1234-1234-1234-1234567890AB',
category = 'MusicBrainz release group',
category = 'MusicBrainz release group',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
Line 650: Line 544:
label = 'release group',
label = 'release group',
prefix = '[[MBRG (identifier)|MusicBrainz]]',
prefix = '[[MBRG (identifier)|MusicBrainz]]',
regex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
},
},
{ 'MBS',
{ 'MBS',
property = 1407,
property = 1407,
section = 8,
section = 8,
example = '12345678-1234-1234-1234-1234567890AB',
category = 'MusicBrainz series',
category = 'MusicBrainz series',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
Line 661: Line 553:
label = 'series',
label = 'series',
prefix = '[[MBS (identifier)|MusicBrainz]]',
prefix = '[[MBS (identifier)|MusicBrainz]]',
regex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
},
},
{ 'MBW',
{ 'MBW',
property = 435,
property = 435,
section = 8,
section = 8,
example = '12345678-1234-1234-1234-1234567890AB',
category = 'MusicBrainz work',
category = 'MusicBrainz work',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
Line 672: Line 562:
label = 'work',
label = 'work',
prefix = '[[MBW (identifier)|MusicBrainz]]',
prefix = '[[MBW (identifier)|MusicBrainz]]',
regex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
},
},
{ 'MGP',
{ 'MGP',
property = 549,
property = 549,
section = 6,
section = 6,
example = '123456',
pattern = '^%d%d?%d?%d?%d?%d?$',
pattern = '^%d%d?%d?%d?%d?%d?$',
link = 'https://www.mathgenealogy.org/id.php?id=$1',
link = 'https://www.mathgenealogy.org/id.php?id=$1',
label = 'Mathematics Genealogy Project',
label = 'Mathematics Genealogy Project',
regex = '\d{1,6}',
remark = 'Mathematics Genealogy Project is a web-based database for the academic genealogy of mathematicians.'
remark = 'Mathematics Genealogy Project is a web-based database for the academic genealogy of mathematicians.'
},
},
Line 687: Line 574:
property = 1225,
property = 1225,
section = 8,
section = 8,
example = '12345678',
pattern = '^[1-9]%d?%d?%d?%d?%d?%d?%d?%d?$',
pattern = '^[1-9]%d?%d?%d?%d?%d?%d?%d?%d?$',
link = 'https://catalog.archives.gov/id/$1',
link = 'https://catalog.archives.gov/id/$1',
label = 'National Archives (US)',
label = 'National Archives (US)',
regex = '^([1-9]\d{0,8})$',
remark = 'National Archives and Records Administration (NARA) is an independent agency of the United States government charged with preserving and documenting government and historical records.'
remark = 'National Archives and Records Administration (NARA) is an independent agency of the United States government charged with preserving and documenting government and historical records.'
},
},
Line 697: Line 582:
property = 1048,
property = 1048,
section = 2,
section = 2,
example = '1081436',
pattern = '^%d+$',
pattern = '^%d+$',
link = 'http://aleweb.ncl.edu.tw/F/?func=accref&acc_sequence=$1&CON_LNG=ENG',
link = 'http://aleweb.ncl.edu.tw/F/?func=accref&acc_sequence=$1&CON_LNG=ENG',
label = 'Taiwan',
label = 'Taiwan',
regex = '\d+',
remark = 'National Central Library is the national library of Taiwan, Republic of China.'
remark = 'National Central Library is the national library of Taiwan, Republic of China.'
},
},
Line 707: Line 590:
property = 349,
property = 349,
section = 2,
section = 2,
example = '012345678',
link = 'https://id.ndl.go.jp/auth/ndlna/$1',
link = 'https://id.ndl.go.jp/auth/ndlna/$1',
patterns = {'^a1%d?%d%d%d%d%d%d%d%d', '^s?%d?%d%d%d%d%d%d%d%d'},
patterns = {'^a1%d?%d%d%d%d%d%d%d%d', '^s?%d?%d%d%d%d%d%d%d%d'},
label = 'Japan',
label = 'Japan',
regex = '(a1|s)?[0-9]?\d{8}',
remark = 'Authority data listed in the catalog of the national library of Japan. Search also available via [http://viaf.org/ VIAF].'
remark = 'Authority data listed in the catalog of the national library of Japan. Search also available via [http://viaf.org/ VIAF].'
},
},
Line 717: Line 598:
property = 3563,
property = 3563,
section = 7,
section = 7,
example = '114-7721.2',
pattern = '^11[0-6]%-%d+%.?%d*$',
pattern = '^11[0-6]%-%d+%.?%d*$',
link = 'https://wikidata-externalid-url.toolforge.org/?url=https%3A%2F%2Fmsi.nga.mil%2FqueryResults%3Fpublications%2Fngalol%2Flights-buoys%3Fvolume%3D%251%26featureNumber%3D%252%26includeRemovals%3Dfalse%26output%3Dhtml&exp=(%5Cd%7B3%7D)-(.*)&id=$1',
link = 'https://wikidata-externalid-url.toolforge.org/?url=https%3A%2F%2Fmsi.nga.mil%2FqueryResults%3Fpublications%2Fngalol%2Flights-buoys%3Fvolume%3D%251%26featureNumber%3D%252%26includeRemovals%3Dfalse%26output%3Dhtml&exp=(%5Cd%7B3%7D)-(.*)&id=$1',
label = 'NGA',
label = 'NGA',
regex = '11[0-6]-\d+(\.\d+)?'
},
},
{ 'NGV',
{ 'NGV',
property = 2041,
property = 2041,
section = 3,
section = 3,
example = '12354',
pattern = '^%d+$',
pattern = '^%d+$',
link = 'https://www.ngv.vic.gov.au/explore/collection/artist/$1/',
link = 'https://www.ngv.vic.gov.au/explore/collection/artist/$1/',
label = 'Victoria',
label = 'Victoria',
regex = '\d+'
},
},
{ 'NKC',
{ 'NKC',
property = 691,
property = 691,
section = 2,
section = 2,
example = 'abcd12345678901234',
pattern = '^[a-z][a-z][a-z]?[a-z]?%d%d%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?$',
pattern = '^[a-z][a-z][a-z]?[a-z]?%d%d%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?$',
regex = '[a-z]{2,4}[0-9]{2,14}',
link = 'https://aleph.nkp.cz/F/?func=find-c&local_base=aut&ccl_term=ica=$1&CON_LNG=ENG',
link = 'https://aleph.nkp.cz/F/?func=find-c&local_base=aut&ccl_term=ica=$1&CON_LNG=ENG',
label = 'Czech Republic',
label = 'Czech Republic',
Line 745: Line 620:
property = 409,
property = 409,
section = 2,
section = 2,
example = '123456789012',
pattern = '^[1-9]%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?$',
pattern = '^[1-9]%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?$',
regex = '[1-9][0-9]{0,11}',
link = 'https://nla.gov.au/anbd.aut-an$1',
link = 'https://nla.gov.au/anbd.aut-an$1',
label = 'Australia',
label = 'Australia',
Line 755: Line 628:
property = 3348,
property = 3348,
section = 2,
section = 2,
example = '12345678',
regex = '[1-9]\d*',
pattern = '^[1-9]%d*$',
pattern = '^[1-9]%d*$',
link = 'https://data.nlg.gr/resource/authority/record$1',
link = 'https://data.nlg.gr/resource/authority/record$1',
Line 764: Line 635:
property = 5034,
property = 5034,
section = 2,
section = 2,
example = 'KAB197000000',
regex = '(KAB|KAC|KSH)([0-9]{4}|[0-9]{4}[a-zA-Z])[0-9]{4,6}',
link = 'https://lod.nl.go.kr/resource/$1',
link = 'https://lod.nl.go.kr/resource/$1',
label = 'Korea',
label = 'Korea',
Line 773: Line 642:
property = 1003,
property = 1003,
section = 2,
section = 2,
example = '123456789',
pattern = '^%d%d%d%d%d%d%d%d%d$',
pattern = '^%d%d%d%d%d%d%d%d%d$',
link = 'http://aleph.bibnat.ro:8991/F/?func=direct&local_base=NLR10&doc_number=$1',
link = 'http://aleph.bibnat.ro:8991/F/?func=direct&local_base=NLR10&doc_number=$1',
label = 'Romania',
label = 'Romania',
regex = '\d{9}'
},
},
  { 'Norwegian List of Lights',
  { 'Norwegian List of Lights',
Line 783: Line 650:
section = 7,
section = 7,
pattern = '^%d+$',
pattern = '^%d+$',
example = '000100',
prefix = 'Norway',
prefix = 'Norway',
regex = '\d+'
},
},
{ 'NSK',
{ 'NSK',
property = 1375,
property = 1375,
section = 2,
section = 2,
example = '123456789',
pattern = '^%d%d%d%d%d%d%d%d%d$',
pattern = '^%d%d%d%d%d%d%d%d%d$',
link = 'http://katalog.nsk.hr/F/?func=direct&doc_number=$1&local_base=nsk10',
link = 'http://katalog.nsk.hr/F/?func=direct&doc_number=$1&local_base=nsk10',
label = 'Croatia',
label = 'Croatia',
regex = '\d{9}'
},
},
{ 'NTA',
{ 'NTA',
property = 1006,
property = 1006,
section = 2,
section = 2,
example = '12345678X',
pattern = '^%d%d%d%d%d%d%d%d[%dX]$',
pattern = '^%d%d%d%d%d%d%d%d[%dX]$',
link = 'http://data.bibliotheken.nl/id/thes/p$1',
link = 'http://data.bibliotheken.nl/id/thes/p$1',
label = 'Netherlands',
label = 'Netherlands',
regex = '\d{8}[\dX]'
},
},
  { 'Online List of Lights',
  { 'Online List of Lights',
Line 809: Line 670:
section = 7,
section = 7,
pattern = '^[1-9]%d*$',
pattern = '^[1-9]%d*$',
example = '12719',
label = 'OLL',
label = 'OLL',
link = 'http://listoflights.org/leuchtfeuer/detail?id=$1.aspx'
link = 'http://listoflights.org/leuchtfeuer/detail?id=$1.aspx'
Line 816: Line 676:
property = 496,
property = 496,
section = 1,
section = 1,
example = '0000-0002-7398-5483',
prefix = '[[ORCID (identifier)|ORCID]]',
prefix = '[[ORCID (identifier)|ORCID]]',
valid=p.orcidV,
valid=p.orcidV,
Line 825: Line 684:
property = 2750,
property = 2750,
section = 4,
section = 4,
example = '1',
pattern = '^[1-9]%d*$',
pattern = '^[1-9]%d*$',
link = 'https://pic.nypl.org/constituents/$1',
link = 'https://pic.nypl.org/constituents/$1',
label = 'Photographers\' Identities',
label = 'Photographers\' Identities',
regex = '[1-9]\d*',
remark = "PIC is a photographer's database. It is maintained by the New York Public Library."
remark = "PIC is a photographer's database. It is maintained by the New York Public Library."
},
},
Line 835: Line 692:
property = 7293,
property = 7293,
section = 2,
section = 2,
example = '9812345678905606',
pattern = '^981%d%d%d%d%d%d%d%d05606*$',
pattern = '^981%d%d%d%d%d%d%d%d05606*$',
link = 'http://mak.bn.org.pl/cgi-bin/KHW/makwww.exe?BM=1&NU=1&IM=4&WI=$1',
link = 'http://mak.bn.org.pl/cgi-bin/KHW/makwww.exe?BM=1&NU=1&IM=4&WI=$1',
label = 'Poland',
label = 'Poland',
regex = '981[0-9]{8}05606'
},
},
  { 'Portuguese lighthouse',
  { 'Portuguese lighthouse',
Line 845: Line 700:
section = 7,
section = 7,
patterns = {'^[1-9]%d*$', '^[1-9]%d*.%d+$'},
patterns = {'^[1-9]%d*$', '^[1-9]%d*.%d+$'},
example = '186',
prefix = 'Portugal',
prefix = 'Portugal',
},
},
Line 851: Line 705:
property = 1695,
property = 1695,
section = 2,
section = 2,
example = '9810123456789012345',
patterns  = {'^9810%d+$', '^A%d%d%d%d%d%d%d[%dX]$'},
patterns  = {'^9810%d+$', '^A%d%d%d%d%d%d%d[%dX]$'},
link = 'https://tools.wmflabs.org/wikidata-externalid-url?p=1695&id=$1',
link = 'https://tools.wmflabs.org/wikidata-externalid-url?p=1695&id=$1',
label = 'Poland',
label = 'Poland',
regex = '9810[0-9]\d* or A[0-9]{7}[0-9X]',
suppressedbyproperty = {7293}
suppressedbyproperty = {7293}
},
},
Line 861: Line 713:
property = 3829,
property = 3829,
section = 6,
section = 6,
example = '2776255',
pattern = '^%d+$',
pattern = '^%d+$',
link = 'https://publons.com/author/$1/',
link = 'https://publons.com/author/$1/',
label = 'Publons (researchers)',
label = 'Publons (researchers)',
regex = '\d+'
},
},
{ 'RID',
{ 'RID',
property = 1053,
property = 1053,
section = 6,
section = 6,
example = 'A-1234-1934',
patterns = {'^[A-Z][A-Z]?[A-Z]?%-%d%d%d%d%-19%d%d$', '^[A-Z][A-Z]?[A-Z]?%-%d%d%d%d%-20%d%d$'},
patterns = {'^[A-Z][A-Z]?[A-Z]?%-%d%d%d%d%-19%d%d$', '^[A-Z][A-Z]?[A-Z]?%-%d%d%d%d%-20%d%d$'},
link = 'https://www.researcherid.com/rid/$1',
link = 'https://www.researcherid.com/rid/$1',
label = 'ResearcherID',
label = 'ResearcherID',
regex = '[A-Z]{1,3}-\d{4}-(19|20)\d\d',
remark = 'An identifying system for scientific authors. The system was introduced in January 2008 by [[Thomson Reuters]]. The combined use of the [[digital object identifier]] with the ResearcherID allows for a unique association of authors and scientific articles.'
remark = 'An identifying system for scientific authors. The system was introduced in January 2008 by [[Thomson Reuters]]. The combined use of the [[digital object identifier]] with the ResearcherID allows for a unique association of authors and scientific articles.'
},
},
Line 880: Line 728:
property = 5504,
property = 5504,
section = 8,
section = 8,
example = 'pe30006410',
prefix = '[[RISM (identifier)|RISM (France)]]',
prefix = '[[RISM (identifier)|RISM (France)]]',
patterns = {'^pe[1-9]%d*$', '^ks[1-9]%d*$', '^[1-9]%d*$'},
patterns = {'^pe[1-9]%d*$', '^ks[1-9]%d*$', '^[1-9]%d*$'},
link = 'https://opac.rism.info/search?id=$1',
link = 'https://opac.rism.info/search?id=$1',
regex = '(pe|ks)?\[1-9]d*'
},
},
{ 'RERO',
{ 'RERO',
property = 3065,
property = 3065,
section = 8,
section = 8,
example = '02-A012345678',
prefix = '[[RERO (identifier)|RERO (Switzerland)]]',
prefix = '[[RERO (identifier)|RERO (Switzerland)]]',
pattern = '^0[1-2]%-[A-Z%d][A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?$',
pattern = '^0[1-2]%-[A-Z%d][A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?$',
link = 'http://data.rero.ch/$1',
link = 'http://data.rero.ch/$1',
regex = '0[1-2]-[A-Z0-9]{1,10}'
},
},
{ 'RKDartists',
{ 'RKDartists',
property = 650,
property = 650,
section = 4,
section = 4,
example = '123456',
pattern = '^[1-9]%d?%d?%d?%d?%d?$',
pattern = '^[1-9]%d?%d?%d?%d?%d?$',
link = 'https://rkd.nl/en/explore/artists/$1',
link = 'https://rkd.nl/en/explore/artists/$1',
label = 'RKD Artists (Netherlands)',
label = 'RKD Artists (Netherlands)',
regex = '[1-9]\d{0,5}',
remark = 'RKDartists is an online database using a controlled vocabulary currently containing around 200,000+ names and other information about artists. Names in RKDartists may include given names, pseudonyms, variant spellings, names in multiple languages, and names that have changed over time (e.g., married names).'
remark = 'RKDartists is an online database using a controlled vocabulary currently containing around 200,000+ names and other information about artists. Names in RKDartists may include given names, pseudonyms, variant spellings, names in multiple languages, and names that have changed over time (e.g., married names).'
},
},
Line 908: Line 750:
property = 350,
property = 350,
section = 4,
section = 4,
example = '123456',
pattern = '^[1-9]%d?%d?%d?%d?%d?$',
pattern = '^[1-9]%d?%d?%d?%d?%d?$',
link = 'https://rkd.nl/nl/explore/images/$1',
link = 'https://rkd.nl/nl/explore/images/$1',
label = 'RKD ID (Netherlands)',
label = 'RKD ID (Netherlands)',
regex = '[1-9]\d{0,5}'
},
},
{ 'RSL',
{ 'RSL',
property = 947,
property = 947,
section = 2,
section = 2,
example = '123456789',
pattern = '^%d%d?%d?%d?%d?%d?%d?%d?%d?$',
pattern = '^%d%d?%d?%d?%d?%d?%d?%d?%d?$',
link = 'http://aleph.rsl.ru/F?func=find-b&find_code=SYS&adjacent=Y&local_base=RSL11&request=$1&CON_LNG=ENG',
link = 'http://aleph.rsl.ru/F?func=find-b&find_code=SYS&adjacent=Y&local_base=RSL11&request=$1&CON_LNG=ENG',
label = 'Russia',
label = 'Russia',
regex = '\d{1,9}',
remark = 'Russian State Library ({{lang|ru|Российская государственная библиотека}}) is the national library of Russia.'
remark = 'Russian State Library ({{lang|ru|Российская государственная библиотека}}) is the national library of Russia.'
},
},
Line 927: Line 765:
property = 1153,
property = 1153,
section = 6,
section = 6,
example = '7005487412',
pattern = '^[1-9]%d%d%d%d%d%d%d%d%d%d?$',
pattern = '^[1-9]%d%d%d%d%d%d%d%d%d%d?$',
link = 'https://www.scopus.com/authid/detail.uri?authorId=$1',
link = 'https://www.scopus.com/authid/detail.uri?authorId=$1',
label = 'Scopus author',
label = 'Scopus author',
regex = '[1-9]\d{9,10}',
remark = 'SciVerse Scopus is a bibliographic database containing abstracts and citations for academic journal articles. It covers nearly 19,500 titles from over 5,000 international publishers, of which 16,500 are peer-reviewed journals in the scientific, technical, medical, and social sciences (including arts and humanities).'
remark = 'SciVerse Scopus is a bibliographic database containing abstracts and citations for academic journal articles. It covers nearly 19,500 titles from over 5,000 international publishers, of which 16,500 are peer-reviewed journals in the scientific, technical, medical, and social sciences (including arts and humanities).'
},
},
Line 937: Line 773:
property = 906,
property = 906,
section = 2,
section = 2,
example = '123456',
pattern = '^[1-9]%d%d%d%d%d?$',
pattern = '^[1-9]%d%d%d%d%d?$',
link = 'https://libris.kb.se/auth/$1',
link = 'https://libris.kb.se/auth/$1',
label = 'Sweden',
label = 'Sweden',
regex = '[1-9]\d{4,5}',
remark = 'Authority data from the [[National Library of Sweden]]'
remark = 'Authority data from the [[National Library of Sweden]]'
},
},
Line 947: Line 781:
property = 781,
property = 781,
section = 4,
section = 4,
example = '123456789',
pattern = '^%d%d%d%d%d%d%d%d?%d?$',
pattern = '^%d%d%d%d%d%d%d%d?%d?$',
link = 'http://www.sikart.ch/KuenstlerInnen.aspx?id=$1&lng=en',
link = 'http://www.sikart.ch/KuenstlerInnen.aspx?id=$1&lng=en',
label = 'SIKART (Switzerland)',
label = 'SIKART (Switzerland)',
regex = '\d{7,9}',
remark = 'SIKART is a biographical dictionary and a database on visual art in Switzerland and Liechtenstein. It is published online by the Swiss Institute for Art Research (SIAR).'
remark = 'SIKART is a biographical dictionary and a database on visual art in Switzerland and Liechtenstein. It is published online by the Swiss Institute for Art Research (SIAR).'
},
},
Line 957: Line 789:
property = 3430,
property = 3430,
section = 8,
section = 8,
example = 'A',
pattern = '^%d*[A-Za-z][0-9A-Za-z]*$',
pattern = '^%d*[A-Za-z][0-9A-Za-z]*$',
link = 'https://snaccooperative.org/ark:/99166/$1',
link = 'https://snaccooperative.org/ark:/99166/$1',
label = 'Social Networks and Archival Context',
label = 'Social Networks and Archival Context',
regex = '\d*[A-Za-z][0-9A-Za-z]*'
},
},
{ 'SUDOC',
{ 'SUDOC',
property = 269,
property = 269,
section = 8,
section = 8,
example = '026927608',
prefix = '[[SUDOC (identifier)|SUDOC (France)]]',
prefix = '[[SUDOC (identifier)|SUDOC (France)]]',
pattern = '^%d%d%d%d%d%d%d%d[%dxX]$',
pattern = '^%d%d%d%d%d%d%d%d[%dxX]$',
link = 'https://www.idref.fr/$1',
link = 'https://www.idref.fr/$1',
regex = '(\d{8}[\dX]|)',
remark = 'Authority data of people listed in the general catalogue of the University Documentation System of France. Also available from [http://www.sudoc.abes.fr/xslt//DB=2.1/SET=2/TTL=1/LNG=EN/ English-speaking catalog] (search author, click one book, click author name, take PPN= value of the URL)'
remark = 'Authority data of people listed in the general catalogue of the University Documentation System of France. Also available from [http://www.sudoc.abes.fr/xslt//DB=2.1/SET=2/TTL=1/LNG=EN/ English-speaking catalog] (search author, click one book, click author name, take PPN= value of the URL)'
},
},
Line 976: Line 804:
property = 1323,
property = 1323,
section = 6,
section = 6,
example = 'A12.3.45.678',
pattern = '^A%d%d%.%d%.%d%d%.%d%d%d[FM]?$',
pattern = '^A%d%d%.%d%.%d%d%.%d%d%d[FM]?$',
link = 'http://tools.wmflabs.org/wikidata-externalid-url/?p=1323&url_prefix=https:%2F%2Fwww.unifr.ch%2Fifaa%2FPublic%2FEntryPage%2FTA98%20Tree%2FEntity%20TA98%20EN%2F&url_suffix=%20Entity%20TA98%20EN.htm&id=$1',
link = 'http://tools.wmflabs.org/wikidata-externalid-url/?p=1323&url_prefix=https:%2F%2Fwww.unifr.ch%2Fifaa%2FPublic%2FEntryPage%2FTA98%20Tree%2FEntity%20TA98%20EN%2F&url_suffix=%20Entity%20TA98%20EN.htm&id=$1',
label = 'Terminologia Anatomica',
label = 'Terminologia Anatomica',
regex = 'A\d{2}\.\d\.\d{2}\.\d{3}[FM]?'
},
},
{ 'TDVİA',
{ 'TDVİA',
property = 7314,
property = 7314,
section = 8,
section = 8,
example = 'asim-b-behdele',
pattern = '^[%d%l/-]+$',
pattern = '^[%d%l/-]+$',
link = 'https://islamansiklopedisi.org.tr/$1',
link = 'https://islamansiklopedisi.org.tr/$1',
label = 'İslâm Ansiklopedisi',
label = 'İslâm Ansiklopedisi',
regex = '[0-9a-z/-]+'
},
},
{ 'TePapa',
{ 'TePapa',
property = 3544,
property = 3544,
section = 3,
section = 3,
example = '1',
pattern = '^%d+$',
pattern = '^%d+$',
link = 'https://collections.tepapa.govt.nz/agent/$1',
link = 'https://collections.tepapa.govt.nz/agent/$1',
label = 'Te Papa (New Zealand)',
label = 'Te Papa (New Zealand)'
regex = '\d+' },
},
{ 'TLS',
{ 'TLS',
property = 1362,
property = 1362,
section = 8,
section = 8,
example = 'Abcd',
valid = p.tlsV,
regex="\p{Lu}[\p{L}\d_',\.\-\(\)\*\/–&]{3,89}",
valid=p.tlsV,
link = 'http://tls.theaterwissenschaft.ch/wiki/$1',
link = 'http://tls.theaterwissenschaft.ch/wiki/$1',
label = 'Theaterlexikon (Switzerland)',
label = 'Theaterlexikon (Switzerland)',
Line 1,012: Line 833:
property = 1315,
property = 1315,
section = 8,
section = 8,
example = '12345678',
prefix = '[[Trove (identifier)|Trove (Australia)]]',
prefix = '[[Trove (identifier)|Trove (Australia)]]',
pattern = '^[1-9]%d%d%d%d%d%d?%d?$',
pattern = '^[1-9]%d%d%d%d%d%d?%d?$',
link = 'https://trove.nla.gov.au/people/$1',
link = 'https://trove.nla.gov.au/people/$1',
regex = '[1-9]\d{5,7}'
},
},
{ 'UKPARL',
{ 'UKPARL',
property = 6213,
property = 6213,
section = 8,
section = 8,
example = 'AQUupyiR',
pattern = '^[a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d]$',
pattern = '^[a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d]$',
link = 'https://id.parliament.uk/$1',
link = 'https://id.parliament.uk/$1',
label = 'UK Parliament',
label = 'UK Parliament',
regex = '[a-zA-Z\d]{8}',
remark = 'UK parliament member data'
remark = 'UK parliament member data'
},
},
Line 1,031: Line 848:
property = 245,
property = 245,
section = 4,
section = 4,
example = '500123456',
pattern = '^500%d%d%d%d%d%d$',
pattern = '^500%d%d%d%d%d%d$',
link = 'https://www.getty.edu/vow/ULANFullDisplay?find=&role=&nation=&subjectid=$1',
link = 'https://www.getty.edu/vow/ULANFullDisplay?find=&role=&nation=&subjectid=$1',
label = 'Artist Names (Getty)',
label = 'Artist Names (Getty)',
regex = '500\d{6}',
remark = 'ULAN is an online database using a controlled vocabulary currently containing around 293,000 names and other information about artists. Names in ULAN may include given names, pseudonyms, variant spellings, names in multiple languages, and names that have changed over time (e.g., married names).'
remark = 'ULAN is an online database using a controlled vocabulary currently containing around 293,000 names and other information about artists. Names in ULAN may include given names, pseudonyms, variant spellings, names in multiple languages, and names that have changed over time (e.g., married names).'
},
},
Line 1,041: Line 856:
property = 3723,
property = 3723,
section = 7,
section = 7,
example = '6-0695',
prefix = '[[USCG (identifier)|USCG]]',
prefix = '[[USCG (identifier)|USCG]]',
link2=p.uscgLink,
link2=p.uscgLink,
regex = '[1-7]-\d{1,5}(.[1-9])?'
},
},
{ 'USCongress',
{ 'USCongress',
property = 1157,
property = 1157,
section = 8,
section = 8,
example = 'A000123',
idlink = 'US Congress (identifier)',
idlink = 'US Congress (identifier)',
pattern = '^[A-Z]00[01]%d%d%d$',
pattern = '^[A-Z]00[01]%d%d%d$',
link = 'http://bioguide.congress.gov/scripts/biodisplay.pl?index=$1',
link = 'http://bioguide.congress.gov/scripts/biodisplay.pl?index=$1',
label = 'US Congress',
label = 'US Congress',
regex = '[A-Z]00[01]\d{3}',
remark = 'Biographical Directory of the United States Congress is a biographical dictionary of all present and former members of the United States Congress and its predecessor, the Continental Congress. Also included are Delegates from territories and the District of Columbia and Resident Commissioners from the Philippines and Puerto Rico.'
remark = 'Biographical Directory of the United States Congress is a biographical dictionary of all present and former members of the United States Congress and its predecessor, the Continental Congress. Also included are Delegates from territories and the District of Columbia and Resident Commissioners from the Philippines and Puerto Rico.'
},
},
Line 1,060: Line 871:
property = 8034,
property = 8034,
section = 2,
section = 2,
example = '494/9793',
valid = p.vcbaV,
valid = p.vcbaV,
link = 'https://opac.vatlib.it/auth/detail/$1',
link = 'https://opac.vatlib.it/auth/detail/$1',
label = 'Vatican',
label = 'Vatican',
regex = '\d{3}\/[1-9]\d{0,5}',
remark = 'Vatican Library document data'
remark = 'Vatican Library document data'
},
},
Line 1,070: Line 879:
property = 214,
property = 214,
section = 1,
section = 1,
example = '123456789',
prefix = '[[VIAF (identifier)|VIAF]]',
prefix = '[[VIAF (identifier)|VIAF]]',
patterns = {'^[1-9]%d%d?%d?%d?%d?%d?%d?%d?$', '^[1-9]%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d?%d?%d?$'},
patterns = {'^[1-9]%d%d?%d?%d?%d?%d?%d?%d?$', '^[1-9]%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d?%d?%d?$'},
regex = '[1-9]\d(\d{0,7}|\d{17,20}',
link = 'https://viaf.org/viaf/$1',
link = 'https://viaf.org/viaf/$1',
remark = 'International authority data from the Online Computer Library Center (OCLC)'
remark = 'International authority data from the Online Computer Library Center (OCLC)'
Line 1,081: Line 888:
section = 7,
section = 7,
pattern = '^[1-9]%d*$',
pattern = '^[1-9]%d*$',
example = '1',
prefix = 'Iceland'
prefix = 'Iceland',
regex = '[1-9]\d*'
},
},
{ 'WORLDCATID',
{ 'WORLDCATID',
property = 7859,
property = 7859,
section = 1,
section = 1,
example = 'lccn-n78-95332',
idlink = 'WorldCat Identities (identifier)',
idlink = 'WorldCat Identities (identifier)',
valid = p.worldcatidV,
valid = p.worldcatidV,
Line 1,094: Line 898:
label = 'WorldCat',
label = 'WorldCat',
category = 'WorldCat',
category = 'WorldCat',
regex = 'viaf-\d+|lccn-n[a-z]?[0-9\-]+|n[cps]-.+'
},
},
{ 'VIAF', --WorldCat (via VIAF)
{ 'VIAF', --WorldCat (via VIAF)
property = 214,
property = 214,
section = 1,
section = 1,
example = '123456789',
patterns = {'^[1-9]%d%d?%d?%d?%d?%d?%d?%d?$', '^[1-9]%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d?%d?%d?$'},
patterns = {'^[1-9]%d%d?%d?%d?%d?%d?%d?%d?$', '^[1-9]%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d?%d?%d?$'},
link = 'https://www.worldcat.org/identities/containsVIAFID/$1',
link = 'https://www.worldcat.org/identities/containsVIAFID/$1',
Line 1,111: Line 913:
--property = 244,
--property = 244,
--section = 1,
--section = 1,
--example = 'n78039510',
--valid = p.WorldCatLCCN,
--valid = p.WorldCatLCCN,
--link = 'https://www.worldcat.org/identities/lccn-$1',
--link = 'https://www.worldcat.org/identities/lccn-$1',
Line 1,122: Line 923:
property = 1556,
property = 1556,
section = 6,
section = 6,
example = 'turing.alan-m',
valid = p.zbmathV,
valid = p.zbmathV,
link = 'https://zbmath.org/authors/?q=ai:$1',
link = 'https://zbmath.org/authors/?q=ai:$1',
label = 'zbMATH',
label = 'zbMATH',
regex = '[a-z][a-z\-]*(\.[a-z][a-z\-]*)?(\.[0-9]*)?'
}
},
}
}
p.sectionNames = {
p.sectionNames = {

Revision as of 06:36, 3 February 2023

require('strict')
local p = {}

--[[==========================================================================]]
--[[                      Property formatting functions                       ]]
--[[==========================================================================]]
function p.botanistV(id)
	return mw.ustring.match(id,"^[%u%l%d%. '-]+$")
end

function p.bnfLink(id,label)
	if not id:match( '^c?b?%d%d%d%d%d%d%d%d[0-9bcdfghjkmnpqrstvwxz]$' ) then
		return false
	end
	if not id:match( '^cb.+$' ) then --add cb prefix if it has been removed
		id = 'cb'..id
	end
	return '<span class="uid">[https://catalogue.bnf.fr/ark:/12148/'..id..' '..(label or 'France')..'] [https://data.bnf.fr/ark:/12148/'..id..' (data)]</span>'
end

--Validate ISNI (and ORCID) and retuns it as a 16 characters string or returns false if it's invalid
--See http://support.orcid.org/knowledgebase/articles/116780-structure-of-the-orcid-identifier
function p.validateIsni(id)
	id = id:gsub( '[ %-]', '' ):upper()
	if not id:match( '^%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d[%dX]$' ) then
		return false
	end
	local total = 0
	for i = 1, 15 do
		local digit = id:byte( i ) - 48 --Get integer value
		total = (total + digit) * 2
	end
	local remainder = total % 11
	local result = (12 - remainder) % 11
	local checkdigit
	if result == 10 then
		checkdigit = 'X'
	else
		checkdigit=tostring( result )
	end
	if checkdigit ~= string.char( id:byte( 16 ) ) then
		return false
	end
	return id
end

local function splitLccn(id)
	if id:match( '^%l%l?%l?%d%d%d%d%d%d%d%d%d?%d?$' ) then
		id = id:gsub( '^(%l+)(%d+)(%d%d%d%d%d%d)$', '%1/%2/%3' )
	end
	if id:match( '^%l%l?%l?/%d%d%d?%d?/%d+$' ) then
		return mw.text.split( id, '/' )
	end
	return false
end

function p.lccnV(id)
	local function append(str, c, length)
		while str:len() < length do
			str = c..str
		end
		return str
	end
	local parts = splitLccn(id) --e.g. n78039510
	if not parts then
		return false
	end
	local lccnType = parts[1] ~= 'sh' and 'names' or 'subjects'
	return lccnType .. '/' .. parts[1] .. parts[2] .. append( parts[3], '0', 6 )
end

function p.WorldCatLCCN(id)
	local lccnParts = splitLccn(id)
	if lccnParts and lccnParts[1] ~= 'sh' then
		return lccnParts[1]..lccnParts[2]..'-'..lccnParts[3]
	else
		return false
	end
end

				
function p.orcidV(id)
	id = p.validateIsni(id)
	if not id then
		return false
	end
	return id:sub( 1, 4 )..'-'..id:sub( 5, 8 )..'-'..id:sub( 9, 12 )..'-'..id:sub( 13, 16 )
end

function p.tlsV(id)
	id = id:gsub(' +', '_')
	local idlen = mw.ustring.len(id)
	if idlen < 4 or idlen > 90 then
		return false
	end
	local regex = '^%u'..string.rep("[%w_',%.%-%(%)%*%/–&]", idlen - 1)..'$'
	if not mw.ustring.match(id,regex ) then
		return false
	end
	return id
end

function p.uscgLink(id)
	local id2 = id:match( '^[1-7]%-%d%d?%d?%d?%d?$' ) or id:match( '^[1-7]%-%d%d?%d?%d?%d?%.%d*[1-9]$' )
	if id2 then
		return '<span class="uid">[https://www.navcen.uscg.gov/pdf/lightlists/LightList%20V'..mw.ustring.sub(id2,1,1)..'.pdf '..id2..']</span>'
	else
		return false
	end
end

function p.vcbaV(id)
	if not id:match( '^%d%d%d\/[1-9]%d?%d?%d?%d?%d?$' ) then
		return false
	end
	return id:gsub('\/', '_')
end

function p.worldcatidV(id)
	if not id:match( '^viaf%-%d+$' ) and
	   not id:match( '^lccn%-n[a-z]?[0-9%-]+$' ) and
	   not id:match( '^n[cps]%-.+$' ) then
		return false
	end
	return mw.uri.encode(id, 'PATH')
end

function p.zbmathV(id)
	local ps = {'%l[%l%-]*', '%.%l[%l%-]*', '%.%d*'}
	return id:match( '^'..ps[1]..'$' ) -- prefix with no capture options
	   or id:match( '^'..ps[1]..ps[2]..'$' ) -- prefix with first capture option
	   or id:match( '^'..ps[1]..ps[3]..'$' ) -- prefix with second capture option
	   or id:match( '^'..ps[1]..ps[2]..ps[3]..'$' ) -- prefix and both capture options
end

p.config = {
	{ 'AAG',
		property = 3372,
		section = 3,
		link = 'https://www.aucklandartgallery.com/explore-art-and-ideas/artist/$1/',
		label = 'Auckland',
		pattern = '^%d+$',
	},
	{ 'ACM-DL',
		property = 864,
		section = 6,
		pattern = '^%d%d%d%d%d%d%d%d%d%d%d$',
		link = 'https://dl.acm.org/profile/$1',
		label = 'Association for Computing Machinery',
		idlink = 'ACM DL (identifier)',
	},
	{ 'ADB',
		property = 1907,
		section = 5,
		patterns = {'^[a-z][-a-z]+-[1-3]%d%d?%d?%d?$', '^[a-z][-a-z]+-[1-9]%d?%d?%d?$'},
		link = 'http://adb.anu.edu.au/biography/$1',
		label = 'Australia',
	},
	{ 'admiralty',
		property = 3562,
		patterns = {'^[A-Q]%d%d%d%d$', '^[A-Q]%d%d%d%d%.%d+$'},
		section = 7,
		prefix = '[[Admiralty (identifier)|Admiralty]]'
	},
	{ 'AGSA',
		property = 6804,
		section = 3,
		pattern = '^[1-9]%d*$',
		link = 'https://www.agsa.sa.gov.au/collection-publications/collection/creators/_/$1/',
		label = 'South Australia',
	},
	{ 'ARLHS',
		property = 2980,
		section = 7,
		pattern = '^[A-Z][A-Z][A-Z]%d%d%d%d?[A-Z]?$',
		link = 'http://wlol.arlhs.com/lighthouse/$1.html',
		label = 'ARLHS',
	},
	{ 'autores.uy',
		property = 2558,
		section = 5,
		pattern = '^[1-9]%d?%d?%d?%d?$',
		link = 'https://autores.uy/autor/$1',
		label = 'Uruguay',
		remark = "autores.uy is an author's database, that focus on [[Uruguay]]an authors. It was created and maintained by the Uruguayan chapter of Creative Commons. It also provides access to digitized works of the authors in public domain."
	},
	{ 'AWR',
		property = 4186,
		section = 5,
		patterns = {'^[A-Z][A-Z][A-Z]%d%d%d%d[a-z]$', '^[A-Z][A-Z]%d%d%d%d%d[a-z]$'},
		link = 'http://www.womenaustralia.info/biogs/$1.htm',
		label = 'Australian Women\'s Register',
	},
	{ 'BIBSYS',
		property = 1015,
		section = 2,
		patterns = {'^[1-9]%d?%d?%d?%d?%d?%d?%d?%d?$', '^[1-9]%d%d%d%d%d%d%d%d%d%d%d%d$'},
		valid = p.bibsysV,
		link = 'https://authority.bibsys.no/authority/rest/authorities/html/$1',
		label = 'Norway',
		remark = 'BIBSYS is a supplier of library and information systems for all Norwegian university Libraries, the National Library of Norway, college libraries, and a number of research libraries and institutions.'
	},
	{ 'Bildindex', 
		property = 2092,
		section = 4,
		pattern = '^%d+$',
		link = 'https://www.bildindex.de/document/obj$1',
		label = 'Bildindex (Germany)',
	},
	{ 'BNC',
		property = 1890,
		section = 2,
		pattern = '^%d%d%d%d%d%d%d%d%d$',
		link = 'http://www.bncatalogo.cl/F?func=direct&local_base=red10&doc_number=$1',
		label = 'Chile',
	},
	{ 'BNE', 
		property = 950,
		section = 2,
		patterns = {'^[XF][XF]%d%d%d%d%d?%d?%d?$', '^a%d%d%d%d%d?%d?%d?$', '^bi[mcsv][aoei]%d%d%d%d%d%d%d%d%d%d$', '^Mi[sm][eoa]%d%d%d%d%d%d%d%d%d%d$'},
		link = 'http://catalogo.bne.es/uhtbin/authoritybrowse.cgi?action=display&authority_id=$1',
		label = 'Spain',
		remark = "National Library of Spain (BNE: ''Biblioteca Nacional de España'') is a major public library, the largest in Spain."
	},
	{ 'BNF',
		property = 268,
		section = 2,
		link2 = p.bnfLink,
		remark = 'Authority data of people listed in the general catalogue of the National Library of France'
	},
	{ 'BNMM',
		property = 3788,
		section = 2,
		pattern = '^%d%d%d%d%d%d%d%d%d$',
		link = 'https://catalogo.bn.gov.ar/F/?func=direct&local_base=BNA10&doc_number=$1',
		label = 'Argentina',
	},
	{ 'Botanist',
		property = 428,
		section = 6,
		valid = p.botanistV,
		link = 'https://www.ipni.org/ipni/advAuthorSearch.do?find_abbreviation=$1',
		label = 'International Plant Names Index',
		remark = 'Author citation (botany): standard form (official abbreviation) of a personal name for use in an author citation (only for names of algae, fungi and plants). Links to page at [[International Plant Names Index]] (IPNI).'
	},
	{ 'BPN',
		property = 651,
		section = 5,
		patterns = {'^%d%d%d%d%d%d%d%d$', '^0?%d%d%d%d%d%d%d$', '^0?0?%d%d%d%d%d%d$'},
		link = 'http://www.biografischportaal.nl/en/persoon/$1',
		label = 'Netherlands',
		remark = 'Dutch project with material for 40,000 digitized biographies, including former colonies of the Netherlands.'
	},
	{ 'CANTICN',
		property = 9984,
		section = 2,
		pattern = '^981[0-1]%d%d%d%d%d%d%d%d%d06706$',
		link = 'https://cantic.bnc.cat/registre/$1',
		label = 'Catalonia',
	},
	{ 'CCG',
		property = 3920,
		section = 7,
		patterns = {'^[NAIP]?[1-9]%d*$', '^[NAIP]?[1-9]%d*%.%d+$'},
		prefix = '[[CCG (identifier)|CCG]]',
	},
	{ 'CINII',
		property = 271,
		section = 6,
		pattern = '^DA%d%d%d%d%d%d%d[%dX]$',
		idlink = 'CiNii (identifier)',
		link = 'https://ci.nii.ac.jp/author/$1?l=en',
		label = 'CiNii (Japan)',
		remark = 'CiNii is a bibliographic database service for material in Japanese academic libraries. It is maintained by the [[National Institute of Informatics]].'
	},
	{ 'CWGC',
		property = 1908,
		section = 8,
		pattern = '^[1-9]%d*$',
		link = 'https://www.cwgc.org/find-war-dead/casualty/$1/',
		label = 'Commonwealth War Graves Commission',
	},
	{ 'DAAO',
		property = 1707,
		section = 4,
		pattern = '^[a-z%-]+%d*$',
		link = 'https://www.daao.org.au/bio/$1',
		label = 'Australian Artists',
	},
 	{ 'Danish List of Lights and Fog signals',
		property = 4038, 
		section = 7,
		pattern = '^[1-9]%d*[A-Za-z]?$',
		prefix = 'Denmark',
	},
	{ 'DBI',
		property = 1986,
		section = 5,
		link = 'https://www.treccani.it/enciclopedia/$1_(Dizionario-Biografico)',
		label = 'Italian People',
	},
	{ 'DBLP',
		property = 2456,
		section = 6,
		patterns = {'^%d%d%d?%/%d+-?[%d]*[%a]*-?[%d]*$', '^[%a]+%/[%w]*-?[%d]*$'},
		link = 'https://dblp.org/pid/$1',
		label = 'DBLP (computer science)',
	},
	{ 'DIB',
		property = 6829,
		section = 5,
		pattern = '^0[01]%d%d%d%d%.?[A-D]?$',
		link = 'https://doi.org/10.3318/dib.$1.v1',
		label = 'Ireland',
	},
	{ 'DSI',
		property = 2349,
		section = 4,
		pattern = '^[1-9]%d*$',
		link = 'http://www.uni-stuttgart.de/hi/gnt/dsi2/index.php?table_name=dsi&function=details&where_field=id&where_value=$1',
		label = 'Scientific illustrators',
	},
	{ 'DTBIO',
		property = 7902,
		section = 5,
		pattern = '^1[0-9]%d%d%d%d%d%d%d?[0-9X]$',
		link = 'https://www.deutsche-biographie.de/pnd$1.html?language=en',
		label = 'Germany',
	},
	{ 'EMU',
		property = 4613,
		section = 2,
		pattern = '^%d%d?%d?%d?%d?%d?$',
		link = 'http://esu.com.ua/search_articles.php?id=$1',
		label = 'Ukraine',
	},
	{ 'FAST',
		property = 2163, 
		section = 8,
		pattern = '^[1-9]%d?%d?%d?%d?%d?%d?%d?$',
		link = 'http://id.worldcat.org/fast/$1/',
		label = 'FAST',
	},
 	{ 'Finnish List of Lights',
		property = 4143, 
		section = 7,
		pattern = '^%d+$',
		prefix = 'Finland',
	},
 	{ 'FNZA',
		property = 6792,
		section = 4,
		pattern = '^[1-9]%d*$',
		link = 'https://findnzartists.org.nz/artist/$1/',
		label = 'New Zealand Artists',
	},
	{ 'GND',
		property = 227,
		section = 2,
		patterns = {'^1[012]?%d%d%d%d%d%d%d[0-9X]$', '^[47]%d%d%d%d%d%d%-%d$', '^[1-9]%d?%d?%d?%d?%d?%d?%d?%-[0-9X]$', '^3%d%d%d%d%d%d%d[0-9X]$'},
		link = 'https://d-nb.info/gnd/$1',
		label = 'Germany',
		remark = 'Authority data on people, corporations and subjects from the [[German National Library]] (DNB)'
	},
	{ 'Google Scholar',
		property = 1960,
		section = 6,
		pattern = '^[%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u][%-_%d%l%u]$',
		link = 'https://scholar.google.com/citations?user=$1',
		label = 'Google Scholar',
	},
	{ 'HDS',
		property = 902,
		section = 8,
		pattern = '^%d%d%d%d%d%d$',
		label = 'Historical Dictionary of Switzerland',
		link = 'https://hls-dhs-dss.ch/fr/articles/$1',
		remark = 'Historical Dictionary of Switzerland is an encyclopedia on the history of Switzerland.'
	},
	{ 'IAAF',
		property = 1146,
		section = 8,
		pattern = '^%d+$',
		link = 'https://www.iaaf.org/athletes/_/$1',
		label = 'World Athletics',
		remark = 'The IAAF athlete database lists information about [[sport of athletics]] competitors.'
	},
	{ 'ICCU',
		property = 396,
		section = 2,
		pattern = '^%u%u[%u0-3]V%d%d%d%d%d%d$',
		link = 'https://opac.sbn.it/nome/$1',
		label = 'Italy',
		remark = 'Central Institute for the Union Catalogue (ICCU: {{lang|it|Istituto Centrale per il Catalogo Unico}}) is an Italian government agency created to build a single catalog of all the libraries in the nation. It manages National Library Service ({{lang|it|Servizio bibliotecario nazionale}}).'
	},
	{ 'ICIA',
		property = 1736,
		section = 4,
		pattern = '^%d+$',
		link = 'https://www.imj.org.il/artcenter/newsite/en/?artist=$1',
		label = 'ICIA (Israel)',
	},
	{ 'IEU',
		property = 9070,
		section = 8,
		pattern = '^[A-Z]\\[A-Z]\\%w+$',
		link = 'http://www.encyclopediaofukraine.com/display.asp?linkpath=pages\\$1',
		label = 'Internet Encyclopedia of Ukraine',
	},
	{ 'ISNI',
		property = 213,
		section = 1,
		prefix = '[[ISNI (identifier)|ISNI]]',
		valid = p.validateIsni,
		link = 'https://isni.org/isni/$1',
		remark = 'ISNI is a method for uniquely identifying the public identities of contributors to media content such as books, TV programmes, and newspaper articles. Please take care not to confuse ISNI and ORCID identifiers.'
	},
	{ 'J9U',
		property = 8189,
		section = 2,
		pattern = '^9870[0-1]%d%d%d%d%d%d%d%d05171$',
		link = 'http://uli.nli.org.il/F/?func=find-b&local_base=NLX10&find_code=UID&request=$1',
		label = 'Israel',
	},
	{ 'Joconde',
		property = 347,
		section = 4,
		pattern = '^'..string.rep('[%-0-9A-Za-z]', 11)..'$',
		link = 'https://www.pop.culture.gouv.fr/notice/joconde/$1',
		label = 'Joconde (France)',
	},
	{ 'KANTO',
		property = 8980,
		section = 2,
		pattern = '^%d%d%d%d%d%d%d%d%d$',
		link = 'https://urn.fi/URN:NBN:fi:au:finaf:$1',
		label = 'Finland',
	},
	{ 'KULTURNAV',
		property = 1248,
		section = 4,
		idlink = 'KulturNav (identifier)',
		pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
		link = 'http://kulturnav.org/$1',
		label = 'KulturNav (Norway)',
		remark = 'KulturNav is a Norwegian cloud-based software service, allowing users to create, manage and distribute name authorities and terminology, focusing on the needs of museums and other cultural heritage institutions. The software is developed by KulturIT ANS and the development project is funded by the [[Arts Council Norway]].'
	},
	{ 'LCCN',
		property = 244,
		section = 2,
		valid = p.lccnV,
		link = 'https://id.loc.gov/authorities/$1',
		label = 'United States',
		remark = 'See [[Wikipedia:Authority control#LCCN]] for formatting instructions'
	},
	{ 'LIR',
		property = 886,
		section = 8,
		pattern = '^%d+$',
		link = 'http://www.e-lir.ch/e-LIR___Lexicon.$1.450.0.html',
		label = 'Lexicon Istoric Retic (Switzerland)',
		remark = '{{lang|rm|Lexicon Istoric Retic}} (LIR) is a two volume version with a selection of articles published in Romansh.'
	},
	{ 'LNB',
		property = 1368,
		section = 2,
		pattern = '^%d%d%d%d%d%d%d%d%d$',
		link = 'https://kopkatalogs.lv/F?func=direct&local_base=lnc10&doc_number=$1&P_CON_LNG=ENG',
		label = 'Latvia',
	},
	{ 'Marina Militare',
		property = 3863,
		section = 7,
		pattern = '^[1-9]%d*$',
		link = 'http://www.marina.difesa.it/cosa-facciamo/per-la-difesa-sicurezza/fari/Pagine/$1.aspx',
		label = 'Italy',
	},
	{ 'MarineTraffic',
		property = 3601,
		section = 7,
		pattern = '^%d%d%d%d%d%d%d%d%d%d$',
		link = 'https://www.marinetraffic.com/en/ais/details/lights/$1',
		label = 'MarineTraffic',
	},
	{ 'MATHSN',
		property = 4955,
		section = 6,
		pattern = '^[1-9]%d%d%d%d%d?%d?$',
		link = 'https://mathscinet.ams.org/mathscinet/MRAuthorID/$1',
		label = 'MathSciNet',
	},
	{ 'MBA',
		property = 434,
		section = 8,
		category = 'MusicBrainz',
		pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
		link = 'https://musicbrainz.org/artist/$1',
		prefix = '[[MBA (identifier)|MusicBrainz]]',
		label = 'artist',
		remark = 'MusicBrainz is an open music encyclopedia that collects music metadata and makes it available to the public.'
	},
	{ 'MBAREA',
		property = 982,
		section = 8,
		category = 'MusicBrainz area',
		pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
		prefix = '[[MBAREA (identifier)|MusicBrainz]]',
		link = 'https://musicbrainz.org/area/$1',
		label = 'area',
	},
	{ 'MBI',
		property = 1330,
		section = 8,
		category = 'MusicBrainz instrument',
		pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
		link = 'https://musicbrainz.org/instrument/$1',
		label = 'instrument',
		prefix = '[[MBI (identifier)|MusicBrainz]]',
	},
	{ 'MBL',
		property = 966,
		section = 8,
		category = 'MusicBrainz label',
		pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
		prefix = '[[MBL (identifier)|MusicBrainz]]',
		label = 'label',
		link = 'https://musicbrainz.org/label/$1',
	},
	{ 'MBP',
		property = 1004,
		section = 8,
		category = 'MusicBrainz place',
		pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
		link = 'https://musicbrainz.org/place/$1',
		label = 'place',
		prefix = '[[MBP (identifier)|MusicBrainz]]',
	},
	{ 'MBRG',
		property = 436,
		section = 8,
		category = 'MusicBrainz release group',
		pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
		link = 'https://musicbrainz.org/release-group/$1',
		label = 'release group',
		prefix = '[[MBRG (identifier)|MusicBrainz]]',
	},
	{ 'MBS',
		property = 1407,
		section = 8,
		category = 'MusicBrainz series',
		pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
		link = 'https://musicbrainz.org/series/$1',
		label = 'series',
		prefix = '[[MBS (identifier)|MusicBrainz]]',
	},
	{ 'MBW',
		property = 435,
		section = 8,
		category = 'MusicBrainz work',
		pattern = '^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$',
		link = 'https://musicbrainz.org/work/$1',
		label = 'work',
		prefix = '[[MBW (identifier)|MusicBrainz]]',
	},
	{ 'MGP',
		property = 549,
		section = 6,
		pattern = '^%d%d?%d?%d?%d?%d?$',
		link = 'https://www.mathgenealogy.org/id.php?id=$1',
		label = 'Mathematics Genealogy Project',
		remark = 'Mathematics Genealogy Project is a web-based database for the academic genealogy of mathematicians.'
	},
	{ 'NARA',
		property = 1225,
		section = 8,
		pattern = '^[1-9]%d?%d?%d?%d?%d?%d?%d?%d?$',
		link = 'https://catalog.archives.gov/id/$1',
		label = 'National Archives (US)',
		remark = 'National Archives and Records Administration (NARA) is an independent agency of the United States government charged with preserving and documenting government and historical records.'
	},
	{ 'NCL',
		property = 1048,
		section = 2,
		pattern = '^%d+$',
		link = 'http://aleweb.ncl.edu.tw/F/?func=accref&acc_sequence=$1&CON_LNG=ENG',
		label = 'Taiwan',
		remark = 'National Central Library is the national library of Taiwan, Republic of China.'
	},
	{ 'NDL',
		property = 349,
		section = 2,
		link = 'https://id.ndl.go.jp/auth/ndlna/$1',
		patterns = {'^a1%d?%d%d%d%d%d%d%d%d', '^s?%d?%d%d%d%d%d%d%d%d'},
		label = 'Japan',
		remark = 'Authority data listed in the catalog of the national library of Japan. Search also available via [http://viaf.org/ VIAF].'
	},
	{ 'NGA',
		property = 3563,
		section = 7,
		pattern = '^11[0-6]%-%d+%.?%d*$',
		link = 'https://wikidata-externalid-url.toolforge.org/?url=https%3A%2F%2Fmsi.nga.mil%2FqueryResults%3Fpublications%2Fngalol%2Flights-buoys%3Fvolume%3D%251%26featureNumber%3D%252%26includeRemovals%3Dfalse%26output%3Dhtml&exp=(%5Cd%7B3%7D)-(.*)&id=$1',
		label = 'NGA',
	},
	{ 'NGV',
		property = 2041,
		section = 3,
		pattern = '^%d+$',
		link = 'https://www.ngv.vic.gov.au/explore/collection/artist/$1/',
		label = 'Victoria',
	},
	{ 'NKC',
		property = 691,
		section = 2,
		pattern = '^[a-z][a-z][a-z]?[a-z]?%d%d%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?$',
		link = 'https://aleph.nkp.cz/F/?func=find-c&local_base=aut&ccl_term=ica=$1&CON_LNG=ENG',
		label = 'Czech Republic',
		remark = 'National Library of the Czech Republic ({{lang|cs|Národní knihovna České republiky}}) is the central library of the Czech Republic.'
	},
	{ 'NLA',
		property = 409,
		section = 2,
		pattern = '^[1-9]%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?%d?$',
		link = 'https://nla.gov.au/anbd.aut-an$1',
		label = 'Australia',
		remark = "NLA Trove's People and Organisation view allows the discovery of biographical and other contextual information about people and organisations. Search also available via [http://viaf.org/ VIAF]."
	},
	{ 'NLG',
		property = 3348,
		section = 2,
		pattern = '^[1-9]%d*$',
		link = 'https://data.nlg.gr/resource/authority/record$1',
		label = 'Greece',
	},
	{ 'NLK',
		property = 5034,
		section = 2,
		link = 'https://lod.nl.go.kr/resource/$1',
		label = 'Korea',
		patterns = {'^KAB%d%d%d%d%a?%d%d%d%d%d?%d?$', '^KAC%d%d%d%d%a?%d%d%d%d%d?%d?$', '^KSH%d%d%d%d%a?%d%d%d%d%d?%d?$'},
	},
	{ 'NLR',
		property = 1003,
		section = 2,
		pattern = '^%d%d%d%d%d%d%d%d%d$',
		link = 'http://aleph.bibnat.ro:8991/F/?func=direct&local_base=NLR10&doc_number=$1',
		label = 'Romania',
	},
 	{ 'Norwegian List of Lights',
		property = 4055, 
		section = 7,
		pattern = '^%d+$',
		prefix = 'Norway',
	},
	{ 'NSK',
		property = 1375,
		section = 2,
		pattern = '^%d%d%d%d%d%d%d%d%d$',
		link = 'http://katalog.nsk.hr/F/?func=direct&doc_number=$1&local_base=nsk10',
		label = 'Croatia',
	},
	{ 'NTA',
		property = 1006,
		section = 2,
		pattern = '^%d%d%d%d%d%d%d%d[%dX]$',
		link = 'http://data.bibliotheken.nl/id/thes/p$1',
		label = 'Netherlands',
	},
 	{ 'Online List of Lights',
		property = 3223, 
		section = 7,
		pattern = '^[1-9]%d*$',
		label = 'OLL',
		link = 'http://listoflights.org/leuchtfeuer/detail?id=$1.aspx'
	},
	{ 'ORCID',
		property = 496,
		section = 1,
		prefix = '[[ORCID (identifier)|ORCID]]',
		valid=p.orcidV,
		link = 'https://orcid.org/$1',
		remark = 'Authority data on researchers, academics, etc. The ID range is a subset of the [[ISNI]] range. For free text links (for example when mentioning a person on page which is not about them), it is also possible to use {{tl|ORCID}}. Authors—including Wikipedia editors—may obtain an ORCID by signing up at [https://orcid.org/register orcid.org/register]. Please take care not to confuse ORCID and ISNI identifiers.'
	},
	{ 'PIC',
		property = 2750,
		section = 4,
		pattern = '^[1-9]%d*$',
		link = 'https://pic.nypl.org/constituents/$1',
		label = 'Photographers\' Identities',
		remark = "PIC is a photographer's database. It is maintained by the New York Public Library."
	},
	{ 'PLWABN',
		property = 7293,
		section = 2,
		pattern = '^981%d%d%d%d%d%d%d%d05606*$',
		link = 'http://mak.bn.org.pl/cgi-bin/KHW/makwww.exe?BM=1&NU=1&IM=4&WI=$1',
		label = 'Poland',
	},
 	{ 'Portuguese lighthouse',
		property = 4423, 
		section = 7,
		patterns = {'^[1-9]%d*$', '^[1-9]%d*.%d+$'},
		prefix = 'Portugal',
	},
	{ 'NLP',
		property = 1695,
		section = 2,
		patterns  = {'^9810%d+$', '^A%d%d%d%d%d%d%d[%dX]$'},
		link = 'https://tools.wmflabs.org/wikidata-externalid-url?p=1695&id=$1',
		label = 'Poland',
		suppressedbyproperty = {7293}
	},
	{ 'Publons',
		property = 3829,
		section = 6,
		pattern = '^%d+$',
		link = 'https://publons.com/author/$1/',
		label = 'Publons (researchers)',
	},
	{ 'RID',
		property = 1053,
		section = 6,
		patterns = {'^[A-Z][A-Z]?[A-Z]?%-%d%d%d%d%-19%d%d$', '^[A-Z][A-Z]?[A-Z]?%-%d%d%d%d%-20%d%d$'},
		link = 'https://www.researcherid.com/rid/$1',
		label = 'ResearcherID',
		remark = 'An identifying system for scientific authors. The system was introduced in January 2008 by [[Thomson Reuters]]. The combined use of the [[digital object identifier]] with the ResearcherID allows for a unique association of authors and scientific articles.'
	},
	{ 'RISM',
		property = 5504,
		section = 8,
		prefix = '[[RISM (identifier)|RISM (France)]]',
		patterns = {'^pe[1-9]%d*$', '^ks[1-9]%d*$', '^[1-9]%d*$'},
		link = 'https://opac.rism.info/search?id=$1',
	},
	{ 'RERO',
		property = 3065,
		section = 8,
		prefix = '[[RERO (identifier)|RERO (Switzerland)]]',
		pattern = '^0[1-2]%-[A-Z%d][A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?[A-Z%d]?$',
		link = 'http://data.rero.ch/$1',
	},
	{ 'RKDartists',
		property = 650,
		section = 4,
		pattern = '^[1-9]%d?%d?%d?%d?%d?$',
		link = 'https://rkd.nl/en/explore/artists/$1',
		label = 'RKD Artists (Netherlands)',
		remark = 'RKDartists is an online database using a controlled vocabulary currently containing around 200,000+ names and other information about artists. Names in RKDartists may include given names, pseudonyms, variant spellings, names in multiple languages, and names that have changed over time (e.g., married names).'
	},
	{ 'RKDID',
		property = 350,
		section = 4,
		pattern = '^[1-9]%d?%d?%d?%d?%d?$',
		link = 'https://rkd.nl/nl/explore/images/$1',
		label = 'RKD ID (Netherlands)',
	},
	{ 'RSL',
		property = 947,
		section = 2,
		pattern = '^%d%d?%d?%d?%d?%d?%d?%d?%d?$',
		link = 'http://aleph.rsl.ru/F?func=find-b&find_code=SYS&adjacent=Y&local_base=RSL11&request=$1&CON_LNG=ENG',
		label = 'Russia',
		remark = 'Russian State Library ({{lang|ru|Российская государственная библиотека}}) is the national library of Russia.'
	},
	{ 'Scopus',
		property = 1153,
		section = 6,
		pattern = '^[1-9]%d%d%d%d%d%d%d%d%d%d?$',
		link = 'https://www.scopus.com/authid/detail.uri?authorId=$1',
		label = 'Scopus author',
		remark = 'SciVerse Scopus is a bibliographic database containing abstracts and citations for academic journal articles. It covers nearly 19,500 titles from over 5,000 international publishers, of which 16,500 are peer-reviewed journals in the scientific, technical, medical, and social sciences (including arts and humanities).'
	},
	{ 'SELIBR',
		property = 906,
		section = 2,
		pattern = '^[1-9]%d%d%d%d%d?$',
		link = 'https://libris.kb.se/auth/$1',
		label = 'Sweden',
		remark = 'Authority data from the [[National Library of Sweden]]'
	},
	{ 'SIKART',
		property = 781,
		section = 4,
		pattern = '^%d%d%d%d%d%d%d%d?%d?$',
		link = 'http://www.sikart.ch/KuenstlerInnen.aspx?id=$1&lng=en',
		label = 'SIKART (Switzerland)',
		remark = 'SIKART is a biographical dictionary and a database on visual art in Switzerland and Liechtenstein. It is published online by the Swiss Institute for Art Research (SIAR).'
	},
	{ 'SNAC-ID',
		property = 3430,
		section = 8,
		pattern = '^%d*[A-Za-z][0-9A-Za-z]*$',
		link = 'https://snaccooperative.org/ark:/99166/$1',
		label = 'Social Networks and Archival Context',
	},
	{ 'SUDOC',
		property = 269,
		section = 8,
		prefix = '[[SUDOC (identifier)|SUDOC (France)]]',
		pattern = '^%d%d%d%d%d%d%d%d[%dxX]$',
		link = 'https://www.idref.fr/$1',
		remark = 'Authority data of people listed in the general catalogue of the University Documentation System of France. Also available from [http://www.sudoc.abes.fr/xslt//DB=2.1/SET=2/TTL=1/LNG=EN/ English-speaking catalog] (search author, click one book, click author name, take PPN= value of the URL)'
	},
	{ 'TA98',
		property = 1323,
		section = 6,
		pattern = '^A%d%d%.%d%.%d%d%.%d%d%d[FM]?$',
		link = 'http://tools.wmflabs.org/wikidata-externalid-url/?p=1323&url_prefix=https:%2F%2Fwww.unifr.ch%2Fifaa%2FPublic%2FEntryPage%2FTA98%20Tree%2FEntity%20TA98%20EN%2F&url_suffix=%20Entity%20TA98%20EN.htm&id=$1',
		label = 'Terminologia Anatomica',
	},
	{ 'TDVİA',
		property = 7314,
		section = 8,
		pattern = '^[%d%l/-]+$',
		link = 'https://islamansiklopedisi.org.tr/$1',
		label = 'İslâm Ansiklopedisi',
	},
	{ 'TePapa',
		property = 3544,
		section = 3,
		pattern = '^%d+$',
		link = 'https://collections.tepapa.govt.nz/agent/$1',
		label = 'Te Papa (New Zealand)'
	},
	{ 'TLS',
		property = 1362,
		section = 8,
		valid = p.tlsV,
		link = 'http://tls.theaterwissenschaft.ch/wiki/$1',
		label = 'Theaterlexikon (Switzerland)',
		remark = '{{lang|de|Theaterlexikon der Schweiz}} (TLS) is an encyclopedia about theatre in Switzerland. It was developed by the Institute of Theatre Studies of the [[University of Berne]].'
	},
	{ 'Trove',
		property = 1315,
		section = 8,
		prefix = '[[Trove (identifier)|Trove (Australia)]]',
		pattern = '^[1-9]%d%d%d%d%d%d?%d?$',
		link = 'https://trove.nla.gov.au/people/$1',
	},
	{ 'UKPARL',
		property = 6213,
		section = 8,
		pattern = '^[a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d][a-zA-Z%d]$',
		link = 'https://id.parliament.uk/$1',
		label = 'UK Parliament',
		remark = 'UK parliament member data'
	},
	{ 'ULAN',
		property = 245,
		section = 4,
		pattern = '^500%d%d%d%d%d%d$',
		link = 'https://www.getty.edu/vow/ULANFullDisplay?find=&role=&nation=&subjectid=$1',
		label = 'Artist Names (Getty)',
		remark = 'ULAN is an online database using a controlled vocabulary currently containing around 293,000 names and other information about artists. Names in ULAN may include given names, pseudonyms, variant spellings, names in multiple languages, and names that have changed over time (e.g., married names).'
	},
	{ 'USCG',
		property = 3723,
		section = 7,
		prefix = '[[USCG (identifier)|USCG]]',
		link2=p.uscgLink,
	},
	{ 'USCongress',
		property = 1157,
		section = 8,
		idlink = 'US Congress (identifier)',
		pattern = '^[A-Z]00[01]%d%d%d$',
		link = 'http://bioguide.congress.gov/scripts/biodisplay.pl?index=$1',
		label = 'US Congress',
		remark = 'Biographical Directory of the United States Congress is a biographical dictionary of all present and former members of the United States Congress and its predecessor, the Continental Congress. Also included are Delegates from territories and the District of Columbia and Resident Commissioners from the Philippines and Puerto Rico.'
	},
	{ 'VcBA',
		property = 8034,
		section = 2,
		valid = p.vcbaV,
		link = 'https://opac.vatlib.it/auth/detail/$1',
		label = 'Vatican',
		remark = 'Vatican Library document data'
	},
	{ 'VIAF',
		property = 214,
		section = 1,
		prefix = '[[VIAF (identifier)|VIAF]]',
		patterns = {'^[1-9]%d%d?%d?%d?%d?%d?%d?%d?$', '^[1-9]%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d?%d?%d?$'},
		link = 'https://viaf.org/viaf/$1',
		remark = 'International authority data from the Online Computer Library Center (OCLC)'
	},
 	{ 'Vitaskrá',
		property = 3993, 
		section = 7,
		pattern = '^[1-9]%d*$',
		prefix = 'Iceland'
	},
	{ 'WORLDCATID',
		property = 7859,
		section = 1,
		idlink = 'WorldCat Identities (identifier)',
		valid = p.worldcatidV,
		link = 'https://www.worldcat.org/identities/$1/',
		label = 'WorldCat',
		category = 'WorldCat',
	},
	{ 'VIAF', --WorldCat (via VIAF)
		property = 214,
		section = 1,
		patterns = {'^[1-9]%d%d?%d?%d?%d?%d?%d?%d?$', '^[1-9]%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d?%d?%d?$'},
		link = 'https://www.worldcat.org/identities/containsVIAFID/$1',
		label = 'WorldCat (via VIAF)',
		suppressedbyproperty = {7859},
		category = 'WorldCat-VIAF',
		errorcat = 'Articles with faulty VIAF identifiers',
		ignoreerrors = true
	},
	--{ 'LCCN', --WorldCat (via Library of Congress)
		--property = 244,
		--section = 1,
		--valid = p.WorldCatLCCN,
		--link = 'https://www.worldcat.org/identities/lccn-$1',
		--label = 'WorldCat (via Library of Congress)',
		--suppressedbyproperty = {7859,214},
		--category = 'WorldCat-LCCN',
		--ignoreerrors = true
	--},
	{ 'ZBMATH',
		property = 1556,
		section = 6,
		valid = p.zbmathV,
		link = 'https://zbmath.org/authors/?q=ai:$1',
		label = 'zbMATH',
	}
}
p.sectionNames = {
	'General',						-- 1
	'National libraries',			-- 2
	'Art galleries and museums',	-- 3
	'Art research institutes',		-- 4
	'Biographical dictionaries',	-- 5
	'Scientific databases',			-- 6
	'Lighthouse identifiers',		-- 7
	'Other'							-- 8
}
p.whitelists = {
	arts = {
		topic = 2018526,
		properties = {268, 214, 7859, 3372, 6804, 1907, 4186, 2092, 1908, 1707, 6829, 2349, 6792, 227, 1960, 347, 1248, 244, 1225, 2041, 409, 2750, 650, 350, 781, 3430, 3544, 1315, 245, 1986, 7902, 651}
	},
	lighthouse = {
		topic = 39715,
		properties = {3563, 4055, 3223, 4423, 3723, 3993, 3562, 2980, 4038, 3920, 4143, 3863, 3601}
	},
	ch = {
	topic = 39,
		properties = {902, 886, 3065, 781, 1362},
	},
	cz = {topic = 213, properties = {691}},
	cl = {topic = 298, properties = {1890}},
	es = {topic = 29, properties = {950, 9984}},
	gr = {topic = 41, properties = {3348}},
	hr = {topic = 224, properties = {1375}},
	il = {topic = 801, properties = {8189, 1736}},
	it = {topic = 38, properties = {396, 3863, 1986, 8034}},
	ja = {topic = 17, properties = {349, 271}},
	kr = {topic = 884, properties = {5034}},
	lv = {topic = 211, properties = {1368}},
	nl = {topic = 55, properties = {651, 1006, 650, 350}},
	pl = {topic = 36, properties = {1695, 7293}},
	ro = {topic = 218, properties = {1003}},
	ru = {topic = 159, properties = {947}},
	sv = {topic = 34, properties = {906}},
	tr = {topic = 43, properties = {7314}},
	tw = {topic = 865, properties = {1048}},
	uy = {topic = 77, properties = {2558}}
}
return p