Generic catalog ID lookup
This commit is contained in:
parent
22b8b212e5
commit
23b053c5a6
110
depicts/wd_catalog.py
Normal file
110
depicts/wd_catalog.py
Normal file
|
@ -0,0 +1,110 @@
|
|||
table = {
|
||||
'P347': ('Joconde ID', 'https://www.pop.culture.gouv.fr/notice/joconde/$1'),
|
||||
'P350': ('RKDimages ID', 'https://rkd.nl/explore/images/$1'),
|
||||
'P1212': ('Atlas ID', 'http://cartelen.louvre.fr/cartelen/visite?srv=car_not_frame&idNotice=$1'),
|
||||
'P1428': ('Lost Art ID', 'http://www.lostart.de/EN/Verlust/$1'),
|
||||
'P1679': ('Art UK artwork ID', 'https://artuk.org/discover/artworks/$1'),
|
||||
'P1726': ('Florentine musea Inventario 1890 ID', 'http://www.polomuseale.firenze.it/inv1890/scheda.asp?position=1&ninv=$1'),
|
||||
'P2014': ('Museum of Modern Art work ID', 'http://www.moma.org/collection/works/$1'),
|
||||
'P2092': ('Bildindex der Kunst und Architektur ID', 'https://www.bildindex.de/document/obj$1'),
|
||||
'P2108': ('Kunstindeks Danmark artwork ID', 'https://www.kulturarv.dk/kid/VisVaerk.do?vaerkId=$1'),
|
||||
'P2242': ('Florentine musea catalogue ID', 'http://www.polomuseale.firenze.it/catalogo/scheda.asp?nctn=$1&value=1'),
|
||||
'P2282': ('Groeningemuseum work PID', 'http://groeningemuseum.be/collection/work/id/$1'),
|
||||
'P2344': ('AGORHA work ID', 'http://www.purl.org/inha/agorha/003/$1'),
|
||||
'P2511': ('MSK Gent work PID', 'http://mskgent.be/collection/work/id/$1'),
|
||||
'P2539': ('Nationalmuseum Sweden artwork ID', 'http://collection.nationalmuseum.se/eMuseumPlus?service=ExternalInterface&module=collection&objectId=$1&viewType=detailView'),
|
||||
'P2582': ('J. Paul Getty Museum object ID', 'http://www.getty.edu/art/collection/objects/$1'),
|
||||
'P3272': ('Zeri image ID', 'http://catalogo.fondazionezeri.unibo.it/scheda/opera/$1/'),
|
||||
'P3293': ('BALaT object ID', 'http://balat.kikirpa.be/object/$1'),
|
||||
'P3386': ('French Sculpture Census work ID', 'https://frenchsculpture.org/en/sculpture/$1'),
|
||||
'P3467': ('Inventario Sculture - Polo Museale Fiorentino', 'http://www.polomuseale.firenze.it/invSculture/scheda.asp?position=1&ninv=$1'),
|
||||
'P3504': ('Florentine Inventario Palatina art ID', 'http://www.polomuseale.firenze.it/invpalatina/scheda.asp?position=1&ninv=$1'),
|
||||
'P3634': ('The Met object ID', 'http://www.metmuseum.org/art/collection/search/$1'),
|
||||
'P3711': ('Vanderkrogt.net Statues ID', 'http://vanderkrogt.net/statues/object.php?record=$1'),
|
||||
'P3855': ('LombardiaBeniCulturali artwork ID', 'http://www.lombardiabeniculturali.it/opere-arte/schede/$1/'),
|
||||
'P3929': ('V&A item ID', 'http://collections.vam.ac.uk/item/$1'),
|
||||
'P4144': ('Athenaeum artwork ID', 'http://www.the-athenaeum.org/art/detail.php?id=$1'),
|
||||
'P4257': ('National Museums of Japan e-museum ID', 'http://www.emuseum.jp/detail/$1'),
|
||||
'P4373': ('National Trust Collections ID', 'http://www.nationaltrustcollections.org.uk/object/$1'),
|
||||
'P4380': ('Sandrart.net artwork ID', 'http://ta.sandrart.net/-artwork-$1'),
|
||||
'P4399': ('Enciclopédia Itaú Cultural ID', 'http://enciclopedia.itaucultural.org.br/$1'),
|
||||
'P4525': ('MuIS object ID', 'http://opendata.muis.ee/object/$1'),
|
||||
'P4564': ('Art Museum of Estonia artwork ID', 'https://digikogu.ekm.ee/oid-$1'),
|
||||
'P4582': ('Kulturelles Erbe Köln object ID', 'https://www.kulturelles-erbe-koeln.de/documents/obj/$1'),
|
||||
'P4610': ('ARTIC artwork ID', 'https://www.artic.edu/artworks/$1'),
|
||||
'P4611': ('LACMA ID', 'https://collections.lacma.org/node/$1'),
|
||||
'P4625': ('Museum of Fine Arts, Boston object ID', 'https://www.mfa.org/collections/object/$1'),
|
||||
'P4643': ('Philadelphia Museum of Art ID', 'http://www.philamuseum.org/collections/permanent/$1.html'),
|
||||
'P4659': ("Musée d'Orsay artwork ID", 'http://www.musee-orsay.fr/en/collections/index-of-works/notice.html?nnumid=$1'),
|
||||
'P4673': ('Museum of Fine Arts, Houston object ID', 'https://www.mfah.org/art/detail/$1'),
|
||||
'P4674': ('Indianapolis Museum of Art artwork ID', 'http://collection.imamuseum.org/artwork/$1/'),
|
||||
'P4683': ('National Gallery of Art artwork ID', 'https://www.nga.gov/content/ngaweb/Collection/art-object-page.$1.html'),
|
||||
'P4684': ('National Gallery of Victoria artwork ID', 'https://www.ngv.vic.gov.au/explore/collection/work/$1/'),
|
||||
'P4686': ('Carnegie Museum of Art ID', 'https://collection.cmoa.org/objects/$1'),
|
||||
'P4692': ('American Art Collaborative object ID', 'http://browse.americanartcollaborative.org/object/$1.html'),
|
||||
'P4701': ('Google Arts & Culture asset ID', 'https://artsandculture.google.com/asset/wd/$1'),
|
||||
'P4704': ('Smithsonian American Art Museum ID', 'https://americanart.si.edu/collections/search/artwork/?id=$1'),
|
||||
'P4709': ('Barnes Foundation ID', 'https://collection.barnesfoundation.org/objects/$1/details'),
|
||||
'P4712': ('Minneapolis Institute of Art artwork ID', 'https://collections.artsmia.org/art/$1'),
|
||||
'P4713': ('Walters Art Museum ID', 'http://art.thewalters.org/detail/$1'),
|
||||
'P4721': ('MuBE Virtual ID', 'http://mubevirtual.com.br/pt_br?Dados&area=ver&id=$1'),
|
||||
'P4737': ('Solomon R. Guggenheim Foundation artwork ID', 'https://www.guggenheim.org/artwork/$1'),
|
||||
'P4738': ('Yale Center for British Art artwork ID', 'http://collections.britishart.yale.edu/vufind/Record/$1'),
|
||||
'P4739': ('Musée des Augustins artwork ID', 'https://www.augustins.org/fr/oeuvre/-/oeuvre/$1'),
|
||||
'P4740': ('Brooklyn Museum artwork ID', 'https://www.brooklynmuseum.org/opencollection/objects/$1'),
|
||||
'P4761': ("Images d'Art artwork ID", 'http://art.rmngp.fr/en/library/artworks/$1'),
|
||||
'P4764': ('Arcade artwork ID', 'http://www.culture.gouv.fr/public/mistral/arcade_fr?ACTION=CHERCHER&FIELD_1=REF&VALUE_1=$1'),
|
||||
'P4814': ('Inventories of American Painting and Sculpture control number', 'https://siris-artinventories.si.edu/ipac20/ipac.jsp?&menu=search&index=.NW&term=$1'),
|
||||
'P4905': ('KMSKA work PID', 'http://kmska.be/collection/work/id/$1'),
|
||||
'P5210': ('National Gallery of Armenia work ID', 'http://www.gallery.am/en/database/item/$1/'),
|
||||
'P5223': ('Information Center for Israeli Art artwork ID', 'http://museum.imj.org.il/artcenter/includes/item.asp?id=$1'),
|
||||
'P5265': ('Dordrechts Museum artwork ID', 'https://www.dordrechtsmuseum.nl/objecten/id/$1'),
|
||||
'P5268': ('MNAV work ID', 'http://acervo.mnav.gub.uy/obras.php?q=ni:$1'),
|
||||
'P5269': ('Web umenia work ID', 'https://www.webumenia.sk/dielo/$1'),
|
||||
'P5407': ('MHK object ID', 'http://datenbank.museum-kassel.de/$1'),
|
||||
'P5499': ('Boijmans work ID', 'https://www.boijmans.nl/en/collection/artworks/$1'),
|
||||
'P5783': ('Cranach Digital Archive artwork ID', 'http://lucascranach.org/$1'),
|
||||
'P5823': ('Belvedere object ID', 'https://digital.belvedere.at/objects/$1/'),
|
||||
'P5891': ('Bpk-ID', 'http://www.bpk-images.de/id/$1'),
|
||||
'P6004': ('Brasiliana Iconográfica ID', 'https://www.brasilianaiconografica.art.br/obras/$1/wd'),
|
||||
'P6007': ('Salons ID', 'http://salons.musee-orsay.fr/index/notice/$1'),
|
||||
'P6020': ("d'Art d'Art ! ID", 'https://www.france.tv/france-2/d-art-d-art/$1.html'),
|
||||
'P6141': ('À nos grands hommes ID', 'https://anosgrandshommes.musee-orsay.fr/index.php/Detail/objects/$1'),
|
||||
'P6152': ('National Portrait Gallery (United States) object ID', 'http://npg.si.edu/object/npg_$1'),
|
||||
'P6238': ('Monument aux morts ID', 'https://monumentsmorts.univ-lille.fr/monument/$1/wd/'),
|
||||
'P6239': ('IEC commemorative monument of Catalonia ID', 'https://monuments.iec.cat/fitxa.asp?id=$1'),
|
||||
'P6246': ('Paris Musées work ID', 'http://parismuseescollections.paris.fr/en/node/$1'),
|
||||
'P6310': ('Muséosphère work ID', 'http://museosphere.paris.fr/oeuvres/$1'),
|
||||
'P6332': ("Panorama de l'art ID", 'https://www.panoramadelart.com/$1'),
|
||||
'P6355': ('MNAM artwork ID', 'https://collection.centrepompidou.fr/#/artwork/$1'),
|
||||
'P6356': ('IHOI work ID', 'http://www.ihoi.org/app/photopro.sk/ihoi_icono/detail?docid=$1&lang=eng'),
|
||||
'P6358': ('Musée Picasso artwork ID', 'https://www.navigart.fr/picassoparis/#/artwork/$1'),
|
||||
'P6372': ('Interpol WOA artwork ID (OBSOLETE)', 'https://www.interpol.int/notice/search/woa/$1'),
|
||||
'P6374': ('MAMVP artwork ID', 'http://www.mam.paris.fr/en/online-collections#/artwork/$1'),
|
||||
'P6489': ('Joan Miró Online Image Bank ID', 'https://www.successiomiro.com/catalogue/object/$1'),
|
||||
'P6506': ('Eliseu Visconti Project ID', 'https://eliseuvisconti.com.br/obra/$1'),
|
||||
'P6565': ('Musenor artwork ID', 'https://webmuseo.com/ws/musenor/app/collection/record/$1'),
|
||||
'P6576': ('Art Fund artwork ID', 'https://www.artfund.org/supporting-museums/art-weve-helped-buy/artwork/$1/wd'),
|
||||
'P6595': ('Paintings by Salvador Dalí ID', 'https://www.salvador-dali.org/en/artwork/catalogue-raisonne/obra/$1/'),
|
||||
'P6610': ('Ashmolean museum ID', 'http://collections.ashmolean.org/object/$1'),
|
||||
'P6625': ('Salvador Dali Museum ID', 'http://archive.thedali.org/mwebcgi/mweb.exe?request=record;id=$1;type=101'),
|
||||
'P6629': ('Artcurial lot ID', 'https://www.artcurial.com/en/$1'),
|
||||
'P6631': ('Tainacan MHN ID', 'http://mhn.acervos.museus.gov.br/reserva-tecnica/$1'),
|
||||
'P6633': ('Cini Foundation ID', 'http://arte.cini.it/Opere/$1'),
|
||||
'P6643': ('TV Spielfilm series ID', 'https://www.tvspielfilm.de/serien/$1'),
|
||||
'P6738': ('Whitney Museum of American Art artwork ID', 'https://whitney.org/collection/works/$1'),
|
||||
'P7229': ('Fundación Goya en Aragón ID', 'https://fundaciongoyaenaragon.es/obra/wd/$1'),
|
||||
}
|
||||
|
||||
def lookup(property_id, value):
|
||||
label, formatter = table[property_id]
|
||||
url = formatter.replace('$1', value)
|
||||
|
||||
return {
|
||||
'label': label,
|
||||
'url': url,
|
||||
'value': value,
|
||||
}
|
||||
|
||||
def find_catalog_id(entity):
|
||||
return table.keys() & entity['claims'].keys()
|
Loading…
Reference in a new issue