lanjiuqing64 / KGdata

KG data for ODA
8 stars 0 forks source link

Query about the use of subgraph #2

Open leekum2018 opened 1 month ago

leekum2018 commented 1 month ago

A very exciting work!

Here I have a question about the use of subgraph. As mentioned in the paper (Section 3.2), you save the off-line subgraph for each dataset, I would like to know how I can access the subgraph for a certain example of QALD10-en? Is it correct to download the set of subgraphs in https://huggingface.co/datasets/CCaccept/Subgraph and then retrieve a subgraph using the question entity?

Thank you!

lanjiuqing64 commented 1 month ago

Thank you for your kind words and for your interest in our work!

Yes, you're correct. You can download the set of subgraphs from this link. The subgraph is stored in a format where the key is the question entity, and the corresponding values are triples representing 2- or 3-hop relationships within the subgraph. For example: "Q42311": [ ["Q42311", "P106", "Q30339659"], ["Q42311", "P166", "Q876882"], ["Q42311", "P21", "Q6581097"], .................. ] Here, the key "Q42311" is the question entity, and the triples are relationships connected to it within 2 or 3 hops.

Let me know if you need further assistance!