-
Notifications
You must be signed in to change notification settings - Fork 1
/
mappingTaxonomiesAndRelators.py
85 lines (82 loc) · 6.01 KB
/
mappingTaxonomiesAndRelators.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
columnDict = {'lookUpByID': ['genre', 'publisher_country',
'resource_type', 'spatial_coverage',
'copyright_holder', 'digital_publisher',
'publisher', 'subject'],
'lookUpByName': ['access_rights', 'access_terms',
'language', 'member_of', 'title_language'],
'relators': ['creator', 'contributor']}
quads = {"corporate_body.csv": ":corporate_body::",
"family.csv": ":family::",
"genre.csv": ":genre::",
"geo_location.csv": ":geo_location::",
"language.csv": ":language::",
"person.csv": ":person::",
"subject.csv": ":subject::"}
relators = ['relators:abr;', 'relators:acp;', 'relators:act;', 'relators:adi;',
'relators:adp;', 'relators:aft;', 'relators:anl;', 'relators:anm;',
'relators:ann;', 'relators:ant;', 'relators:ape;', 'relators:apl;',
'relators:app;', 'relators:aqt;', 'relators:arc;', 'relators:ard;',
'relators:arr;', 'relators:art;', 'relators:asg;', 'relators:asn;',
'relators:ato;', 'relators:att;', 'relators:auc;', 'relators:aud;',
'relators:aui;', 'relators:aus;', 'relators:aut;', 'relators:bdd;',
'relators:bjd;', 'relators:bkd;', 'relators:bkp;', 'relators:blw;',
'relators:bnd;', 'relators:bpd;', 'relators:brd;', 'relators:brl;',
'relators:bsl;', 'relators:cas;', 'relators:ccp;', 'relators:chr;',
'relators:clb;', 'relators:cli;', 'relators:cll;', 'relators:clr;',
'relators:clt;', 'relators:cmm;', 'relators:cmp;', 'relators:cmt;',
'relators:cnd;', 'relators:cng;', 'relators:cns;', 'relators:coe;',
'relators:col;', 'relators:com;', 'relators:con;', 'relators:cor;',
'relators:cos;', 'relators:cot;', 'relators:cou;', 'relators:cov;',
'relators:cpc;', 'relators:cpe;', 'relators:cph;', 'relators:cpl;',
'relators:cpt;', 'relators:cre;', 'relators:crp;', 'relators:crr;',
'relators:crt;', 'relators:csl;', 'relators:csp;', 'relators:cst;',
'relators:ctb;', 'relators:cte;', 'relators:ctg;', 'relators:ctr;',
'relators:cts;', 'relators:ctt;', 'relators:cur;', 'relators:cwt;',
'relators:dbp;', 'relators:dfd;', 'relators:dfe;', 'relators:dft;',
'relators:dgg;', 'relators:dgs;', 'relators:dis;', 'relators:dln;',
'relators:dnc;', 'relators:dnr;', 'relators:dpc;', 'relators:dpt;',
'relators:drm;', 'relators:drt;', 'relators:dsr;', 'relators:dst;',
'relators:dtc;', 'relators:dte;', 'relators:dtm;', 'relators:dto;',
'relators:dub;', 'relators:edc;', 'relators:edm;', 'relators:edt;',
'relators:egr;', 'relators:elg;', 'relators:elt;', 'relators:eng;',
'relators:enj;', 'relators:etr;', 'relators:evp;', 'relators:exp;',
'relators:fac;', 'relators:fds;', 'relators:fld;', 'relators:flm;',
'relators:fmd;', 'relators:fmk;', 'relators:fmo;', 'relators:fmp;',
'relators:fnd;', 'relators:fpy;', 'relators:frg;', 'relators:gis;',
'relators:grt;', 'relators:his;', 'relators:hnr;', 'relators:hst;',
'relators:ill;', 'relators:ilu;', 'relators:ins;', 'relators:inv;',
'relators:isb;', 'relators:itr;', 'relators:ive;', 'relators:ivr;',
'relators:jud;', 'relators:jug;', 'relators:lbr;', 'relators:lbt;',
'relators:ldr;', 'relators:led;', 'relators:lee;', 'relators:lel;',
'relators:len;', 'relators:let;', 'relators:lgd;', 'relators:lie;',
'relators:lil;', 'relators:lit;', 'relators:lsa;', 'relators:lse;',
'relators:lso;', 'relators:ltg;', 'relators:lyr;', 'relators:mcp;',
'relators:mdc;', 'relators:med;', 'relators:mfp;', 'relators:mfr;',
'relators:mod;', 'relators:mon;', 'relators:mrb;', 'relators:mrk;',
'relators:msd;', 'relators:mte;', 'relators:mtk;', 'relators:mus;',
'relators:nrt;', 'relators:opn;', 'relators:org;', 'relators:orm;',
'relators:osp;', 'relators:oth;', 'relators:own;', 'relators:pan;',
'relators:pat;', 'relators:pbd;', 'relators:pbl;', 'relators:pdr;',
'relators:pfr;', 'relators:pht;', 'relators:plt;', 'relators:pma;',
'relators:pmn;', 'relators:pop;', 'relators:ppm;', 'relators:ppt;',
'relators:pra;', 'relators:prc;', 'relators:prd;', 'relators:pre;',
'relators:prf;', 'relators:prg;', 'relators:prm;', 'relators:prn;',
'relators:pro;', 'relators:prp;', 'relators:prs;', 'relators:prt;',
'relators:prv;', 'relators:pta;', 'relators:pte;', 'relators:ptf;',
'relators:pth;', 'relators:ptt;', 'relators:pup;', 'relators:rbr;',
'relators:rcd;', 'relators:rce;', 'relators:rcp;', 'relators:rdd;',
'relators:red;', 'relators:ren;', 'relators:res;', 'relators:rev;',
'relators:rpc;', 'relators:rps;', 'relators:rpt;', 'relators:rpy;',
'relators:rse;', 'relators:rsg;', 'relators:rsp;', 'relators:rsr;',
'relators:rst;', 'relators:rth;', 'relators:rtm;', 'relators:sad;',
'relators:sce;', 'relators:scl;', 'relators:scr;', 'relators:sds;',
'relators:sec;', 'relators:sgd;', 'relators:sgn;', 'relators:sht;',
'relators:sll;', 'relators:sng;', 'relators:spk;', 'relators:spn;',
'relators:spy;', 'relators:srv;', 'relators:std;', 'relators:stg;',
'relators:stl;', 'relators:stm;', 'relators:stn;', 'relators:str;',
'relators:tcd;', 'relators:tch;', 'relators:ths;', 'relators:tld;',
'relators:tlp;', 'relators:trc;', 'relators:trl;', 'relators:tyd;',
'relators:tyg;', 'relators:uvp;', 'relators:vac;', 'relators:vdg;',
'relators:voc;', 'relators:wac;', 'relators:wal;', 'relators:wam;',
'relators:wat;', 'relators:wdc;', 'relators:wde;', 'relators:win;',
'relators:wit;', 'relators:wpr;', 'relators:wst;']