-
Notifications
You must be signed in to change notification settings - Fork 27
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
Welsh Wikipedia links #2417
Comments
WikiData has these two links: https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q126852903 But oddly as the title, not URL. |
Right, that's the way WIkidata stores cross-wiki links, by site code ("cywiki") and label ("Kanishka Narayan"). You can also get things like Wikiquote ("enwikiquote") and Commons ("commonswiki"): https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q391437 I guess building the URL from the code and label is simple enough. In theory do we only need to store the Wikidata and build the desired URLs ourselves? |
I imagine we'd need to figure out how they slugify the titles and implement that. The other thing is: will we have WikiData IDs for everyone with >1 Wikipedia install? I don't have a good sense of how Wikipedia and WikiData interact in that way |
It is possible to have a Wikipedia page without a Wikidata item - this is an incomplete list from enwiki: https://en.wikipedia.org/wiki/Category:Articles_without_Wikidata_item Ultimately there's no reason why any missing Wikidata items couldn't be created - basically any person notable enough to have a Wikipedia should have a matching Wikidata. The linking is done from the Wikidata side: |
e.g. https://candidates.democracyclub.org.uk/person/116500 links to
https://en.wikipedia.org/wiki/Kanishka_Narayan
but there is also a article on the Welsh Wikipedia
https://cy.wikipedia.org/wiki/Kanishka_Narayan
The Wikipedia titles wouldn't always be the same so they would have to be stored separately
The text was updated successfully, but these errors were encountered: