creativeishu / AIM_IBM_KGO

1 stars 0 forks source link

Cleanup edges #7

Closed dolfim closed 9 years ago

dolfim commented 9 years ago

Currently we have:

practitioner./education/field_of_study/academics_in_this_field
narrower_than./food/ingredient/more_general_ingredient
broader_than./medicine/drug_brand/canonical_drug
object./freebase/valuenotation/is_reviewed
origin./people/person/place_of_birth
subclass_of./people/cause_of_death/parent_cause_of_death
part_of./biology/gene/genome
certification./award/award_winner/awards_won
member_of./people/person/religion
category./biology/organism_classification/rank
part_of./medicine/drug/marketed_formulations
narrower_than./base/skosbase/skos_concept/broader
symbolizes./location/location_symbol_relationship/administrative_division
category./people/person/ethnicity
practitioner./business/industry/companies
part_of./people/family_member/family
superclass_of./business/product_ingredient/generalization_of
location./people/place_lived/location
certification./award/ranking/list
narrower_than./chemistry/isotope/isotope_of
member_of./royalty/chivalric_order_membership/order
medicine./medicine/disease_cause/diseases
peer_of./influence/peer_relationship/peers
narrower_than./base/skosbase/vocabulary_equivalent_topic/broader_concept
status./medicine/drug/legal_status
category./medicine/drug/mechanism_of_action
member_of./organization/organization_membership/organization
broader_than./base/skosbase/skos_concept/narrower
category./chemistry/chemical_compound/classifications
broader_than./chemistry/chemical_element/isotopes
medicine./medicine/medical_treatment/side_effects
fiction_link./fictional_universe/fictional_substance/fictional_object
parent./people/person/parents
narrower_than./medicine/drug_ingredient/more_general_ingredient
discovered_by./chemistry/chemical_element/discoverer
broader_than./food/ingredient/more_specific_ingredient
superclass_of./engineering/material/subclass
superclass_of./chemistry/chemical_classification/lower_classifications
narrower_than./medicine/drug/canonical_brands
certification./medicine/drug/pregnancy_category
title./royalty/noble_title_tenure/noble_title
subclass_of./chemistry/chemical_classification/higher_classifications
category./chemistry/chemical_element/chemical_series
created./organization/organization_founder/organizations_founded
discovered./chemistry/element_discoverer/discovered
created_by./organization/organization/founders
property./common/topic/image
medicine./medicine/condition_prevention_factors/conditions_this_may_prevent
skos./base/skosbase/skos_concept/in_scheme
peer_of./people/marriage/spouse
member_of./education/academic/departments_old
peer_of./education/academic/advisees
medicine./medicine/risk_factor/diseases
location./biology/gene/chromosome
peer_of./education/academic/advisors
category./biology/gene_group_membership/group
category./location/location_symbol_relationship/Kind_of_symbol
created./book/author/works_written
location./people/deceased_person/place_of_burial
subclass_of./engineering/material/parent_material_class
title./business/employment_tenure/title
category./chemistry/chemical_element/periodic_table_block
certification./education/education/degree
object./freebase/review_item/flag
category./biology/gene_ontology_group/group_type
object./dataworld/gardening_hint/replaces
means_of_demise./people/deceased_person/cause_of_death
owner./business/company_brand_relationship/company
created./law/inventor/inventions
use_permitted_by./spaceflight/rocket_engine_fuel/rocket_engines
part_of./medicine/drug_ingredient/active_ingredient_of_formulation
leader_of./organization/organization_board_membership/organization
created_by./law/invention/inventor
practitioner_of./people/person/profession
medicine./medicine/medical_treatment/contraindications
member_of./people/person/nationality
child./people/person/children
member_of./base/skosbase/skos_concept/in_scheme
category./people/person/gender
subclass_of./business/product_ingredient/variety_of
subclass_of./biology/organism_classification/higher_classification
part_of./organization/organization_relationship/parent
object./type/object/attribution
subclass_of./biology/gene_ontology_group/broader_group
peer_of./base/skosbase/vocabulary_equivalent_topic/equivalent_concept
use_permitted_by./spaceflight/rocket_engine_oxidizer/rocket_engines
peer_of./freebase/equivalent_topic/equivalent_type
object./freebase/valuenotation/has_value
broader_than./base/schemastaging/food_extra/narrower
broader_than./medicine/drug_ingredient/more_specific_ingredient
broader_than./base/skosbase/vocabulary_equivalent_topic/narrower_concept
member_of./business/employment_tenure/company
category./medicine/drug/drug_class
made_of./food/nutrition_fact/nutrient
peer_of./people/sibling_relationship/sibling
leader_of./organization/leadership/organization
medicine./medicine/medical_treatment/used_to_treat
created./people/person/quotations
practitioner_of./education/education/major_field_of_study
member_of./education/education/institution
means_of_demise./chemistry/isotope_decay/decay_mode
practitioner_of./organization/organization_board_membership/role
object./freebase/valuenotation/has_no_value
ralphk86 commented 9 years ago

many edges have been removed during scrape. only keeping:

           "narrower_than./food/ingredient/more_general_ingredient",
           "broader_than./medicine/drug_brand/canonical_drug",
           "part_of./biology/gene/genome",
           "category./biology/organism_classification/rank",
           "part_of./medicine/drug/marketed_formulations",
           "narrower_than./base/skosbase/skos_concept/broader",
           "superclass_of./business/product_ingredient/generalization_of",
           "narrower_than./chemistry/isotope/isotope_of",
           "medicine./medicine/disease_cause/diseases",
           "narrower_than./base/skosbase/vocabulary_equivalent_topic/broader_concept",
           "status./medicine/drug/legal_status",
           "category./medicine/drug/mechanism_of_action",
           "broader_than./base/skosbase/skos_concept/narrower",
           "category./chemistry/chemical_compound/classifications",
           "broader_than./chemistry/chemical_element/isotopes",
           "medicine./medicine/medical_treatment/side_effects",
           "narrower_than./medicine/drug_ingredient/more_general_ingredient",
           "discovered_by./chemistry/chemical_element/discoverer",
           "broader_than./food/ingredient/more_specific_ingredient",
           "superclass_of./engineering/material/subclass",
           "superclass_of./chemistry/chemical_classification/lower_classifications",
           "narrower_than./medicine/drug/canonical_brands",
           "certification./medicine/drug/pregnancy_category",
           "subclass_of./chemistry/chemical_classification/higher_classifications",
           "category./chemistry/chemical_element/chemical_series",
           "discovered./chemistry/element_discoverer/discovered",
           "medicine./medicine/condition_prevention_factors/conditions_this_may_prevent",
           "medicine./medicine/risk_factor/diseases",
           "location./biology/gene/chromosome",
           "category./biology/gene_group_membership/group",
           "subclass_of./engineering/material/parent_material_class",
           "category./chemistry/chemical_element/periodic_table_block",
           "category./biology/gene_ontology_group/group_type",
           "created./law/inventor/inventions",
           "use_permitted_by./spaceflight/rocket_engine_fuel/rocket_engines",
           "part_of./medicine/drug_ingredient/active_ingredient_of_formulation",
           "created_by./law/invention/inventor",
           "subclass_of./business/product_ingredient/variety_of",
           "subclass_of./biology/organism_classification/higher_classification",
           "part_of./organization/organization_relationship/parent",
           "subclass_of./biology/gene_ontology_group/broader_group",
           "peer_of./base/skosbase/vocabulary_equivalent_topic/equivalent_concept",
           "use_permitted_by./spaceflight/rocket_engine_oxidizer/rocket_engines",
           "peer_of./freebase/equivalent_topic/equivalent_type",
           "broader_than./base/schemastaging/food_extra/narrower",
           "broader_than./medicine/drug_ingredient/more_specific_ingredient",
           "broader_than./base/skosbase/vocabulary_equivalent_topic/narrower_concept",
           "category./medicine/drug/drug_class",
           "made_of./food/nutrition_fact/nutrient",
           "medicine./medicine/medical_treatment/used_to_treat",
           "means_of_demise./chemistry/isotope_decay/decay_mode",
ralphk86 commented 9 years ago

There is a new tool, bidirectionalize_edges.py that adds the reverse of a specified edge, with a user defined new predicate.