Jarekt created this task. Jarekt added projects: MediaWiki-extensions-WikibaseClient, Wikibase-Lua, SDC General, Structured Data Engineering. Restricted Application added a subscriber: Aklapper. Restricted Application added projects: Wikidata, Structured-Data-Backlog.
TASK DESCRIPTION Extend mw.wikibase <https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getEntity> lua functions to allow accessing Structured Data on Commons (SDC) items (M-codes) in addition to Wikidata items (Q-codes). T223792 <https://phabricator.wikimedia.org/T223792> managed to extend `mw.wikibase.getEntity` function to work with SDC, but that is not true for other functions. For example mw.wikibase.getBestStatements <https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getBestStatements> does not work for SDC items (it might be related to the fact that SDC statements are stored in `entity.statements` structure while on Wikidata `entity.claims` is used). Other functions which do not seem to work on SDC: - mw.wikibase.getEntity() <https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getEntity> - without the item ID, for accessing properties connected to the current page - mw.wikibase.getEntityUrl() <https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getEntityUrl> - without the item ID. `getEntityUrl` with id works fine. - mw.wikibase.getEntityIdForCurrentPage <https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getEntityIdForCurrentPage> In general all mw.wikibase <https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getEntity> lua functions should be tested with SDC, even if some functions like mw.wikibase.getSitelink <https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getSitelink> might make no sense on SDC. mw:Extension:Wikibase_Client/Lua <https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua> should be updated with SDC info. TASK DETAIL https://phabricator.wikimedia.org/T237107 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jarekt Cc: Aklapper, Jarekt, darthmon_wmde, DannyS712, Nandana, JKSTNK, Lahi, PDrouin-WMF, Gq86, E1presidente, Ramsey-WMF, Cparle, Anooprao, SandraF_WMF, GoranSMilovanovic, QZanden, Tramullas, Acer, LawExplorer, Salgo60, Silverfish, _jensen, rosalieper, Susannaanas, Jane023, Wikidata-bugs, Base, matthiasmullie, aude, Ricordisamoa, Wesalius, Lydia_Pintscher, Fabrice_Florin, Raymond, Jdforrester-WMF, Steinsplitter, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
