Jump to content

Wikidata QuickStatements Tutorial

From mediawiki.org

Introduction

[edit]

Wikidata QuickStatements is a powerful tool used for editing data in Wikidata, a free and open knowledge base. It allows users to make large-scale edits or additions to Wikidata items using a simple, tabular syntax. This tutorial will guide you through the process of using QuickStatements to edit Wikidata items efficiently.

Prerequisites

[edit]

Before you begin, make sure you have the following: Access to a web browser with an internet connection. A registered account on Wikidata (create one if you don't have it). Basic knowledge of Wikidata concepts, such as items, properties, and statements.

Accessing QuickStatements

[edit]

Open your web browser and go to the QuickStatements website: https://quickstatements.toolforge.org. Log in to QuickStatements using your Wikidata account credentials.

Preparing Data

[edit]

Before you start using QuickStatements, you need to prepare your data in a specific tabular format. Here's an example of a simple dataset you can use:

Item ID Property Value
Q42 P31 Q5
Q42 P21 Q6581097
Q42 P27 Q30

Item ID: The QID of the Wikidata item you want to edit. Property: The property ID of the property you want to add or modify. Value: The value you want to add or modify. This can be a QID or a literal value, depending on the property type. You can create your dataset using a spreadsheet program like Microsoft Excel or Google Sheets, or you can manually create a text file with tab-separated values.

Uploading and Processing Data

[edit]

Click on the "Upload" button in QuickStatements. Select the file containing your prepared dataset and click "Open." QuickStatements will analyze the data and display it in the "Data imported" section. Verify that the data is correctly parsed. Review the suggested edits under the "Suggested changes" section. QuickStatements will automatically suggest edits based on the data you provided. If necessary, modify the suggested changes by editing the values directly in the table. Click on the "Prepare" button to generate the QuickStatements commands.

Reviewing and Executing Commands

[edit]

QuickStatements will display the generated commands under the "Commands" section. Each command corresponds to a single edit. Review the commands to ensure they match your intended changes. You can make any final adjustments directly in the commands. Click on the "Run" button to execute the commands. QuickStatements will start processing the commands and applying the edits to Wikidata. Monitor the progress of the edits in the "Command status" section. QuickStatements will show the status of each command as "queued," "running," or "completed."

Verifying Edits

[edit]

After the commands have been processed, you can verify the edits on Wikidata. Visit the Wikidata item pages you edited to check if the changes have been applied correctly. If you encounter any errors or unexpected results, review your dataset and the generated commands to identify and correct any mistakes.

Congratulations! You have successfully learned how to use QuickStatements to edit Wikidata items efficiently. Remember to review and verify your changes to ensure data accuracy. QuickStatements is a powerful tool that can help you make bulk edits in Wikidata, saving you time and effort