Help talk:QuickStatements

From Wikidata
Jump to navigation Jump to search

Syntax for ranks: Any updates?[edit]

Hi all, I noticed this discussion on archives for this page. Pinging people who were part of the chat there. @JakobVoss, Bouzinac, TiagoLubiana, Marsupium: I wonder if there's any update on building this syntax? Thanks. Kiran891 (talk) 14:54, 19 May 2023 (UTC)[reply]

I'm not aware of any progress with this. Unfortunately, OpenRefine can't do it either according to Wikidata:Tools/OpenRefine/Editing/Schema alignment#Ranks. --Marsupium (talk) 17:43, 19 May 2023 (UTC)[reply]

V1 vs. CSV[edit]

When I try to add the V1 Command
Q120435196 P4219 "17586"
it works fine.

When I try this via CSV
qid,P4219
Q120435196,"17586"

then I get an error. Why? --Geiserich77 (talk) 08:48, 7 July 2023 (UTC)[reply]

@Geiserich77: I am using this tool for the first time, but I've just found out that strings without language prefixed work only when they are enclosed in """, not in ". Janhrach (talk) 19:09, 9 July 2023 (UTC)[reply]

Bot/Flood flags for large QuickStatements batches[edit]

The current best practices on the QuickStatements page mentions going through bot approval process for "very large runs or potentially-controversial" runs. For large, non-controversial runs, is it appropriate to request a Flood flag? That page mentions the Flood flag is "intended to replace requesting temporary bot flags."

Also, what qualifies as "very large" in these guidelines? Hundreds of edits? Thousands? AVP-DAHR (talk) 16:47, 20 September 2023 (UTC)[reply]

I think those guidelines are outdated. I was given bot flag years ago doing thousands of edits (maybe with Autolist before QuickStatements existed) but they removed it and now I do thousands of edits with QuickStatements and nobody complains. I guess at some point the recent changes being flooded by batch edits was seen as a problem.--Pere prlpz (talk) 12:45, 2 January 2024 (UTC)[reply]
Some users are still getting warned because QS apparently can't set an edit-level bot flag. GreenReaper (talk) 03:40, 20 April 2024 (UTC)[reply]

Troubleshooting[edit]

Can we build a troubleshooting guide, something for example that will expand on something like a "SNAK" error, explain what it is and how to fix/avoid it.

I am very technical person and I struggle to understand the errors so I am sure there are many other like me Back ache (talk) 16:38, 29 September 2023 (UTC)[reply]

Quickstatements CSV import shows too many errors[edit]

I am trying to import the names of streets in the City of Linz. Some are working fine, but only a few. After that API errors come around. Trying to re-set does not work. What am I doing wrong? Here are my batches Krabina (talk) 15:07, 9 October 2023 (UTC)[reply]

Hello Krabina, this might be the same problem as Help_talk:QuickStatements#QuickStatement_anti-abuse_measure_(rate_limit?). M2k~dewiki (talk) 12:37, 1 November 2023 (UTC)[reply]

QuickStatement anti-abuse measure (rate limit?)[edit]

Hello, I have a batch for QuickStatement to create 90 new items for cultural monuments. Since yesterday, I get the error message:

Cannot automatically assign ID: Im Rahmen einer Anti-Missbrauchs-Maßnahme kann diese Aktion in einem kurzen Zeitabstand nur begrenzt oft ausgeführt werden. Diese Grenze hast du überschritten. Bitte versuche es in ein paar Minuten erneut.

which translates to

Cannot automatically assign ID: As part of an anti-abuse measure, this action can only be carried out a limited number of times within a short period of time. You have exceeded this limit. Please try again in a few minutes.

Even if I try to execute the batch several hours later (instead of a few minutes), the error message persists. Has anyone an idea, how or when it would be possible to execute this batch? Thanks a lot! M2k~dewiki (talk) 12:32, 1 November 2023 (UTC)[reply]

The error persists, independent if the statements are executed in foreground or as a background batch.

Also see Wikidata:Project_chat#QuickStatement_anti-abuse_measure_(rate_limit?). --M2k~dewiki (talk) 12:36, 1 November 2023 (UTC)[reply]

Wikibase Property creation: how do you add a label?[edit]

I'm trying to batch-create properties in a wikibase instance using Quickstatements. I can successfully create a property with a datatype using V1 syntax, e.g.

CREATE_PROPERTY|wikibase-item

but I'm stuck on the correct syntax for adding a label. Can anyone help me out? Heberlei (talk) 19:49, 15 January 2024 (UTC)[reply]

Answering my own question in case others too may find it helpful: The answer is actually already on the help page, I just didn't fully understand it. In V1, you'd run
CREATE_PROPERTY|wikibase-item
LAST|Len|"Eureka!"
which runs two commands: first the creation of the Property with its datatype on one line, then on the next line the addition of the label to the last-created item. Heberlei (talk) 20:34, 15 January 2024 (UTC)[reply]

Problems when adding dates[edit]

I'm struggling to add dates in a qualifier via Quickstatements but I keep getting either a "malformed input" error for the date part. Can anybody point me to my error?

My example: Q4115189 P8687 11581 P4033 "codeberg@social.anoxinon.de" S585 +2024-02-11T12:26:32Z/11 Awinkler3 (talk) 18:20, 11 February 2024 (UTC)[reply]

I think I've figured out what the issue was: The date format only allows "00:00:00" for hours:minutes:seconds. Awinkler3 (talk) 19:49, 11 February 2024 (UTC)[reply]
Yeah, Wikidata doesn't support any precision higher than day, and the hr/min/sec fields have to be 00 each. RPI2026F1 (talk) 16:19, 13 February 2024 (UTC)[reply]

Unable to add statement and reference in same batch?[edit]

When I add some information in a new statement, and then immediately add a reference. An error is thrown for reference statements when running normally.

Here is sample csv text for experimenting on wikidata sandbox qid at https://quickstatements.toolforge.org/#/batch

qid,P2046,qal585,qal459,S854,s1476,s813,#
Q4115189,163U712226,+2011-01-01T00:00:00Z/9,Q1861882,"""https://core.ap.gov.in/CMDASHBOARD/Download/Publications/DHB/kurnool-2019.pdf""","""District Handbook of Statistics - Kurnool District - 2019""",+2022-04-10T00:00:00Z/11,update area with proper citation

Can anybody confirm or tell me what is the issue?--Arjunaraoc (talk) 12:02, 24 February 2024 (UTC)[reply]

I've had the same issue, even with the browser version, and even with V1 syntax. RPI2026F1 (talk) 15:51, 24 February 2024 (UTC)[reply]
@RPI2026F1, Thanks for your reply. I found out the mistake. s1476 value requires language code so the string should be prefixed with language code. The revised csv text which works is given below.
qid,P2046,qal585,qal459,S854,s1476,s813,#
Q4115189,163U712226,+2011-01-01T00:00:00Z/9,Q1861882,"""https://core.ap.gov.in/CMDASHBOARD/Download/Publications/DHB/kurnool-2019.pdf""",en:"District Handbook of Statistics - Kurnool District - 2019",+2022-04-10T00:00:00Z/11,update area with proper citation
--Arjunaraoc (talk) 03:00, 25 February 2024 (UTC)[reply]

Multiple reference groups with "!"[edit]

According to this help page it is possible to use the following syntax to create multiple reference groups in one command: Q4115189 P31 Q5 S31 Q5 !S4500 Q5 But using this syntax generates an error "Bad value type wikibase-entityid, expected quantity" - no idea why! Is this syntax actually supported and could someone give a working example for it please? In OpenRefine we tried adding support for it but were stopped in our tracks when we discovered that it doesn't seem to work as advertised. − Pintoch (talk) 07:05, 11 March 2024 (UTC)[reply]

You’re trying to add the reference family relationship degree (P4500)human (Q5). Of course this doesn’t work and gets rejected with an appropriate and descriptive error message (family relationship degree (P4500) expects a quantity, you provided an entity ID). —Tacsipacsi (talk) 22:54, 11 March 2024 (UTC)[reply]
In your direct case, family relationship degree (P4500) is of item type quantity, which is why it's complaining about a bad value. When I tried it with instance of (P31) and subclass of (P279), on QuickStatements v1 (Q4115189|P31|Q5|S31|Q5|!S279|Q5), it put them all into one reference group. However, when I tried it in the CSV mode, using this, it worked as expected:
qid,P31,S31,S279
Q4115189,Q5,Q5,Q5
RPI2026F1 (talk) 22:54, 11 March 2024 (UTC)[reply]

Not able to log in[edit]

I seem to be getting a timeout when I try to log in. The page looks like its loading for a long while and then there's just a blanc page. 1Veertje (talk) 09:04, 3 April 2024 (UTC)[reply]

Same. It throws me an error:
<br />
<b>Fatal error</b>:  Uncaught Exception: Curl error: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104 in /data/project/magnustools/public_html/php/oauth.php:286
Stack trace:
#0 /data/project/quickstatements/public_html/api.php(123): MW_OAuth-&gt;doAuthorizationRedirect('https://quickst...')
#1 {main}
  thrown in <b>/data/project/magnustools/public_html/php/oauth.php</b> on line <b>286</b><br />
ChasingAir (talk) 13:39, 6 April 2024 (UTC)[reply]
The error in question appears to be "connection reset by peer". Perhaps it is a temporary error due to load, or there is/was a need for an update to enable mutually-acceptable security protocols? GreenReaper (talk) 03:42, 20 April 2024 (UTC)[reply]