DOI: 10.5281/zenodo.3840621
title: Wikidata dump extension (sitelinks)

description: The dataset contains mappings between Wikidata entities and Wikipedia sections. The mappings come in addition to the existing Wikidata sitelinks referencing Wikipedia pages. The creation of the present dataset stems from the observation that only a fraction of Wikidata entities has a corresponding Wikipedia article in any language (we refer to the remaining entities, without an article, as orphans). However, a substantial number of orphan entities are indeed available in Wikipedia, but not at the page level; orphan entities can be described within existing Wikipedia articles in the form of sections, subsections, and paragraphs of a more generic concept or fact. The dataset provides a fine-grained mapping between Wikidata orphan entities and Wikipedia (sub)-sections. Mappings are provided for 15 languages: Arabic, Chinese, Dutch, English, French, German, Italian, Japanese, Polish, Portuguese, Russian, Spanish, Swedish, Ukrainian, Vietnamese. The dataset is available in JSON and RDF formats and complies with the Wikibase data model. In the JSON representation, an entity contains two fields: <em>id</em> (the unique identifier of an entity) and <em>sitelinks</em> (links to Wikipedia pages). Each sitelink record comprises three fields:<em> site, title,</em> and <em>url.</em> A section title is appended to the page title separated with # symbol. Such a compound title is then URL-encoded and added to the URL path. Following the Wikidata guidelines, each entity is encoded as a single line. Example: <pre><code class="language-json">{ "id": "Q3320792", "sitelinks": { "dewiki": { "site": "dewiki", "title": "Orestie#Agamemnon", "url": "https://de.wikipedia.org/wiki/Orestie#Agamemnon" }, "frwiki": { "site": "frwiki", "title": "Orestie#''Agamemnon''", "url": "https://fr.wikipedia.org/wiki/Orestie#Agamemnon" }, "enwiki": { "site": "enwiki", "title": "Aeschylus#''Agamemnon''", "url": "https://en.wikipedia.org/wiki/Aeschylus#Agamemnon" } } }</code></pre> The RDF dump is serialized using the Turtle format and stores nodes describing Wikipedia links. Section titles are added in the same manner as described above. Example: <pre><code>&lt;https://de.wikipedia.org/wiki/Orestie#Agamemnon&gt; a schema:Article ; schema:about wd:Q3320792 ; schema:inLanguage "de" ; schema:isPartOf &lt;https://de.wikipedia.org/&gt; ; schema:name "Orestie#Agamemnon"@de . &lt;https://de.wikipedia.org/&gt; wikibase:wikiGroup "wikipedia" . &lt;https://fr.wikipedia.org/wiki/Orestie#Agamemnon&gt; a schema:Article ; schema:about wd:Q3320792 ; schema:inLanguage "fr" ; schema:isPartOf &lt;https://fr.wikipedia.org/&gt; ; schema:name "Orestie#''Agamemnon''"@fr . &lt;https://fr.wikipedia.org/&gt; wikibase:wikiGroup "wikipedia" . &lt;https://en.wikipedia.org/wiki/Aeschylus#Agamemnon&gt; a schema:Article ; schema:about wd:Q3320792 ; schema:inLanguage "en" ; schema:isPartOf &lt;https://en.wikipedia.org/&gt; ; schema:name "Aeschylus#''Agamemnon''"@en . &lt;https://en.wikipedia.org/&gt; wikibase:wikiGroup "wikipedia" .</code></pre>
description: The source code is available on GitHub: https://github.com/eXascaleInfolab/WikidataSectionLinks