Wikidata:Bot requests/Archive/2020/07

From Wikidata
Jump to navigation Jump to search

Crossref Journals

Request date: 27 March 2018, by: Mahdimoqri

Link to discussions justifying the request
Task description
  • Add missing journals from Crossref
Licence of data to import (if relevant)
Discussion


Request process
I think that this discussion is resolved and can be archived. If you disagree, don't hesitate to replace this template with your comment. GZWDer (talk) 03:00, 3 July 2020 (UTC)

Replace item

Request date: 23 July 2020, by: Data Gamer

Link to discussions justifying the request
Task description
Licence of data to import (if relevant)
Discussion


Request process

Accepted by (Matthias Winkelmann (talk) 06:04, 26 July 2020 (UTC)) and under process
Task completed (06:04, 26 July 2020 (UTC))

I think that this discussion is resolved and can be archived. If you disagree, don't hesitate to replace this template with your comment. Matthias Winkelmann (talk) 06:04, 26 July 2020 (UTC)

Change population estimation date

Request date: 16 July 2020, by: YanikB

Link to discussions justifying the request
  • User talk:Fralambert [1]
Task description

All local municipality of Quebec (Q3327873) or unorganized area of Canada (Q3518810) population (P1082) with determination method (P459) population estimation (Q29051383) qualifier having point in time (P585) equal to 2020 should be changed to 2019. Thx.

Hi, Exactly the date should be the 2019-07-01. Like I done latter with a correct date for the indian reserve, like Wemotaci (Q676581) and Chisasibi (Q2964001). --Fralambert (talk) 18:54, 19 July 2020 (UTC)


Discussion
Request process
I think that this discussion is resolved and can be archived. If you disagree, don't hesitate to replace this template with your comment. @YanikB, Fralambert: c'est fait. --- Jura 07:57, 23 October 2020 (UTC)

Norwegians from world war II

Request date: 22 July 2020, by: Pmt

Link to discussions justifying the request
Task description

All country of citizenship (P27) Norway (Q20) who uses Category:Norwegian people of World War II (Q9064755) in norwegian wikipedia (nb and nn) should have conflict (P607) World War II (Q362)

Licence of data to import (if relevant)
Discussion

This task can be done by PetScan (Q23665536) plus QuickStatements (Q20084080) easily. Edoderoo (talk) 14:13, 23 July 2020 (UTC)

Request process
I think that this discussion is resolved and can be archived. If you disagree, don't hesitate to replace this template with your comment. Vojtěch Dostál (talk) 09:43, 5 November 2020 (UTC)

@Pmt, Edoderoo: the recommended solution was suggested

Replace author name string

Request date: 24 July 2020, by: Levana Taylor

Link to discussions justifying the request

Talk:Q87807800#Bot conversion of Author Name String

Task description

Convert any author name string (P2093) that equals "James R Baker" or "Baker JR Jr" to author (P50) James R. Baker Jr. (Q87807800). Also, transfer the accompanying qualifiers and sources: there will always be a series ordinal (P1545) qualifier, and the source will almost always consist of stated in (P248) -- PubMed ID (P698) -- retrieved (P813) -- reference URL (P854). Or "retrieved" and "reference URL" will be in the opposite order, or there will be no URL. Variants other than those three are very rare. Finally, add a qualifier to the resulting author statement: object named as (P1932) either "James R Baker" or "Baker JR Jr" respectively. -- Addendum: Another significant chunk of author names strings from the same PubMed import can be converted by replacing "James W Baker" with James W. Baker (Q97632733).

Licence of data to import (if relevant)
Discussion
Request process

@Levana Taylor: This does not have to be done by a bot (Query Service + QuickStatements should do. I'd suggest to archive this thread.Vojtěch Dostál (talk) 12:41, 5 November 2020 (UTC)

I think that this discussion is resolved and can be archived. If you disagree, don't hesitate to replace this template with your comment. Vojtěch Dostál (talk) 12:41, 5 November 2020 (UTC)

Move ICD codes on medical navboxes to wikidata

Request date: 17 July 2020, by: Tom (LT)

Link to discussions justifying the request
Task description

Example:

  • Wikipedia has this navigation template: Wikipedia:Template:Tumors of skin appendages
  • The title is "Cancers of skin and associated structures (C44.L40–L68/D23.L15–49, 173/216)"
  • The information "(C44.L40–L68/D23.L15–49, 173/216)" should be inserted as ICD10 and ICD9 codes (it is linked in the template)
  • This should be recorded as ICD10 C44.L4-L68, D23.L15–49, and ICD9 = 173/216"
Discussion

──────────────────────────────────────────────────────────────────────────────────────────────────── As an anatomy project member, if I can handle this, I do this. But this request is over my ability. This process is complex and needs much skills. Because what I can do is only very primitive bot processes using harvest.py (User:Wasabot). So instead of processing this request by myself, let me put here the details of this request, in hope for somebody tackle this request.

  • 1. Target templates are the templates which are listed here (including subcategories) -> en:Category:Disease_and_disorder_templates. I don't know the exact number. I suppose it's some hundreds, not reaches to a thousand.
  • 2. As an example, let's see en:Template:Tumors of skin appendages
  • 3. There is wiki-text like this [[ICD-10 Chapter *****|C44.L40–L68/D23.L15–49]], [[List of ICD-9 codes ****|173/216]] on the header area of the template.
  • 4. Then saving data at the corresponding Wikidata page (Template:Tumors of skin appendages (Q20346485)) like as follows. (See the diagram below)
  • 5. These process produce the format constraint violation. Because these text specifies range of IDs, not only single IDs. If somebody thinks this needs cleansing, it is possible to re-format the data through constraint violation reports. So no need to care about this point.
  • 6. (Optional) If possible, after storing the data at Wikidata, remove the target wiki-text from the Wikipedia template. (Including the left bracket (, and the right bracket ) )
  • 7. (Optional, Uncertain) Link-target pages would be only ICD-9 and ICD-10 which are listed here (en:Category:International_Classification_of_Diseases). But perhaps there can be different pages. I can't say anything on this because I don't check all the templates. So if possible, report the anomaly-links you found through process. If there are such cases, we will process such anomaly-links manually one by one.
  • 8 (Detail) Wikitext syntax in the templates (e.g. how to use slash ("/"), dot (".") and so on) seems not clear. So I think it is good to process the data based on "One wiki-link, to one Wikidata-value" like as follows.
Case 1: en:Template:Tumors of skin appendages [[ICD-10 Chapter *****|C44.L40–L68/D23.L15–49]], [[List of ICD-9 codes ****|173/216]]
ICD-10
Normal rank C44.L40–L68/D23.L15–49


add value
ICD-9 ID
Normal rank 173/216


add value
Case 2: en:Template:Congenital lymphatic organ disorders [[ICD-10 Chapter *****|Q89.0]]/[[ICD-10 Chapter *****|Q89.2]], [[List of ICD-9 *****|759.0/759.2]]
ICD-10
Normal rank Q89.0
Normal rank Q89.2


add value
ICD-9 ID
Normal rank 759.0/759.2


add value

--Was a bee (talk) 22:43, 1 August 2020 (UTC)

  • Thanks Was a bee, you're spot on with what I was hoping for. This will be useful to track templates, as well as help keep their titles readable. For step 8, do you mean link target pages in the templates names or here? --Tom (LT) (talk) 00:52, 2 August 2020 (UTC)
    • I meant by "not clear" that it is unclear, for example, whether slash ("A/B") is used to show range ("from A to B") or sum ("A and B"). In other templates, I found hyphens ("-") and plus symbols ("+") also. So for simplifying the process, I think storing the "label" of the piped link (en:Help:Link#Piped_link) in the template, as data at Wikidata, would be the clear way for bot operator. --Was a bee (talk) 19:37, 2 August 2020 (UTC)
Request process

✓ Done For details, see activity summary. --Was a bee (talk) 14:18, 13 August 2020 (UTC)

I think that this discussion is resolved and can be archived. If you disagree, don't hesitate to replace this template with your comment. Vojtěch Dostál (talk) 15:18, 9 November 2020 (UTC)
SELECT ?item ?itemLabel ?itemDescription
{
	?item wdt:P1433/wdt:P361 wd:Q590208 . 
	MINUS { ?item wdt:P921 [] }
	SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}

Try it!

Some 2000 still lack P921. Maybe this can be gathered from information on the Wikisource page (identifier or Wikipedia article) or needs to be created. --- Jura 10:02, 9 July 2020 (UTC)

@Jura1: I checked two of those Wikisource pages and they both said "Kein Wikipedia-Artikel". I think this therefore cannot be done by a bot.Vojtěch Dostál (talk) 09:40, 5 November 2020 (UTC)
Some have GND or other identifiers. @Mfchris84: did something similar for BLKOe. --- Jura 10:29, 5 November 2020 (UTC)
@Jura1: I've got 2700 results using GND and I just did a test edit. What do you think? Vojtěch Dostál (talk) 18:54, 10 November 2020 (UTC)
Looks good: it picks the correct item. I'm not entirely sure about the inclusion of the GND ID itself. Maybe inferred from (P3452)=GND ID (Q54506313) could do? Otherwise some might assume that GND itself has done the mapping.
For those without a GND ID at WS, maybe it could be done with the copy of ADB at Deutsche Biographie (GND) ID (P7902). The text there should be the same as at WS. --- Jura 11:35, 11 November 2020 (UTC)
I've imported those matched via GND. You'll have to explain what you mean by "maybe it could be done with the copy of ADB at Deutsche Biographie (GND) ID (P7902)" - what is your proposition there? Vojtěch Dostál (talk) 13:28, 11 November 2020 (UTC)
Great thanks. I'm not sure how to do it, but the text available about a person at WS should be the same there. Also, someone created QIDs for all or most P7902.
So supposedly, one could try to find the relevant QID by comparing pages, e.g. Q21204841 and Q55193520#P7902 (that entry has a different GND though).
As not that much is left (<300), we could also skip that. --- Jura 13:52, 11 November 2020 (UTC)
This section was archived on a request by: --- Jura 07:51, 3 December 2020 (UTC)

Convert remaining Property:P969 to Property:P6375 (street address)

See Property_talk:P969#Move_remainings_ones_to_P6375_with_language_"und". --- Jura 06:54, 16 July 2020 (UTC)

This section was archived on a request by: --- Jura 21:34, 18 December 2020 (UTC)