Page MenuHomePhabricator

[Investigation] How to refer to entities that have the same IDs as the source wikibase entities
Closed, ResolvedPublic

Description

  • How to solve this problem internally in the code (developer problem)
  • How to solve this in the action API (user-facing problem)
  • How to solve this in the UI/entity page (user-facing problem) - This option is out of scope because it needs UX input.

Event Timeline

I dug up the original ticket for this from 2016 which has some interesting thoughts on the topic: T133381. The use case we have now is different from what the one this ticket was created for, but a few of the points are still relevant.

Change 700481 had a related patch set uploaded (by Tonina Zhelyazkova; author: Tonina Zhelyazkova):

[mediawiki/extensions/Wikibase@master] FP: Add ADR 19 - Add source information to Property IDs

https://gerrit.wikimedia.org/r/700481

I'm trying to think of the possibilities for "how to solve this in the action api".

I think if we are to use entity prefixes there we might also need to expose them in WikibaseManifest or somewhere else.

Otherwise how can an api client wishing make statements using properties about wikidata.beta.wmflabs.org know that on this wiki the prefix is wikidatabeta rather than wdbeta?

Change 700481 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] FP: Add ADR 19 - Add source information to Property IDs

https://gerrit.wikimedia.org/r/700481