User talk:Frettie/consistency check add.js

From Wikidata
Jump to navigation Jump to search

Owner

[edit]

Hi @Frettie:. This looks like it is a tool I had been wanting. Thank you. Could you please add 'P1830': ['P127'], // owner of/owned by to this script? I have trialled it by copying your script and adding my line at User:ScottDavis/common.js. Thank you. --ScottDavis (talk) 04:42, 24 November 2019 (UTC)[reply]

✓ Done I did it. --Matěj Suchánek (talk) 10:24, 24 November 2019 (UTC)[reply]
Thanks! --Frettie (talk) 10:48, 25 November 2019 (UTC)[reply]

Comments

[edit]

I've been playing with this tool for a few days, and noticed a few issues.

  1. When adding child (P40), the tool doesn't automatically add the parent.
  2. When adding a father (P22) or mother (P25), the tool does reciprocate, but if the child is already listed on the parent's item, a duplicate child value is created. The tool should check if the value is already present.
  3. It would be ideal if the associated symmetrical qualifiers (e.g. start and end dates for spouse (P26)) and references could be transferred as well.
  4. In some cases, I think a check point would be helpful rather than reciprocal change automatically occurring. Since deleting a symmetrical/inverse relation doesn't delete the corresponding value on the target item, a check point (a button that says something like "do you wish to add "X" to "Y"?) might allow mistakes to be seen beforehand. And since the tool is largely invisible, it's easy to forget about, and inadvertent edits to other items are more likely.

Cheers, -Animalparty (talk) 02:54, 27 November 2019 (UTC)[reply]

Duplicate claims

[edit]

[1] [2] shouldn't have been added. --Matěj Suchánek (talk) 13:30, 7 March 2020 (UTC)[reply]

P460

[edit]

It would be nice to add said to be the same as (P460) as well (as symmetric property). More possible symmetric property to add:

--Jklamo (talk) 16:38, 7 June 2020 (UTC)[reply]

P460 is included already. --Matěj Suchánek (talk) 11:24, 10 June 2020 (UTC)[reply]
✓ Done --Matěj Suchánek (talk) 11:15, 13 December 2020 (UTC)[reply]

ico_add not known

[edit]

Thank you very much for this little helper, but recently it stopped working and i have an idea:

createClaim: function ( entityId, baseRevId, snakType, propertyId, value ) {
			var self = ico_add;

seems not to work properly, but with

createClaim: function ( entityId, baseRevId, snakType, propertyId, value ) {
			var self = this;

it works. Is this a good solution? --Looperz (talk) 23:13, 31 July 2020 (UTC)[reply]

✓ Done Thank you. --Matěj Suchánek (talk) 09:13, 8 August 2020 (UTC)[reply]

Automatic symmetricity completion - qualifiers

[edit]

Hi, it is possible to disable automatic symmetricity completion (using a parameter for example)? In a case of qualifiers, it works badly, as adding qualifier is triggering adding a duplicate statement to another item (and vice versa).--Jklamo (talk) 11:54, 16 August 2020 (UTC)[reply]

Disabled again, looks like it needs to explicit (rather than implicit). --Matěj Suchánek (talk) 13:36, 17 August 2020 (UTC)[reply]

Doctoral supervisor/ student

[edit]

Please add doctoral advisor (P184)/ doctoral student (P185). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 10:21, 9 December 2020 (UTC)[reply]

✓ Done --Matěj Suchánek (talk) 11:15, 13 December 2020 (UTC)[reply]

next crossing

[edit]

Please consider to add next crossing downstream (P2674) / next crossing upstream (P2673). --Jklamo (talk) 19:46, 12 December 2020 (UTC)[reply]

✓ Done --Matěj Suchánek (talk) 11:15, 13 December 2020 (UTC)[reply]

adjacent building

[edit]

Please add adjacent building (P3032). Thanks. Ayack (talk) 07:56, 17 June 2022 (UTC)[reply]

✓ Done --Matěj Suchánek (talk) 08:37, 17 June 2022 (UTC)[reply]

P1424 and P1423

[edit]

Please, add topic's main template (P1424) and template has topic (P1423) JAn Dudík (talk) 21:16, 31 July 2022 (UTC)[reply]

✓ Done --Matěj Suchánek (talk) 07:51, 1 August 2022 (UTC)[reply]

P466 and P2283

[edit]

occupant (P466) and uses (P2283) JAn Dudík (talk) 19:48, 7 October 2022 (UTC)[reply]

 Comment While for every item about a building X with P466: Y there ought to be Yuses (P2283)X, by adding 'P466': ['P2283'] the current version of gadget would also suggest the opposite. But obviously the used item is not always a building (occupancy ⊂ usage). --Matěj Suchánek (talk) 12:31, 9 October 2022 (UTC)[reply]

P2388 and P2389

[edit]

Would be nice to have organization directed by the office or position (P2389) and office held by head of the organization (P2388) in this. Oravrattas (talk) 06:18, 21 October 2022 (UTC)[reply]

✓ Done --Matěj Suchánek (talk) 18:41, 23 October 2022 (UTC)[reply]
Thanks! Oravrattas (talk) 06:26, 27 October 2022 (UTC)[reply]

Question about specific edits

[edit]

Hi Frettie,

this consistency_check edit reinstates a removed wrong sitelink as "said to be same as". Can anything be done at the JavaScript to stop such edits? Lehrplanvollzugsanstalt (talk) 22:29, 11 November 2022 (UTC)[reply]

Hi @Lehrplanvollzugsanstalt, there is nothing to be done at the JavaScript. The item Q115171300 includes the statement:
Q115171300said to be the same as (P460)safety engineering (Q6496962)
The relation "said to be same as" is symmetric, therefore the tool suggests doing that edit. The statement may be incorrect (and should be removed), otherwise the edit should be kept. --Matěj Suchánek (talk) 19:35, 12 November 2022 (UTC)[reply]

Propriedades

[edit]

Olá, @Frettie! Por favor, pode tornar a ferramenta possível para as propriedades também? Se puder/conseguir, será útil para manter a correspondência das seguintes propriedades: related property (P1659), Wikidata property (P1687), inverse label item (P7087). Desde já agradeço, Luan (talk) 19:13, 10 January 2023 (UTC)[reply]

Hi, i dont know, do you want to set properties of property? Why and do you have examples? --Frettie (talk) 22:52, 10 January 2023 (UTC)[reply]