xwhan / One-shot-Relational-Learning

Code for One-shot Relational Learning for Knowledge Graphs (EMNLP18)
Apache License 2.0
240 stars 42 forks source link

entity candidate of Wiki data #5

Closed chuxuzhang closed 5 years ago

chuxuzhang commented 5 years ago

Hi Wenhan,

May I ask how do you generate entity candidate of Wiki data? Where is the instance_of file in data? Thanks.

xwhan commented 5 years ago

Hi Chuxu,

As mentioned in the paper, the candidate entities are the entities that have the same type as the answer entity (Section 3.1). To find the type of an entity, we look up the "instance_of" relation triples. The wikidata ID for "instance of " is P31. You can get the raw wikidata dump and get all the triples with P31. That's how we get the instance_of file.

Best of luck,

chuxuzhang commented 5 years ago

understand, thanks.