Wikidata:Bot requests/Archive/2018/10

Disambiguation brackets

Request date: 28 October 2018, by: Bencemac

Task description

Please delete the disambiguation () tags of those Hungarian labels, where instance of (P31) is human (Q5). They were created usually by bots who just simply imported the page titles from the Hungarian Wikipedia. See Help:Label#Disambiguation information belongs in the description. Example (Ferenc Molnár (Q1178600)): Molnár Ferenc (politikus)→Molnár Ferenc.

Thanks! Bencemac (talk) 08:21, 28 October 2018 (UTC)

When the Hungarian label contains (egyértelműsítő lap) tag [disambiguation page in English] and do not have instance of (P31)

When the Hungarian label contains (egyértelműsítő lap) tag and instance of (P31) is Wikimedia disambiguation page (Q4167410)

  • please delete (egyértelműsítő lap) from the label

An example (later should be merged into Montmirail (Q1946402)): Montmirail (Q59264497). Bencemac (talk) 20:47, 12 December 2018 (UTC)

Discussion
Hi, I've run a SPARQL query for all people with an article on the Hungarian Wikipedia and brackets in their label: https://gist.github.com/pyfisch/c2baee9b4e9e165488dc0cf7f60543b5 There are 2266 persons. I'd suggest to copy the text between the brackets (if it does not contain a number) to the description. --Pyfisch (talk) 18:40, 1 December 2018 (UTC)
@Pyfisch: Thank you very much! Can I ask one more thing? Bencemac (talk) 20:22, 12 December 2018 (UTC)
Sure. --Pyfisch (talk) 20:30, 12 December 2018 (UTC)
@Pyfisch: Please see above. Thanks for your work! Bencemac (talk) 20:47, 12 December 2018 (UTC)
Request process

Accepted by (Pyfisch (talk) 15:59, 10 December 2018 (UTC)) and under process

This section was archived on a request by: Done. See edit groups: toollabs:editgroups/b/CB/999234999b35,toollabs:editgroups/b/CB/c7c871634f70, toollabs:editgroups/b/CB/3b9ef552ea9b Pyfisch (talk) 16:29, 10 December 2018 (UTC)

Normalize references

Request date: 13 July 2018, by: Marsupium

Link to discussions justifying the request
Task description

Often one source website or database is indicated inconsistently in various manners. To improve this situation some queries and following edits on references could be made. This is a task that would best be done continuously and gradually adapted to more cases. Thus, perhaps this task fits well in the work field of DeltaBot, User:Pasleim?

  1. Add ID property (and if feasible also stated in (P248)) to references with according reference URL (P854) where missing.
  2. Add stated in (P248) to references with according ID property where missing.
  3. (For later: Merge references where a source website or database is used twice (accidentally).)

The issue exits for Union List of Artist Names ID (P245), RKDartists ID (P650) and probably many more source websites or databases. I have examined Union List of Artist Names ID (P245) and those would be the queries and edits to be done:

  1. SELECT ?entity ?prop ?ref ?id WHERE {
      ?entity ?prop ?statement.
      ?statement prov:wasDerivedFrom ?ref.
      ?ref pr:P854 ?refURL.
      MINUS { ?ref pr:P245 []. }
      FILTER REGEX(STR(?refURL), "^https?://(vocab.getty.edu/(page/)?ulan/|www.getty.edu/vow/ULANFullDisplay.*?&subjectid=)")
      BIND(REPLACE(STR(?refURL),"^https?://(vocab.getty.edu/(page/)?ulan/|www.getty.edu/vow/ULANFullDisplay.*?&subjectid=)","") AS ?id)
    }
    LIMIT 500
    
    Try it!
    → add Union List of Artist Names ID (P245)?id to the reference (now >1k cases)
  2. SELECT ?entity ?prop ?ref WHERE {
      ?entity ?prop [ prov:wasDerivedFrom ?ref ].
      ?ref pr:P245 [].
      MINUS { ?ref pr:P248 wd:Q2494649. }
    }
    
    Try it!
    → add stated in (P248)Union List of Artist Names (Q2494649) to the reference (now ca. 70 cases)

Thanks for any comments!

Discussion


Request process

I'm working on it myself now, see Topic:Unj4mc05g2qpj1gs for the process. Any help or advice still welcome! --Marsupium (talk) 18:20, 30 October 2018 (UTC)

Updating templates' description in Russian

Request date: 7 October 2018, by: Wikisaurus

Link to discussions justifying the request

Looks obvious.

Task description

Most templates has standard Russian description "шаблон проекта Викимедиа", per d:Q11266439, but quite a number of them have old descriptions "шаблон в проекте Викимедиа" and "шаблон проекта Викимедия". Please replace them with the modern description. I can not do it myself with QuickStatements because SPARQL request are giving me only a small portion of results - if I replace limit 100 by large limit they collapse. SPARQL requests are below (they are a bit strange because there are some problems with cyrillic, I believe):

SELECT ?item ?itemlab ?itemdesc WHERE {
  ?item wdt:P31 wd:Q11266439 .
  wd:Q6537516 schema:description ?wrongdesc1
  filter (lang(?wrongdesc1) = "ru") .
  OPTIONAL { ?item schema:description ?itemdesc
  filter (lang(?itemdesc) = "ru") }
  filter (?itemdesc = ?wrongdesc1)
} LIMIT 100
Try it!
SELECT ?item ?itemlab ?itemdesc WHERE {
  ?item wdt:P31 wd:Q11266439 .
  wd:Q6459244 schema:description ?wrongdesc1
  filter (lang(?wrongdesc1) = "ru") .
  OPTIONAL { ?item schema:description ?itemdesc
  filter (lang(?itemdesc) = "ru") }
  filter (?itemdesc = ?wrongdesc1)
} LIMIT 100
Try it!
Licence of data to import (if relevant)
Discussion
The query can be as simple as:
SELECT ?item ?desc {
  VALUES ?desc { "шаблон в проекте Викимедиа"@ru "шаблон проекта Викимедия"@ru } .
  ?item schema:description ?desc .
}
Try it!
Matěj Suchánek (talk) 16:47, 8 October 2018 (UTC)
It looks like magic and works in a moment. Matej, thank you! Wikisaurus (talk) 20:43, 12 October 2018 (UTC)
Request process

Add interwiki conflicts listings to talk pages

Request date: 23 October 2018, by: Yair rand

Task description

I think it would be helpful if items listed at Wikidata:Interwiki conflicts had notices and links placed on their talk pages, to improve discoverability. There are over a thousand items listed, and no easy way for a user to determine whether any individual item is listed there. --Yair rand (talk) 04:43, 23 October 2018 (UTC)

Discussion


Request process


Copy lemma to F1

For lexemes without forms, could a bot copy the lemma to this form? Sample edit: https://www.wikidata.org/w/index.php?title=Lexeme:L8896&diff=772695679&oldid=772692662

Please skip any lexemes that already have forms. --- Jura 08:51, 25 October 2018 (UTC)