Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing sitelink info in wikipedia_links files #5

Open
Mark-L6n opened this issue Sep 19, 2023 · 1 comment
Open

Missing sitelink info in wikipedia_links files #5

Mark-L6n opened this issue Sep 19, 2023 · 1 comment

Comments

@Mark-L6n
Copy link

Mark-L6n commented Sep 19, 2023

Hi! Great project. I've been trying to extract the links to Wikipedias, and am guessing that this info should be in the wikipedia_links files, but is missing.
According to this example, WikiBase JSON, there should be info such as:

{
  "sitelinks": {
    "afwiki": {
      "site": "afwiki",
      "title": "New York Stad",
      "badges": []
    },
    "frwiki": {
      "site": "frwiki",
      "title": "New York City",
      "badges": []
    },
    "nlwiki": {
      "site": "nlwiki",
      "title": "New York City",
      "badges": [
        "Q17437796"
      ]
    }
}

This info is displayed in the Wikipedia section of a WikiData page.
However, the wikipedia_links files only contain this data:

qid: the QID of the entity
wiki_title: link to corresponding wikipedia entity

Ex:

{"qid":"Q23","wiki_title":"George Washington"}

So, there is no reference to the language of the wikipedia.
Is there any chance of Wikipedia sitelinks getting added to a future version?

@neelguha
Copy link
Owner

Hi! Thanks for flagging this. Just so I understand correctly, you'd like if the wikipedia_links objects contained the following data:

qid: the QID of the entity
wiki_title: link to corresponding wikipedia entity
language: language of wikipedia article

Apologies if I'm misunderstanding. If it's easier, the portion of code which creates the wikipedia objects can be found here–feel free to make a PR and I can merge it ASAP!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants