User talk:Magnus Manske/quick statements2

Error log for Batches

edit

First column

edit

I think the tool need "First column are articles from" the same as the version 1 ! --Mr. Ibrahem (talk) 12:13, 28 March 2017 (UTC)Reply

Adding quantity data

edit

It seems that there's a conversion to floating point numbers that 5.8 added as 5.79999999999999982236431605997495353221893310546875. ChristianKl (talk) 13:00, 20 April 2017 (UTC)Reply

Stopping batch"

edit

I tried stopping the batch but unfortunately that feature doesn't seem to work. ChristianKl (talk) 13:09, 20 April 2017 (UTC)Reply

It seems I can stop it from the user page, but not from the general batch list. ChristianKl (talk) 13:45, 20 April 2017 (UTC)Reply
  • I had an issue where I thought the qualifer weren't added correctly, it was my mistake (I thought data would be added in a different order). (-> I removed the relevant part from my above comment).
ChristianKl (talk) 18:39, 21 April 2017 (UTC)Reply

Dependences

edit

Remove ASAP any dependence of original QS - transforming values in first column from articles to WD items. If not easily possible, add an option to the original QS to automaticaly move commands into the new QS (open new tab with filled in text area :D).

Also add an info pointing from the original QS to the new one, but don't deprecate it. --XXN, 12:58, 3 May 2017 (UTC)Reply

BTW, seems that at the moment the original QS is not working, can't make edits with it. --XXN, 12:58, 3 May 2017 (UTC)Reply

Aliases and labels

edit

Maybe QS could not add an alias, if it exactly duplicates and existing label? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:54, 31 May 2017 (UTC)Reply

 
Icon used on Commons for "upload to Wikidata using quick statements. Please use it for same purpose on other projects so it is more familiar.

See c:Category:Creator templates with Wikidata link: quick statements for examples of templates with one-click upload to Wikidata icon that uses new quick statements. The underlying code is at c:Module:Creator. --Jarekt (talk) 18:36, 1 June 2017 (UTC)Reply

@Jarekt: Neat. Could that also add Commons Creator page (P1472), where needed, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:46, 1 June 2017 (UTC)Reply
Andy , I am adding Commons Creator page (P1472), Commons category (P373), place of birth (P19), place of death (P20), image (P18), work location (P937) and sex or gender (P21). --Jarekt (talk) 23:51, 1 June 2017 (UTC)Reply

Conditional creation/ updates

edit

What would make QS2 really powerful would be the ability to write commands somthing like:

If an item exists with [property] = [value]
then
execute command on that item
else
create a new item
execute command on the new item

So, if I have series of lines in my TSV file of author metadata, like:

[VIAF ID] [tab] [ORCID ID} [tab] [name string]

I can add the relevant ORCID iDs to existing items, or create new ones, as needed, by matching VIAF IDs. The commands might look like:

CONDITIONAL [tab] P214 [tab] "70042340" [tab] CREATE
LAST...
LAST...

If the final CREATE was omitted from the first line, QS2 would add values to existing items and discard (or write to a log file) the rest. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:50, 7 June 2017 (UTC)Reply

Manual

edit

Is there manual for quick statements2? Original quick statements had good "How to use" section, but I do not know what changed. --Jarekt (talk) 14:52, 7 June 2017 (UTC)Reply

Good question! I was also just looking for one, wondering if it is possible to specify the calendar model … --Marsupium (talk) 16:04, 10 August 2017 (UTC)Reply
You mean Gregorian vs. Julian ? My guess it that you can not. Please correct me if I am wrong. --Jarekt (talk) 18:32, 10 August 2017 (UTC)Reply

autocomplete?

edit

In the interface suggestions it lists: "Query-style autocomplete for item/property names, replace with Q number. ✓ Done"

How does one use this? in the command import, ctrl+space doesn't do anything. —Hawke666 (talk)


Problem loading vales for property: area

edit

I have a set of area (P2046) values I would like to add to a set of items. It works fine if the value is a whole number. But if the area has a decimal value eg 80.9 you end up with an area value in wikidata with a hugely long figure such as this example: Chafford Gorges Nature Park (Q15208658). Is there a way to get round this? Thanks JerryL2017 (talk) 08:31, 28 October 2017 (UTC)Reply

Update: Apologies, I see this issue was previously reported.JerryL2017 (talk) 10:53, 28 October 2017 (UTC)Reply

Error in the new CSV feature

edit

Hi, Magnus Manske, I was testing the new CSV with header row at Quick Statements and got an error when trying to add an identifier to an item.

I tried

qid,P4344
Q16144071,"187674"

and

qid,P4344
Q16144071,187674

and didn't work. The error says Invalid snak data. But trying

Q16490148|P4344|"187674"

through V1 format worked fine.

I'm sorry in advance if this is not the place to comunicate that and thanks for your amazing work, Ederporto (talk) 18:32, 10 December 2017 (UTC)Reply

Alias removal

edit

-Q33124007 Aen "Wikinews:2017/July/31"

didn't seem to work on Q33124007.
--- Jura 15:55, 18 December 2017 (UTC)Reply

Can't add sources

edit

I try to add sources, according to the interface everything seems to be correct, however it is still rejected.

ADD SOURCES Rukiya Bernard [Q28382437] IMDb ID [P345] nm1113471 stated in [P248] Internet Movie Database [Q37312]
retrieved [P813] 2018-01-01T00:00:00Z/11

What am I doing wrong? Mbch331 (talk) 15:19, 1 January 2018 (UTC)Reply

Seems only to be an issue when there are 2 lines for a source. Mbch331 (talk) 08:47, 7 January 2018 (UTC)Reply
In the old quickstatement, wouldn't everthing need to go on one line or shouldn't it include "LAST" for the 2nd line?
--- Jura 10:43, 7 January 2018 (UTC)Reply
This isn't how I added it, this is how QuickStatements2 interpreted my import. This was my data: Q28382437 P345 "nm1113471" S248 Q37312 s813 2018-01-01T00:00:00Z/11 if there were anything wrong it wouldn't have accepted the information. But based in a batch I did today, the problem could also just be the date. It seems that QuickStatements2 can't handle dates. Mbch331 (talk) 13:01, 7 January 2018 (UTC)Reply
So the import work correctly, but the tool didn't process it? Same thing with #Alias_removal.
--- Jura 20:03, 7 January 2018 (UTC)Reply
Hi! I have the same problem with the references and identifiers, I reported it in the help talk and in the Magnus Manske's Bitbucket repository. Regards, Ivanhercaz   (Talk) 15:06, 7 March 2018 (UTC)Reply
Somehow for me it works fine. See for example Q46212447 where all the statements were created automatically based on Commons creator template. For Example url https://tools.wmflabs.org/quickstatements/#v1=Q17000324%09P856%09%22http://www.urheilumuseo.fi/%22%09S143%09Q48552277%09S813%09+2018-03-07T00:00:00Z/11%0AQ17000324%09P1612%09%22Sports%20Museum%20of%20Finland%22%09S143%09Q48552277%09S813%09+2018-03-07T00:00:00Z/11 will add Commons Institution page (P1612) and official website (P856) with sources and dates. Maybe you are forgetting "+" in front of the date? See documentation. --Jarekt (talk) 16:19, 7 March 2018 (UTC)Reply
edit

Would it be possible to support deleting sitelinks? I tried a statement:

  -Q9806113|Scommonswiki|"Category:Actors from Austria"

but it gives an error "Incomplete or unknown command". Looking at the source code, well I don't know anything about PHP, but it seems that this command isn't supported. Alternatively, is there some other tool that can do it? Ghouston (talk) 00:54, 23 March 2018 (UTC)Reply

How to see results in a separate way as Quick Statements 1?

edit

If want to use results to use in my excels to new data fill, for example if I send a lot of create+label I´d like to have result lines processed ( Example: Processing Q51854001 (Q51854001 Les "Tour de California 2018")...) Currently I have to navigate in the visual menu and got one per one. It is possible to have a text mode to see results as Quick Statements 1? --Repf72 (talk) 16:56, 28 April 2018 (UTC)Reply

I get errors when attempting to add numbers

edit

If I run a batch trying to load Q#### to a statement, it works fine. Example, language of work or name (P407) accepts English (Q1860). For for a property that doesn't call for a Q###, such as ISBN-13 (P212) or number of pages (P1104), I cannot seem to submit the string of numbers. I get errors every time. Am I missing something? Thanks for advice. -Trilotat (talk) 04:46, 9 October 2018 (UTC)Reply

I figured this out. I need to put in quotation marks the text information for the property. I should have figured that out on my own. -Trilotat (talk) 23:36, 6 November 2018 (UTC)Reply

Thanks!

edit

Hey Magnus, no question or comment, just a 'thank you' for the new Quick Statements. What an improvement over the old interface. Thank you so much! Husky (talk) 16:56, 6 November 2018 (UTC)Reply

What determines when a batch starts running?

edit

Hi Magnus - Quickstatements is awesome! However a question - I submitted several batches earlier today; a couple of them have run, but two are just sitting there. #8402 was submitted 6 hours ago, and hasn't yet started. There seems to be only 1 other batch running right now. What's the hang-up? ArthurPSmith (talk) 21:44, 13 February 2019 (UTC)Reply

It looks like 8401 was the last batch to run, nothing with a higher number has started at all (4 hours later). ArthurPSmith (talk) 01:51, 14 February 2019 (UTC)Reply

500 - Internal Server Error

edit

It's been 3 days since I can't log in on QS2. Every time I click on Log In on the QuickStatement 2 tool, I end up on a page where it's written 500 - Internal Server Error.

I tried different browsers on different OS, same results.

Is there something to fix, either on my side or on server side?

Thanks, Dirac (talk) 13:39, 18 February 2019 (UTC)Reply

Same error here. YoaR (talk) 16:06, 18 February 2019 (UTC)Reply
It's back. Dirac (talk) 20:14, 18 February 2019 (UTC)Reply

Error on Adding Qualifiers using Quickstatements.

edit

As a part of International Mother Language Editathon I am trying to run a CSV on quickstatements. But I am getting error on adding qualifiers.

My CSV is like

qid,P166,qal585
Q17682582,Q5449085,2014

The statement added correctly and on the qualifier part it is hitting error. I tried this with v1 commands also but it is not simply working. The error says "Invalid snack data." How to fix this --Ranjithsiji (talk) 04:21, 22 February 2019 (UTC)Reply

@Ranjithsiji: Because P585 expects a date, you need to change the year "2014" to the date "+2014-01-01T00:00:00Z/9". See the HOWTO on the original QS tool for more info. Mahir256 (talk) 08:24, 22 February 2019 (UTC)Reply

Is this possible?

edit

Hello, I ask you to help me get the International Standard Name Identifier for Creator Farhad Garashov (Q62089827) and put it on the wikidata, see ISNI (P213).--Elshad Iman (Elşad İman) (talk) 12:03, 20 April 2019 (UTC)Reply

Commons not supporting removing statements

edit

The tool is not supporting removing statements on commons, with batches like #21602. Is there any chance you could add that? I would like to be able to remove a small set that I made a mistake on (otherwise, I end up having to do it manually). Sadads (talk) 14:37, 15 November 2019 (UTC)Reply

@Magnus Manske: -- pinging, Sadads (talk) 14:38, 15 November 2019 (UTC)Reply

V2 import did not work - browser did not react on "import" click - V1 did the trick

edit

I first tried to load a V2 batch like:

qid,Lde
Q18225205,13Hor

(browser seemed not to do anything at all; I did not get an error message...)

It did not work. Browser did not react. It did however work for 2 other batches with Len and Lfr...

Then I converted it into a V1 batch as:

Q18225205	Lde	"13Hor"

This worked like a gem.

What is happening? Any possible reason why this happened? Geertivp (talk) 11:36, 16 April 2020 (UTC)Reply

Changes to CSV import format

edit

Improvements to import

  • Make the final C/R optional.
  • Allow "_" instead of "," in the first line.

See Topic:Vklj7ag5qazmn130 --- Jura 05:41, 20 April 2020 (UTC)Reply

Changes to sample in GUI

edit

Sample in interface doesn't work (any more). Should read:

qid,Len,Den,Aen,P31,-P31,P21,P735,qal1545,S248,s214,S143,Senwiki
Q42,Douglas Adams,author,Douglas Noël Adams,Q5,Q36180,Q6581097,Q463035,"""1""",Q54919,"""113230702""",Q328,Douglas Adams

See Topic:Vk8h1jnu6nvaiv1y#flow-post-vkafj3emakzygrux. --- Jura 05:41, 20 April 2020 (UTC)Reply

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

edit

Except I am. Any idea of how I can get pass this message? --Lmalena (talk) 20:46, 1 May 2020 (UTC)Reply

@Lmalena: Except you aren't. Wikidata:Autoconfirmed users states that "Wikidata user accounts that are more than four days old and have more than 50 edits are considered autoconfirmed" and you seem to only have about 15 edits. Majavah (talk) 10:20, 4 May 2020 (UTC)Reply
I'm in the autoconfirmed list, I didn't know I need the edits too. Thanks you. --Lmalena (talk) 13:42, 4 May 2020 (UTC)Reply

Fatal Error

edit

When I click on login, I get this unpleasant message. I cannot figure out how to get past it.


Fatal error: Uncaught Exception: Error retrieving token1: {"error":"mwoauth-callback-not-oob-or-prefix","message":"oauth_callback must be set, and must be set to \"oob\" (case-sensitive), or the configured callback must be a prefix of the supplied callback."} in /data/project/magnustools/public_html/php/oauth.php:282

Suggestions? Thanks. Trilotat (talk) 13:03, 1 June 2020 (UTC)Reply

Resolved. Thanks. Trilotat (talk) 18:48, 2 June 2020 (UTC)Reply

False negative?

edit

FWIW, my batch reported errors, but a manual inspection of those entries seem to indicate it worked just fine. My batch was Batch #39296 "United States senator by congress context qualifiers". I'm not sure how to follow up any further on these reported errors so I just thought I'd point it out in case it's useful to track down what happened. In any event, I'm happy with the results.

Regards, Gettinwikiwidit (talk) 07:44, 5 August 2020 (UTC)Reply


I can't make api.php work for me

edit

Hi: I'm preparing a big upload for Structured Data on Commons (>300K statements). I want to use the QS api.php but can't make it work. I have lot of Wikidata editions (see my batches) and I'm using my token. Also I've made uploads to SDC via web UI. I'm calling the api like this:

curl https://quickstatements.toolforge.org/api.php \
	-d action=import \
	-d submit=1 \
	-d username=Olea \
	-d format=v1 \
	-d "batchname=test" \
	-d site=wikidata \
	--data-raw 'token=TOKENTOKENTOKEN.' \
	--data-urlencode data@farfollas.qs

but always I get:

{"status":"Problem generating OAuth signature; user '{}' needs to have submitted a batch namually at least once before","debug":{"format":"v1","temporary":false,"openpage":0},"site":"wikidata"}

Yes, the example uses site=wikidata instead of site=commons, but I get the same message in both cases.

I don't know if I'm missing something. —Ismael Olea (talk) 11:32, 5 January 2022 (UTC)Reply

Get all WD items from a batch

edit

Could you help me to get all items from a using batch number? Akbarali (talk) 19:05, 21 May 2023 (UTC)Reply

Return to the user page of "Magnus Manske/quick statements2".