Package org.wikidata.wdtk.examples
Class SitelinksExample
java.lang.Object
org.wikidata.wdtk.examples.SitelinksExample
This class demonstrates how to get access to information about sitelinks in
Wikidata.org. The data generally uses keys like "enwiki" to identify sites.
To find out what these keys mean, Wikidata Toolkit can be used to download
and process the dump of the MediaWiki sites table. The resulting
Sites
object can be used to resolve links to other sites, and also
can be applied to SiteLink
objects as found in the Wikidata data.
Other information obtained from the sites table includes the site language,
whether it is a MediaWiki site, and which group it has been assigned to. The
groups are used to define which sites can be used for entering site links in
Wikibase, but the sites table does not tell us which groups are currently
enabled for site links.- Author:
- Markus Kroetzsch
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SitelinksExample
public SitelinksExample()
-
-
Method Details
-
main
- Throws:
IOException
-