Help talk:QuickStatements/Archive 3

API currently cannot write date statements

Following up on this earlier note, I've tracked down the problem to the API and dates. It seems specifically that the API cannot write date statements. I've tried with and without quotes (%22) around the date. See the examples below (I've blanked out my token; Find yours here if you want to test):

Can anyone spot a workaround? It seems a pretty important feature to be missing. T.Shafee(evo&evo) (talk) 01:35, 26 May 2021 (UTC)

It works when you escape the + character with %2B, and the : characters with %3A. --99of9 (talk) 03:44, 2 July 2021 (UTC)
Fantastic, thankyou! I can confirm, the below version works:
It seems that on the "+" -> %2B is required (and usefully is compatible with the non-API url link), however the ":" -> %3A isn't strictly necessary (works fine without). T.Shafee(evo&evo) (talk) 08:57, 2 July 2021 (UTC)

Removing descriptions using QS

I would like to know what command needs to be given to remove a specific description from a set of items. I have tried -Q123 Den, but that didn't work. Adithyak1997 (talk) 20:24, 4 June 2021 (UTC)

If you want to remove a label/description/sitelink, the value has to be an empty string and the rest of the command will be the same. Ie. Q123 Den "". --Matěj Suchánek (talk) 08:56, 5 June 2021 (UTC)

Problem with somevalue

I am trying to understand what is wrong with the "somevalue" lines. Erasing 3 of the 4 somevalue lines does not help. (note it is now entered as Proceedings of the Sixth Workshop on Noisy User-generated Text (W-NUT 2020) (Q107146488))

CREATE
LAST	Len	"Proceedings of the Sixth Workshop on Noisy User-generated Text (W-NUT 2020)"
LAST	P31	Q1143604
LAST	P1476	en:"Proceedings of the Sixth Workshop on Noisy User-generated Text (W-NUT 2020)"
LAST	P7505	"2020.wnut-1"
LAST	P98	somevalue	P1932	"Wei Xu"	P1545	"1"
LAST	P98	somevalue	P1932	"Alan Ritter"	P1545	"2"
LAST	P98	somevalue	P1932	"Tim Baldwin"	P1545	"3"
LAST	P98	somevalue	P1932	"Afshin Rahimi"	P1545	"4"
LAST	P123	Q4346375
LAST	P407	Q1860
LAST	P856	"https://www.aclweb.org/anthology/volumes/2020.wnut-1/"

Finn Årup Nielsen (fnielsen) (talk) 10:09, 8 June 2021 (UTC)

You probably need to use triple quotes with the values of P1545 like in Help:QuickStatements#Combined_sample. --Hjart (talk) 11:19, 8 June 2021 (UTC)

This does not work:

CREATE
LAST	Len	"Proceedings of the First Workshop on Scholarly Document Processing"
LAST	P31	Q1143604
LAST	P1476	en:"Proceedings of the First Workshop on Scholarly Document Processing"
LAST	P7505	"2020.sdp-1"
LAST	P98	somevalue	P1932	"""Muthu Kumar Chandrasekaran"""	P1545	"""1"""
LAST	P98	somevalue	P1932	"""Anita de Waard"""	P1545	"""2"""
LAST	P98	somevalue	P1932	"""Guy Feigenblat"""	P1545	"""3"""
LAST	P98	somevalue	P1932	"""Dayne Freitag"""	P1545	"""4"""
LAST	P98	somevalue	P1932	"""Tirthankar Ghosal"""	P1545	"""5"""
LAST	P98	somevalue	P1932	"""Eduard Hovy"""	P1545	"""6"""
LAST	P98	somevalue	P1932	"""Petr Knoth"""	P1545	"""7"""
LAST	P98	somevalue	P1932	"""David Konopnicki"""	P1545	"""8"""
LAST	P98	somevalue	P1932	"""Philipp Mayr"""	P1545	"""9"""
LAST	P98	somevalue	P1932	"""Robert M. Patton"""	P1545	"""10"""
LAST	P98	somevalue	P1932	"""Michal Shmueli-Scheuer"""	P1545	"""11"""
LAST	P123	Q4346375
LAST	P407	Q1860
LAST	P856	"https://www.aclweb.org/anthology/volumes/2020.sdp-1"

And the below code neither work:

CREATE
LAST	Len	"Proceedings of the First Workshop on Scholarly Document Processing"
LAST	P31	Q1143604
LAST	P1476	en:"Proceedings of the First Workshop on Scholarly Document Processing"
LAST	P7505	"2020.sdp-1"
LAST	P98	somevalue
LAST	P123	Q4346375
LAST	P407	Q1860
LAST	P856	"https://www.aclweb.org/anthology/volumes/2020.sdp-1"

Finn Årup Nielsen (fnielsen) (talk) 13:26, 8 June 2021 (UTC)

Adding P248 Stated In references to other statements

I'm working on a project where we are creating items for 200+ convicts from a local historic register.

I can add "P248 Stated in" to Significant Event(P793) - Parole (Q5357120) along with qualifiers thus:

LAST	P793	Q5357120	P585	+1880-02-10T00:00:00Z/11	P6375	en:"7 Justice Lane, Aberdeen, Aberdeen"	P625	@57.14894/-2.09150	S248	Q107012960

and it works fine. See this example: https://www.wikidata.org/wiki/Q107164521

But if I want to add the same Stated In reference to hair colour, say,

LAST	P1884	Q28961883		S248	Q107012960

or height

LAST	P2048	1.7272U11573		S248	Q107012960

or to DOB or Convicted of statement, it ignores the "S248 Q107012960 " part of the statements. See the example above (although the statements may have been manually edited to add these references by the time you read this).

Are there any obvious solutions? Thanks

Watty62 (talk) 11:53, 9 June 2021 (UTC)

Please ignore my question above!

The reason it fails to add S248 references is that my output contains TWO tabs between the original statements and the S248. Once I spotted and fixed that, they worked!

Watty62 (talk) 14:48, 9 June 2021 (UTC)

How to merge lexemes?

I tried merging, but all gave error.

MERGE|L536128|L531660
MERGE|L536079|L531611
MERGE|L536217|L531749
MERGE|L536091|L531623
MERGE|L535910|L531442
MERGE|L536223|L531755
MERGE|L536113|L531645

Is lexeme merging working? Vis M (talk) 02:01, 1 July 2021 (UTC)

"You can't create a new batch, because you are not autoconfirmed"

I cannot add batches: "You can't create a new batch, because you are not autoconfirmed". What can I do? I couldn't find documentation about this. --Open-ch (talk) 10:02, 29 July 2021 (UTC)

See Wikidata:Autoconfirmed users. --Matěj Suchánek (talk) 10:38, 29 July 2021 (UTC)

Batches stuck in "RUNNING" / INIT

While using https://quickstatements.toolforge.org/#/batch over the last few days, it seems that I have a bunch of files that have been "running" and have made no progress.

https://quickstatements.toolforge.org/#/batches/Garyh.stern

While they were uploading, it seems that the files were stuck in INIT mode.

I used different laptops and received the same results.

I stopped the ones that say STOP.

After stopping, I attempted to restart using both the Run, and the "Run in background" button(s). Again, the files would get stuck in INIT phase and not progress.

Does anyone have any ideas or suggestions?  – The preceding unsigned comment was added by Garyh.stern (talk • contribs).

Same with my last two batches. Llywelyn2000 (talk) 20:38, 19 July 2022 (UTC)
Now works perfectly! Thanks! Llywelyn2000 (talk) 10:25, 20 July 2022 (UTC)

Remove somevalue statement

Is it possible to remove a somevalue statement from an entity? I've been trying to replace creator (P170) statements on files I've created to point to an entity rather than a somevalue statement with various qualifiers. Although I'm able to query for these statements and add the replacement statements using QuickStatements, I'm unable to remove the existing somevalue statements. I've tried both the v1 and v2 syntaxes, but it always errors out:

-M3967963	P170	somevalue
qid,-P170
M3967963,somevalue

Is this because every somevalue gets resolved to a different random ID under the hood, preventing QuickStatements from matching anything specifically?

 – Minh Nguyễn 💬 18:45, 21 August 2021 (UTC)

Minh, I am having similar issue: I an unable to add statements with somevalue. Strange--Jarekt (talk) 03:53, 11 September 2021 (UTC)
Same problem here. I want to change the value of Altmetric DOI (P5530) but I am not able to erase it before adding a new one:
-Q48397830	P5530	20295659
 qid,-P5530,P5530
 Q48397830,20295659,"""10.7861/CLINMEDICINE.16-6-S98"""


This add a new value in the property, but without removing the old one. I've tried different syntax to fix this, with or without a value on the second line, but with no success. I would be happy if someone has a solution.
Dirac (talk) 15:56, 17 December 2021 (UTC)

No valid commands found

I want to use Quickstatement to add only the property izeltlabuak.hu ID (P9839) to some items.

Q15736426 P9839 "kecses-zartormanyos"

Q41804923 P9839 "nyar-aknazoormanyos"

Q15736439 P9839 "galagonya-bimbolikaszto"

Q18484784 P9839 "Archarius pyrrhoceras"

but I have got "No valid commands found" Why? Texaner (talk) 21:41, 15 September 2021 (UTC)

I am also getting this error, is there any update on how this might be fixed? EriedgenArc (talk) 13:51, 6 October 2021 (UTC)
@Texaner: Make sure you use tabs or pipes (|) to separate item, property and value when you want to "Import V1 commands". Matěj Suchánek (talk) 12:56, 8 October 2021 (UTC)
It is OK done, thanks for your attention. 77.234.80.234 18:23, 11 October 2021 (UTC)

Batches missing

None of my batches are saving, even when named. I have tried searching for them via name, number and 'last batches' and none appear. There are temporary batch numbers in my contributions but they yield no results. Can you advise? EriedgenArc (talk) 13:54, 6 October 2021 (UTC)

Add Commons Category via CSV

I am curious as the reason that this CSV format failed to load?

qid,P373
Q108656618,"Chinese ancestor portraits"

Screenshot on right:

 

Please advise. Thank you very much. jshieh (talk) 14:24, 4 November 2021 (UTC)

@ShiehJ: For string values the CSV parser requires this:

qid,P373
Q108656618,"""Chinese ancestor portraits"""

LiberatorG (talk) 15:57, 4 November 2021 (UTC)
Thanks so much! jshieh (talk) 20:25, 5 November 2021 (UTC)

Entering unknown dates with Earliest and Latest Date Qualifiers

I'me trying to add a bunch of inception(P571) statements for artworks. For many we do know the date, but we know the earliest and latest possible dates.

In quick statements the following fails

Q109659944	P571	"somevalue"	P1319	+1900-00-00T00:00:00Z/9	P1326	+1924-00-00T00:00:00Z/9

It creates an inception(P571) value of "unknown value" which is what we want but it errors on creating qualifiers for P1319 Earliest Date and P1326 Latest Date for every art work.

After quick statements fails, I can add the qualifiers manually, as I have done for Q109659944 but it is a long boring process with several hundred to do,

Am I doing something wrong? This suggests that I am following the correct approach - see the "between 586 and 569 BC" example for Pythagoras' birth.

Mousing over the error message in red, shows "Base statement not found" which suggests that despite creating an inception statement (P571) and giving a success message, QS then 'find' that to attach the qualifiers to.

Any suggestions? Thanks.

Watty62 (talk) 18:55, 12 December 2021 (UTC)

Adding script

Where may I find instructions to add different scripts for a language code, e.g., zh-Hant, zh-Hans, zh-HK, etc.? Thank you. jshieh (talk) 17:21, 13 January 2022 (UTC)

How to log out

I want to use my alternate account with QuickStatements, but I can't seem to find a way to log out of my other account anywhere. Please help! — Martin (MSGJ · talk) 21:11, 5 February 2022 (UTC)

click "revoke access" for "quickstatements [2.0]" on Special:OAuthManageMyGrantsMisterSynergy (talk) 21:20, 5 February 2022 (UTC)
Thanks! I'll try it — Martin (MSGJ · talk) 21:43, 6 February 2022 (UTC)

Run in background not working

I've noticed today that batches are not running in the background. It doesn't get pas the INIT stage. It works fine in the other mode — Martin (MSGJ · talk) 21:04, 15 February 2022 (UTC)

Same problem on March 24 and 25. --Daniel Baránek (talk) 15:13, 25 March 2022 (UTC)
Problem does not seem to be solved. Who can help here? Yellowcard (talk) 13:30, 26 March 2022 (UTC)
Solved. Yellowcard (talk) 21:23, 26 March 2022 (UTC)
Looks like QuickStatement has stopped working this morning again. Any help appreciated. Regards, Yellowcard (talk) 09:36, 11 May 2022 (UTC)
Second this. It would be nice to have a list of users who can help with these, whatever it is that needs doing to get it running...or better yet, share that with some of us so we can just fix it in stride. Josh Baumgartner (talk) 22:48, 12 May 2022 (UTC)

Coordinates in CSV commands

How do you input geographic coordinates for Property:P625 using CSV commands in QuickStatements? -- Denelson83 (talk) 01:57, 18 April 2022 (UTC)

Oh, you just use the same syntax given in V1 commands. That should be properly documented. -- Denelson83 (talk) 02:03, 18 April 2022 (UTC)

Using the API to start batches - "You need to have submitted at least one server-side batch manually before for this to work!"

Is there an example of how to do this in PHP? Because I get an OK response but Quickstatements doesn't create the batch LuukH87 (talk) 12:49, 29 April 2022 (UTC)

Problem when adding quantity statements with tolerance using QuickStatements

See: WD:DEV#Problem when adding quantity statements with tolerance using QuickStatements. Yellowcard (talk) 09:44, 3 May 2022 (UTC)

This seems to be a QuickStatements, not a Wikibase issue.
Does anyone else have problems adding data with precision, that QuickStatements adds a 17th digit at the very end?
@Magnus Manske: Hopefully this is a bug that can be fixed easily, shall I file a bug in Bitbucket? Yellowcard (talk) 06:03, 4 May 2022 (UTC)

Hyphened language codes

I'm trying to specify "en-au" as label language code, but Len-au doesn't work. Does anybody know if there is a workaround for achieving this? --Horcrux (talk) 11:20, 5 May 2022 (UTC)

The language code is not available on Wikidata. (At least I don't recall seeing it and it doesn't occur in the database.) --Matěj Suchánek (talk) 12:37, 6 May 2022 (UTC)
@Matěj Suchánek: You're right, I was wrong to assume it existed. I tested QS with other hyphened codes like "en-ca" or "en-gb" and it worked perfectly. Thanks, --Horcrux (talk) 14:25, 6 May 2022 (UTC)

Adding sources

Hello, what's wrong with this syntax ? Both syntaxes don't work

Ok, the correct syntax is Q111821226 P81 Q2133516 S854 "https://m.stib.be/line.php?lang=fr&line=81&iti=1"

Request for an option to write ONLY when the field is empty

Can I request for a tick-box option that will only write when there is no text in the description. Or do we have this somewhere out of view? I don't want to overwrite an edit made manually. Thanks! PS Quickstatements has come far, and is by now an excellent tool! Llywelyn2000 (talk) 14:09, 20 July 2022 (UTC)

This sounds like achievable by beforehand item selection, e.g. with https://query.wikidata.org/. --Marsupium (talk) 02:07, 27 July 2022 (UTC)
That's true, but having both would be twice as good! ;-) Llywelyn2000 (talk) 10:44, 29 July 2022 (UTC)

Copying one language label into another one

Hi, I was wondering, whether it was possible to use QS for copying one language label (e.g. German) into another one (e.g. Bavarian) by saying "take the value of the German language label of Q12345 (fake example) and copy it into the Bavarian one of Q12345". I.e., I don't have a person's name as value to be put into the Bavarian label of Q12345, but want to refer to the name that is in the German label instead. Is that possible, and if so, how does it work? Thanks! Errortryagain (talk) 09:57, 28 July 2022 (UTC)

I've run into the same issue with my own instance of Wikibase.
What I did was to make a sparql to select all those items that I wanted to move the value (also think about the description and aliases) exported the file as TSV and using my text-editor moved the data around to create proper QS commands for them. Hope this helps you. Martsniez (talk) 08:56, 12 August 2022 (UTC)

Removing qualifiers

The syntax for removing a statement implies that the syntax could work for removing qualifiers as well (e.g. with random P-numbers)

-Q123|P456|"SomeStatement"|P789|"SomeQualifier"

This however does not work, it removes the statement as a whole, including all ifs qualifiers. Is there way to add removing qualifiers from statements?

Martsniez (talk) 08:54, 12 August 2022 (UTC)

@Martsniez:, How about
-Q123|P456|"SomeStatement"|P789|"SomeQualifier"
Q123|P456|"SomeStatement"
--Jarekt (talk) 16:10, 15 September 2022 (UTC)
Hi @Jarekt thanks, for thinking with me on this. Theoretically that would re-add the statement, but in this situation there could be multiple qualifiers. So that would not work. As basically you are doing:
-Q123|P456|"SomeStatement"
Q123|P456|"SomeStatement"
Martsniez (talk) 08:23, 28 September 2022 (UTC)
It would also remove any references, so not recommended! — Martin (MSGJ · talk) 12:59, 29 September 2022 (UTC)

Sample spreadsheet file to create item with properties , item, references

It will be great if anyone can share a sample spreadsheet file ( with formula) to create an item that include creation of item, instances, country, references etc. Akbarali (talk) 07:52, 17 August 2022 (UTC)

How can I revert a batch?

I have a temporary batch number from a QuickStatements edit. Can I revert the entire batch from that temporary batch number? Trilotat (talk) 11:56, 8 September 2022 (UTC)

disregard. I figured it out. Trilotat (talk) 12:06, 8 September 2022 (UTC)

CSV import broken?

I'm trying to import CSV commands and QuickStatements is hanging. Looking at the response from the API in Firefox's dev tools I notice there's some HTML from a PHP warning which is presumably preventing the page from parsing the rest of the response as JSON:

<br /> <b>Notice</b>:  Undefined offset: 20 in <b>/data/project/quickstatements/public_html/quickstatements.php</b> on line <b>1364</b><br />

--M2Ys4U (talk) 11:54, 11 September 2022 (UTC)

M2Ys4U, I am regularly using both CSV and V1 format and both work; however they are both quite sensitive to little issues, for example CSV is very sensitive to extra spaces or other invisible characters that can sneak in especially when cutting and pasting, or they require 3 double quotes on the beginning and end of strings. Any deviations from expected values will stop execution and will not give you useful error messages. However on the bright side one you figure it out they work great, at least untill you are trying something new. --Jarekt (talk) 01:56, 30 September 2022 (UTC)
I face the same problem.
From Help Manual
https://www.wikidata.org/wiki/Help:QuickStatements
It is said that
+++++++++++++++++++++++++++++++++++++
Item creation
To create a new item, the first element of the row needs to be empty, so the line starts with a ,.
For example
qid,Len,Den,P31
,Regina Phalange,fictional character,Q95074
+++++++++++++++++++++++++++++++++++++
But you cannot do so at this moment!
@@ Hkbulibdmss (talk) 09:03, 29 November 2022 (UTC)
However, if I removed P31 and Q95074, it can allow to import this pattern.
qid,Len,Den
,Regina Phalange,fictional character
Could anyone look into this matter? Hkbulibdmss (talk) 09:07, 29 November 2022 (UTC)
You're right, it doesn't seem to be working now — Martin (MSGJ · talk) 11:34, 29 November 2022 (UTC)
The issue was been logged on Github three weeks ago: https://github.com/magnusmanske/quickstatements/issues/38 Richard Nevell (talk) 19:23, 4 January 2023 (UTC)

Are somevalue and novalue supported?

I tried using V1 command Q106036511 P528 novalue  P972 Q106425660 and Q106036511 P528 "novalue"  P972 Q106425660 but neither one works. did anybody had luck with somevalue and novalues? Jarekt (talk) 16:08, 15 September 2022 (UTC)

V1 commands are not written like that (to my knowledge). Each statement should be a line, starting with the qid:

Q106036511 P528 "novalue"

Q106036511 P972 Q106425660

Also, the quotes around "novalue" and "somevalue" are necessary.

MeisterAbababa (talk) 15:19, 12 October 2022 (UTC)

Several objects at the same time

Hi! I'm totally new with QS. How can I create these two objects at the same time?

CREATE||LAST|Lde|"Carl Oscar Berg"||LAST|Dde|"Bürger"
CREATE||LAST|Lde|"Anna Schmidt"||LAST|Dde|"Bürger"

Thanks! 2003:C5:FF0F:AE98:7C7A:706B:5A5D:196D 11:13, 9 October 2022 (UTC)

The create statement goes on its own line, then each statement takes one line.
CREATE
LAST	Lde	"Carl Oscar Berg"
LAST	Dde	"Bürger"
CREATE
LAST	Lde	"Anna Schmidt"
LAST	Dde	"Bürger"
Also, please note that these people already have items. If you are testing, remember to use Wkdiata-test instead of regular Wikidata.
MeisterAbababa (talk) 16:03, 12 October 2022 (UTC)

Adding a sequence of identical property/value pairs with different qualifiers

I'm working on this wikibase: [ottgaz.org]

I need to enter a succession of property/value pairs with different qualifier dates, like this:

status  eyalet
          start time   17. century
          end time     1822
        eyalet
          start time   1822
          end time     1840

The example is at the bottom of the entry here: [[1]]

When I use quickstatements like this

Q43 P15 Q496 P7 +1601-01-01T00:00:00Z/7 P8 +1822-01-01T00:00:00Z/9
Q43 P15 Q496 P7 +1822-01-01T00:00:00Z/9 P8 +1840-01-01T00:00:00Z/9

I get a result like this

status  eyalet
          start time   17. century
          start time   1822
          end time     1822
          end time     1840

Versions of this question appear in the archives, without a clear solution. Has anyone found a way to do this? Will Hanley (talk) 02:57, 20 October 2022 (UTC)

It's something you could do with OpenRefine, if that is an option for you. When you create a Wikidata schema in OpenRefine, you can configure how each statement is matched to the existing statements on the items. If you ask OpenRefine to take qualifiers into account, then you should get what you want. − Pintoch (talk) 15:45, 20 October 2022 (UTC)
Thanks--that's a good solution. OpenRefine reconciliation does not currently work out of the box with wikibase.cloud, but this is another reason to get it to work. Will Hanley (talk) 19:54, 20 October 2022 (UTC)
I reposted this question on Wikidata OpenRefine help Will Hanley (talk) 03:42, 18 December 2022 (UTC)

CREATE with url

Is it possible to create new items using the URL method? If so, could someone point me towards an example? Thanks — Martin (MSGJ · talk) 10:29, 23 October 2022 (UTC)

I don't know what's wrong

 

Hello All! How do you think it is possible to determine what the error is from such a screen? Pallor (talk) 01:40, 24 October 2022 (UTC)

Move your mouse over the red error markers, I think there could be some information. If I were to guess, either the date of birth is in a wrong format or you forgot "quotes" around the MTMT identifier. --Matěj Suchánek (talk) 08:54, 24 October 2022 (UTC)
Matěj Suchánek Thank you very much, I tried for the mouse before, but it just said in the bubble: "No succes flag set in API result". Thanks for the tips too, I'll check it out, but it looked good in the preview. Thanks! Pallor (talk) 09:00, 24 October 2022 (UTC)
It says it's wrong again, but I haven't figured out why....?
This is what a row looks like (102829):
qid,P31,P27,P103,P1412,P1412,P21,P106,Lhu,Len,P735,P19,P569,P2492
,Q5,Q28,Q9067,Q13955,Q9067,Q6581072,Q620573,"Csorba Zsuzsanna","Zsuzsanna Csorba",Q14937153,Q14424,+1992-03-19T00:00:00Z/11,"10060554"
I also tried deleting the date of birth: (102830)
qid,P31,P27,P103,P1412,P1412,P21,P106,Lhu,Len,P735,P19,P2492
,Q5,Q28,Q9067,Q13955,Q9067,Q6581072,Q620573,"Csorba Zsuzsanna","Zsuzsanna Csorba",Q14937153,Q14424,"10060554"
It hurts that I don't get an error message that would help me fix it. Anyone else have any ideas? Pallor (talk) 10:04, 24 October 2022 (UTC)

It worked! This was the solution:

I don't understand that when I deleted column P2492 from it, but column P19 was still in it, why didn't it read it? Why did you have to scan the date of birth from a separate table? Pallor (talk) 19:03, 29 October 2022 (UTC)

Add language+scripts

I have been wonder how we could make use of QS to bulk add description in Traditional Chinese scripts? will is it Dzh-hant? Thank you very much. jshieh (talk) 18:37, 25 October 2022 (UTC)

Yes, a command like Q123 Dzh-hant "description" will add a description in Traditional Chinese. --Matěj Suchánek (talk) 16:13, 29 October 2022 (UTC)

Multiple source groups not working

I need to make a claim and then add two references. If I use the !Sxxx function, it does not separate them and I end up with a combined group. Then, I tried to make two statements per claim, each with one of the two references. When I tired it with one item it made one claim and two references. But when I put it into the batch, it made two claims of the same duplicate value and put two references into one of the two claims. I don't know how to fix this because the separator for source groups isn't working as listed. RPI2026F1 (talk) 20:39, 5 November 2022 (UTC)

Item creation not working with CSV commands

Posted the bug here but I'm reposting it. If you're trying to create items using the CSV command, it will wait and wait and wait and won't execute. If you inspect the page and look at the response, an error is thrown: Undefined index: new_statement, /data/project/quickstatements/public_html/quickstatements.php on line 640. Looked at the last commits on the repo and it seems a bug was introduced (new_statement instanciated for the V1 format, but not for CSV it seems). Should I create an issue in Github? --Deansfa (talk) 15:55, 7 November 2022 (UTC)

It seems it cannot create statements and it can just create descriptions (reported by an itwiki user) Valerio Bozzolan (talk) 17:57, 24 November 2022 (UTC)

Could not add references (Handle ID)

Hi everyone, I am trying to add a reference to Q115205655. I followed the instructions on the Help page, so I generated this line on the "Import V1 commands" window: Q115205655 P31 Q9067055 S1184 "20.500.11938/68700". That did not work out, I get a generic error message. The issue lies AFA my understanding goes in that the system does not identify the Handle code I added between quotes, but no quotes is not accepted either. Could someone help with this? Iñaki LL (talk) 15:33, 14 November 2022 (UTC)

The fields have to be separated by TAB characters, not regular spaces.
You can write them with the TAB key, which will only work on basic text editors, like Windows's Notepad, or a properly configured code editors (otherwise they may insert a number of spaces instead of a tab).
You can also write each field in a spreadsheet (one field per column) and copy and paste into the Quickstatement window. MeisterAbababa (talk) 20:44, 28 November 2022 (UTC)
Thanks for your reply MeisterAbababa. Yes, actually that is what I did, although I lost the tab when copying the line here, but it did not work in Quickstatements, with tabs. Did you try the line above yourself (with tabs)? Thanks Iñaki LL (talk) 09:45, 2 December 2022 (UTC)
I imported the command you pasted (after having changed the spaces to tabs). I've also just run (and reverted) the line on wikidata's sandbox (Q4115189), and it worked. If after making sure that the tabs are actually tabs, and all of them are tabs, make sure that the quotes are plain double quotes (like the ones in the line, after pasting), instead of the more stylzed quotes Word, for example, inserts. The command is correct and does work. MeisterAbababa (talk) 14:29, 4 December 2022 (UTC)

Deleting GPS coordinates before I add higher quality ones

I have a list of 140 coordinates for rivers in Iceland. I'm also working on a list of islands, mountains and fjords. They all have very high quality coordinates from an official source (LMÍ). So I'll ofcorse add them as reference. I've also matched them with the correct WikiData ID (for example Q207136). My question is, is there a query that I can do to go over all these 136 (soon to be many many more) and delete any previews coordinates? Here the suggested I should do that before adding new coordinates. Steinninn (talk) 14:44, 26 November 2022 (UTC)

@Steinninn: Try using a query like [2]. Then use the remove command, like:
-STATEMENT Q1$00000000-0000-0000-0000-000000000000
Note that for rivers it is possible to have coordinates for both the mouth and source. --Matěj Suchánek (talk) 16:30, 26 November 2022 (UTC)
How do you add coordinates, I just get "invalid snak data" when I try to put in "50.76865,-1.25059" or en:"50.76865,-1.25059" Back ache (talk) 07:37, 1 October 2023 (UTC)
@Back ache: Help:QuickStatements#Add simple statement: Q3669835 TAB P625 TAB @43.26193/10.92708. --Matěj Suchánek (talk) 09:12, 1 October 2023 (UTC)
perfect, thankyou Back ache (talk) 19:57, 1 October 2023 (UTC)

wikibase:grammaticalFeature

I take it that it is not possible to set wikibase:grammaticalFeature for forms? – Finn Årup Nielsen (fnielsen) (talk) 23:27, 1 December 2022 (UTC)

Removing "unknow value"

Hi, I do not know how to remove value 'unknown value' in a P50 (author) statement with qualifier object has this role: anonimous. See the item here. The issue is that I do not know how to express the 'unknown value' and if I add straight -Q112960984 P50 Q4233718, QS removes the value I added later to correct 'unknown value'. How should I express 'unknown value' in QS? Iñaki LL (talk) 10:55, 2 December 2022 (UTC)

We had this issue fixed manually, but it would be great if there was a way forward by means of QS, for another time. Iñaki LL (talk) 11:25, 2 December 2022 (UTC)

Is Quickstatements stuck?

Is there a known problem with Quickstatements? All last batches don't seem to be started yet... Beireke1 (talk) 14:24, 9 December 2022 (UTC)

Seems to still be stuck. RPI2026F1 (talk) 01:08, 10 December 2022 (UTC)
Seems impossible to publish anything. "No valid command found". It works well till yesterday at 6 pm (Toronto) and then it stucked. Since impossible to publish anything. Do you have some news? Vero Marino (talk) 15:24, 14 December 2022 (UTC)
@Vero Marino I just tried it and the service at https://quickstatements.toolforge.org/ to run Quickstatements in the background seems to be up again. I haven't yet tried it from OpenRefine directly though. Beireke1 (talk) 10:35, 19 December 2022 (UTC)
Thank you! Vero Marino (talk) 11:14, 10 January 2023 (UTC)

Unable to use strings in CSV mode?

I am trying to run this batch:

However, QuickStatements is showing this:

 
Error

How do I fix this? I've tried removing the quotes but that doesn't do anything. I've tried making the single quotes into double quotes, but that doesn't fix the problem either. RPI2026F1 (talk) 15:41, 21 December 2022 (UTC)

Nevermind, turns out it's 3 quotes. How does this even make sense? RPI2026F1 (talk) 15:43, 21 December 2022 (UTC)
Return to "QuickStatements/Archive 3" page.