[Pywikipedia-bugs] [Maniphest] [Commented On] T173195: Implement federated Wikibase in Pywikibot

2023-01-03 Thread gerritbot
gerritbot added a comment.


  Change 871226 **merged** by jenkins-bot:
  
  [pywikibot/core@master] [FEAT] Support federated Wikibase
  
  https://gerrit.wikimedia.org/r/871226

TASK DETAIL
  https://phabricator.wikimedia.org/T173195

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: matej_suchanek, David_Haskiya_WMSE, Ladsgroup, daniel, WMDE-leszek, 
zhuyifei1999, Lydia_Pintscher, SandraF_WMF, Aklapper, Lokal_Profil, 
PokestarFan, pywikibot-bugs-list, Multichill, Adamm71, Jersione, Hellket777, 
LisafBia6531, Astuthiodit_1, 786, Biggs657, karapayneWMDE, Invadibot, 
PotsdamLamb, GFontenelle_WMF, Jyoo1011, maantietaja, FRomeo_WMF, JohnsonLee01, 
Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, CBogen, ItamarWMDE, Un1tY, 
Khutuck, Nintendofan885, Akuckartz, Zkhalido, Hook696, Kent7301, joker88john, 
Viztor, CucyNoiD, Nandana, JKSTNK, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, 
Lahi, Gq86, Af420, E1presidente, Ramsey-WMF, Cparle, Bsandipan, 
GoranSMilovanovic, QZanden, Tbscho, MayS, Tramullas, Acer, LawExplorer, 
Framawiki, Salgo60, Lewizho99, Mdupont, JJMC89, Maathavan, Silverfish, Dvorapa, 
_jensen, rosalieper, Altostratus, Neuronton, Avicennasis, Scott_WUaS, 
Susannaanas, Fuzheado, mys_721tx, Jane023, Wikidata-bugs, Xqt, Base, 
matthiasmullie, aude, Daniel_Mietchen, jayvdb, Ricordisamoa, Wesalius, Raymond, 
Masti, Alchimista, Steinsplitter, Mbch331
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T173195: Implement federated Wikibase in Pywikibot

2022-12-23 Thread gerritbot
gerritbot added a comment.


  Change 871226 had a related patch set uploaded (by Matěj Suchánek; author: 
Matěj Suchánek):
  
  [pywikibot/core@master] [FEAT] Support federated Wikibase
  
  https://gerrit.wikimedia.org/r/871226

TASK DETAIL
  https://phabricator.wikimedia.org/T173195

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: matej_suchanek, David_Haskiya_WMSE, Ladsgroup, daniel, WMDE-leszek, 
zhuyifei1999, Lydia_Pintscher, SandraF_WMF, Aklapper, Lokal_Profil, 
PokestarFan, pywikibot-bugs-list, Multichill, Astuthiodit_1, karapayneWMDE, 
Invadibot, PotsdamLamb, GFontenelle_WMF, Jyoo1011, maantietaja, FRomeo_WMF, 
JohnsonLee01, SHEKH, Dijkstra, CBogen, ItamarWMDE, Khutuck, Nintendofan885, 
Akuckartz, Zkhalido, Viztor, Nandana, JKSTNK, Wenyi, Lahi, Gq86, E1presidente, 
Ramsey-WMF, Cparle, GoranSMilovanovic, QZanden, Tbscho, MayS, Tramullas, Acer, 
LawExplorer, Salgo60, Mdupont, JJMC89, Silverfish, Dvorapa, _jensen, 
rosalieper, Altostratus, Avicennasis, Scott_WUaS, Susannaanas, Fuzheado, 
mys_721tx, Jane023, Wikidata-bugs, Xqt, Base, matthiasmullie, aude, 
Daniel_Mietchen, jayvdb, Ricordisamoa, Wesalius, Raymond, Masti, Alchimista, 
Steinsplitter, Mbch331
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T173195: Implement federated Wikibase in Pywikibot

2020-05-26 Thread matej_suchanek
matej_suchanek added a comment.


  With some refactors done, this is the last thing that Pywikibot doesn't 
support yet.
  
  > Not sure what we have to do exactly for it,.
  
  Perhaps let's outline, where we want to get:
  
  
  
  - We want to query associated mediainfo objects, similarly to Wikidata items 
associated with articles. Specifically, we want this to work / not to break:
  
import pywikibot
site = pywikibot.Site('commons', 'commons')
page = pywikibot.Page(site, 'Wikipedia')
item = page.data_item()  # pywikibot.ItemPage(wikidata, 'Q52')
file = pywikibot.FilePage(file_repo, 'Wikipedia-logo-v2.svg')
file_item = file.data_item()  # an object for M10337301
  
  
  
  - We want to load data from mediainfo objects and this data must correctly 
refer to its origin:
  
import pywikibot

file = pywikibot.FilePage(file_repo, 'Würfelzucker_--_2018_--_3564.jpg')
file_item = file.data_item()  # an object for M7101
caption = file_item.get()['labels']['en']  # 'Sugar cubes (2018)'
depicts = file_item.statements['P180'][0].getTarget()  # 
pywikibot.ItemPage(wikidata, 'Q1042920')
  
  
  
  - We want to save only data which refers to appropriate sites:
  
import pywikibot

file_repo = pywikibot.Site('commons', 'commons')
data_repo = pywikibot.Site('wikidata', 'wikidata')

file = pywikibot.FilePage(file_repo, 'FooBar.jpg')
file_data = file.data_item()

item = pywikibot.ItemPage(data_repo, 'Q146')
depicts = pywikibot.Claim(data_repo, 'P180')
depicts.setTarget(item)

file_data.addClaim(depicts)
  
  (Seems nobody cared about this yet, I was just able to save a claim on 
Wikidata 

 with Q1 constructed as `pywikibot.ItemPage(pywikibot.Site('test', 'wikidata'), 
'Q1')`.)
  
  
  
  Data from API doesn't seem to indicate the provenance 

 and so does general information from API 
,
 so we have to hardcode this to our "family files". Either way, Commons has to 
become `DataSite` in Pywikibot and `DataSite` will get new methods for 
determining the repository. They will be useful for eg. `Claim` objects for 
setting or validating the repository.

TASK DETAIL
  https://phabricator.wikimedia.org/T173195

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: matej_suchanek
Cc: matej_suchanek, David_Haskiya_WMSE, Ladsgroup, daniel, WMDE-leszek, 
zhuyifei1999, Lydia_Pintscher, SandraF_WMF, Aklapper, Lokal_Profil, 
PokestarFan, pywikibot-bugs-list, Multichill, JohnsonLee01, Dijkstra, CBogen, 
Zkhalido, darthmon_wmde, Viztor, Nandana, JKSTNK, Wenyi, Lahi, PDrouin-WMF, 
Gq86, E1presidente, Ramsey-WMF, Cparle, Anooprao, GoranSMilovanovic, QZanden, 
Tbscho, MayS, Tramullas, Acer, LawExplorer, Salgo60, Mdupont, JJMC89, 
Silverfish, Dvorapa, _jensen, rosalieper, Altostratus, Avicennasis, Scott_WUaS, 
Susannaanas, mys_721tx, Jane023, Wikidata-bugs, Base, matthiasmullie, aude, 
jayvdb, Ricordisamoa, Wesalius, Fabrice_Florin, Raymond, Masti, Alchimista, 
Steinsplitter, Mbch331, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T173195: Implement federated Wikibase in Pywikibot

2017-10-22 Thread Multichill
Multichill added a comment.
Why is this moved to upstream? Nothing needs to be done there, we just need to implement it.TASK DETAILhttps://phabricator.wikimedia.org/T173195EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Ladsgroup, daniel, WMDE-leszek, zhuyifei1999, Lydia_Pintscher, SandraF_WMF, Aklapper, Lokal_Profil, PokestarFan, pywikibot-bugs-list, Multichill, E1presidente, Ramsey-WMF, Jmmuguerza, GoranSMilovanovic, Magul, QZanden, Tbscho, MayS, Acer, Mdupont, JJMC89, Avicennasis, Susannaanas, Wikidata-bugs, PKM, Base, matthiasmullie, aude, jayvdb, Ricordisamoa, Dalba, Fabrice_Florin, Raymond, Masti, Alchimista, Steinsplitter, Mbch331, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T173195: Implement federated Wikibase in Pywikibot

2017-08-15 Thread Ladsgroup
Ladsgroup added a comment.
AFAIK, the API works just fine on our side. pywikibot only needs implementation (which can be quite difficult)TASK DETAILhttps://phabricator.wikimedia.org/T173195EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: LadsgroupCc: Ladsgroup, daniel, WMDE-leszek, zhuyifei1999, Lydia_Pintscher, SandraF_WMF, Aklapper, Lokal_Profil, PokestarFan, pywikibot-bugs-list, Multichill, GoranSMilovanovic, Magul, QZanden, Tbscho, MayS, Acer, Mdupont, JJMC89, Avicennasis, Susannaanas, Izno, Yann, Wikidata-bugs, PKM, Base, matthiasmullie, aude, jayvdb, Ricordisamoa, Dalba, Fabrice_Florin, Raymond, Masti, Alchimista, Mbch331, Rxy, Tgr___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs