Wikibase
MediaWiki Wikibase extension
|
proposed
The Federated Properties MVP introduced a federatedPropertiesEnabled setting which enables a Wikibase instance (local wiki) to read all Properties from a remote Wikibase (source wiki). A wiki with this setting enabled can only use federated Properties and disallows the creation or use of any local Properties. Federated Properties v2 aims to make it possible for users to enable Federated Properties even if their Wikibase already contains data, so that they can choose to use both remote & local Properties to make statements.
To achieve that we need to be able to differentiate between local and federated Properties.
We considered two options:
The administrator of the local Wikibase needs to configure a prefix for the source wiki, which will be used only for federated properties. Local properties will not have a prefix.
Pros:
Cons:
Concept URIs can be set for any Wikibase and also have a default value. An example of referencing a federated property from Wikidata is http://www.wikidata.org/entity/P31
. The administrator of the local Wikibase needs to configure the concept URI for the source wiki in case it's not Wikidata.
Since concept URIs guarantee to end in the entity's ID we can think of them as prefixes. In the above example http://www.wikidata.org/entity/
is the prefix. This way we don't need to worry about parsing them to extract the entity ID.
Pros:
Cons:
Build source information into the Property IDs via Concept URIs, treating them like a prefix.
It's out of our control when/if URIs change. We acknowledge that this is a real problem and can potentially be reported by people who use the API and treat the URIs as URLs.