[Wikidata-bugs] [Maniphest] [Edited] T212069: API action=wbgetentities does not handle formatversion=2

2018-12-15 Thread Yurik
Yurik updated the task description. (Show Details)
CHANGES TO TASK DESCRIPTION...* `https://www.wikidata.org/w/api.php?action="" style="padding: 0 2px; color: #33; background: rgba(251, 175, 175, .7);">`
* `https://www.wikidata.org/w/api.php?action="" style="padding: 0 2px; color: #33; background: rgba(251, 175, 175, .7);">`

```lang=json...TASK DETAILhttps://phabricator.wikimedia.org/T212069EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: YurikCc: Anomie, Aklapper, Yurik, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Sethakill, dg711, _jensen, D3r1ck01, Wikidata-bugs, aude, jayvdb, Mbch331, Legoktm___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Created] T212069: API action=wbgetentities does not handle formatversion=2

2018-12-15 Thread Yurik
Yurik created this task.Yurik added projects: MediaWiki-API, Wikidata.Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTIONBoth of this requests return identical result, ignoring JSON v2:


https://www.wikidata.org/w/api.php?action="">
https://www.wikidata.org/w/api.php?action="">


{
"entities": {
"-1": {
"site": "enwiki",
"title": "Bug12345",
"missing": ""
}
},
"success": 1
}

expected for v2:

{
"entities": [
{
"site": "enwiki",
"title": "Bug12345",
"missing": true
}
],
"success": true
}TASK DETAILhttps://phabricator.wikimedia.org/T212069EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: YurikCc: Anomie, Aklapper, Yurik, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Sethakill, dg711, _jensen, D3r1ck01, Wikidata-bugs, aude, jayvdb, Mbch331, Legoktm___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


Re: [Wikidata] Query on scholarly article fails

2018-12-15 Thread Egon Willighagen
I round up from DOI/PubMed ID counts on https://tools.wmflabs.org/scholia/

Egon

On Sat, Dec 15, 2018 at 3:03 PM Fabrizio Carrai 
wrote:

> Excellent, I did some tests and with some cycles I already identified and
> classified several articles.
> I will have a look at your script in the  next days but I already have a
> question: the number of iterations is based on the total number of
> articles, how do you know that ?
>
> ---
> Fabrizio
>
> Il giorno sab 15 dic 2018 alle ore 10:18 Egon Willighagen <
> egon.willigha...@gmail.com> ha scritto:
>
>>
>> The approach I use is the following, see this (Bioclipse/Groovy) script:
>> https://gist.github.com/egonw/ca4c348b9a2d1116efcdb55fa85dd158
>>
>> It takes advantage of a combination Blazegraph SPARQL trick and breaking
>> up thing in batches of a certain size:
>>
>> SELECT ?art ?artLabel
>> WITH {
>> SELECT ?art WHERE {
>> ?art wdt:P31 wd:Q13442814
>> } LIMIT $batchSize OFFSET $offset
>> } AS %RESULTS {
>> INCLUDE %RESULTS
>> ?art wdt:P1476 ?artLabel .
>> MINUS { ?art wdt:P921 wd:$conceptQ }
>> FILTER (contains(lcase(str(?artLabel)), "$concept"))
>> }
>> where "$concept" is my search word in the title, and $batchSize and
>> $offset take care of the batching by the script. This script creates
>> QuickStatements.
>>
>> Mind you, I manually check the created statements, because in my domain
>> (biochem) a simple search results of false positives, hence the "blacklist"
>> in the script :)
>>
>> Egon
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Sat, Dec 15, 2018 at 10:13 AM Fabrizio Carrai <
>> fabrizio.car...@gmail.com> wrote:
>>
>>> Thanks Matthias,
>>> that's a pity. Your suggestion relies on the effective characterization
>>> of the item that,  at this writing time, is pretty poor for my interest.
>>> Could it be an idea to download all the "scholary articles", locally
>>> select  for the keyword of interest (e.g. "microgravity") and set the
>>> property P921 for all of them ? Quickstatements may be helpful for the last
>>> step, any suggestions for other tools ?
>>>
>>> Thanks
>>> Fabrizio
>>>
>>> Il giorno ven 14 dic 2018 alle ore 22:16 Matthias Erfurth <
>>> erfu...@gmx.de> ha scritto:
>>>
 Hi Fabrizio,
 unfortunately you can't fulltext search all the scholarly articles
  , you should better work
 with indexed properties, so
 you can query for other articles with microgravity as main subject ...
 With the ajax based wikidata search

 SELECT ?item
 WHERE {
 ?item wdt:P31 wd:Q13442814;
   wdt:P921 wd:Q48655.
 }

 Best regards,

 ciao matthias


 *Gesendet:* Freitag, 14. Dezember 2018 um 18:55 Uhr
 *Von:* "Fabrizio Carrai" 
 *An:* "Discussion list for the Wikidata project" <
 wikidata@lists.wikimedia.org>
 *Betreff:* Re: [Wikidata] Query on scholarly article fails
 Thanks again to Ettore, but I immediately found another timeout problem
 when I just added a FILTER to find all the articles with the word "biokis"
 in the title

 SELECT ?istanza_di ?instanza_diLabel WHERE {
   ?istanza_di wdt:P31 wd:Q13442814.
   ?istanza_di rdfs:label ?instanza_diLabel.
   FILTER((LANG(?instanza_diLabel)) = "en").
   FILTER(CONTAINS(LCASE(?instanza_diLabel), "biokis"))
 }
 LIMIT 100

 At least one article should be returned:
 https://www.wikidata.org/wiki/Q57202937
 but I got a timeout.

 Thanks to anybody that can help

 Fabrizio


 Il giorno ven 14 dic 2018 alle ore 10:12 Ettore RIZZA <
 ettoreri...@gmail.com> ha scritto:

> Hello Fabrizio,
>
> It seems that the problem comes from SERVICE wikibase:label. As said
> in another discussion, the query executes in less than one second if you 
> rewrite
> it in this way
> 
> .
>
> Cheers,
>
> Ettore Rizza
>
> Le ven. 14 déc. 2018 à 09:59, Fabrizio Carrai <
> fabrizio.car...@gmail.com> a écrit :
>
>> Hello all,
>> the following query ends with a timeot:
>>
>> SELECT ?istanza_di ?istanza_diLabel WHERE {
>>   SERVICE wikibase:label { bd:serviceParam wikibase:language
>> "[AUTO_LANGUAGE],en". }
>>   ?istanza_di wdt:P31 wd:Q13442814.
>> }
>> LIMIT 10
>>
>> Can anybody explain why ?
>> Thanks in advance
>>
>> --
>> *Fabrizio*
>> ___
>> Wikidata mailing list
>> Wikidata@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
> ___
> Wikidata mailing list
> 

Re: [Wikidata] Query on scholarly article fails

2018-12-15 Thread Fabrizio Carrai
Excellent, I did some tests and with some cycles I already identified and
classified several articles.
I will have a look at your script in the  next days but I already have a
question: the number of iterations is based on the total number of
articles, how do you know that ?

---
Fabrizio

Il giorno sab 15 dic 2018 alle ore 10:18 Egon Willighagen <
egon.willigha...@gmail.com> ha scritto:

>
> The approach I use is the following, see this (Bioclipse/Groovy) script:
> https://gist.github.com/egonw/ca4c348b9a2d1116efcdb55fa85dd158
>
> It takes advantage of a combination Blazegraph SPARQL trick and breaking
> up thing in batches of a certain size:
>
> SELECT ?art ?artLabel
> WITH {
> SELECT ?art WHERE {
> ?art wdt:P31 wd:Q13442814
> } LIMIT $batchSize OFFSET $offset
> } AS %RESULTS {
> INCLUDE %RESULTS
> ?art wdt:P1476 ?artLabel .
> MINUS { ?art wdt:P921 wd:$conceptQ }
> FILTER (contains(lcase(str(?artLabel)), "$concept"))
> }
> where "$concept" is my search word in the title, and $batchSize and
> $offset take care of the batching by the script. This script creates
> QuickStatements.
>
> Mind you, I manually check the created statements, because in my domain
> (biochem) a simple search results of false positives, hence the "blacklist"
> in the script :)
>
> Egon
>
>
>
>
>
>
>
>
>
>
> On Sat, Dec 15, 2018 at 10:13 AM Fabrizio Carrai <
> fabrizio.car...@gmail.com> wrote:
>
>> Thanks Matthias,
>> that's a pity. Your suggestion relies on the effective characterization
>> of the item that,  at this writing time, is pretty poor for my interest.
>> Could it be an idea to download all the "scholary articles", locally
>> select  for the keyword of interest (e.g. "microgravity") and set the
>> property P921 for all of them ? Quickstatements may be helpful for the last
>> step, any suggestions for other tools ?
>>
>> Thanks
>> Fabrizio
>>
>> Il giorno ven 14 dic 2018 alle ore 22:16 Matthias Erfurth 
>> ha scritto:
>>
>>> Hi Fabrizio,
>>> unfortunately you can't fulltext search all the scholarly articles
>>>  , you should better work with
>>> indexed properties, so
>>> you can query for other articles with microgravity as main subject ...
>>> With the ajax based wikidata search
>>>
>>> SELECT ?item
>>> WHERE {
>>> ?item wdt:P31 wd:Q13442814;
>>>   wdt:P921 wd:Q48655.
>>> }
>>>
>>> Best regards,
>>>
>>> ciao matthias
>>>
>>>
>>> *Gesendet:* Freitag, 14. Dezember 2018 um 18:55 Uhr
>>> *Von:* "Fabrizio Carrai" 
>>> *An:* "Discussion list for the Wikidata project" <
>>> wikidata@lists.wikimedia.org>
>>> *Betreff:* Re: [Wikidata] Query on scholarly article fails
>>> Thanks again to Ettore, but I immediately found another timeout problem
>>> when I just added a FILTER to find all the articles with the word "biokis"
>>> in the title
>>>
>>> SELECT ?istanza_di ?instanza_diLabel WHERE {
>>>   ?istanza_di wdt:P31 wd:Q13442814.
>>>   ?istanza_di rdfs:label ?instanza_diLabel.
>>>   FILTER((LANG(?instanza_diLabel)) = "en").
>>>   FILTER(CONTAINS(LCASE(?instanza_diLabel), "biokis"))
>>> }
>>> LIMIT 100
>>>
>>> At least one article should be returned:
>>> https://www.wikidata.org/wiki/Q57202937
>>> but I got a timeout.
>>>
>>> Thanks to anybody that can help
>>>
>>> Fabrizio
>>>
>>>
>>> Il giorno ven 14 dic 2018 alle ore 10:12 Ettore RIZZA <
>>> ettoreri...@gmail.com> ha scritto:
>>>
 Hello Fabrizio,

 It seems that the problem comes from SERVICE wikibase:label. As said in
 another discussion, the query executes in less than one second if you 
 rewrite
 it in this way
 
 .

 Cheers,

 Ettore Rizza

 Le ven. 14 déc. 2018 à 09:59, Fabrizio Carrai <
 fabrizio.car...@gmail.com> a écrit :

> Hello all,
> the following query ends with a timeot:
>
> SELECT ?istanza_di ?istanza_diLabel WHERE {
>   SERVICE wikibase:label { bd:serviceParam wikibase:language
> "[AUTO_LANGUAGE],en". }
>   ?istanza_di wdt:P31 wd:Q13442814.
> }
> LIMIT 10
>
> Can anybody explain why ?
> Thanks in advance
>
> --
> *Fabrizio*
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata

 ___
 Wikidata mailing list
 Wikidata@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikidata
>>>
>>>
>>>
>>> --
>>> *Fabrizio*
>>> ___ Wikidata mailing list
>>> Wikidata@lists.wikimedia.org
>>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>>> 

[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479879 merged by Addshore:
[mediawiki/extensions/Wikibase@REL1_30] Override requiresWrite in EditEntityAction

https://gerrit.wikimedia.org/r/479879TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479881 merged by Addshore:
[mediawiki/extensions/Wikibase@REL1_32] Override requiresWrite in EditEntityAction

https://gerrit.wikimedia.org/r/479881TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479880 merged by Addshore:
[mediawiki/extensions/Wikibase@REL1_31] Override requiresWrite in EditEntityAction

https://gerrit.wikimedia.org/r/479880TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479878 merged by Addshore:
[mediawiki/extensions/Wikibase@REL1_29] Override requiresWrite in EditEntityAction

https://gerrit.wikimedia.org/r/479878TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479881 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@REL1_32] Override requiresWrite in EditEntityAction

https://gerrit.wikimedia.org/r/479881TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479880 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@REL1_31] Override requiresWrite in EditEntityAction

https://gerrit.wikimedia.org/r/479880TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479878 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@REL1_29] Override requiresWrite in EditEntityAction

https://gerrit.wikimedia.org/r/479878TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479879 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@REL1_30] Override requiresWrite in EditEntityAction

https://gerrit.wikimedia.org/r/479879TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479877 merged by Addshore:
[mediawiki/extensions/Wikibase@REL1_32] Override requiresUnblock in EditEntityAction

https://gerrit.wikimedia.org/r/479877TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479876 merged by Addshore:
[mediawiki/extensions/Wikibase@REL1_31] Override requiresUnblock in EditEntityAction

https://gerrit.wikimedia.org/r/479876TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479875 merged by Addshore:
[mediawiki/extensions/Wikibase@REL1_30] Override requiresUnblock in EditEntityAction

https://gerrit.wikimedia.org/r/479875TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479874 merged by Addshore:
[mediawiki/extensions/Wikibase@REL1_29] Override requiresUnblock in EditEntityAction

https://gerrit.wikimedia.org/r/479874TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479877 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@REL1_32] Override requiresUnblock in EditEntityAction

https://gerrit.wikimedia.org/r/479877TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479876 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@REL1_31] Override requiresUnblock in EditEntityAction

https://gerrit.wikimedia.org/r/479876TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479875 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@REL1_30] Override requiresUnblock in EditEntityAction

https://gerrit.wikimedia.org/r/479875TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T210953: Wikidata is editable for blocked users

2018-12-15 Thread gerritbot
gerritbot added a comment.
Change 479874 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@REL1_29] Override requiresUnblock in EditEntityAction

https://gerrit.wikimedia.org/r/479874TASK DETAILhttps://phabricator.wikimedia.org/T210953EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TBolliger, gerritbotCc: gerritbot, TerraCodes, Anomie, Jalexander, jrbs, Tchanders, dmaza, TBolliger, Legoktm, Mooeypoo, aezell, dbarratt, MisterSynergy, Tarrow, acl*stewards, Trijnstel, Lucas_Werkmeister_WMDE, WMDE-leszek, Addshore, Lydia_Pintscher, abian, Aklapper, Sjoerddebruin, CucyNoiD, Nandana, NebulousIris, sbassett, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, SPoore, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, HJiang-WMF, LawExplorer, Lewizho99, JJMC89, Maathavan, _jensen, PEarleyWMF, D3r1ck01, RuyP, Jonas, dpatrick, Wong128hk, Luke081515, Bsadowski1, Wikidata-bugs, aude, GWicke, Bawolff, Dinoguy1000, Stype_and_Co.-WMF, Parent5446, Grunny, MaxSem, csteipp, Mbch331, Rxy, Jay8g, chasemp___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


Re: [Wikidata] Query on scholarly article fails

2018-12-15 Thread Egon Willighagen
The approach I use is the following, see this (Bioclipse/Groovy) script:
https://gist.github.com/egonw/ca4c348b9a2d1116efcdb55fa85dd158

It takes advantage of a combination Blazegraph SPARQL trick and breaking up
thing in batches of a certain size:

SELECT ?art ?artLabel
WITH {
SELECT ?art WHERE {
?art wdt:P31 wd:Q13442814
} LIMIT $batchSize OFFSET $offset
} AS %RESULTS {
INCLUDE %RESULTS
?art wdt:P1476 ?artLabel .
MINUS { ?art wdt:P921 wd:$conceptQ }
FILTER (contains(lcase(str(?artLabel)), "$concept"))
}
where "$concept" is my search word in the title, and $batchSize and $offset
take care of the batching by the script. This script creates
QuickStatements.

Mind you, I manually check the created statements, because in my domain
(biochem) a simple search results of false positives, hence the "blacklist"
in the script :)

Egon










On Sat, Dec 15, 2018 at 10:13 AM Fabrizio Carrai 
wrote:

> Thanks Matthias,
> that's a pity. Your suggestion relies on the effective characterization of
> the item that,  at this writing time, is pretty poor for my interest.
> Could it be an idea to download all the "scholary articles", locally
> select  for the keyword of interest (e.g. "microgravity") and set the
> property P921 for all of them ? Quickstatements may be helpful for the last
> step, any suggestions for other tools ?
>
> Thanks
> Fabrizio
>
> Il giorno ven 14 dic 2018 alle ore 22:16 Matthias Erfurth 
> ha scritto:
>
>> Hi Fabrizio,
>> unfortunately you can't fulltext search all the scholarly articles
>>  , you should better work with
>> indexed properties, so
>> you can query for other articles with microgravity as main subject ...
>> With the ajax based wikidata search
>>
>> SELECT ?item
>> WHERE {
>> ?item wdt:P31 wd:Q13442814;
>>   wdt:P921 wd:Q48655.
>> }
>>
>> Best regards,
>>
>> ciao matthias
>>
>>
>> *Gesendet:* Freitag, 14. Dezember 2018 um 18:55 Uhr
>> *Von:* "Fabrizio Carrai" 
>> *An:* "Discussion list for the Wikidata project" <
>> wikidata@lists.wikimedia.org>
>> *Betreff:* Re: [Wikidata] Query on scholarly article fails
>> Thanks again to Ettore, but I immediately found another timeout problem
>> when I just added a FILTER to find all the articles with the word "biokis"
>> in the title
>>
>> SELECT ?istanza_di ?instanza_diLabel WHERE {
>>   ?istanza_di wdt:P31 wd:Q13442814.
>>   ?istanza_di rdfs:label ?instanza_diLabel.
>>   FILTER((LANG(?instanza_diLabel)) = "en").
>>   FILTER(CONTAINS(LCASE(?instanza_diLabel), "biokis"))
>> }
>> LIMIT 100
>>
>> At least one article should be returned:
>> https://www.wikidata.org/wiki/Q57202937
>> but I got a timeout.
>>
>> Thanks to anybody that can help
>>
>> Fabrizio
>>
>>
>> Il giorno ven 14 dic 2018 alle ore 10:12 Ettore RIZZA <
>> ettoreri...@gmail.com> ha scritto:
>>
>>> Hello Fabrizio,
>>>
>>> It seems that the problem comes from SERVICE wikibase:label. As said in
>>> another discussion, the query executes in less than one second if you 
>>> rewrite
>>> it in this way
>>> 
>>> .
>>>
>>> Cheers,
>>>
>>> Ettore Rizza
>>>
>>> Le ven. 14 déc. 2018 à 09:59, Fabrizio Carrai 
>>> a écrit :
>>>
 Hello all,
 the following query ends with a timeot:

 SELECT ?istanza_di ?istanza_diLabel WHERE {
   SERVICE wikibase:label { bd:serviceParam wikibase:language
 "[AUTO_LANGUAGE],en". }
   ?istanza_di wdt:P31 wd:Q13442814.
 }
 LIMIT 10

 Can anybody explain why ?
 Thanks in advance

 --
 *Fabrizio*
 ___
 Wikidata mailing list
 Wikidata@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikidata
>>>
>>> ___
>>> Wikidata mailing list
>>> Wikidata@lists.wikimedia.org
>>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>>
>>
>>
>> --
>> *Fabrizio*
>> ___ Wikidata mailing list
>> Wikidata@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>> ___
>> Wikidata mailing list
>> Wikidata@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>>
>
>
> --
> *Fabrizio*
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>


-- 
Hi, do you like citation networks? Already 51% of all citations are
available  available for innovative new uses
. Join my in asking the American
Chemical Society to join the Initiative for Open Citations too