Parsing Core Subject Thesaurus


In [4]:
import os
import xml.etree.ElementTree as ET
import networkx as nx
from collections import defaultdict

In [5]:
data_dir = "/home/chris/directory/data/Thesaurus"

xml = "CST20160704.xml"

In [6]:
tree = ET.parse(os.path.join(data_dir, xml))

root = tree.getroot()

In [23]:
subject_categories = defaultdict(int)
descriptors = []
non_descriptors = []
relationships = []

for concept in root:
    
    data = []
    for child in concept:
        data.append((child.tag, child.text))
        
    descriptor = ""
    valid = True
        
    if data[0][0]  == "DESCRIPTOR":
        descriptor = data[0][1]
        
    elif data[0][0] == "NON-DESCRIPTOR":
        descriptor = data[0][1]
        valid = False
        
    for category, text in data:
        
        if category == "French":
            relationships.append((text, descriptor, "translation"))
        elif category == "Use":
            relationships.append((descriptor, text, "use"))
        elif category == "UsedFor":
            relationships.append((text, descriptor, "used for"))
        elif category == "BroaderTerm":
            relationships.append((descriptor, text, "broader term"))
        elif category == "NarrowerTerm":
            relationships.append((text, descriptor, "narrow term"))
        elif category == "RelatedTerm":
            relationships.append((text, descriptor, "related term"))
        elif category == "SubjectCategory":
            relationships.append((descriptor, text, "subject category"))
        else:
            pass
            


relationships


Out[23]:
[('Abréviation', 'Abbreviations', 'translation'),
 ('Terminology', 'Abbreviations', 'related term'),
 ('Abbreviations', 'LN Language and Linguistics', 'subject category'),
 ('Abilities', 'Skills', 'use'),
 ('Abilities', 'PR Processes', 'subject category'),
 ('Affaires autochtones', 'Aboriginal affairs', 'translation'),
 ('Aboriginal issues', 'Aboriginal affairs', 'used for'),
 ('Aboriginal rights', 'Aboriginal affairs', 'related term'),
 ('Land claims', 'Aboriginal affairs', 'related term'),
 ('Aboriginal affairs', 'GV Government and Politics', 'subject category'),
 ('Aboriginal affairs', 'SO Society and Culture', 'subject category'),
 ('Entreprise autochtone', 'Aboriginal businesses', 'translation'),
 ('Aboriginal businesses', 'Businesses', 'broader term'),
 ('Aboriginal programs', 'Aboriginal businesses', 'related term'),
 ('Aboriginal businesses', 'EC Economics and Industry', 'subject category'),
 ('Culture autochtone', 'Aboriginal culture', 'translation'),
 ('Aboriginal heritage', 'Aboriginal culture', 'used for'),
 ('Native culture', 'Aboriginal culture', 'used for'),
 ('Aboriginal culture', 'Culture', 'broader term'),
 ('Aboriginal languages', 'Aboriginal culture', 'related term'),
 ('Aboriginal culture', 'SO Society and Culture', 'subject category'),
 ('Gouvernement autochtone', 'Aboriginal governments', 'translation'),
 ('Aboriginal self government', 'Aboriginal governments', 'used for'),
 ('Aboriginal governments', 'Governments', 'broader term'),
 ('Aboriginal peoples', 'Aboriginal governments', 'related term'),
 ('Aboriginal rights', 'Aboriginal governments', 'related term'),
 ('Aboriginal governments', 'GV Government and Politics', 'subject category'),
 ('Aboriginal heritage', 'Aboriginal culture', 'use'),
 ('Aboriginal heritage', 'HI History and Archaeology', 'subject category'),
 ('Aboriginal heritage', 'SO Society and Culture', 'subject category'),
 ('Aboriginal issues', 'Aboriginal affairs', 'use'),
 ('Aboriginal issues', 'GV Government and Politics', 'subject category'),
 ('Aboriginal issues', 'SO Society and Culture', 'subject category'),
 ('Terres autochtones', 'Aboriginal lands', 'translation'),
 ('Indian lands', 'Aboriginal lands', 'used for'),
 ('Aboriginal reserves', 'Aboriginal lands', 'related term'),
 ('Land claims', 'Aboriginal lands', 'related term'),
 ('Aboriginal lands', 'SO Society and Culture', 'subject category'),
 ('Langue autochtone', 'Aboriginal languages', 'translation'),
 ('Amerindian languages', 'Aboriginal languages', 'used for'),
 ('Native languages', 'Aboriginal languages', 'used for'),
 ('Aboriginal languages', 'Languages', 'broader term'),
 ('Aboriginal culture', 'Aboriginal languages', 'related term'),
 ('Aboriginal languages', 'LN Language and Linguistics', 'subject category'),
 ('Droit autochtone', 'Aboriginal law', 'translation'),
 ('Aboriginal law', 'Law', 'broader term'),
 ('Aboriginal policing', 'Aboriginal law', 'related term'),
 ('Aboriginal rights', 'Aboriginal law', 'related term'),
 ('Aboriginal law', 'LW Law', 'subject category'),
 ('Autochtones', 'Aboriginal peoples', 'translation'),
 ('First peoples', 'Aboriginal peoples', 'used for'),
 ('Native peoples', 'Aboriginal peoples', 'used for'),
 ('Aboriginal youth', 'Aboriginal peoples', 'narrow term'),
 ('Indians', 'Aboriginal peoples', 'narrow term'),
 ('Inuit', 'Aboriginal peoples', 'narrow term'),
 ('Métis', 'Aboriginal peoples', 'narrow term'),
 ('Aboriginal governments', 'Aboriginal peoples', 'related term'),
 ('Aboriginal policing', 'Aboriginal peoples', 'related term'),
 ('Aboriginal rights', 'Aboriginal peoples', 'related term'),
 ('Aboriginal peoples', 'PE Persons', 'subject category'),
 ('Aboriginal peoples', 'SO Society and Culture', 'subject category'),
 ('Police des autochtones', 'Aboriginal policing', 'translation'),
 ('Aboriginal policing', 'Policing', 'broader term'),
 ('Aboriginal law', 'Aboriginal policing', 'related term'),
 ('Aboriginal peoples', 'Aboriginal policing', 'related term'),
 ('Police services', 'Aboriginal policing', 'related term'),
 ('Aboriginal policing', 'SO Society and Culture', 'subject category'),
 ('Programme pour autochtones', 'Aboriginal programs', 'translation'),
 ('Aboriginal programs', 'Programs', 'broader term'),
 ('Aboriginal businesses', 'Aboriginal programs', 'related term'),
 ('Aboriginal programs', 'SO Society and Culture', 'subject category'),
 ('Réserve autochtone', 'Aboriginal reserves', 'translation'),
 ('Indian reserves', 'Aboriginal reserves', 'used for'),
 ('Reserves', 'Aboriginal reserves', 'used for'),
 ('Aboriginal lands', 'Aboriginal reserves', 'related term'),
 ('Aboriginal reserves', 'SO Society and Culture', 'subject category'),
 ('Droits des autochtones', 'Aboriginal rights', 'translation'),
 ('Ancestral rights', 'Aboriginal rights', 'used for'),
 ('Native rights', 'Aboriginal rights', 'used for'),
 ('Aboriginal affairs', 'Aboriginal rights', 'related term'),
 ('Aboriginal governments', 'Aboriginal rights', 'related term'),
 ('Aboriginal law', 'Aboriginal rights', 'related term'),
 ('Aboriginal peoples', 'Aboriginal rights', 'related term'),
 ('Human rights', 'Aboriginal rights', 'related term'),
 ('Land claims', 'Aboriginal rights', 'related term'),
 ('Aboriginal rights', 'SO Society and Culture', 'subject category'),
 ('Aboriginal self government', 'Aboriginal governments', 'use'),
 ('Aboriginal self government', 'Self government', 'use'),
 ('Aboriginal self government',
  'GV Government and Politics',
  'subject category'),
 ('Jeune autochtone', 'Aboriginal youth', 'translation'),
 ('Aboriginal youth', 'Aboriginal peoples', 'broader term'),
 ('Aboriginal youth', 'PE Persons', 'subject category'),
 ('Aboriginal youth', 'SO Society and Culture', 'subject category'),
 ('Avortement', 'Abortion', 'translation'),
 ('Pregnancy termination', 'Abortion', 'used for'),
 ('Therapeutic abortion', 'Abortion', 'used for'),
 ('Bioethics', 'Abortion', 'related term'),
 ('Pregnancy', 'Abortion', 'related term'),
 ('Abortion', 'HE Health and Safety', 'subject category'),
 ('Abused children', 'Violence against children', 'use'),
 ('Abused children', 'PE Persons', 'subject category'),
 ('Abused children', 'SO Society and Culture', 'subject category'),
 ('Abused women', 'Violence against women', 'use'),
 ('Abused women', 'PE Persons', 'subject category'),
 ('Abused women', 'SO Society and Culture', 'subject category'),
 ('Access for persons with disabilities',
  'Accessibility for persons with disabilities',
  'use'),
 ('Access for persons with disabilities',
  'SO Society and Culture',
  'subject category'),
 ("Accès à l'éducation", 'Access to education', 'translation'),
 ('Education', 'Access to education', 'related term'),
 ('Access to education', 'ET Education and Training', 'subject category'),
 ("Accès à l'information", 'Access to information', 'translation'),
 ('Censorship', 'Access to information', 'related term'),
 ('Confidentiality', 'Access to information', 'related term'),
 ('Freedom of information', 'Access to information', 'related term'),
 ('Information', 'Access to information', 'related term'),
 ('Information requests', 'Access to information', 'related term'),
 ('Open government', 'Access to information', 'related term'),
 ('Privacy', 'Access to information', 'related term'),
 ('Access to information',
  'IN Information and Communications',
  'subject category'),
 ('Accessibilité', 'Accessibility', 'translation'),
 ('Accessibility for persons with disabilities',
  'Accessibility',
  'narrow term'),
 ('Public access', 'Accessibility', 'related term'),
 ('Accessibility', 'PR Processes', 'subject category'),
 ('Accessibilité aux personnes handicapées',
  'Accessibility for persons with disabilities',
  'translation'),
 ('Access for persons with disabilities',
  'Accessibility for persons with disabilities',
  'used for'),
 ('Barrier free access',
  'Accessibility for persons with disabilities',
  'used for'),
 ('Disabled access',
  'Accessibility for persons with disabilities',
  'used for'),
 ('Wheelchair access',
  'Accessibility for persons with disabilities',
  'used for'),
 ('Accessibility for persons with disabilities',
  'Accessibility',
  'broader term'),
 ('Accessible transport',
  'Accessibility for persons with disabilities',
  'related term'),
 ('Assistive technologies',
  'Accessibility for persons with disabilities',
  'related term'),
 ('Duty to accommodate',
  'Accessibility for persons with disabilities',
  'related term'),
 ('Persons with disabilities',
  'Accessibility for persons with disabilities',
  'related term'),
 ('Accessibility for persons with disabilities',
  'SO Society and Culture',
  'subject category'),
 ('Transport accessible', 'Accessible transport', 'translation'),
 ('Accessible transport', 'Transport', 'broader term'),
 ('Accessibility for persons with disabilities',
  'Accessible transport',
  'related term'),
 ('Persons with disabilities', 'Accessible transport', 'related term'),
 ('Accessible transport', 'SO Society and Culture', 'subject category'),
 ('Accessible transport', 'TR Transport', 'subject category'),
 ('Prévention des accidents', 'Accident prevention', 'translation'),
 ('Accident prevention', 'Prevention', 'broader term'),
 ('Accidents', 'Accident prevention', 'related term'),
 ('Safety', 'Accident prevention', 'related term'),
 ('Safety measures', 'Accident prevention', 'related term'),
 ('Accident prevention', 'HE Health and Safety', 'subject category'),
 ('Accident', 'Accidents', 'translation'),
 ('Aircraft accidents', 'Accidents', 'narrow term'),
 ('Environmental accidents', 'Accidents', 'narrow term'),
 ('Marine accidents', 'Accidents', 'narrow term'),
 ('Occupational accidents', 'Accidents', 'narrow term'),
 ('Railway accidents', 'Accidents', 'narrow term'),
 ('Road accidents', 'Accidents', 'narrow term'),
 ('Accident prevention', 'Accidents', 'related term'),
 ('Injuries', 'Accidents', 'related term'),
 ('Rescue', 'Accidents', 'related term'),
 ('Accidents', 'HE Health and Safety', 'subject category'),
 ('Accommodations', 'Housing', 'use'),
 ('Accommodations', 'SO Society and Culture', 'subject category'),
 ('Imputabilité', 'Accountability', 'translation'),
 ('Open government', 'Accountability', 'narrow term'),
 ('Delegation of authority', 'Accountability', 'related term'),
 ('Devolution', 'Accountability', 'related term'),
 ('Accountability', 'PR Processes', 'subject category'),
 ('Comptabilité', 'Accounting', 'translation'),
 ('Bookkeeping', 'Accounting', 'used for'),
 ('Accounting', 'Business services', 'broader term'),
 ('Accounting standards', 'Accounting', 'narrow term'),
 ('Comptrollership', 'Accounting', 'related term'),
 ('Financial audit', 'Accounting', 'related term'),
 ('Supplementary estimates', 'Accounting', 'related term'),
 ('Accounting', 'EC Economics and Industry', 'subject category'),
 ('Normes comptables', 'Accounting standards', 'translation'),
 ('Accounting standards', 'Accounting', 'broader term'),
 ('Finance', 'Accounting standards', 'related term'),
 ('Accounting standards', 'EC Economics and Industry', 'subject category'),
 ('Accounting standards', 'GV Government and Politics', 'subject category'),
 ('Accreditation', 'Certification', 'use'),
 ('Accreditation', 'PR Processes', 'subject category'),
 ('Acculturation', 'Acculturation', 'translation'),
 ('Cultural assimilation', 'Acculturation', 'used for'),
 ('Culture', 'Acculturation', 'related term'),
 ('Acculturation', 'SO Society and Culture', 'subject category'),
 ('Acid deposition', 'Acid rain', 'use'),
 ('Acid deposition', 'NE Nature and Environment', 'subject category'),
 ('Acid precipitation', 'Acid rain', 'use'),
 ('Acid precipitation', 'NE Nature and Environment', 'subject category'),
 ('Pluies acides', 'Acid rain', 'translation'),
 ('Acid deposition', 'Acid rain', 'used for'),
 ('Acid precipitation', 'Acid rain', 'used for'),
 ('Acidic precipitation', 'Acid rain', 'used for'),
 ('Acidic rain', 'Acid rain', 'used for'),
 ('Acidified precipitation', 'Acid rain', 'used for'),
 ('Acid rain', 'Precipitation', 'broader term'),
 ('Air pollution', 'Acid rain', 'related term'),
 ('Acid rain', 'NE Nature and Environment', 'subject category'),
 ('Acidic precipitation', 'Acid rain', 'use'),
 ('Acidic precipitation', 'NE Nature and Environment', 'subject category'),
 ('Acidic rain', 'Acid rain', 'use'),
 ('Acidic rain', 'NE Nature and Environment', 'subject category'),
 ('Acidified precipitation', 'Acid rain', 'use'),
 ('Acidified precipitation', 'NE Nature and Environment', 'subject category'),
 ('Acquired immune deficiency syndrome', 'AIDS (disease)', 'use'),
 ('Acquired immune deficiency syndrome',
  'HE Health and Safety',
  'subject category'),
 ('Acquired immunodeficiency syndrome', 'AIDS (disease)', 'use'),
 ('Acquired immunodeficiency syndrome',
  'HE Health and Safety',
  'subject category'),
 ('Acquisition', 'Purchasing', 'use'),
 ('Acquisition', 'EC Economics and Industry', 'subject category'),
 ('Acquisition (Entreprise)', 'Acquisitions (Businesses)', 'translation'),
 ('Acquisitions (Businesses)', 'Business development', 'broader term'),
 ('Business start-ups', 'Acquisitions (Businesses)', 'related term'),
 ('Businesses', 'Acquisitions (Businesses)', 'related term'),
 ('Mergers', 'Acquisitions (Businesses)', 'related term'),
 ('Acquisitions (Businesses)',
  'EC Economics and Industry',
  'subject category'),
 ('Acquittement', 'Acquittal', 'translation'),
 ('Acquittal', 'Court decisions', 'broader term'),
 ('Acquittal', 'LW Law', 'subject category'),
 ('Active offer of bilingual services', 'Bilingual services', 'use'),
 ('Active offer of bilingual services',
  'GV Government and Politics',
  'subject category'),
 ('Active population', 'Labour force', 'use'),
 ('Active population', 'LB Labour', 'subject category'),
 ('Acts', 'Legislation', 'use'),
 ('Acts', 'GV Government and Politics', 'subject category'),
 ('Acts', 'LW Law', 'subject category'),
 ('Acts of terrorism', 'Terrorism', 'use'),
 ('Acts of terrorism', 'SO Society and Culture', 'subject category'),
 ('Actuariat', 'Actuarial science', 'translation'),
 ('Economic forecasting', 'Actuarial science', 'related term'),
 ('Insurance', 'Actuarial science', 'related term'),
 ('Actuarial science', 'EC Economics and Industry', 'subject category'),
 ('Adaptation', 'Adjustment', 'use'),
 ('Adaptation', 'PR Processes', 'subject category'),
 ('Adaptive aids (for persons with disabilities)',
  'Assistive technologies',
  'use'),
 ('Adaptive aids (for persons with disabilities)',
  'HE Health and Safety',
  'subject category'),
 ('Adaptive aids (for persons with disabilities)',
  'ST Science and Technology',
  'subject category'),
 ('Dépendance', 'Addiction', 'translation'),
 ('Addiction', 'Social problems', 'broader term'),
 ('Alcoholism', 'Addiction', 'narrow term'),
 ('Drug addiction', 'Addiction', 'narrow term'),
 ('Addiction', 'SO Society and Culture', 'subject category'),
 ('Addictive drugs', 'Narcotics', 'use'),
 ('Addictive drugs', 'HE Health and Safety', 'subject category'),
 ('Addresses', 'Statements', 'use'),
 ('Addresses', 'FM Form descriptors', 'subject category'),
 ('Adjudication', 'Court decisions', 'use'),
 ('Adjudication', 'LW Law', 'subject category'),
 ('Adaptation', 'Adjustment', 'translation'),
 ('Adaptation', 'Adjustment', 'used for'),
 ('Maladjustment', 'Adjustment', 'used for'),
 ('Transformation', 'Adjustment', 'related term'),
 ('Adjustment', 'PR Processes', 'subject category'),
 ('Administration', 'Management', 'use'),
 ('Administration', 'EC Economics and Industry', 'subject category'),
 ('Administration', 'PR Processes', 'subject category'),
 ('Administration of justice', 'Justice system', 'use'),
 ('Administration of justice', 'LW Law', 'subject category'),
 ('Administrative burdens', 'Red tape burdens', 'use'),
 ('Administrative burdens', 'GV Government and Politics', 'subject category'),
 ('Données administratives', 'Administrative data', 'translation'),
 ('Office management', 'Administrative data', 'related term'),
 ('Administrative data', 'EC Economics and Industry', 'subject category'),
 ('Administrative data', 'FM Form descriptors', 'subject category'),
 ('Droit administratif', 'Administrative law', 'translation'),
 ('Administrative law', 'Law', 'broader term'),
 ('Ombudsman', 'Administrative law', 'related term'),
 ('Public administration', 'Administrative law', 'related term'),
 ('Administrative law', 'LW Law', 'subject category'),
 ('Services administratifs', 'Administrative services', 'translation'),
 ('Secretariat', 'Administrative services', 'used for'),
 ('Management', 'Administrative services', 'related term'),
 ('Administrative services', 'EC Economics and Industry', 'subject category'),
 ('Rédaction administrative', 'Administrative writing', 'translation'),
 ('Administrative writing', 'Writing', 'broader term'),
 ('Annual reports', 'Administrative writing', 'related term'),
 ('Technical writing', 'Administrative writing', 'related term'),
 ('Administrative writing', 'LN Language and Linguistics', 'subject category'),
 ('Adolescence', 'Adolescence', 'translation'),
 ('Adolescents', 'Adolescence', 'related term'),
 ('Youth', 'Adolescence', 'related term'),
 ('Adolescence', 'SO Society and Culture', 'subject category'),
 ('Adolescent', 'Adolescents', 'translation'),
 ('Preadolescents', 'Adolescents', 'used for'),
 ('Teenagers', 'Adolescents', 'used for'),
 ('Adolescence', 'Adolescents', 'related term'),
 ('Young offenders', 'Adolescents', 'related term'),
 ('Youth', 'Adolescents', 'related term'),
 ('Adolescents', 'PE Persons', 'subject category'),
 ('Adolescents', 'SO Society and Culture', 'subject category'),
 ('Adoption', 'Adoption', 'translation'),
 ('International adoption', 'Adoption', 'narrow term'),
 ('Adoptive parents', 'Adoption', 'related term'),
 ('Family law', 'Adoption', 'related term'),
 ('Adoption', 'SO Society and Culture', 'subject category'),
 ('Parent adoptif', 'Adoptive parents', 'translation'),
 ('Adoptive parents', 'Parents', 'broader term'),
 ('Adoption', 'Adoptive parents', 'related term'),
 ('Adoptive parents', 'PE Persons', 'subject category'),
 ('Adoptive parents', 'SO Society and Culture', 'subject category'),
 ('Adult education', 'Continuing education', 'use'),
 ('Adult education', 'ET Education and Training', 'subject category'),
 ('Adulteration', 'Forgery', 'use'),
 ('Adulteration', 'SO Society and Culture', 'subject category'),
 ('Âge adulte', 'Adulthood', 'translation'),
 ('Adults', 'Adulthood', 'related term'),
 ('Young adults', 'Adulthood', 'related term'),
 ('Adulthood', 'SO Society and Culture', 'subject category'),
 ('Adulte', 'Adults', 'translation'),
 ('Seniors', 'Adults', 'narrow term'),
 ('Young adults', 'Adults', 'narrow term'),
 ('Adulthood', 'Adults', 'related term'),
 ('Adults', 'PE Persons', 'subject category'),
 ('Adults', 'SO Society and Culture', 'subject category'),
 ('Advanced technology', 'High technology', 'use'),
 ('Advanced technology', 'ST Science and Technology', 'subject category'),
 ('Adverse drug reactions', 'Side effects', 'use'),
 ('Adverse drug reactions', 'HE Health and Safety', 'subject category'),
 ('Adverse effects', 'Side effects', 'use'),
 ('Adverse effects', 'HE Health and Safety', 'subject category'),
 ('Advertisements', 'Advertising', 'use'),
 ('Advertisements', 'EC Economics and Industry', 'subject category'),
 ('Advertisements', 'FM Form descriptors', 'subject category'),
 ('Publicité', 'Advertising', 'translation'),
 ('Advertisements', 'Advertising', 'used for'),
 ('Advertising materials', 'Advertising', 'used for'),
 ('Publicity', 'Advertising', 'used for'),
 ('Advertising', 'Business services', 'broader term'),
 ('Awareness', 'Advertising', 'related term'),
 ('Marketing', 'Advertising', 'related term'),
 ('Posters', 'Advertising', 'related term'),
 ('Propaganda', 'Advertising', 'related term'),
 ('Signs', 'Advertising', 'related term'),
 ('Trade promotion', 'Advertising', 'related term'),
 ('Advertising', 'EC Economics and Industry', 'subject category'),
 ('Advertising materials', 'Advertising', 'use'),
 ('Advertising materials', 'EC Economics and Industry', 'subject category'),
 ('Advertising materials', 'FM Form descriptors', 'subject category'),
 ('Comité consultatif', 'Advisory committees', 'translation'),
 ('Advisory committees', 'Committees', 'broader term'),
 ('Advisory committees', 'PR Processes', 'subject category'),
 ('Services consultatifs', 'Advisory services', 'translation'),
 ('Management', 'Advisory services', 'related term'),
 ('Advisory services', 'EC Economics and Industry', 'subject category'),
 ('Défense des droits', 'Advocacy', 'translation'),
 ('Social action', 'Advocacy', 'used for'),
 ('Interest groups', 'Advocacy', 'related term'),
 ('Lobbying', 'Advocacy', 'related term'),
 ('Social movement', 'Advocacy', 'related term'),
 ('Advocacy', 'SO Society and Culture', 'subject category'),
 ('Aeolian energy', 'Wind energy', 'use'),
 ('Aeolian energy', 'NE Nature and Environment', 'subject category'),
 ('Aeolian erosion', 'Erosion', 'use'),
 ('Aeolian erosion', 'NE Nature and Environment', 'subject category'),
 ('Photographie aérienne', 'Aerial photography', 'translation'),
 ('Aerial photography', 'Photography', 'broader term'),
 ('Remote sensing', 'Aerial photography', 'related term'),
 ('Aerial photography', 'ST Science and Technology', 'subject category'),
 ('Aerobic fitness', 'Fitness', 'use'),
 ('Aerobic fitness', 'HE Health and Safety', 'subject category'),
 ('Aerodromes', 'Airports', 'use'),
 ('Aerodromes', 'TR Transport', 'subject category'),
 ('Aeronautical industry', 'Aviation industry', 'use'),
 ('Aeronautical industry', 'EC Economics and Industry', 'subject category'),
 ('Carte aéronautique', 'Aeronautical maps', 'translation'),
 ('Aeronautical maps', 'Maps', 'broader term'),
 ('Aviation', 'Aeronautical maps', 'related term'),
 ('Aeronautical maps', 'FM Form descriptors', 'subject category'),
 ('Aeronautics', 'Aviation', 'use'),
 ('Aeronautics', 'TR Transport', 'subject category'),
 ("Industrie de l'aérospatiale", 'Aerospace industry', 'translation'),
 ('Avionics', 'Aerospace industry', 'used for'),
 ('Space industry', 'Aerospace industry', 'used for'),
 ('Aerospace industry', 'Manufacturing industry', 'broader term'),
 ('Aviation industry', 'Aerospace industry', 'narrow term'),
 ('Space exploration', 'Aerospace industry', 'related term'),
 ('Aerospace industry', 'EC Economics and Industry', 'subject category'),
 ('Action positive', 'Affirmative action', 'translation'),
 ('Positive discrimination', 'Affirmative action', 'used for'),
 ('Reverse discrimination', 'Affirmative action', 'used for'),
 ('Discrimination', 'Affirmative action', 'related term'),
 ('Employment equity', 'Affirmative action', 'related term'),
 ('Equal opportunities', 'Affirmative action', 'related term'),
 ('Status of women', 'Affirmative action', 'related term'),
 ('Affirmative action', 'SO Society and Culture', 'subject category'),
 ('Boisement', 'Afforestation', 'translation'),
 ('Afforestation', 'Forest management', 'broader term'),
 ('Afforestation', 'NE Nature and Environment', 'subject category'),
 ('Age of rocks', 'Geochronology', 'use'),
 ('Age of rocks', 'NE Nature and Environment', 'subject category'),
 ('Age of rocks', 'ST Science and Technology', 'subject category'),
 ('Aged', 'Seniors', 'use'),
 ('Aged', 'PE Persons', 'subject category'),
 ('Aged', 'SO Society and Culture', 'subject category'),
 ('Ageing', 'Aging', 'use'),
 ('Ageing', 'NE Nature and Environment', 'subject category'),
 ('Ageing', 'SO Society and Culture', 'subject category'),
 ('Ordre du jour', 'Agenda', 'translation'),
 ('Meetings', 'Agenda', 'related term'),
 ('Agenda', 'FM Form descriptors', 'subject category'),
 ('Vieillissement', 'Aging', 'translation'),
 ('Ageing', 'Aging', 'used for'),
 ("Alzheimer's disease", 'Aging', 'related term'),
 ('Elderly care', 'Aging', 'related term'),
 ('Geriatrics', 'Aging', 'related term'),
 ('Gerontology', 'Aging', 'related term'),
 ('Old age', 'Aging', 'related term'),
 ('Retirement', 'Aging', 'related term'),
 ('Seniors', 'Aging', 'related term'),
 ('Aging', 'NE Nature and Environment', 'subject category'),
 ('Aging', 'SO Society and Culture', 'subject category'),
 ('Accord', 'Agreements', 'translation'),
 ('Alliances', 'Agreements', 'used for'),
 ('Conventions (Agreements)', 'Agreements', 'used for'),
 ('Treaties', 'Agreements', 'used for'),
 ('Collective agreements', 'Agreements', 'narrow term'),
 ('Cooperation agreements', 'Agreements', 'narrow term'),
 ('Environmental agreements', 'Agreements', 'narrow term'),
 ('Federal provincial agreements', 'Agreements', 'narrow term'),
 ('Federal territorial agreements', 'Agreements', 'narrow term'),
 ('Fiscal agreements', 'Agreements', 'narrow term'),
 ('International agreements', 'Agreements', 'narrow term'),
 ('Multilateral agreements', 'Agreements', 'narrow term'),
 ('Reciprocal agreements', 'Agreements', 'narrow term'),
 ('Service agreements', 'Agreements', 'narrow term'),
 ('Trade agreements', 'Agreements', 'narrow term'),
 ('Contracts', 'Agreements', 'related term'),
 ('Negotiations', 'Agreements', 'related term'),
 ('Agreements', 'PR Processes', 'subject category'),
 ('Industrie agro-alimentaire', 'Agri-food industry', 'translation'),
 ('Agricultural industry', 'Agri-food industry', 'used for'),
 ('Agricultural production', 'Agri-food industry', 'used for'),
 ('Agricultural sector', 'Agri-food industry', 'used for'),
 ('Agrifood industry', 'Agri-food industry', 'used for'),
 ('Agro-industry', 'Agri-food industry', 'used for'),
 ('Food industry', 'Agri-food industry', 'used for'),
 ('Food production', 'Agri-food industry', 'used for'),
 ('Agri-food industry', 'Manufacturing industry', 'broader term'),
 ('Beverage industry', 'Agri-food industry', 'narrow term'),
 ('Dairy industry', 'Agri-food industry', 'narrow term'),
 ('Agri-food products', 'Agri-food industry', 'related term'),
 ('Agriculture', 'Agri-food industry', 'related term'),
 ('Farms', 'Agri-food industry', 'related term'),
 ('Food', 'Agri-food industry', 'related term'),
 ('Food processing', 'Agri-food industry', 'related term'),
 ('Food supply', 'Agri-food industry', 'related term'),
 ('Agri-food industry', 'AG Agriculture', 'subject category'),
 ('Agri-food industry', 'EC Economics and Industry', 'subject category'),
 ('Produit agro-alimentaire', 'Agri-food products', 'translation'),
 ('Agricultural products', 'Agri-food products', 'used for'),
 ('Agrifood products', 'Agri-food products', 'used for'),
 ('Farm products', 'Agri-food products', 'used for'),
 ('Farming products', 'Agri-food products', 'used for'),
 ('Food products', 'Agri-food products', 'used for'),
 ('Livestock products', 'Agri-food products', 'used for'),
 ('Agri-food products', 'Products', 'broader term'),
 ('Beverages', 'Agri-food products', 'narrow term'),
 ('Cereals', 'Agri-food products', 'narrow term'),
 ('Dairy products', 'Agri-food products', 'narrow term'),
 ('Edible oils and fats', 'Agri-food products', 'narrow term'),
 ('Eggs', 'Agri-food products', 'narrow term'),
 ('Fruits', 'Agri-food products', 'narrow term'),
 ('Grains', 'Agri-food products', 'narrow term'),
 ('Honey', 'Agri-food products', 'narrow term'),
 ('Maple products', 'Agri-food products', 'narrow term'),
 ('Meat', 'Agri-food products', 'narrow term'),
 ('Vegetables', 'Agri-food products', 'narrow term'),
 ('Agri-food industry', 'Agri-food products', 'related term'),
 ('Agriculture', 'Agri-food products', 'related term'),
 ('Crops', 'Agri-food products', 'related term'),
 ('Farms', 'Agri-food products', 'related term'),
 ('Food', 'Agri-food products', 'related term'),
 ('Agri-food products', 'AG Agriculture', 'subject category'),
 ('Agri-food products', 'EC Economics and Industry', 'subject category'),
 ('Agricultural aid', 'Agricultural assistance', 'use'),
 ('Agricultural aid', 'AG Agriculture', 'subject category'),
 ('Agricultural aid', 'EC Economics and Industry', 'subject category'),
 ('Agricultural aid programs', 'Agricultural assistance', 'use'),
 ('Agricultural aid programs', 'Aid programs', 'use'),
 ('Agricultural aid programs', 'AG Agriculture', 'subject category'),
 ('Agricultural aid programs',
  'EC Economics and Industry',
  'subject category'),
 ("Aide à l'agriculture", 'Agricultural assistance', 'translation'),
 ('Agricultural aid', 'Agricultural assistance', 'used for'),
 ('Agricultural aid programs', 'Agricultural assistance', 'used for'),
 ('Farm aid', 'Agricultural assistance', 'used for'),
 ('Farm assistance', 'Agricultural assistance', 'used for'),
 ('Agriculture', 'Agricultural assistance', 'related term'),
 ('Agricultural assistance', 'AG Agriculture', 'subject category'),
 ('Agricultural assistance', 'EC Economics and Industry', 'subject category'),
 ('Agricultural buildings', 'Farm buildings', 'use'),
 ('Agricultural buildings', 'AG Agriculture', 'subject category'),
 ('Agricultural chemicals', 'Pesticides', 'use'),
 ('Agricultural chemicals', 'AG Agriculture', 'subject category'),
 ('Agricultural chemicals', 'NE Nature and Environment', 'subject category'),
 ('Agricultural crops', 'Crops', 'use'),
 ('Agricultural crops', 'AG Agriculture', 'subject category'),
 ('Agricultural drainage', 'Drainage', 'use'),
 ('Agricultural drainage', 'AG Agriculture', 'subject category'),
 ('Agricultural drainage', 'NE Nature and Environment', 'subject category'),
 ('Économie agricole', 'Agricultural economics', 'translation'),
 ('Agricultural economics', 'Economics', 'broader term'),
 ('Agriculture', 'Agricultural economics', 'related term'),
 ('Agricultural economics', 'AG Agriculture', 'subject category'),
 ('Agricultural economics', 'EC Economics and Industry', 'subject category'),
 ('Agricultural engineering', 'Agricultural technology', 'use'),
 ('Agricultural engineering', 'AG Agriculture', 'subject category'),
 ('Agricultural engineering', 'ST Science and Technology', 'subject category'),
 ('Agricultural enterprises', 'Farms', 'use'),
 ('Agricultural enterprises', 'AG Agriculture', 'subject category'),
 ('Agricultural enterprises', 'EC Economics and Industry', 'subject category'),
 ('Agricultural equipment', 'Agricultural technology', 'use'),
 ('Agricultural equipment', 'AG Agriculture', 'subject category'),
 ('Agricultural equipment', 'ST Science and Technology', 'subject category'),
 ('Foire agricole', 'Agricultural fairs', 'translation'),
 ('Rural fairs', 'Agricultural fairs', 'used for'),
 ('Agriculture', 'Agricultural fairs', 'related term'),
 ('Agricultural fairs', 'AG Agriculture', 'subject category'),
 ('Agricultural fairs', 'EC Economics and Industry', 'subject category'),
 ('Agricultural implements', 'Agricultural technology', 'use'),
 ('Agricultural implements', 'AG Agriculture', 'subject category'),
 ('Agricultural implements', 'ST Science and Technology', 'subject category'),
 ('Agricultural industry', 'Agri-food industry', 'use'),
 ('Agricultural industry', 'AG Agriculture', 'subject category'),
 ('Agricultural industry', 'EC Economics and Industry', 'subject category'),
 ('Agricultural insurance', 'Crop insurance', 'use'),
 ('Agricultural insurance', 'AG Agriculture', 'subject category'),
 ('Agricultural insurance', 'EC Economics and Industry', 'subject category'),
 ('Agricultural lands', 'Farmlands', 'use'),
 ('Agricultural lands', 'AG Agriculture', 'subject category'),
 ('Agricultural machinery', 'Agricultural technology', 'use'),
 ('Agricultural machinery', 'AG Agriculture', 'subject category'),
 ('Agricultural machinery', 'ST Science and Technology', 'subject category'),
 ('Agricultural pests', 'Pests', 'use'),
 ('Agricultural pests', 'AG Agriculture', 'subject category'),
 ('Agricultural pests', 'NE Nature and Environment', 'subject category'),
 ('Politique agricole', 'Agricultural policy', 'translation'),
 ('Agricultural policy', 'Policy', 'broader term'),
 ('Agriculture', 'Agricultural policy', 'related term'),
 ('Food policy', 'Agricultural policy', 'related term'),
 ('Agricultural policy', 'AG Agriculture', 'subject category'),
 ('Agricultural policy', 'GV Government and Politics', 'subject category'),
 ('Agricultural production', 'Agri-food industry', 'use'),
 ('Agricultural production', 'AG Agriculture', 'subject category'),
 ('Agricultural production', 'EC Economics and Industry', 'subject category'),
 ('Agricultural products', 'Agri-food products', 'use'),
 ('Agricultural products', 'AG Agriculture', 'subject category'),
 ('Agricultural products', 'EC Economics and Industry', 'subject category'),
 ('Agricultural sector', 'Agri-food industry', 'use'),
 ('Agricultural sector', 'AG Agriculture', 'subject category'),
 ('Agricultural sector', 'EC Economics and Industry', 'subject category'),
 ('Agricultural statistics', 'Agriculture statistics', 'use'),
 ('Agricultural statistics', 'AG Agriculture', 'subject category'),
 ('Agricultural statistics', 'EC Economics and Industry', 'subject category'),
 ('Technologie agricole', 'Agricultural technology', 'translation'),
 ('Agricultural engineering', 'Agricultural technology', 'used for'),
 ('Agricultural equipment', 'Agricultural technology', 'used for'),
 ('Agricultural implements', 'Agricultural technology', 'used for'),
 ('Agricultural machinery', 'Agricultural technology', 'used for'),
 ('Farm equipment', 'Agricultural technology', 'used for'),
 ('Farm machinery', 'Agricultural technology', 'used for'),
 ('Agricultural technology', 'Technology', 'broader term'),
 ('Agriculture', 'Agricultural technology', 'related term'),
 ('Agricultural technology', 'AG Agriculture', 'subject category'),
 ('Agricultural technology', 'ST Science and Technology', 'subject category'),
 ('Travailleur agricole', 'Agricultural workers', 'translation'),
 ('Farm workers', 'Agricultural workers', 'used for'),
 ('Farmers', 'Agricultural workers', 'used for'),
 ('Agricultural workers', 'Workers', 'broader term'),
 ('Agriculture', 'Agricultural workers', 'related term'),
 ('Agricultural workers', 'AG Agriculture', 'subject category'),
 ('Agricultural workers', 'PE Persons', 'subject category'),
 ('Agriculture', 'Agriculture', 'translation'),
 ('Farming', 'Agriculture', 'used for'),
 ('Aquaculture', 'Agriculture', 'narrow term'),
 ('Horticulture', 'Agriculture', 'narrow term'),
 ('Viticulture', 'Agriculture', 'narrow term'),
 ('Agri-food industry', 'Agriculture', 'related term'),
 ('Agri-food products', 'Agriculture', 'related term'),
 ('Agricultural assistance', 'Agriculture', 'related term'),
 ('Agricultural economics', 'Agriculture', 'related term'),
 ('Agricultural fairs', 'Agriculture', 'related term'),
 ('Agricultural policy', 'Agriculture', 'related term'),
 ('Agricultural technology', 'Agriculture', 'related term'),
 ('Agricultural workers', 'Agriculture', 'related term'),
 ('Agriculture statistics', 'Agriculture', 'related term'),
 ('Animal husbandry', 'Agriculture', 'related term'),
 ('Crops', 'Agriculture', 'related term'),
 ('Farmlands', 'Agriculture', 'related term'),
 ('Farms', 'Agriculture', 'related term'),
 ('Agriculture', 'AG Agriculture', 'subject category'),
 ("Statistiques de l'agriculture", 'Agriculture statistics', 'translation'),
 ('Agricultural statistics', 'Agriculture statistics', 'used for'),
 ('Agriculture statistics', 'Statistics', 'broader term'),
 ('Agriculture', 'Agriculture statistics', 'related term'),
 ('Agriculture statistics', 'AG Agriculture', 'subject category'),
 ('Agrifood industry', 'Agri-food industry', 'use'),
 ('Agrifood industry', 'AG Agriculture', 'subject category'),
 ('Agrifood products', 'Agri-food products', 'use'),
 ('Agrifood products', 'AG Agriculture', 'subject category'),
 ('Agro-industry', 'Agri-food industry', 'use'),
 ('Agro-industry', 'AG Agriculture', 'subject category'),
 ('Agro-industry', 'EC Economics and Industry', 'subject category'),
 ("Programme d'aide", 'Aid programs', 'translation'),
 ('Agricultural aid programs', 'Aid programs', 'used for'),
 ('Assistance programs', 'Aid programs', 'used for'),
 ('Support programs', 'Aid programs', 'used for'),
 ('Supporting programs', 'Aid programs', 'used for'),
 ('Aid programs', 'Programs', 'broader term'),
 ('Aid programs', 'PR Processes', 'subject category'),
 ('Sida', 'AIDS (disease)', 'translation'),
 ('Acquired immune deficiency syndrome', 'AIDS (disease)', 'used for'),
 ('Acquired immunodeficiency syndrome', 'AIDS (disease)', 'used for'),
 ('HIV', 'AIDS (disease)', 'used for'),
 ('Human immunodeficiency virus', 'AIDS (disease)', 'used for'),
 ('AIDS (disease)', 'Infectious diseases', 'broader term'),
 ('Sexually transmitted diseases', 'AIDS (disease)', 'related term'),
 ('Viruses', 'AIDS (disease)', 'related term'),
 ('AIDS (disease)', 'HE Health and Safety', 'subject category'),
 ('Air', 'Air', 'translation'),
 ('Atmosphere', 'Air', 'used for'),
 ('Atmospheric environment', 'Air', 'used for'),
 ('Air conditioning', 'Air', 'related term'),
 ('Air pollution', 'Air', 'related term'),
 ('Air quality', 'Air', 'related term'),
 ('Air', 'NE Nature and Environment', 'subject category'),
 ('Air-conditioning', 'Air conditioning', 'use'),
 ('Air-conditioning', 'ST Science and Technology', 'subject category'),
 ('Air-cushioned vehicles', 'Hovercraft', 'use'),
 ('Air-cushioned vehicles', 'TR Transport', 'subject category'),
 ('Air bags', 'Automobile safety equipment', 'use'),
 ('Air bags', 'HE Health and Safety', 'subject category'),
 ('Air carriers', 'Airlines', 'use'),
 ('Air carriers', 'EC Economics and Industry', 'subject category'),
 ('Air carriers', 'TR Transport', 'subject category'),
 ('Climatisation', 'Air conditioning', 'translation'),
 ('Air-conditioning', 'Air conditioning', 'used for'),
 ('Air', 'Air conditioning', 'related term'),
 ('Heating', 'Air conditioning', 'related term'),
 ('Air conditioning', 'ST Science and Technology', 'subject category'),
 ('Air cushion vehicles', 'Hovercraft', 'use'),
 ('Air cushion vehicles', 'TR Transport', 'subject category'),
 ('Air disasters', 'Aircraft accidents', 'use'),
 ('Air disasters', 'HE Health and Safety', 'subject category'),
 ('Air disasters', 'TR Transport', 'subject category'),
 ('Air emissions', 'Atmospheric emissions', 'use'),
 ('Air emissions', 'NE Nature and Environment', 'subject category'),
 ('Air forces', 'Armed forces', 'use'),
 ('Air forces', 'MI Military', 'subject category'),
 ('Air humidity', 'Humidity', 'use'),
 ('Air humidity', 'NE Nature and Environment', 'subject category'),
 ('Air navigation', 'Aviation', 'use'),
 ('Air navigation', 'TR Transport', 'subject category'),
 ('Air pollutants', 'Pollutants', 'use'),
 ('Air pollutants', 'NE Nature and Environment', 'subject category'),
 ('Pollution atmosphérique', 'Air pollution', 'translation'),
 ('Atmospheric pollution', 'Air pollution', 'used for'),
 ('Air pollution', 'Pollution', 'broader term'),
 ('Smog', 'Air pollution', 'narrow term'),
 ('Acid rain', 'Air pollution', 'related term'),
 ('Air', 'Air pollution', 'related term'),
 ('Air quality', 'Air pollution', 'related term'),
 ('Atmospheric emissions', 'Air pollution', 'related term'),
 ('Greenhouse gases', 'Air pollution', 'related term'),
 ('Ozone depletion', 'Air pollution', 'related term'),
 ('Air pollution', 'NE Nature and Environment', 'subject category'),
 ("Qualité de l'air", 'Air quality', 'translation'),
 ('Air quality monitoring', 'Air quality', 'used for'),
 ('Air quality', 'Environmental quality', 'broader term'),
 ('Air', 'Air quality', 'related term'),
 ('Air pollution', 'Air quality', 'related term'),
 ('Air quality', 'NE Nature and Environment', 'subject category'),
 ('Air quality monitoring', 'Air quality', 'use'),
 ('Air quality monitoring', 'NE Nature and Environment', 'subject category'),
 ('Sécurité aérienne', 'Air safety', 'translation'),
 ('Airport safety', 'Air safety', 'used for'),
 ('Airworthiness', 'Air safety', 'used for'),
 ('Aviation safety', 'Air safety', 'used for'),
 ('Cabin safety', 'Air safety', 'used for'),
 ('Flight safety', 'Air safety', 'used for'),
 ('Air safety', 'Transportation safety', 'broader term'),
 ('Air transport', 'Air safety', 'related term'),
 ('Aircraft accidents', 'Air safety', 'related term'),
 ('Air safety', 'HE Health and Safety', 'subject category'),
 ('Air safety', 'TR Transport', 'subject category'),
 ('Air taxi', 'Air transport', 'use'),
 ('Air taxi', 'TR Transport', 'subject category'),
 ("Température de l'air", 'Air temperature', 'translation'),
 ('Atmospheric temperature', 'Air temperature', 'used for'),
 ('Air temperature', 'Temperature', 'broader term'),
 ('Global warming', 'Air temperature', 'related term'),
 ('Greenhouse effect', 'Air temperature', 'related term'),
 ('Weather', 'Air temperature', 'related term'),
 ('Air temperature', 'NE Nature and Environment', 'subject category'),
 ('Air traffic', 'Air transport', 'use'),
 ('Air traffic', 'TR Transport', 'subject category'),
 ('Transport aérien', 'Air transport', 'translation'),
 ('Air taxi', 'Air transport', 'used for'),
 ('Air traffic', 'Air transport', 'used for'),
 ('Air transportation', 'Air transport', 'used for'),
 ('Helicopter transportation', 'Air transport', 'used for'),
 ('Air transport', 'Transport', 'broader term'),
 ('Air safety', 'Air transport', 'related term'),
 ('Air transport industry', 'Air transport', 'related term'),
 ('Aircraft', 'Air transport', 'related term'),
 ('Airlines', 'Air transport', 'related term'),
 ('Airports', 'Air transport', 'related term'),
 ('Aviation', 'Air transport', 'related term'),
 ('Air transport', 'TR Transport', 'subject category'),
 ('Industrie du transport aérien', 'Air transport industry', 'translation'),
 ('Air transportation industry', 'Air transport industry', 'used for'),
 ('Airline industry', 'Air transport industry', 'used for'),
 ('Air transport industry', 'Transport industry', 'broader term'),
 ('Air transport', 'Air transport industry', 'related term'),
 ('Airlines', 'Air transport industry', 'related term'),
 ('Aviation industry', 'Air transport industry', 'related term'),
 ('Air transport industry', 'EC Economics and Industry', 'subject category'),
 ('Air transport industry', 'TR Transport', 'subject category'),
 ('Air transportation', 'Air transport', 'use'),
 ('Air transportation', 'TR Transport', 'subject category'),
 ('Air transportation industry', 'Air transport industry', 'use'),
 ('Air transportation industry',
  'EC Economics and Industry',
  'subject category'),
 ('Air transportation industry', 'TR Transport', 'subject category'),
 ('Airborne emissions', 'Atmospheric emissions', 'use'),
 ('Airborne emissions', 'NE Nature and Environment', 'subject category'),
 ('Aéronef', 'Aircraft', 'translation'),
 ('Wings (Aircraft)', 'Aircraft', 'used for'),
 ('Aircraft', 'Vehicles', 'broader term'),
 ('Airplanes', 'Aircraft', 'narrow term'),
 ('Civilian aircraft', 'Aircraft', 'narrow term'),
 ('Helicopters', 'Aircraft', 'narrow term'),
 ('Military aircraft', 'Aircraft', 'narrow term'),
 ('Air transport', 'Aircraft', 'related term'),
 ('Aircraft accidents', 'Aircraft', 'related term'),
 ('Aircraft anti-icing', 'Aircraft', 'related term'),
 ('Aircraft de-icing', 'Aircraft', 'related term'),
 ('Aviation', 'Aircraft', 'related term'),
 ('Aviation industry', 'Aircraft', 'related term'),
 ('Aircraft', 'TR Transport', 'subject category'),
 ("Accident d'aviation", 'Aircraft accidents', 'translation'),
 ('Air disasters', 'Aircraft accidents', 'used for'),
 ('Airplane accidents', 'Aircraft accidents', 'used for'),
 ('Airplane crashes', 'Aircraft accidents', 'used for'),
 ('Aviation accidents', 'Aircraft accidents', 'used for'),
 ('Flying accidents', 'Aircraft accidents', 'used for'),
 ('Plane crashes', 'Aircraft accidents', 'used for'),
 ('Aircraft accidents', 'Accidents', 'broader term'),
 ('Air safety', 'Aircraft accidents', 'related term'),
 ('Aircraft', 'Aircraft accidents', 'related term'),
 ('Aircraft accidents', 'HE Health and Safety', 'subject category'),
 ('Aircraft accidents', 'TR Transport', 'subject category'),
 ('Antigivrage des aéronefs', 'Aircraft anti-icing', 'translation'),
 ('Airplane anti-icing', 'Aircraft anti-icing', 'used for'),
 ('Anti-icing of aircraft', 'Aircraft anti-icing', 'used for'),
 ('Wing anti-icing', 'Aircraft anti-icing', 'used for'),
 ('Aircraft', 'Aircraft anti-icing', 'related term'),
 ('Aircraft de-icing', 'Aircraft anti-icing', 'related term'),
 ('Ice', 'Aircraft anti-icing', 'related term'),
 ('Safety measures', 'Aircraft anti-icing', 'related term'),
 ('Aircraft anti-icing', 'HE Health and Safety', 'subject category'),
 ('Aircraft anti-icing', 'TR Transport', 'subject category'),
 ('Dégivrage des aéronefs', 'Aircraft de-icing', 'translation'),
 ('Airplane de-icing', 'Aircraft de-icing', 'used for'),
 ('De-icing of aircraft', 'Aircraft de-icing', 'used for'),
 ('Plane de-icing', 'Aircraft de-icing', 'used for'),
 ('Wing de-icing', 'Aircraft de-icing', 'used for'),
 ('Aircraft', 'Aircraft de-icing', 'related term'),
 ('Aircraft anti-icing', 'Aircraft de-icing', 'related term'),
 ('Ice', 'Aircraft de-icing', 'related term'),
 ('Safety measures', 'Aircraft de-icing', 'related term'),
 ('Aircraft de-icing', 'HE Health and Safety', 'subject category'),
 ('Aircraft de-icing', 'TR Transport', 'subject category'),
 ('Aircraft industry', 'Aviation industry', 'use'),
 ('Aircraft industry', 'EC Economics and Industry', 'subject category'),
 ('Aircraft manufacturing industry', 'Aviation industry', 'use'),
 ('Aircraft manufacturing industry',
  'EC Economics and Industry',
  'subject category'),
 ('Airline industry', 'Air transport industry', 'use'),
 ('Airline industry', 'EC Economics and Industry', 'subject category'),
 ('Airline industry', 'TR Transport', 'subject category'),
 ('Compagnie aérienne', 'Airlines', 'translation'),
 ('Air carriers', 'Airlines', 'used for'),
 ('Air transport', 'Airlines', 'related term'),
 ('Air transport industry', 'Airlines', 'related term'),
 ('Airlines', 'EC Economics and Industry', 'subject category'),
 ('Airlines', 'TR Transport', 'subject category'),
 ('Airplane accidents', 'Aircraft accidents', 'use'),
 ('Airplane accidents', 'HE Health and Safety', 'subject category'),
 ('Airplane accidents', 'TR Transport', 'subject category'),
 ('Airplane anti-icing', 'Aircraft anti-icing', 'use'),
 ('Airplane anti-icing', 'HE Health and Safety', 'subject category'),
 ('Airplane anti-icing', 'TR Transport', 'subject category'),
 ('Airplane crashes', 'Aircraft accidents', 'use'),
 ('Airplane crashes', 'HE Health and Safety', 'subject category'),
 ('Airplane crashes', 'TR Transport', 'subject category'),
 ('Airplane de-icing', 'Aircraft de-icing', 'use'),
 ('Airplane de-icing', 'HE Health and Safety', 'subject category'),
 ('Airplane de-icing', 'TR Transport', 'subject category'),
 ('Avion', 'Airplanes', 'translation'),
 ('Planes', 'Airplanes', 'used for'),
 ('Airplanes', 'Aircraft', 'broader term'),
 ('Airplanes', 'TR Transport', 'subject category'),
 ('Airport administrations', 'Airport authorities', 'use'),
 ('Airport administrations', 'TR Transport', 'subject category'),
 ('Administration aéroportuaire', 'Airport authorities', 'translation'),
 ('Airport administrations', 'Airport authorities', 'used for'),
 ('Airports', 'Airport authorities', 'related term'),
 ('Airport authorities', 'TR Transport', 'subject category'),
 ('Airport safety', 'Air safety', 'use'),
 ('Airport safety', 'HE Health and Safety', 'subject category'),
 ('Airport safety', 'TR Transport', 'subject category'),
 ('Aéroport', 'Airports', 'translation'),
 ('Aerodromes', 'Airports', 'used for'),
 ('Heliports', 'Airports', 'used for'),
 ('Air transport', 'Airports', 'related term'),
 ('Airport authorities', 'Airports', 'related term'),
 ('Airports', 'TR Transport', 'subject category'),
 ('Airworthiness', 'Air safety', 'use'),
 ('Airworthiness', 'HE Health and Safety', 'subject category'),
 ('Airworthiness', 'TR Transport', 'subject category'),
 ('Alcohol abuse', 'Alcoholism', 'use'),
 ('Alcohol abuse', 'HE Health and Safety', 'subject category'),
 ('Alcohol addiction', 'Alcoholism', 'use'),
 ('Alcohol addiction', 'HE Health and Safety', 'subject category'),
 ('Alcohol beverages', 'Alcoholic beverages', 'use'),
 ('Alcohol beverages', 'EC Economics and Industry', 'subject category'),
 ("Consommation d'alcool", 'Alcohol consumption', 'translation'),
 ('Alcohol drinking', 'Alcohol consumption', 'used for'),
 ('Alcohol use', 'Alcohol consumption', 'used for'),
 ('Alcoholic beverage consumption', 'Alcohol consumption', 'used for'),
 ('Alcohol education', 'Alcohol consumption', 'related term'),
 ('Alcoholic beverages', 'Alcohol consumption', 'related term'),
 ('Alcoholism', 'Alcohol consumption', 'related term'),
 ('Alcohol consumption', 'SO Society and Culture', 'subject category'),
 ('Alcohol drinking', 'Alcohol consumption', 'use'),
 ('Alcohol drinking', 'SO Society and Culture', 'subject category'),
 ("Prévention de l'alcoolisme", 'Alcohol education', 'translation'),
 ('Alcohol education', 'Education', 'broader term'),
 ('Alcohol consumption', 'Alcohol education', 'related term'),
 ('Alcoholism', 'Alcohol education', 'related term'),
 ('Alcohol education', 'ET Education and Training', 'subject category'),
 ('Alcohol education', 'HE Health and Safety', 'subject category'),
 ('Alcohol use', 'Alcohol consumption', 'use'),
 ('Alcohol use', 'SO Society and Culture', 'subject category'),
 ('Alcoholic beverage consumption', 'Alcohol consumption', 'use'),
 ('Alcoholic beverage consumption',
  'SO Society and Culture',
  'subject category'),
 ('Boisson alcoolisée', 'Alcoholic beverages', 'translation'),
 ('Alcohol beverages', 'Alcoholic beverages', 'used for'),
 ('Alcoholic drinks', 'Alcoholic beverages', 'used for'),
 ('Fermented beverages', 'Alcoholic beverages', 'used for'),
 ('Spirituous beverages', 'Alcoholic beverages', 'used for'),
 ('Alcoholic beverages', 'Beverages', 'broader term'),
 ('Beer', 'Alcoholic beverages', 'narrow term'),
 ('Wine', 'Alcoholic beverages', 'narrow term'),
 ('Alcohol consumption', 'Alcoholic beverages', 'related term'),
 ('Alcoholic beverages', 'EC Economics and Industry', 'subject category'),
 ('Alcoholic drinks', 'Alcoholic beverages', 'use'),
 ('Alcoholic drinks', 'EC Economics and Industry', 'subject category'),
 ('Alcoolisme', 'Alcoholism', 'translation'),
 ('Alcohol abuse', 'Alcoholism', 'used for'),
 ('Alcohol addiction', 'Alcoholism', 'used for'),
 ('Substance abuse', 'Alcoholism', 'used for'),
 ('Alcoholism', 'Addiction', 'broader term'),
 ('Alcohol consumption', 'Alcoholism', 'related term'),
 ('Alcohol education', 'Alcoholism', 'related term'),
 ('Alcoholism', 'HE Health and Safety', 'subject category'),
 ('Algae', 'Aquatic plants', 'use'),
 ('Algae', 'NE Nature and Environment', 'subject category'),
 ('Alien invasive species', 'Invasive species', 'use'),
 ('Alien invasive species', 'NE Nature and Environment', 'subject category'),
 ('Alimony', 'Child support', 'use'),
 ('Alimony', 'EC Economics and Industry', 'subject category'),
 ('Allergie', 'Allergies', 'translation'),
 ('Chronic diseases', 'Allergies', 'related term'),
 ('Allergies', 'HE Health and Safety', 'subject category'),
 ('Alliances', 'Agreements', 'use'),
 ('Alliances', 'PR Processes', 'subject category'),
 ('Forces alliées', 'Allied forces', 'translation'),
 ('Armed forces', 'Allied forces', 'related term'),
 ('War', 'Allied forces', 'related term'),
 ('Allied forces', 'MI Military', 'subject category'),
 ('Allocation of powers', 'Division of powers', 'use'),
 ('Allocation of powers', 'GV Government and Politics', 'subject category'),
 ('Allocation de crédits', 'Allotments', 'translation'),
 ('Allotments', 'Credit', 'broader term'),
 ('Allotments', 'EC Economics and Industry', 'subject category'),
 ('Allocation', 'Allowances', 'translation'),
 ('Annuities', 'Allowances', 'used for'),
 ('Compensation', 'Allowances', 'used for'),
 ('Family allowances', 'Allowances', 'narrow term'),
 ('Benefits', 'Allowances', 'related term'),
 ('Grants', 'Allowances', 'related term'),
 ('Pensions', 'Allowances', 'related term'),
 ('Salaries', 'Allowances', 'related term'),
 ('Allowances', 'EC Economics and Industry', 'subject category'),
 ('Almanach', 'Almanacs', 'translation'),
 ('Yearbooks', 'Almanacs', 'related term'),
 ('Almanacs', 'FM Form descriptors', 'subject category'),
 ('Énergie de remplacement', 'Alternative energy', 'translation'),
 ('Clean energy', 'Alternative energy', 'used for'),
 ('Non-conventional energy', 'Alternative energy', 'used for'),
 ('Pollution-free energy', 'Alternative energy', 'used for'),
 ('Soft energy', 'Alternative energy', 'used for'),
 ('Alternative energy', 'Energy', 'broader term'),
 ('Alternative fuels', 'Alternative energy', 'narrow term'),
 ('Energy technology', 'Alternative energy', 'related term'),
 ('Pollution prevention', 'Alternative energy', 'related term'),
 ('Renewable energy', 'Alternative energy', 'related term'),
 ('Alternative energy', 'NE Nature and Environment', 'subject category'),
 ('Carburant de remplacement', 'Alternative fuels', 'translation'),
 ('Alternative transportation fuels', 'Alternative fuels', 'used for'),
 ('Alternative fuels', 'Alternative energy', 'broader term'),
 ('Alternative fuels', 'Fuels', 'broader term'),
 ('Electric vehicles', 'Alternative fuels', 'related term'),
 ('Alternative fuels', 'NE Nature and Environment', 'subject category'),
 ('Médecine douce', 'Alternative medicine', 'translation'),
 ('Soft medicine', 'Alternative medicine', 'used for'),
 ('Alternative medicine', 'Medicine', 'broader term'),
 ('Homeopathy', 'Alternative medicine', 'narrow term'),
 ('Medicinal plants', 'Alternative medicine', 'related term'),
 ('Alternative medicine', 'HE Health and Safety', 'subject category'),
 ('Alternative transportation fuels', 'Alternative fuels', 'use'),
 ('Alternative transportation fuels',
  'NE Nature and Environment',
  'subject category'),
 ("Maladie d'Alzheimer", "Alzheimer's disease", 'translation'),
 ("Alzheimer's disease", 'Degenerative diseases', 'broader term'),
 ('Aging', "Alzheimer's disease", 'related term'),
 ("Alzheimer's disease", 'HE Health and Safety', 'subject category'),
 ('Amalgamation', 'Mergers', 'use'),
 ('Amalgamation', 'PR Processes', 'subject category'),
 ('Sport amateur', 'Amateur sports', 'translation'),
 ('Amateur sports', 'Sports', 'broader term'),
 ('Olympic games', 'Amateur sports', 'related term'),
 ('Panamerican games', 'Amateur sports', 'related term'),
 ('Amateur sports', 'SO Society and Culture', 'subject category'),
 ('Ambassadors', 'Foreign service', 'use'),
 ('Ambassadors', 'GV Government and Politics', 'subject category'),
 ('Ambassadors', 'PE Persons', 'subject category'),
 ('Ambulance services', 'Emergency services', 'use'),
 ('Ambulance services', 'HE Health and Safety', 'subject category'),
 ('Amendement', 'Amendments', 'translation'),
 ('Legislative amendments', 'Amendments', 'used for'),
 ('Legislation', 'Amendments', 'related term'),
 ('Amendments', 'FM Form descriptors', 'subject category'),
 ('Amendments', 'LW Law', 'subject category'),
 ('Amerindian languages', 'Aboriginal languages', 'use'),
 ('Amerindian languages', 'LN Language and Linguistics', 'subject category'),
 ('Amphibia', 'Amphibians', 'use'),
 ('Amphibia', 'NE Nature and Environment', 'subject category'),
 ('Amphibien', 'Amphibians', 'translation'),
 ('Amphibia', 'Amphibians', 'used for'),
 ('Amphibians', 'Animals', 'broader term'),
 ('Aquatic animals', 'Amphibians', 'related term'),
 ('Amphibians', 'NE Nature and Environment', 'subject category'),
 ('Analyse', 'Analysis', 'translation'),
 ('Economic analysis', 'Analysis', 'narrow term'),
 ('Financial analysis', 'Analysis', 'narrow term'),
 ('Sector analysis', 'Analysis', 'narrow term'),
 ('Statistical analysis', 'Analysis', 'narrow term'),
 ('Case studies', 'Analysis', 'related term'),
 ('Diagnosis', 'Analysis', 'related term'),
 ('Feasibility studies', 'Analysis', 'related term'),
 ('Modelling', 'Analysis', 'related term'),
 ('Analysis', 'PR Processes', 'subject category'),
 ('Analytique', 'Analytics', 'translation'),
 ('Computer programming', 'Analytics', 'related term'),
 ('Computer science', 'Analytics', 'related term'),
 ('Data mining', 'Analytics', 'related term'),
 ('Mathematics', 'Analytics', 'related term'),
 ('Statistics', 'Analytics', 'related term'),
 ('Analytics', 'ST Science and Technology', 'subject category'),
 ('Anatomie', 'Anatomy', 'translation'),
 ('Anatomy', 'Biology', 'broader term'),
 ('Medicine', 'Anatomy', 'related term'),
 ('Physiology', 'Anatomy', 'related term'),
 ('Anatomy', 'ST Science and Technology', 'subject category'),
 ('Ancestral languages', 'Heritage languages', 'use'),
 ('Ancestral languages', 'LN Language and Linguistics', 'subject category'),
 ('Ancestral rights', 'Aboriginal rights', 'use'),
 ('Ancestral rights', 'SO Society and Culture', 'subject category'),
 ('Animal-to-human transplantation', 'Xenotransplantation', 'use'),
 ('Animal-to-human transplantation',
  'HE Health and Safety',
  'subject category'),
 ('Animal-to-human transplantation',
  'ST Science and Technology',
  'subject category'),
 ('Animal breeding', 'Animal reproduction', 'use'),
 ('Animal breeding', 'AG Agriculture', 'subject category'),
 ('Animal cells', 'Cells', 'use'),
 ('Animal cells', 'AG Agriculture', 'subject category'),
 ('Animal cells', 'NE Nature and Environment', 'subject category'),
 ('Animal cells', 'ST Science and Technology', 'subject category'),
 ('Animal cloning', 'Cloning', 'use'),
 ('Animal cloning', 'ST Science and Technology', 'subject category'),
 ('Animal culture', 'Animal husbandry', 'use'),
 ('Animal culture', 'AG Agriculture', 'subject category'),
 ('Animal culture', 'NE Nature and Environment', 'subject category'),
 ('Maladie animale', 'Animal diseases', 'translation'),
 ('Animal diseases', 'Diseases', 'broader term'),
 ('Animal health', 'Animal diseases', 'related term'),
 ('Animals', 'Animal diseases', 'related term'),
 ('Veterinary drugs', 'Animal diseases', 'related term'),
 ('Veterinary medicine', 'Animal diseases', 'related term'),
 ('Animal diseases', 'HE Health and Safety', 'subject category'),
 ('Animal drugs', 'Veterinary drugs', 'use'),
 ('Animal drugs', 'HE Health and Safety', 'subject category'),
 ('Animal experimentation', 'Animal testing', 'use'),
 ('Animal experimentation', 'ST Science and Technology', 'subject category'),
 ...]

In [29]:
G = nx.DiGraph()

In [30]:
for term1, term2, relationship in relationships:
    G.add_edge(term1, term2, rel_type=relationship)

In [31]:
nx.write_gexf(G, os.path.join(data_dir, 'core_thesaurus.gexf'))

Now to convert into database elements (tags)


In [ ]: