How can I get the Wikipedia URL of a wikibase:Item ID? Searching online I could only find how to do this using the Mediawiki API, but I was wondering if I can extract/generate URLs from the wikidata graph itself.
Thanks.
Hi Laura,
I hope I understand you correctly:
schema:about connects Wikidata item with Wikipedias, e.g.,
Wikidata Query Service: "SELECT * WHERE { ?page schema:about wd:Q80 }"
The triple is also available directly from the MediaWiki entity:
https://www.wikidata.org/entity/Q80.nt
Finn Årup Nielsen http://people.compute.dtu.dk/faan/
On 11/11/2017 11:00 PM, Laura Morales wrote:
How can I get the Wikipedia URL of a wikibase:Item ID? Searching online I could only find how to do this using the Mediawiki API, but I was wondering if I can extract/generate URLs from the wikidata graph itself.
Thanks.
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
schema:about connects Wikidata item with Wikipedias, e.g.,
Wikidata Query Service: "SELECT * WHERE { ?page schema:about wd:Q80 }"
The triple is also available directly from the MediaWiki entity:
Thank you! I was looking for "outgoing" links from a wikidata item to their corresponding page, but if I understand correctly links point the other way around (from a schema:Article to a wikibase:Item). I think I've got this. Thanks.
On Nov 12, 2017 06:01, "Laura Morales" lauretas@mail.com wrote:
How can I get the Wikipedia URL of a wikibase:Item ID? Searching online I could only find how to do this using the Mediawiki API, but I was wondering if I can extract/generate URLs from the wikidata graph itself.
Thanks.
Hi Laura,
I am not sure where you are trying to do this and how but https://www.wikidata.org/wiki/Special:GoToLinkedPage might be useful. You can call it with an item ID and a wiki code in the URL and it will redirect you to the article on that wiki.
Cheers Lydia
_______________________________________________ Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
I am not sure where you are trying to do this and how but https://www.wikidata.org/wiki/Special:GoToLinkedPage%5Bhttps://www.wikidata....] might be useful. You can call it with an item ID and a wiki code in the URL and it will redirect you to the article on that wiki.
Thanks Lydia. I was trying to retrieve the wikipedia page from the RDF dump. "schema:about" seems to be the right property.