Wikibase/Federation
Overview
[edit]In brief, federation means sharing information between Wikibase instances (very much including Wikidata) in order to broaden the base of available data.
Expanding federation and interconnection between Wikibases is part of Wikimedia Deutschland's 2021 Linked Open Data strategy.
Federation takes many forms; misconceptions or presumptions about the term can lead to confusion. There's a detailed article on federated knowledge graphs that can serve as a good primer on the high-level concepts around federation.
Below we lay out some concrete types of federation and explain whatâs currently available.
Federated querying
[edit]The federated query is a feature of SPARQL that allows your search to include multiple endpoints.
Federated SPARQL querying works across Wikibase instances. You can see the list of federation endpoints used by Wikidata here.
See our introduction to federated querying to get started.
The Wikibase registry also has some useful information, including some ideas for conventions that facilitate federated querying, such as the "same-as" property. (See the Wikibase FAQ for more on the "same-as" property.)
Here are some examples of federated querying:
- An interesting blog post that demonstrates some federated querying in the context of the Wikibase registry
- A video example of the Wikibase from National Library of the Czech Republic federating with Wikidata
- A video example of Wikidata federating with linkedgeodata.org
- Examples of Wikidata federating with different endpoints:
- https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:SPARQL_query_service/Federated_queries
- https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:SPARQL_query_service/queries/examples (text-search for 'federated query')
- https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:SPARQL_query_service/queries/examples/advanced#Federation
Federation and Wikidata
[edit]Instead of creating a set of properties from scratch on a new instance of Wikibase, you can configure a new Wikibase instance to obtain a robust, living and constantly updated property set from Wikidata.
We call this feature Federated Properties. Read more about this feature in its component document and its Phabricator project. (There are some caveats; this feature has limitations and is currently for testing only.)
What itâs not
[edit]Federating with Wikidataâs properties doesnât amount to mirroring Wikidata. Though some want to do just that in order to overcome rate limits, and dumps are produced regularly, such an endeavor is by no means an easy task and likely wonât accomplish what youâre aiming for.
Two-way federation
[edit]Two-way federation of data between Wikibase instances is not yet implemented and probably a long way off.[clarification needed] The aforementioned Federated Properties project is the first step of a longer journey in this direction.