About this board

Previous discussion was archived at 2013 2014 2015 2016

Multichill (talkcontribs)
Pasleim (talkcontribs)

I know that paintings meet notability criteria, but these items I deleted were created by globally blocked user Alec Smithson. This user is known to add patently false information and spurious references. You can find a detailed description of their behaviour on en:Wikipedia:Long-term abuse/Alec Smithson.

Multichill (talkcontribs)

That's not a valid reason for deletion. Plenty of these paintings are linked to images and have been edited by other editors.

Reply to "Painting deletions"

Updating Template:Property uses

13
Daniel Mietchen (talkcontribs)

Hi Pasleim, the page Template:Property uses has not been updated in a while. Can you take another look please? Thanks!

Daniel Mietchen (talkcontribs)

Thanks for the update, but it seems that some properties (e.g. P50, P921) were missed.

Daniel Mietchen (talkcontribs)

Looks like it works fine again thanks!

Pasleim (talkcontribs)

It is not yet working fine. It takes more than 12h to retrieve all data and to make one update. This is far too inefficient for daily updates.

I'm now investigating a new method by querying linked data fragments so that an update only takes a few minutes.

GZWDer (talkcontribs)
GZWDer (talkcontribs)
GZWDer (talkcontribs)

Example script:

properties=[i[14:] for i in requests.get("https://tools.wmflabs.org/pagepile/api.php?id=29886&action=get_data&doit&format=text").text.split("\n")]

uses={}
for i in properties:
    uses[i]=requests.get("https://www.wikidata.org/w/api.php?action=query&format=json&list=search&srsearch=linksto%3AProperty%3A"+i+"&srnamespace=0&srlimit=1").json()['query']['searchinfo']['totalhits']

such a script will still take four hours to complete (~2s for each query), but queries may be parallelized.

Notes srnamespace=0 means searching main namespace only. You may want to search main, property and lexeme (srnamespace=0|120|146)

Pasleim (talkcontribs)

I did not check each number, but those numbers I checked looked correct.

Can you point me to those number which are obviously incorrect?

GZWDer (talkcontribs)
Pasleim (talkcontribs)
GZWDer (talkcontribs)

hmm - this means number of different **usage** of this property, where the template was about number of different item+property+lexemes that use this property - this is two different statistics; if an item uses a property 10 times, previously it only count once, not it counts ten times.

Multichill (talkcontribs)

While you're at it, can you sort the output by property id and add a newline before each pipe? Only makes it slightly larger, but much easier to read (and debug).

Pasleim (talkcontribs)

good idea -> done

Reply to "Updating Template:Property uses"

The International Museum Day Wikidata Competition 2020 – Congratulations!

3
Raimund Liebert (WMAT) (talkcontribs)
Edoderoo (talkcontribs)

Congratulations!

Reply to "The International Museum Day Wikidata Competition 2020 – Congratulations!"
Edoderoo (talkcontribs)

Why did you create Q94385812 while the page should be connected to Q10295400?

Pasleim (talkcontribs)

This should not have happened and was caused by an error in my SQL query.

I will check soon whether more items are affected.

Edoderoo (talkcontribs)

No problem ... things will improve once they get mentioned ;-)

Edoderoo (talkcontribs)

Seen the improvement done ! another task we do not have to do manually ;-) Thansk.

Reply to "Hidden"
Blackcat (talkcontribs)

Hello Pasleim, I noticed that when I try to harvest templates in the body of the article, the search is unsuccesful. Or better, the tool finds the inclusions (see the search for parametre "1" in the template: it:template:DecoratoCONI), but then is unable to find it when I run a demo for collecting the value of that parametre; the parsing was succesfull only in one article, (Giovanni Giungato) because the template is not within the body of the article but on the footer, under "external links" section. Is that a bug or a feature?

Pasleim (talkcontribs)

The problem is that the template is used in references.

References are ignored by HarvestTemplates because the topic of the reference may not be the same as th topic of the article.

Blackcat (talkcontribs)

Ok, thank you. Is there another way to collect the value of a template field from a given article?

Reply to "Template not found"

Problem with Recent deaths reports...

3
Hsarrazin (talkcontribs)

see here Wikidata:Database_reports/Deaths_at_Wikipedia ...

did your bot have a problem, or the recent changes on mw provoked this... ?

anyway, thanks for what you can do to fix it... this is really a useful tool, that I use regularly :)

Pasleim (talkcontribs)

I will try to fix it with the over-next update. The next update is already processing and I can't change the code anymore.

Hsarrazin (talkcontribs)

never mind... it's not an emergency :)

Thanks for everything...

Reply to "Problem with Recent deaths reports..."
Xaris333 (talkcontribs)
Pasleim (talkcontribs)

done

Reply to "Change qualifier"
Epìdosis (talkcontribs)

Hi! Can I ask you a question about HarvestTemplates? The parameter "Remove prefix" supports only single strings (e.g. remove "page/": so "page/1" becomes "1", "page/244" becomes "244" etc.) or also variables (e.g. remove all things before "/" and "/" itself: so "jack/2445" becomes "2445", "luke/746" becomes "746" etc.)? Thank you very much!

Epìdosis (talkcontribs)

Any possibility? Thanks again!

Pasleim (talkcontribs)

I will add that to the new version of HarvestTemplates which I'm currently writting.

Reply to "HarvestTemplates - remove prefix"

adding a constraint to Recendeaths ?

1
Hsarrazin (talkcontribs)

Hello Pasleim,

do you think it would be possible to prevent adding a death date when date is in the future on the date of addition, like here ?

It help detect vandalism and secure the tool a little more, even if I am usually very careful with young people :)

Reply to "adding a constraint to Recendeaths ?"
Bouzinac (talkcontribs)
Pasleim (talkcontribs)

I will add that feature to the next version of the tool.

Meanwhile you can change the status of the symmatric constraint to suggestion constraint (Q62026391). The tool will then not check the constraint.

Reply to "Show the add"