Coder Social home page Coder Social logo

listeria_rs's People

Contributors

arcstur avatar magnusmanske avatar mribrahem avatar tholme avatar zanhecht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

listeria_rs's Issues

Listeria will not update for "list of lists" on Wikidata

Message from update page:
Trying to update Wikidata:WikiProject_sum_of_all_paintings/Catalog/Paintings_per_catalog...

./target/release/main 'www.wikidata.org' 'Wikidata:WikiProject_sum_of_all_paintings/Catalog/Paintings_per_catalog'

Done.
Return to Wikidata:WikiProject_sum_of_all_paintings/Catalog/Paintings_per_catalog

Also, check out the current bot status!

Status: OK
I checked the query in case the problem is a timeout, but it works. Also another list of lists (Hofstede de Groot catalogs) does update. For the problem list, see https://www.wikidata.org/wiki/Wikidata:WikiProject sum of all paintings/Catalog/Paintings per catalog

Lists not updating

Language issues

Some columns (like Street address, here https://en.wikipedia.org/wiki/User%3ADrThneed%2FDelisted_heritage_buildings) appear with a language tag at the front, is there a way for me to get rid of this?

This may or may not related to a second issue with language. In this table (https://en.wikipedia.org/wiki/User%3ADrThneed%2FCritteroftheWeek), Taxon common name P1843 is given in every language it is entered in, I need a way to limit it to English only if possible. I tried setting language=en but it made no difference (documentation suggests that only affects label and description language).

Lists not updating, or, manual update status does not indicate the SPARQL times out

Use of variable starting with uppercase prevents data being used in column

Problem is evidenced on versions of https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Women_in_Red/Missing_articles_by_dictionary/Grove_Art

The SPARQL in the query selects a variable, which is then used as a column.

When the variable name is ?entry all is fine - desired values appear in the column.

When the variable name is ?Entry the column is blank.

See https://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_Women_in_Red/Missing_articles_by_dictionary/Grove_Art&action=history

variable name set to ?entry in 00:05, 13 November 2020
Listeria populates column in 00:06, 13 November 2020 update
variable name set to ?Entry in 00:24, 13 November 2020
Listeria blanks column in 00:24, 13 November 2020 update

Sections by binded variable not working anymore

See this edit:

https://lv.wikipedia.org/w/index.php?title=Valsts_aizsarg%C4%81jamie_kult%C5%ABras_pieminek%C4%BCi_Balvu_novad%C4%81&diff=3322163&oldid=3321163&diffmode=source

Query used:
https://query.wikidata.org/#SELECT%20%09%0A%09%3Fitem%20%3Fname%20%3Flat%20%3Flong%20%3Ftypelabel%20%3Fvaid%20%3Fyear%20%3Fimage%20%3Fcommonscat%20%3Fmunicipality%0A%09%3Fdistrict%20%3Flocality%20%3Fcomplex%20%3Fregion%20%3Faddress%20%3Fwikipediauri%20%3Fextlink%20%3Fmunwiki%0AWHERE%0A%7B%0A%09VALUES%20%3FcurrList%20%7B%20wd%3AQ20565700%20%7D%20.%0A%09VALUES%20%3FcurrNovads%20%7B%20wd%3AQ2018672%20%7D%20.%0A%09%3FcurrNovads%20wdt%3AP300%20%3Fregion%20.%0A%09%3Fitem%20wdt%3AP2817%20%3FcurrList%20.%0A%09%3Fitem%20wdt%3AP2494%20%3Fvaid%20.%0A%09%3Fitem%20wdt%3AP1435%20%3Ftype%20.%0A%09%3Fitem%20wdt%3AP131%20%3Fmunid.%0A%09%3Fmunid%20wdt%3AP131%20%3Fupmunid%20.%20%20%0A%09%3Fmunid%20wdt%3AP131%2a%20%3FcurrNovads%20.%0A%09%3Fupmunid%20wdt%3AP31%20%3Fupmuntype%20.%20%20%0A%09BIND%20%28%20IF%20%28%20%28%20%3Fupmuntype%20%3D%20wd%3AQ2577184%29%20%2C%20%3Fupmunid%20%2C%20%3Fmunid%20%29%20%20AS%20%3Fnovads%20%29%20.%0A%09%3Fmunsitelink%20schema%3Aabout%20%3Fmunid%20.%0A%09%3Fmunsitelink%20schema%3AinLanguage%20%22lv%22%20.%0A%09BIND%28STRAFTER%28str%28%3Fmunsitelink%29%2C%20%22lv.wikipedia.org%2Fwiki%2F%22%29%20AS%20%3Fmunwiki%29%20.%0A%09OPTIONAL%20%7B%20%3Fitem%20wdt%3AP373%20%3Fcommonscat%20%7D%20.%0A%09OPTIONAL%20%7B%20%3Fitem%20wdt%3AP2795%20%3Flocality%7D%20.%0A%09OPTIONAL%20%7B%20%3Fitem%20wdt%3AP361%20%3Fcomplex%20%7D%20.%0A%09OPTIONAL%20%7B%20%3Fitem%20p%3AP571%20%3Finception%20.%20%3Finception%20pq%3AP1932%20%3Fyear%20%7D%20.%0A%09OPTIONAL%20%7B%20%3Fitem%20wdt%3AP18%20%3Fpic%20.%20BIND%28STRAFTER%28str%28%3Fpic%29%2C%20%22Special%3AFilePath%2F%22%29%20AS%20%3Fimage%29%20.%20%7D%0A%09OPTIONAL%20%7B%20%3Fitem%20wdt%3AP856%20%3Fextlink%20%7D%20.%0A%09OPTIONAL%20%7B%20%3Fitem%20wdt%3AP6375%20%3Faddress%20%7D%20.%0A%09OPTIONAL%20%7B%20%3Fitem%20wdt%3AP625%20%3Fcoord%20.%0A%09%09%3Fitem%20p%3AP625%20%3Fcoordinate%20.%0A%09%09%3Fcoordinate%20psv%3AP625%20%3Fcoordinate_node%20.%0A%09%09%3Fcoordinate_node%20wikibase%3AgeoLatitude%20%3Flat%20.%0A%09%09%3Fcoordinate_node%20wikibase%3AgeoLongitude%20%3Flong%20.%20%7D%0A%09OPTIONAL%20%7B%20%3Fsitelink%20schema%3Aabout%20%3Fitem%20.%20%3Fsitelink%20schema%3AinLanguage%20%22lv%22%20%0A%09%09BIND%28strafter%28str%28%3Fsitelink%29%2C%22%2Fwiki%2F%22%29%20as%20%3Fwikipediauri%29%20%7D%0A%09%3Fitem%20rdfs%3Alabel%20%3Fname%20.%20FILTER%28lang%28%3Fname%29%3D%22lv%22%29%0A%09%3Ftype%20rdfs%3Alabel%20%3Ftypelabel%20.%20FILTER%28lang%28%3Ftypelabel%29%3D%22lv%22%29%0A%09%3Fmunid%20rdfs%3Alabel%20%3Fmunicipality%20.%20FILTER%28lang%28%3Fmunicipality%29%3D%22lv%22%29%0A%09%3Fnovads%20rdfs%3Alabel%20%3Fdistrict%20.%20FILTER%28lang%28%3Fdistrict%29%3D%22lv%22%29%0A%7D

Bot ignores freq=

Listeria's Toolforge 'output page' links to https://commons.commons.org, not https://commons.wikimedia.org

Steps to reproduce:

Take a Listeria list on Commons, e.g. this one

https://commons.wikimedia.org/wiki/User:Spinster/WikiFlix/Films_from_France

Click 'Manually update list'

The 'output page' on Toolforge then produces a hyperlink to https://commons.commons.org/wiki/User%3ASpinster%2FWikiFlix%2FFilms_from_France which should be https://commons.wikimedia.org/wiki/User%3ASpinster%2FWikiFlix%2FFilms_from_France

Listeria not populating newly created list

I created a page using listeria bot and it's not populating.
Manually updating gives the message below and still doesn't populate it. My query returns results so I do not think it's the query.

2020-12-10_101234

Warning message suggestion

As a new user t took me quite a while to realise my mistake when I clicked "update the list now" and it worked fine the first time but the second time it appended rather than overwriting.

So I suggest adding an error or warning message when
{{Wikidata list end}} is missing.

Listeria Bot ignores deprecation

It seems to me that for items with multiple values Listeria Bot currently treats deprecated statements the same way as non-deprecated statements. I would propose that it either completely ignores the deprecated statements or marks them with strikethrough.

Redlinks not suffixed where a bluelink exists

Examples from https://en.wikipedia.org/wiki/Wikipedia%3AWikiProject_Women_in_Red%2FMissing_articles_by_occupation%2FPhilanthropists

Where there's an item with no article, having a label matching another article, Listeria produces a link to the other article, rather than (in this instance) to a suffixed title

e.g. https://en.wikipedia.org/wiki/Sarah_Hoffman -> https://www.wikidata.org/wiki/Q19862161
versus
No article - https://www.wikidata.org/wiki/Q43920575

anchor for the redlink should be Sarah_Hoffman (Q43920575)
anchor for the redlink is Sarah_Hoffman

ListeriaBot not work anymore on Arabic Wikipedia

When trying to update any ListeriaBot list(s) on Arabic Wikipedia we are facing:
ERROR: Namespace 0 not allowed for edit on arwiki
OR
ERROR: Namespace 2 not allowed for edit on arwiki
Same for all namespaces.

Last bot edits on 22:22، 10 Nov 2020
https://w.wiki/qEw

What's the problem here? and why stopped on all arwiki namespaces?

Thanks in advance

LysteriaBot V2 section logic does not work any more with user variables

Lists now including properties in addition to items, properties resolve to "page does not exist"

One of the lists in question is here
These lists previously only included wikidata items in their results. Now they are also including wikidata properties, but there is something going on with how the results are generated that gives me a "page does not exist" (screenshots below).

I think this is making it impossible to filter them out using SPARQL. I tried a number of queries today without success, and sometimes had trouble getting the bot to populate any results at all so I just put my original query back. Thanks for creating and maintaining this tool @magnusmanske !
listeriaIssue2
listeriaIssue

Bot is shown in RC changes

I recently noticed that in Czech Wikipedia, the bot's activity is shown in the recent changes, even that the bot has the bot flag. Can you fix that, please?

It should be possible to set the width of a column

Some columns are rendered too wide. This disturbs the table layout.

Example: The Voice recording column P990 is too wide, see https://nl.wikipedia.org/wiki/Wikipedia:Wikiproject/Erfgoed/Vlaanderen/Denderstreek/ListeriaBot/Personen_uit_de_Denderstreek/Query

A minium audio player icon should be enough.

Some browsers like Opera and Google Chrome are worse then Firefox or Microsoft Edge.

It should be possible to set the width of a column explicitly as a number of px just as it is possible to set the column title?

It appears that the width of the audio player (icon image) is set equal to the parameter thumb=90, which is OK for an image thumbnail but is much too wide for a small audio player icon.

(small extract from the above table)

| [[File:Wikimedia Conferentie 2016 - RONN - 22.jpg|center|90px|]]
| [[File:Geert Van Pamel - voice - nl.ogg|center|90px|]]

A possible workaround might be to just leave out the pixel width for the audio files? Or maybe we might need to introduce a CSS class? Or another Listeria configuration parameter like e.g. audio_icon=40?

WGS84/GPS coordinate precision should be limited to 6 decimals after the comma

Often ListeriaBot displays geographical coördinates like e.g. 50°55′27″N 4°06′39″E / 50.924166666666665°N 4.110833333333334°E which has little sense. It Should rather be displayed like 50°55′27″N 4°06′39″E / 50.924167°N 4.110833°E.

Using 6 decimals after the comma allows for a precision up to 0,1 m which should be more than sufficient for all our applications.

1/100 of a latitude arc second corresponds to 1/360000 of an arc degree (111 km) which corresponds to 0,3 m.

Not performing a manual update after SPARQL has been altered

afaics, based on playing with https://en.wikipedia.org/wiki/Wikipedia%3AWikiProject_Women_in_Red%2FMissing_articles_by_occupation%2FSculptors Listeria is not allowing a manual update to be performed, after the page's SPARQL has been altered, if the page was recently manually updated.

So the sequence should be:

  • run manual update
  • change SPARQL
  • run manual update - update runs, page is refreshed based on changes SPARQL

What seems to be happening is

  • run manual update
  • change SPARQL
  • run manual update - update returns a status screen, as below, immediately; page is not updated.

Trying to update Wikipedia:WikiProject_Women_in_Red/Missing_articles_by_occupation/Sculptors...
Done.
Return to Wikipedia:WikiProject_Women_in_Red/Missing_articles_by_occupation/Sculptors

Also, check out the current bot status!
Status: OK

Wrong link when updating

When I click the link for a manual update from {{Wikidata list}}, I get a link to https://wikidata.wikidata.org/wiki/$1, which doesn’t work at all (the right link would be https://www.wikidata.org/wiki/$1 or just https://wikidata.org/wiki/$1).

Listeria fails to write output page

I think this is unconnected with the Rust update - was happening before, is still happening.

Example report having issue: https://en.wikipedia.org/wiki/Wikipedia%3AWikiProject_Women_in_Red%2FMissing_articles_by_occupation%2FPoliticians_-_country_unknown

Issue is, valid SPARQL, but an a manual update Listeria gets no further than saying:

Trying to update Wikipedia:WikiProject_Women_in_Red/Missing_articles_by_occupation/Politicians_-country_unknown...
Return to Wikipedia:WikiProject_Women_in_Red/Missing_articles_by_occupation/Politicians
-_country_unknown
Also, check out the current bot status!
Status: OK

It does not actually write the output page - see https://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_Women_in_Red/Missing_articles_by_occupation/Politicians_-_country_unknown&action=history

generated columns no longer always apply to ?item

https://www.wikidata.org/wiki/Wikidata:WikiProject_Parliaments/lists/national_legislatures produces a list of countries and their legislatures, and includes a column list of:

|columns=?country:Country,label,description,P31,P1342,P527,P18,P856

Previously, the label, description, and Pxxx calls all applied to the ?item (i.e. the legislature), but now they seem to apply to the ?country instead: https://www.wikidata.org/w/index.php?title=Wikidata%3AWikiProject_Parliaments%2Flists%2Fnational_legislatures&type=revision&diff=1309295158&oldid=1264791914

Proposal: ListeriaBot to add an "alias" meta-column

IMPORTED FROM https://bitbucket.org/magnusmanske/listeria/issues/82/proposal-listeriabot-to-add-an-alias-meta

Geert Van Pamel:

Problem: LysteriaBot currently only knows "label", and "description" as standard item columns; "alias" is not recognised yet as a valid item header variable.
Who would benefit: Everyone that automatically creates Wikipedia tables based on a Wikidata Query.
Proposed solution: Add a pseudo-column "alias" that is automatically and transparently available for any query.
More comments: Currently this can be simulated by explicitly adding a SPARQL variable ?alias as:

OPTIONAL {
?item skos:altLabel ?alias.
FILTER((LANG(?alias)) = "nl")
}

This makes the Wikidata Query unnecessary complex, and leads to redundant user code in all individual LysteriaBot queries.

See also: (original proposal)

https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2021/Bots_and_gadgets/ListeriaBot_to_add_alias_meta-column#Discussion

ListeriaBot V2 query does not produce output any more

IMPORTED FROM https://bitbucket.org/magnusmanske/listeria/issues/80/listeriabot-v2-query-does-not-produce

Geert Van Pamel:

A query that previously ran OK, does not produce output any more.

The Bot status still shows an OK, but no new version of the Wiki page is produced.

  1. Wikipedia:Wikiproject/Belgische podiumkunsten/Dans Vrouwen in rood/ListeriaBot/Blauwe linken (OK; 2020-11-21 01:08:15)

Permalink: https://nl.wikipedia.org/w/index.php?title=Wikipedia:Wikiproject/Belgische_podiumkunsten/Dans_Vrouwen_in_rood/ListeriaBot/Blauwe_linken&oldid=57583773

No other error is shown. What happens?

Create double lists

Listeriabot unexpectedly started duplicating the lists, that's why it was banned from Hungarian Wikipedia :( There is a line of HTML code between the two tables.

Example:

  1. https://hu.wikipedia.org/w/index.php?title=Indiana_megy%C3%A9inek_list%C3%A1ja&oldid=23273420
  2. https://hu.wikipedia.org/w/index.php?title=TER_Alsace&oldid=23273403
    3 https://hu.wikipedia.org/wiki/Kateg%C3%B3riavita:P%C3%A1rizsban_j%C3%A1tsz%C3%B3d%C3%B3_filmek

HTML code fragment (CTRL+F search): sparql=SELECT ?item WHERE...

Start (first error): 2020. november 20., 19:25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.