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

Welsh Wikipedia links #2417

Open
sjorford opened this issue Jul 5, 2024 · 4 comments
Open

Welsh Wikipedia links #2417

sjorford opened this issue Jul 5, 2024 · 4 comments

Comments

@sjorford
Copy link
Contributor

sjorford commented Jul 5, 2024

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

@symroe
Copy link
Member

symroe commented Jul 11, 2024

WikiData has these two links:

https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q126852903

But oddly as the title, not URL.

@sjorford
Copy link
Contributor Author

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?

@symroe
Copy link
Member

symroe commented Jul 12, 2024

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

@sjorford
Copy link
Contributor Author

sjorford commented Jul 12, 2024

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:

image

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