Template talk:Autofix

From Wikidata
Jump to navigation Jump to search

to do does not show work left to do[edit]

Have set lower_case on P238 however the TODO link displayed in the template does show the values that need changing however

Have edited it slightly to show that there are values waiting for fixing

SELECT ?item ?value WHERE
{
  ?item p:P238/ps:P238 ?value .
  
  FILTER( REGEX(REPLACE(STR(?value), "%20", " "), "[a-z]") )
}
Try it!

Back ache (talk) 01:55, 13 March 2022 (UTC)[reply]

Possible new parameter[edit]

@Ivan A. Krestinin: I would suggest introducing one more parameter specifying if the replacement should be performed in one of the following:

  • in statements
  • in qualifiers
  • in references
  • in statements and qualifiers
  • in qualifiers and references
  • in statements and references
  • everywhere (this is the current default option)

Would it be possible? Thanks, --Epìdosis 07:17, 12 June 2022 (UTC)[reply]

Changing units / qualifiers[edit]

Is it possible to:

  1. change unit X of a statement to unit Y (e.g. median lethal dose (LD50) (P2240)25 milligram per kilogram to other unit)?
  2. change a qualifier of a specific property (e.g. median lethal dose (LD50) (P2240)25 milligram per kilogramafflicts (P689)laboratory mouse (Q2842787) to median lethal dose (LD50) (P2240)25 milligram per kilogramapplies to taxon (P2352)laboratory mouse (Q2842787)?

I couldn't find any examples like this. Wostr (talk) 12:49, 12 August 2023 (UTC)[reply]

It probably isn’t.
  • The first one seems to be theoretically impossible to me – how would the bot change 5 km to liters? Or even 5 km to miles: is it 3 mi, 3.1 mi, 3.1068559612 mi, something else?
  • The second one is theoretically possible, but I doubt it has been implemented.
Tacsipacsi (talk) 11:18, 13 August 2023 (UTC)[reply]

If "nature of statement" (P5102) is used in Q, replace statement type with "instance of" (P31)[edit]

There is a huge amount of wrong usages of P5102 which is only intended to be used in statements.

I already extended the description of P5102 to help people use P31 instead of it in the items but there is still a lot of wrong usages left.

So the algorithm is:

1) An item (Q...) has a statement with type of P5102? Read its value, and source URL.

2) Create statement with type of P31, add value and source URL (if exist).

3) Delete statement of type P5102 mentioned in 1)

Could anyone install such a thing? Thank you in advance! Nikolay Komarov (talk) 09:47, 6 February 2024 (UTC)[reply]