CINXE.COM
Help:QuickStatements - Wikidata
<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Help:QuickStatements - Wikidata</title> <script>(function(){var className="client-js";var cookie=document.cookie.match(/(?:^|; )wikidatawikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"4df947bd-3c40-4470-99d2-505cdd5ced8f","wgCanonicalNamespace":"Help","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":12,"wgPageName":"Help:QuickStatements","wgTitle":"QuickStatements","wgCurRevisionId":2279705051,"wgRevisionId":2279705051,"wgArticleId":42892887,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*" ],"wgCategories":["Pages using the JsonConfig extension","Help:QuickStatements","Help-en"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Help:QuickStatements","wgRelevantArticleId":42892887,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikidata","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":60000,"wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false, "autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"source","wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q107660738","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages":"ready","ext.cite.styles":"ready","mediawiki.page.gallery.styles":"ready","ext.discussionTools.init.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.styles.legacy":"ready","ext.translate.edit.documentation.styles":"ready", "ext.translate":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","codex-search-styles":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","mediawiki.page.gallery","mediawiki.page.media","site","mediawiki.page.ready","mediawiki.toc","skins.vector.legacy.js","wikibase.ui.entitysearch","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.gadget.Search","ext.gadget.ProtectionIndicators","ext.gadget.imagelinks","ext.gadget.NewSection","ext.gadget.formWizard","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.wikimediaEvents.wikibase","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=codex-search-styles%7Cext.cite.styles%7Cext.discussionTools.init.styles%7Cext.translate%2CwikimediaBadges%7Cext.translate.edit.documentation.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.page.gallery.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.styles.legacy%7Cwikibase.client.init&only=styles&skin=vector"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.wikidata.org/wiki/Help:QuickStatements"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Help:QuickStatements&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikidata.png"> <link rel="icon" href="/static/favicon/wikidata.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikidata (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.wikidata.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.wikidata.org/wiki/Help:QuickStatements"> <link rel="license" href="/wiki/Wikidata:Copyright"> <link rel="alternate" type="application/atom+xml" title="Wikidata Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin-vector-legacy mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-12 ns-subject mw-editable page-Help_QuickStatements rootpage-Help_QuickStatements skin-vector action-view"><div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <div id="content" class="mw-body" role="main"> <a id="top"></a> <div id="siteNotice"><!-- CentralNotice --></div> <div class="mw-indicators"> <div id="mw-indicator-shortcut" class="mw-indicator"><div class="mw-parser-output"><code><a href="/wiki/Q620197" title="Q620197">Shortcut</a>: Help:QS</code></div></div> </div> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Help</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">QuickStatements</span></h1> <div id="bodyContent" class="vector-body"> <div id="siteSub" class="noprint">From Wikidata</div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="contentSub2"></div> <div id="jump-to-nav"></div> <a class="mw-jump-link" href="#mw-head">Jump to navigation</a> <a class="mw-jump-link" href="#searchInput">Jump to search</a> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint nomobile" dir="ltr" lang="en"><a href="/w/index.php?title=Special:Translate&group=page-Help%3AQuickStatements&action=page&filter=&action_source=translate_page" title="Special:Translate">Translate this page</a></div><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Other languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Help:QuickStatements/id" class="mw-pt-progress mw-pt-progress--med" title="Bantuan:QuickStatements (16% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/wiki/Help:QuickStatements/ms" class="mw-pt-progress mw-pt-progress--low" title="Help:QuickStatements/ms (1% translated)" lang="ms" dir="ltr">Bahasa Melayu</a></li> <li><a href="/wiki/Help:QuickStatements/en-gb" class="mw-pt-progress mw-pt-progress--high" title="Help:QuickStatements (82% translated)" lang="en-GB" dir="ltr">British English</a></li> <li><a href="/wiki/Help:QuickStatements/de" class="mw-pt-progress mw-pt-progress--high" title="Hilfe:QuickStatements (99% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete" lang="en" dir="ltr">English</span></li> <li><a href="/wiki/Help:QuickStatements/lb" class="mw-pt-progress mw-pt-progress--low" title="Help:QuickStatements/lb (6% translated)" lang="lb" dir="ltr">Lëtzebuergesch</a></li> <li><a href="/wiki/Help:QuickStatements/nl" class="mw-pt-progress mw-pt-progress--high" title="Help:QuickStatements/nl (99% translated)" lang="nl" dir="ltr">Nederlands</a></li> <li><a href="/wiki/Help:QuickStatements/vi" class="mw-pt-progress mw-pt-progress--low" title="Trợ giúp:QuickStatements (3% translated)" lang="vi" dir="ltr">Tiếng Việt</a></li> <li><a href="/wiki/Help:QuickStatements/da" class="mw-pt-progress mw-pt-progress--low" title="Help:QuickStatements/da (12% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="/wiki/Help:QuickStatements/es" class="mw-pt-progress mw-pt-progress--high" title="Ayuda:QuickStatements (99% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Help:QuickStatements/fr" class="mw-pt-progress mw-pt-progress--high" title="Aide:QuickStatements (97% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Help:QuickStatements/it" class="mw-pt-progress mw-pt-progress--med" title="Aiuto:QuickStatements (31% translated)" lang="it" dir="ltr">italiano</a></li> <li><a href="/wiki/Help:QuickStatements/hu" class="mw-pt-progress mw-pt-progress--med" title="Segítség:QuickStatements (16% translated)" lang="hu" dir="ltr">magyar</a></li> <li><a href="/wiki/Help:QuickStatements/pl" class="mw-pt-progress mw-pt-progress--med" title="Pomoc:QuickStatements (34% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Help:QuickStatements/pt-br" class="mw-pt-progress mw-pt-progress--med" title="Ajuda:QuickStatements (19% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/wiki/Help:QuickStatements/ro" class="mw-pt-progress mw-pt-progress--med" title="Help:QuickStatements (68% translated)" lang="ro" dir="ltr">română</a></li> <li><a href="/wiki/Help:QuickStatements/sv" class="mw-pt-progress mw-pt-progress--high" title="Help:QuickStatements (99% translated)" lang="sv" dir="ltr">svenska</a></li> <li><a href="/wiki/Help:QuickStatements/cs" class="mw-pt-progress mw-pt-progress--low" title="Nápověda:QuickStatements (5% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Help:QuickStatements/szl" class="mw-pt-progress mw-pt-progress--med" title="Pōmoc:QuickStatements (23% translated)" lang="szl" dir="ltr">ślůnski</a></li> <li><a href="/wiki/Help:QuickStatements/el" class="mw-pt-progress mw-pt-progress--low" title="Βοήθεια : QuickStatements (2% translated)" lang="el" dir="ltr">Ελληνικά</a></li> <li><a href="/wiki/Help:QuickStatements/be-tarask" class="mw-pt-progress mw-pt-progress--med" title="Дапамога:ХуткіяСьцьверджаньні (34% translated)" lang="be-tarask" dir="ltr">беларуская (тарашкевіца)</a></li> <li><a href="/wiki/Help:QuickStatements/ru" class="mw-pt-progress mw-pt-progress--med" title="Справка:QuickStatements (48% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/wiki/Help:QuickStatements/uk" class="mw-pt-progress mw-pt-progress--med" title="Довідка:QuickStatements (61% translated)" lang="uk" dir="ltr">українська</a></li> <li><a href="/wiki/Help:QuickStatements/hy" class="mw-pt-progress mw-pt-progress--low" title="Help:QuickStatements/hy (3% translated)" lang="hy" dir="ltr">հայերեն</a></li> <li><a href="/wiki/Help:QuickStatements/ar" class="mw-pt-progress mw-pt-progress--med" title="مساعدة:بيانات سريعة (29% translated)" lang="ar" dir="rtl">العربية</a></li> <li><a href="/wiki/Help:QuickStatements/bn" class="mw-pt-progress mw-pt-progress--med" title="সাহায্য:কুইকস্ট্যাটমেন্টস (28% translated)" lang="bn" dir="ltr">বাংলা</a></li> <li><a href="/wiki/Help:QuickStatements/ta" class="mw-pt-progress mw-pt-progress--low" title="Help:குயிக்சேட்மெண்ட்சு (1% translated)" lang="ta" dir="ltr">தமிழ்</a></li> <li><a href="/wiki/Help:QuickStatements/te" class="mw-pt-progress mw-pt-progress--high" title="సహాయం:QuickStatements (98% translated)" lang="te" dir="ltr">తెలుగు</a></li> <li><a href="/wiki/Help:QuickStatements/ml" class="mw-pt-progress mw-pt-progress--low" title="സഹായം:ദ്രുതപദസമുച്ചയം (4% translated)" lang="ml" dir="ltr">മലയാളം</a></li> <li><a href="/wiki/Help:QuickStatements/zh" class="mw-pt-progress mw-pt-progress--high" title="說明:QuickStatements (85% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Help:QuickStatements/ja" class="mw-pt-progress mw-pt-progress--high" title="Help:QuickStatements (92% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Help:QuickStatements/yue" class="mw-pt-progress mw-pt-progress--low" title="幫手:QuickStatements (3% translated)" lang="yue" dir="ltr">粵語</a></li> <li><a href="/wiki/Help:QuickStatements/ko" class="mw-pt-progress mw-pt-progress--low" title="도움말:QuickStatements (1% translated)" lang="ko" dir="ltr">한국어</a></li></ul></div> <p class="mw-empty-elt"> </p> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Commons_to_Wikidata_QuickStatements.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Commons_to_Wikidata_QuickStatements.svg/220px-Commons_to_Wikidata_QuickStatements.svg.png" decoding="async" width="220" height="220" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Commons_to_Wikidata_QuickStatements.svg/330px-Commons_to_Wikidata_QuickStatements.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Commons_to_Wikidata_QuickStatements.svg/440px-Commons_to_Wikidata_QuickStatements.svg.png 2x" data-file-width="512" data-file-height="512"/></a><figcaption>Icon used on Commons by templates that upload to Wikidata using QuickStatements</figcaption></figure> <div class="tright"><div class="wikipediauserbox coolest-tool-award" style="float:right;border:1px solid #BD00FF;margin:1px;width:238px"><table role="presentation" style="border-collapse:collapse;width:238px;margin-bottom:0;margin-top:0;background:#C7C7C7;color:inherit"><tbody><tr><td style="border:0;width:45px;height:120px;background:black;text-align:center;font-size:14pt;font-weight:bold;color:black;padding:0 1px 0 0;line-height:1.25em;vertical-align:middle;padding: 3px; box-sizing:border-box;"><span typeof="mw:File"><a href="/wiki/File:Eggbeater_stencil_narrow.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Eggbeater_stencil_narrow.svg/42px-Eggbeater_stencil_narrow.svg.png" decoding="async" width="42" height="109" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Eggbeater_stencil_narrow.svg/63px-Eggbeater_stencil_narrow.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Eggbeater_stencil_narrow.svg/84px-Eggbeater_stencil_narrow.svg.png 2x" data-file-width="1000" data-file-height="2600"/></a></span></td><td style="border:0;text-align:left;font-size:10pt;padding:0 4px 0 4px;height:120px;line-height:1.25em;color:black;vertical-align:middle;text-align:center; line-height: 2.2;"><div>QuickStatements</div><div style="font-family: Impact, Charcoal, sans-serif;"><span style="color: #BD00FF">2019</span> Coolest Tool Award Winner</div><div style="line-height:1"><span style="font-size:smaller">in the category</span><br/><a href="https://meta.wikimedia.org/wiki/Coolest_Tool_Award/2019" class="extiw" title="meta:Coolest Tool Award/2019"><span style="font-weight:normal;text-align:center;color:#BD00FF;">Editor</span></a></div></td></tr></tbody></table></div></div> <p><b>QuickStatements</b> (<b>QS</b>) is a tool, written by <a href="/wiki/User:Magnus_Manske" title="User:Magnus Manske">Magnus Manske</a>, that can edit Wikidata items, based on a simple set of text commands. The tool can add and remove statements, labels, descriptions and aliases; as well as add statements with optional qualifiers and sources. The command sequence can be typed in the import window or created in a spreadsheet or text editor and pasted in. It can also be created by external code like Lua, called from a template and passed as a URL. Data edited in <a href="/wiki/Special:MyLanguage/Wikidata:Tools/OpenRefine" title="Special:MyLanguage/Wikidata:Tools/OpenRefine">OpenRefine</a> can also be exported to the QuickStatements format. </p> <div id="toc" class="toc" role="navigation" aria-labelledby="mw-toc-heading"><input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none" /><div class="toctitle" lang="en" dir="ltr"><h2 id="mw-toc-heading">Contents</h2><span class="toctogglespan"><label class="toctogglelabel" for="toctogglecheckbox"></label></span></div> <ul> <li class="toclevel-1 tocsection-1"><a href="#The_tools"><span class="tocnumber">1</span> <span class="toctext">The tools</span></a></li> <li class="toclevel-1 tocsection-2"><a href="#Command_sequence_syntax"><span class="tocnumber">2</span> <span class="toctext">Command sequence syntax</span></a> <ul> <li class="toclevel-2 tocsection-3"><a href="#Add_simple_statement"><span class="tocnumber">2.1</span> <span class="toctext">Add simple statement</span></a></li> <li class="toclevel-2 tocsection-4"><a href="#Add_statement_with_qualifiers"><span class="tocnumber">2.2</span> <span class="toctext">Add statement with qualifiers</span></a></li> <li class="toclevel-2 tocsection-5"><a href="#Add_statement_with_sources"><span class="tocnumber">2.3</span> <span class="toctext">Add statement with sources</span></a></li> <li class="toclevel-2 tocsection-6"><a href="#Adding_labels,_aliases,_descriptions_and_sitelinks"><span class="tocnumber">2.4</span> <span class="toctext">Adding labels, aliases, descriptions and sitelinks</span></a></li> <li class="toclevel-2 tocsection-7"><a href="#Item_creation"><span class="tocnumber">2.5</span> <span class="toctext">Item creation</span></a></li> <li class="toclevel-2 tocsection-8"><a href="#Item_merging"><span class="tocnumber">2.6</span> <span class="toctext">Item merging</span></a></li> <li class="toclevel-2 tocsection-9"><a href="#Removing_statements"><span class="tocnumber">2.7</span> <span class="toctext">Removing statements</span></a></li> <li class="toclevel-2 tocsection-10"><a href="#Comments"><span class="tocnumber">2.8</span> <span class="toctext">Comments</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-11"><a href="#CSV_file_syntax"><span class="tocnumber">3</span> <span class="toctext">CSV file syntax</span></a> <ul> <li class="toclevel-2 tocsection-12"><a href="#Commands"><span class="tocnumber">3.1</span> <span class="toctext">Commands</span></a></li> <li class="toclevel-2 tocsection-13"><a href="#Item_creation_2"><span class="tocnumber">3.2</span> <span class="toctext">Item creation</span></a></li> <li class="toclevel-2 tocsection-14"><a href="#Statement_removal_commands"><span class="tocnumber">3.3</span> <span class="toctext">Statement removal commands</span></a></li> <li class="toclevel-2 tocsection-15"><a href="#Commas_and_double_quotes"><span class="tocnumber">3.4</span> <span class="toctext">Commas and double quotes</span></a></li> <li class="toclevel-2 tocsection-16"><a href="#Combined_sample"><span class="tocnumber">3.5</span> <span class="toctext">Combined sample</span></a></li> <li class="toclevel-2 tocsection-17"><a href="#Samples_by_value_type"><span class="tocnumber">3.6</span> <span class="toctext">Samples by value type</span></a></li> <li class="toclevel-2 tocsection-18"><a href="#Full_example"><span class="tocnumber">3.7</span> <span class="toctext">Full example</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-19"><a href="#Running_QuickStatements"><span class="tocnumber">4</span> <span class="toctext">Running QuickStatements</span></a> <ul> <li class="toclevel-2 tocsection-20"><a href="#Using_QuickStatements_version_2"><span class="tocnumber">4.1</span> <span class="toctext">Using QuickStatements version 2</span></a></li> <li class="toclevel-2 tocsection-21"><a href="#Using_QuickStatements_version_1"><span class="tocnumber">4.2</span> <span class="toctext">Using QuickStatements version 1</span></a></li> <li class="toclevel-2 tocsection-22"><a href="#Using_QuickStatements_version_2_in_batch_mode"><span class="tocnumber">4.3</span> <span class="toctext">Using QuickStatements version 2 in batch mode</span></a> <ul> <li class="toclevel-3 tocsection-23"><a href="#When_to_use_batch_mode?"><span class="tocnumber">4.3.1</span> <span class="toctext">When to use batch mode?</span></a></li> <li class="toclevel-3 tocsection-24"><a href="#Using_batch_mode"><span class="tocnumber">4.3.2</span> <span class="toctext">Using batch mode</span></a></li> </ul> </li> <li class="toclevel-2 tocsection-25"><a href="#Running_QuickStatements_by_URL"><span class="tocnumber">4.4</span> <span class="toctext">Running QuickStatements by URL</span></a></li> <li class="toclevel-2 tocsection-26"><a href="#Clients"><span class="tocnumber">4.5</span> <span class="toctext">Clients</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-27"><a href="#Limitations"><span class="tocnumber">5</span> <span class="toctext">Limitations</span></a></li> <li class="toclevel-1 tocsection-28"><a href="#FAQ"><span class="tocnumber">6</span> <span class="toctext">FAQ</span></a></li> <li class="toclevel-1 tocsection-29"><a href="#Best_practices"><span class="tocnumber">7</span> <span class="toctext">Best practices</span></a></li> <li class="toclevel-1 tocsection-30"><a href="#Using_the_API_to_start_batches"><span class="tocnumber">8</span> <span class="toctext">Using the API to start batches</span></a></li> <li class="toclevel-1 tocsection-31"><a href="#Edit_groups"><span class="tocnumber">9</span> <span class="toctext">Edit groups</span></a></li> <li class="toclevel-1 tocsection-32"><a href="#See_also"><span class="tocnumber">10</span> <span class="toctext">See also</span></a> <ul> <li class="toclevel-2 tocsection-33"><a href="#Tools_that_export_to_QuickStatements"><span class="tocnumber">10.1</span> <span class="toctext">Tools that export to QuickStatements</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-34"><a href="#References"><span class="tocnumber">11</span> <span class="toctext">References</span></a></li> </ul> </div> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="The_tools" data-mw-thread-id="h-The_tools"><span data-mw-comment-start="" id="h-The_tools"></span>The tools<span data-mw-comment-end="h-The_tools"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=1" title="Edit section: The tools"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-The_tools","replies":[]}}--></div> <p>QuickStatements tool went through several iterations and rewrites. You should always use the <a href="https://iw.toolforge.org/quickstatements" class="extiw" title="toollabs:quickstatements">current version</a> of this tool whenever possible. There are several QuickStatements versions available: </p> <ul><li><b><a href="https://iw.toolforge.org/quickstatements" class="extiw" title="toollabs:quickstatements">QuickStatements version 2</a></b> (<b>V2</b>) <b>rewrite</b> or <b>new interface</b> (current version)</li> <li><b>Release history</b> <ul><li><a href="https://iw.toolforge.org/quickstatements/index_old.html" class="extiw" title="toollabs:quickstatements/index old.html">QuickStatements version 2</a> (V2) <i>original</i> or <i>old interface</i></li> <li><a href="https://iw.toolforge.org/wikidata-todo/quick_statements.php" class="extiw" title="toollabs:wikidata-todo/quick statements.php">QuickStatements version 1</a> (V1) (works no longer)</li></ul></li></ul> <p>Syntax between versions can vary slightly. The rest of the document will describe the syntax of the current version, but will mark parts which were not supported in the earlier versions. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Command_sequence_syntax" data-mw-thread-id="h-Command_sequence_syntax"><span data-mw-comment-start="" id="h-Command_sequence_syntax"></span>Command sequence syntax<span data-mw-comment-end="h-Command_sequence_syntax"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=2" title="Edit section: Command sequence syntax"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Command_sequence_syntax","replies":["h-Add_simple_statement-Command_sequence_syntax","h-Add_statement_with_qualifiers-Command_sequence_syntax","h-Add_statement_with_sources-Command_sequence_syntax","h-Adding_labels,_aliases,_descriptions_and_sitelinks-Command_sequence_syntax","h-Item_creation-Command_sequence_syntax","h-Item_merging-Command_sequence_syntax","h-Removing_statements-Command_sequence_syntax","h-Comments-Command_sequence_syntax"]}}--></div> <p>This section describes syntax used since V1 version of the tool, sometimes referred to as <b>V1 commands</b><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>. </p> <div class="mw-heading mw-heading3"><h3 id="Add_simple_statement" data-mw-thread-id="h-Add_simple_statement-Command_sequence_syntax"><span data-mw-comment-start="" id="h-Add_simple_statement-Command_sequence_syntax"></span>Add simple statement<span data-mw-comment-end="h-Add_simple_statement-Command_sequence_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=3" title="Edit section: Add simple statement"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>You can specify the statements to add by typing/pasting into the tool's text area. Different parts of the statement are separated by a <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> or "|"<sup id="cite_ref-v2_2-0" class="reference"><a href="#cite_note-v2-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> characters. Each command is in a new line, or separated by "||"<sup id="cite_ref-v2_2-1" class="reference"><a href="#cite_note-v2-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> characters. Hint: You can also use a spreadsheet software such as <a href="https://en.wikipedia.org/wiki/Microsoft_Excel" class="extiw" title="w:Microsoft Excel">Microsoft Excel</a> or <a href="https://en.wikipedia.org/wiki/LibreOffice_Calc" class="extiw" title="w:LibreOffice Calc">LibreOffice Calc</a>; copying/pasting the cells should automatically insert <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span>s. Also text editors like <a href="https://en.wikipedia.org/wiki/Notepad%2B%2B" class="extiw" title="w:Notepad++">Notepad++</a> allow replacement of any symbol by the <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> character (\t). </p><p>Each statement <i><span style="font-variant: small-caps">must</span></i> consist of an <span style="background-color:#DDD;color:black;border:3px solid #BBB;">entity</span>, a <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">property</span>, and a <span style="background-color:#DDD;color:black;border:3px solid #BBB;">value</span>. An <span style="background-color:#DDD;color:black;border:3px solid #BBB;">entity</span> can be an <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">item</span>, a <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">property</span>, a <span style="background-color:#DBFFF9;color:black;border:3px solid #7FFFE9;">lexeme</span><sup id="cite_ref-v2_2-2" class="reference"><a href="#cite_note-v2-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>, a <span style="background-color:#DBFFFF;color:black;border:3px solid #7FFFFF;">form</span><sup id="cite_ref-v2_2-3" class="reference"><a href="#cite_note-v2-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>, or a <span style="background-color:#DBF9FF;color:black;border:3px solid #7FE9FF;">sense</span><sup id="cite_ref-v2_2-4" class="reference"><a href="#cite_note-v2-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>. A <span style="background-color:#DDD;color:black;border:3px solid #BBB;">value</span> can be another <span style="background-color:#DDD;color:black;border:3px solid #BBB;">entity</span>, a <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">string</span>, a <span style="background-color:#D7D1F8;color:black;border:3px solid #A095EE;">time</span>, a <span style="background-color:#FFEAB7;color:black;border:3px solid #FFC848;">location</span>, or a <span style="background-color:#E1E1A8;color:black;border:3px solid #D1D17A;">quantity</span>, depending on the property type, or one of the special values <tt>somevalue</tt> or <tt>novalue</tt> (see <a href="/wiki/Special:MyLanguage/Help:Statements#Unknown_or_no_values" title="Special:MyLanguage/Help:Statements">Unknown or no values</a>). </p><p>Formatting of each part: </p> <ul><li><span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;"><a href="/wiki/Special:MyLanguage/Help:Data_type#wikibase-item" title="Special:MyLanguage/Help:Data type">Items</a></span> on Wikidata are always in the form Qxx. On Commons they are always in the form Mxx. <small>In QuickStatements version 1 one could use an article name instead of the q-code, if one filled in a xxwiki value in the input box above the text area; the correct item number (if available) was retrieved automatically.</small> <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q4115189</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P31</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q1</span></dd> <dd>Meaning: add to <span class="statement"><b class="subject"><a href="/wiki/Q4115189" title="Q4115189">Wikidata Sandbox <small>(Q4115189)</small></a></b><span class="predicate"><a href="/wiki/Property:P31" title="Property:P31">instance of <small>(P31)</small></a></span><span class="object"><a href="/wiki/Q1" title="Q1">Universe <small>(Q1)</small></a></span></span><style data-mw-deduplicate="TemplateStyles:r2202089130">.mw-parser-output .statement{margin:0 .2em;background:var(--background-color-base,#fff);color:var(--color-base,#202122);border:1px solid var(--border-color-subtle,#c8ccd1)}.mw-parser-output .statement .subject{padding:0 .2em}.mw-parser-output .statement .predicate{background:var(--background-color-neutral,#eaecf0);color:var(--color-emphasized,#000);padding:0 .2em}.mw-parser-output .statement .object{padding:0 .2em}</style></dd></dl></li> <li><span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;"><a href="/wiki/Special:MyLanguage/Help:Data_type#wikibase-property" title="Special:MyLanguage/Help:Data type">Properties</a></span> in the form Pxx.</li> <li><span style="background-color:#DBFFF9;color:black;border:3px solid #7FFFE9;"><a href="/wiki/Special:MyLanguage/Help:Data_type#wikibase-lexeme" title="Special:MyLanguage/Help:Data type">Lexemes</a></span> in the form Lxxx.</li> <li><span style="background-color:#DBFFFF;color:black;border:3px solid #7FFFFF;"><a href="/wiki/Special:MyLanguage/Help:Data_type#wikibase-form" title="Special:MyLanguage/Help:Data type">Forms</a></span> in the form Lxxx-Fyy.</li> <li><span style="background-color:#DBF9FF;color:black;border:3px solid #7FE9FF;"><a href="/wiki/Special:MyLanguage/Help:Data_type#wikibase-sense" title="Special:MyLanguage/Help:Data type">Senses</a></span> in the form Lxxx-Syy.</li> <li><span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;"><a href="/wiki/Special:MyLanguage/Help:Data_type#string" title="Special:MyLanguage/Help:Data type">Strings</a></span> (including URLs, and numerical values of text fields, for example external-ID property values) <i><span style="font-variant: small-caps">must</span></i> be in "double quotes". Many statements take values in <i>string</i> format, including external identifiers (like <a href="/wiki/Property:P214" title="Property:P214">VIAF ID <small dir="ltr">(P214)</small></a>), filenames (like <a href="/wiki/Property:P18" title="Property:P18">image <small dir="ltr">(P18)</small></a>) or other page names (like <a href="/wiki/Property:P373" title="Property:P373">Commons category <small dir="ltr">(P373)</small></a>). <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q41576278</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P373</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">"Antoni Ignacy Mietelski"</span></dd> <dd>Meaning: add to <span class="statement"><b class="subject"><a href="/wiki/Q41576278" title="Q41576278">Antoni Ignacy Mietelski <small>(Q41576278)</small></a></b><span class="predicate"><a href="/wiki/Property:P373" title="Property:P373">Commons category <small>(P373)</small></a></span><span class="object"><a href="https://commons.wikimedia.org/wiki/Category:Antoni_Ignacy_Mietelski" class="extiw" title="c:Category:Antoni Ignacy Mietelski">Antoni Ignacy Mietelski</a></span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130"></dd> <dd><b>Caution:</b> Some characters in the string seem to confuse the tool. Those include: "_" (underscore), " (double quote), " " (spaces), "=", and possibly more. Adding URLs with those characters, like <a rel="nofollow" class="external text" href="http://www.comune.castelleone.cr.it/news/leggi_area.asp?ART_ID=1731&MEC_ID=181&MEC_IDFiglie=203">this one</a> or <a rel="nofollow" class="external text" href="http://www.castelseprio.net/info_tur/monumenti/S.%20Maria/chiesa/S.Maria.htm">this</a> might fail. String and URLs with those characters might work when <a class="mw-selflink-fragment" href="#Using_QuickStatements_version_2">interacting with the tool through the interface</a> but fail when <a class="mw-selflink-fragment" href="#Running_QuickStatements_through_URL">interacting through URL</a>.</dd></dl></li> <li><span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;"><a href="/wiki/Special:MyLanguage/Help:Data_type#monolingualtext" title="Special:MyLanguage/Help:Data type">Monolingual text</a></span> prefix text in "double quotes" with the language and a colon, e.g. <tt>en:"Some text"</tt> <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q1214098</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P1476</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">pl:"Krzyżacy"</span></dd> <dd>Meaning: add to <span class="statement"><b class="subject"><a href="/wiki/Q1214098" title="Q1214098">The Knights of the Cross <small>(Q1214098)</small></a></b><span class="predicate"><a href="/wiki/Property:P1476" title="Property:P1476">title <small>(P1476)</small></a></span><span class="object">"Krzyżacy" (Polish)</span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130"></dd></dl></li> <li><span style="background-color:#D7D1F8;color:black;border:3px solid #A095EE;"><a href="/wiki/Special:MyLanguage/Help:Data_type#time" title="Special:MyLanguage/Help:Data type">Time</a></span> values <i><span style="font-variant: small-caps">must</span></i> be in format eg <tt>+1967-01-17T00:00:00Z/11</tt>, where <tt>/11</tt> designates the precision. The precision is: 0 - billion years, 1 - hundred million years, ..., 6 - millennium, 7 - century, 8 - decade, <b>9 - year</b> (default), 10 - month, 11 - day, <s>12 - hour, 13 - minute, 14 - second</s>. <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q41576483</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P569</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D7D1F8;color:black;border:3px solid #A095EE;">+1839-00-00T00:00:00Z/9</span></dd> <dd>Meaning: add to <span class="statement"><b class="subject"><a href="/wiki/Q41576483" title="Q41576483">Bronisław Podbielski <small>(Q41576483)</small></a></b><span class="predicate"><a href="/wiki/Property:P569" title="Property:P569">date of birth <small>(P569)</small></a></span><span class="object">+1839</span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130"></dd> <dd>Use "+" for CE dates and "-" for BCE dates; and use at least 4 digits.</dd> <dd>Set an additional "/J" if you want to set the date in Julian Calendar (see <a rel="nofollow" class="external text" href="https://database.factgrid.de/query/embed.html#SELECT%20%3Fterritorium%20%3FterritoriumLabel%20%3FGregorian%20WHERE%20%7B%0A%20%20wd%3AQ220486%20p%3AP360%20%3Fstatement.%0A%20%20%3Fstatement%20ps%3AP360%20%3Fterritorium%3B%0A%20%20%20%20pq%3AP49%20%3FGregorian.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AORDER%20BY%20(%3FGregorian)">this list</a> to understand where this should be done).</dd> <dd>If submitting to the API, use "%09" instead of the <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> symbol, "%2B" instead of the "+" symbol, "%3A" instead of the ":" symbol, and "%2F" instead of the "/" symbol.</dd></dl></li> <li><span style="background-color:#FFEAB7;color:black;border:3px solid #FFC848;"><a href="/wiki/Special:MyLanguage/Help:Data_type#globe-coordinate" title="Special:MyLanguage/Help:Data type">Location coordinates</a></span> in the form of <tt>@LAT/LON</tt>, with LAT and LON as decimal numbers. <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q3669835</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P625</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFEAB7;color:black;border:3px solid #FFC848;">@43.26193/10.92708</span></dd> <dd>Meaning: add location to <a href="/wiki/Q3669835" title="Q3669835">San Dalmazio <small>(Q3669835)</small></a></dd></dl></li> <li><span style="background-color:#E1E1A8;color:black;border:3px solid #D1D17A;"><a href="/wiki/Special:MyLanguage/Help:Data_type#quantity" title="Special:MyLanguage/Help:Data type">Quantity</a></span> in the form of <tt>amount~toleranceUxx</tt><sup id="cite_ref-v2_2-5" class="reference"><a href="#cite_note-v2-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>, with amount and tolerance being a rational numbers and Uxx being the item number of a <tt>unit</tt> (Qxx). Unit and tolerance values are optional. Don't leave any spaces in the quantity definition. <dl><dd>QuickStatements version 1 used different syntax for Quantity: <tt>amount[lower,upper]Uxx</tt>, with amount, lower and upper being a rational numbers. <dl><dd><tt>lower</tt>, <tt>upper</tt> are optional and <i><span style="font-variant: small-caps">must</span></i> be either both present or both absent. When present, they should be enclosed in square brackets and separated by <tt>,</tt></dd> <dd><tt>amount</tt>, <tt>lower</tt> and <tt>upper</tt> <i><span style="font-variant: small-caps">must</span></i> use <tt>.</tt> as decimal separator, <i><span style="font-variant: small-caps">must not</span></i> use any thousands separator and <i><span style="font-variant: small-caps">may</span></i> be prefixed by "+" or "-".</dd> <dd><tt>10</tt>, <tt>10U11573</tt>, <tt>-10[-12.5,-7.5]</tt>, <tt>0[-5,5]U11573</tt> are all valid quantities (where U11573 indicates <a href="/wiki/Q11573" title="Q11573">metre <small>(Q11573)</small></a>)</dd></dl></dd> <dd>Quantities with tolerance <i><span style="font-variant: small-caps">may</span></i> be entered as <tt>1.2~0.3</tt> in QuickStatements version 2, which is the same as <tt>1.2[0.9,1.5]</tt> in QuickStatements version 1 and means 1.2±0.3. <sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup></dd></dl></li> <li><tt>somevalue</tt> for <span style="background:transparent;color:#54595d;" title=""><i>unknown value</i></span> <small><a href="/wiki/Special:MyLanguage/Help:Statements#Unknown_or_no_values" title="Special:MyLanguage/Help:Statements">Help</a></small></li> <li><tt>novalue</tt> for <span style="background:transparent;color:#54595d;" title=""><i>no value</i></span> <small><a href="/wiki/Special:MyLanguage/Help:Statements#Unknown_or_no_values" title="Special:MyLanguage/Help:Statements">Help</a></small>. Both <tt>novalue</tt> and <tt>somevalue</tt> should be used without double quotes around it. Both of those statements do work as part of item creation statements using CREATE and LAST keywords.</li></ul> <p><br/> </p> <div class="mw-heading mw-heading3"><h3 id="Add_statement_with_qualifiers" data-mw-thread-id="h-Add_statement_with_qualifiers-Command_sequence_syntax"><span data-mw-comment-start="" id="h-Add_statement_with_qualifiers-Command_sequence_syntax"></span>Add statement with qualifiers<span data-mw-comment-end="h-Add_statement_with_qualifiers-Command_sequence_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=4" title="Edit section: Add statement with qualifiers"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Each statement "triplet" can be followed by an unlimited number of "qualifiers pairs" of <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">property</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DDD;color:black;border:3px solid #BBB;">value</span>. </p> <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q41577083</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P570</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D7D1F8;color:black;border:3px solid #A095EE;">+1600-00-00T00:00:00Z/7</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P1319</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D7D1F8;color:black;border:3px solid #A095EE;">+1586-00-00T00:00:00Z/9</span></dd></dl> <dl><dd>Meaning: add to <span class="statement"><b class="subject"><a href="/wiki/Q41577083" title="Q41577083">Gian Federigo Bonzagna <small>(Q41577083)</small></a></b><span class="predicate"><a href="/wiki/Property:P570" title="Property:P570">date of death <small>(P570)</small></a></span><span class="object">16. century</span><wbr/><span class="qualifier"><span class="predicate"><a href="/wiki/Property:P1319" title="Property:P1319">earliest date <small>(P1319)</small></a></span><span class="object">+1586</span></span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130"></dd></dl> <div class="mw-heading mw-heading3"><h3 id="Add_statement_with_sources" data-mw-thread-id="h-Add_statement_with_sources-Command_sequence_syntax"><span data-mw-comment-start="" id="h-Add_statement_with_sources-Command_sequence_syntax"></span>Add statement with sources<span data-mw-comment-end="h-Add_statement_with_sources-Command_sequence_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=5" title="Edit section: Add statement with sources"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Each statement can be followed by an unlimited number of "source pairs" to add references of <span style="background-color:#FFDFDF;color:black;border:3px solid #FF9797;">source property</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DDD;color:black;border:3px solid #BBB;">value</span>. The source property is identical to the "normal" property, except it uses the form Sxx instead of Pxx. </p> <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q22124656</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P21</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q6581097</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDFDF;color:black;border:3px solid #FF9797;">S143</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q24731821</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDFDF;color:black;border:3px solid #FF9797;">S813</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D7D1F8;color:black;border:3px solid #A095EE;">+2017-10-04T00:00:00Z/11</span></dd></dl> <dl><dd>Meaning: add to <span class="statement"><b class="subject"><a href="/wiki/Q22124656" title="Q22124656">Gotō Ichijō <small>(Q22124656)</small></a></b><span class="predicate"><a href="/wiki/Property:P21" title="Property:P21">sex or gender <small>(P21)</small></a></span><span class="object"><a href="/wiki/Q6581097" title="Q6581097">male <small>(Q6581097)</small></a></span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130"> with reference <span class="statement"><span class="predicate"><a href="/wiki/Property:P143" title="Property:P143">imported from Wikimedia project <small>(P143)</small></a></span><span class="object"><a href="/wiki/Q24731821" title="Q24731821">Commons Creator page <small>(Q24731821)</small></a></span><wbr/><span class="qualifier"><span class="predicate"><a href="/wiki/Property:P813" title="Property:P813">retrieved <small>(P813)</small></a></span><span class="object"><span style="white-space:nowrap"><time class="dtstart" datetime="2017-10-04">4 October 2017</time></span></span></span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130"></dd></dl> <p>By default, all sources will go into the same "reference group" (a block of property/value pairs). If you want to create more than one reference group in a single command row, simply prefix the first source property of the new group with an exclamation mark: "!Sxx" instead of "Sxx". (In the first reference group, the "!" is optional and will not influence the outcome.) </p><p><b>Notes:</b> </p> <ul><li>Existing statements with an exact match (property and value) will not be added again; however additional references might be added to the statement.</li> <li>You can mix qualifiers and references in the same statement. Just use Sxx instead of Pxx when using sources.</li> <li>In QuickStatements version 1 each source claim represented an individual reference, i.e. they were not grouped within one reference; it works properly now in QuickStatements version 2.</li></ul> <p><br/> </p> <div class="mw-heading mw-heading3"><h3 id="Adding_labels,_aliases,_descriptions_and_sitelinks" data-mw-thread-id="h-Adding_labels,_aliases,_descriptions_and_sitelinks-Command_sequence_syntax"><span id="Adding_labels.2C_aliases.2C_descriptions_and_sitelinks"></span><span data-mw-comment-start="" id="h-Adding_labels,_aliases,_descriptions_and_sitelinks-Command_sequence_syntax"></span>Adding labels, aliases, descriptions and sitelinks<span data-mw-comment-end="h-Adding_labels,_aliases,_descriptions_and_sitelinks-Command_sequence_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=6" title="Edit section: Adding labels, aliases, descriptions and sitelinks"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>As with adding simple text statements, each command must consist of an <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">item</span>, a <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">command</span>, and a <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">string</span> in double quotes. </p> <ul><li>To add a <b>label</b> in a specific language to an item, use "Lxx" instead of a property, with "xx" as the language code. <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q340122</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">Lpl</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">"Cyprian Kamil Norwid"</span></dd> <dd>Meaning: add Polish label "Cyprian Kamil Norwid" to <a href="/wiki/Q340122" title="Q340122">Cyprian Norwid <small>(Q340122)</small></a></dd></dl></li> <li>To add an <b>alias</b> in a specific language to an item, use "Axx" instead of a property, with "xx" as the language code. <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q340122</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">Aen</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">"Cyprjan Kamil Norwid"</span></dd> <dd>Meaning: add English alias "Cyprjan Kamil Norwid" to <a href="/wiki/Q340122" title="Q340122">Cyprian Norwid <small>(Q340122)</small></a></dd> <dd>Tip: Multiple aliases can be added at the same time by separating them with the pipe character ("|"). Warning: This does not work when creating a new item (<a rel="nofollow" class="external text" href="https://github.com/magnusmanske/quickstatements_rs/issues/3">magnusmanske/quickstatements_rs#3</a>)</dd> <dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q340122</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">Aen</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">"Cyprian Kamil Norwid|Cypryan Kamil Norvid"</span></dd></dl></li> <li>To add a <b>description</b> in a specific language to an item, use "Dxx" instead of a property, with "xx" as the language code. <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q340122</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">Dde</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">"polnischer Dichter"</span></dd> <dd>Meaning: add German description "polnischer Dichter" to <a href="/wiki/Q340122" title="Q340122">Cyprian Norwid <small>(Q340122)</small></a></dd></dl></li> <li>To add a <b>sitelink</b> to a specific page on a site to an item, use "Sxxx" instead of a property, with "xxx" as the site (e.g. enwiki, commonswiki). <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q340122</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">Szhwiki</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">"塞浦路斯·諾爾維特"</span></dd> <dd>Meaning: add sitelink to Chinese Wikipedia (<a href="https://en.wikipedia.org/wiki/zh:%E5%A1%9E%E6%B5%A6%E8%B7%AF%E6%96%AF%C2%B7%E8%AB%BE%E7%88%BE%E7%B6%AD%E7%89%B9" class="extiw" title="w:zh:塞浦路斯·諾爾維特">塞浦路斯·諾爾維特</a>) to <a href="/wiki/Q340122" title="Q340122">Cyprian Norwid <small>(Q340122)</small></a></dd></dl></li></ul> <p>If you want to remove a label/alias/description/sitelink, the value has to be an empty string and the rest of the command will be the same. </p> <div class="mw-heading mw-heading3"><h3 id="Item_creation" data-mw-thread-id="h-Item_creation-Command_sequence_syntax"><span data-mw-comment-start="" id="h-Item_creation-Command_sequence_syntax"></span>Item creation<span data-mw-comment-end="h-Item_creation-Command_sequence_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=7" title="Edit section: Item creation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r2202362292">.mw-parser-output th.mbox-text,.mw-parser-output td.mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output td.mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output td.mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output td.mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output table.ambox{margin:0 10%;border:1px solid var(--border-color-base,#a2a9b1);border-left:10px solid var(--border-color-progressive,#36c);background-color:var(--background-color-interactive-subtle,#f8f9fa);box-sizing:border-box}.mw-parser-output table.ambox+table.ambox{margin-top:-1px}.mw-parser-output .ambox th.mbox-text,.mw-parser-output .ambox td.mbox-text{padding:0.25em 0.5em}.mw-parser-output .ambox td.mbox-image{padding:2px 0 2px 0.5em}.mw-parser-output .ambox td.mbox-imageright{padding:2px 0.5em 2px 0}.mw-parser-output table.ambox-notice{border-left:10px solid var(--border-color-progressive,#36c)}.mw-parser-output table.ambox-speedy{border-left:10px solid var(--border-color-error,#b32424);background-color:#fee7e6}.mw-parser-output table.ambox-delete{border-left:10px solid var(--border-color-error,#b32424)}.mw-parser-output table.ambox-content{border-left:10px solid #f28500}.mw-parser-output table.ambox-style{border-left:10px solid var(--border-color-content-removed,#fc3)}.mw-parser-output table.ambox-move{border-left:10px solid #9932cc}.mw-parser-output table.ambox-protection{border-left:10px solid var(--border-color-base,#a2a9b1)}.mw-parser-output table.imbox{margin:4px 10%;border-collapse:collapse;border:3px solid var(--border-color-progressive,#36c);background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box}.mw-parser-output .imbox .mbox-text .imbox{margin:0 -0.5em;display:block}.mw-parser-output .mbox-inside .imbox{margin:4px}.mw-parser-output table.imbox-notice{border:3px solid var(--border-color-progressive,#36c)}.mw-parser-output table.imbox-speedy{border:3px solid var(--border-color-error,#b32424);background-color:#fee7e6}.mw-parser-output table.imbox-delete{border:3px solid var(--border-color-error,#b32424)}.mw-parser-output table.imbox-content{border:3px solid #f28500}.mw-parser-output table.imbox-style{border:3px solid var(--border-color-content-removed,#fc3)}.mw-parser-output table.imbox-move{border:3px solid #9932cc}.mw-parser-output table.imbox-protection{border:3px solid var(--border-color-base,#a2a9b1)}.mw-parser-output table.imbox-license{border:3px solid #88a;background-color:#f7f8ff}.mw-parser-output table.imbox-featured{border:3px solid #cba135}.mw-parser-output table.cmbox{margin:3px 10%;border-collapse:collapse;border:1px solid var(--border-color-base,#a2a9b1);background-color:#dfe8ff;box-sizing:border-box}.mw-parser-output table.cmbox-notice{background-color:#d8e8ff}.mw-parser-output table.cmbox-speedy{margin-top:4px;margin-bottom:4px;border:4px solid var(--border-color-error,#b32424);background-color:#ffdbdb}.mw-parser-output table.cmbox-delete{background-color:#ffdbdb}.mw-parser-output table.cmbox-content{background-color:#ffe7ce}.mw-parser-output table.cmbox-style{background-color:#fff9db}.mw-parser-output table.cmbox-move{background-color:#e4d8ff}.mw-parser-output table.cmbox-protection{background-color:#efefe1}.mw-parser-output table.ombox{margin:4px 10%;border-collapse:collapse;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box}.mw-parser-output table.ombox-notice{border:1px solid var(--border-color-base,#a2a9b1)}.mw-parser-output table.ombox-speedy{border:2px solid var(--border-color-error,#b32424);background-color:#fee7e6}.mw-parser-output table.ombox-delete{border:2px solid var(--border-color-error,#b32424)}.mw-parser-output table.ombox-content{border:1px solid #f28500}.mw-parser-output table.ombox-style{border:1px solid var(--border-color-content-removed,#fc3)}.mw-parser-output table.ombox-move{border:1px solid #9932cc}.mw-parser-output table.ombox-protection{border:2px solid var(--border-color-base,#a2a9b1)}.mw-parser-output table.tmbox{margin:4px 10%;border-collapse:collapse;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-neutral-subtle,#f8f9fa);min-width:80%;box-sizing:border-box}.mw-parser-output .tmbox.mbox-small{min-width:0}.mw-parser-output .mediawiki .mbox-inside .tmbox{margin:2px 0;width:100%}.mw-parser-output .mbox-inside .tmbox.mbox-small{line-height:1.5em;font-size:100%}.mw-parser-output table.tmbox-speedy{border:2px solid var(--border-color-error,#b32424);background-color:#fee7e6}.mw-parser-output table.tmbox-delete{border:2px solid var(--border-color-error,#b32424)}.mw-parser-output table.tmbox-content{border:2px solid #f28500}.mw-parser-output table.tmbox-style{border:2px solid var(--border-color-content-removed,#fc3)}.mw-parser-output table.tmbox-move{border:2px solid #9932cc}.mw-parser-output table.tmbox-protection{border:1px solid #c0c090}.mw-parser-output table.fmbox{clear:both;margin:0.2em 0;width:100%;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box}.mw-parser-output table.fmbox-system{background-color:var(--background-color-neutral-subtle,#f8f9fa)}.mw-parser-output table.fmbox-warning{border:1px solid #bb7070;background-color:#ffdbdb}.mw-parser-output table.fmbox-editnotice{background-color:transparent}html body.mediawiki .mw-parser-output .mbox-small{clear:right;float:right;margin:4px 0 4px 1em;box-sizing:border-box;width:238px;font-size:88%;line-height:1.25em}html body.mediawiki .mw-parser-output .mbox-small-left{margin:4px 1em 4px 0;box-sizing:border-box;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}</style><table class="plainlinks ombox ombox-style" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><a href="/wiki/File:OOjs_UI_icon_notice-warning.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/OOjs_UI_icon_notice-warning.svg/40px-OOjs_UI_icon_notice-warning.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/OOjs_UI_icon_notice-warning.svg/60px-OOjs_UI_icon_notice-warning.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4c/OOjs_UI_icon_notice-warning.svg/80px-OOjs_UI_icon_notice-warning.svg.png 2x" data-file-width="20" data-file-height="20"/></a></span></td><td class="mbox-text">Please ensure you do not create duplicate items!</td></tr></tbody></table> <p>You can create new items by inserting a line consisting only of the word "CREATE". To add statements to the newly created item, use the word "LAST" instead of the <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q number</span>, and the statement will be added to the last created item. </p><p>An example for creating a new item, adding a sitelink, and setting a label: </p> <dl><dd><span style="background-color:#DDD;color:black;border:3px solid #BBB;">CREATE</span></dd> <dd><span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">LAST</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">Sfrwiki</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">"Le croissant magnifique!"</span></dd> <dd><span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">LAST</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">Lfr</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">"Le croissant magnifique!"</span></dd> <dd>Meaning: create a new item with a link to French Wikipedia <a href="https://en.wikipedia.org/wiki/fr:Le_croissant_magnifique!" class="extiw" title="w:fr:Le croissant magnifique!">w:fr:Le croissant magnifique!</a> and with French label "Le croissant magnifique!"</dd></dl> <p>Properties may be created in the same way with "CREATE_PROPERTY" followed by a TAB or | and the entity type, e.g. one of: <code>commonsMedia</code>, <code>globe-coordinate</code>, <code>wikibase-item</code>, <code>wikibase-property</code>, <code>string</code>, <code>monolingualtext</code>, <code>external-id</code>, <code>quantity</code>, <code>time</code>, <code>url</code>, <code>math</code>, <code>geo-shape</code>, <code>musical-notation</code>, <code>tabular-data</code>, <code>wikibase-lexeme</code>, <code>wikibase-form</code>, <code>wikibase-sense</code>. This is mostly of use on third-party Wikibase instances, as <a href="/wiki/Special:MyLanguage/Wikidata:Property_creators" title="Special:MyLanguage/Wikidata:Property creators">property creation is restricted on Wikidata</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Item_merging" data-mw-thread-id="h-Item_merging-Command_sequence_syntax"><span data-mw-comment-start="" id="h-Item_merging-Command_sequence_syntax"></span>Item merging<span data-mw-comment-end="h-Item_merging-Command_sequence_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=8" title="Edit section: Item merging"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>You can merge two items. The newer item will be merged and (if successful) redirected into the older item. </p><p><span style="background-color:#DDD;color:black;border:3px solid #BBB;">MERGE</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q1</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q2</span> </p> <div class="mw-heading mw-heading3"><h3 id="Removing_statements" data-mw-thread-id="h-Removing_statements-Command_sequence_syntax"><span data-mw-comment-start="" id="h-Removing_statements-Command_sequence_syntax"></span>Removing statements<span data-mw-comment-end="h-Removing_statements-Command_sequence_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=9" title="Edit section: Removing statements"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>You can remove specific statements by prefixing a line with "-"<sup id="cite_ref-v2_2-6" class="reference"><a href="#cite_note-v2-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>. </p> <dl><dd>Example: -<span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q4115189</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P31</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q1</span></dd> <dd>Meaning: remove from <span class="statement"><b class="subject"><a href="/wiki/Q4115189" title="Q4115189">Wikidata Sandbox <small>(Q4115189)</small></a></b><span class="predicate"><a href="/wiki/Property:P31" title="Property:P31">instance of <small>(P31)</small></a></span><span class="object"><a href="/wiki/Q1" title="Q1">Universe <small>(Q1)</small></a></span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130"></dd></dl> <p>Dates with precision>9 can be removed via their specific date: </p> <pre>-Q98426308 P585 +1988-05-11T00:00:00Z/11</pre> <p>Dates with precision≤9 may use either 00-00 or 01-01 as their month-date value, so it may be necessary to attempt to remove both: </p> <pre>-Q98426308 P585 +1988-01-01T00:00:00Z/9 -Q98426308 P585 +1988-00-00T00:00:00Z/9 </pre> <p>In addition you may remove statements with a specific statement ID using the following syntax: </p> <dl><dd>-<span style="background-color:#DDD;color:black;border:3px solid #BBB;">STATEMENT</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FF0000;color:black;border:3px solid #CC0000;">Q1$00000000-0000-0000-0000-000000000000</span></dd></dl> <p>The statement ID can be received by: </p> <ul><li>The source code of any entity page, where the ID may be found in the <code><div></code> elements with "wikibase-statementview" class</li> <li><a href="https://www.mediawiki.org/wiki/Wikibase/DataModel/JSON#Statements" class="extiw" title="mw:Wikibase/DataModel/JSON">API</a></li> <li><a href="https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Full_statements" class="extiw" title="mw:Wikibase/Indexing/RDF Dump Format">name of statement node in RDF</a> which may be queried by query service (you need to replace the - after entity ID with $)</li></ul> <div class="mw-heading mw-heading3"><h3 id="Comments" data-mw-thread-id="h-Comments-Command_sequence_syntax"><span data-mw-comment-start="" id="h-Comments-Command_sequence_syntax"></span>Comments<span data-mw-comment-end="h-Comments-Command_sequence_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=10" title="Edit section: Comments"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Every command can have a comment at its end, which will be inserted into the edit summary for the command<sup id="cite_ref-v2_2-7" class="reference"><a href="#cite_note-v2-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>. Use the <tt>/* ... */</tt> syntax. Before this a TAB <i><span style="font-variant: small-caps">may</span></i> be inserted. Spaces around the comment will be removed before processing. The tool splits adding of a claim and its reference in two edits. When using the "version 1 format" import it seems not to be possible to add a comment for the edit adding the reference. The comment is added to the edit adding the claim (if the claim does not exist yet and is added at all). </p> <dl><dd>Example: <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q4115189</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P31</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q1</span> /* This is a comment. */</dd> <dd>Meaning: add to <span class="statement"><b class="subject"><a href="/wiki/Q4115189" title="Q4115189">Wikidata Sandbox <small>(Q4115189)</small></a></b><span class="predicate"><a href="/wiki/Property:P31" title="Property:P31">instance of <small>(P31)</small></a></span><span class="object"><a href="/wiki/Q1" title="Q1">Universe <small>(Q1)</small></a></span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130">, with "This is a comment." in the edit summary.</dd></dl> <p><br/> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="CSV_file_syntax" data-mw-thread-id="h-CSV_file_syntax"><span data-mw-comment-start="" id="h-CSV_file_syntax"></span>CSV file syntax<span data-mw-comment-end="h-CSV_file_syntax"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=11" title="Edit section: CSV file syntax"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-CSV_file_syntax","replies":["h-Commands-CSV_file_syntax","h-Item_creation_2-CSV_file_syntax","h-Statement_removal_commands-CSV_file_syntax","h-Commas_and_double_quotes-CSV_file_syntax","h-Combined_sample-CSV_file_syntax","h-Samples_by_value_type-CSV_file_syntax","h-Full_example-CSV_file_syntax"]}}--></div> <div class="mw-heading mw-heading3"><h3 id="Commands" data-mw-thread-id="h-Commands-CSV_file_syntax"><span data-mw-comment-start="" id="h-Commands-CSV_file_syntax"></span>Commands<span data-mw-comment-end="h-Commands-CSV_file_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=12" title="Edit section: Commands"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In QuickStatements version 2, one can also cut and paste a properly structured CSV file as an alternative to the syntax introduced in QuickStatements version 1. The file will specify commands (columns) to execute and their data (rows). The first line is a header row describing how the data in each column is to be interpreted. </p><p>For example, a column called P31 could contain the value Q5 to create a statement with property P31 and value Q5. </p><p>For some reason, <i>string values</i> need to be put in """triple double quotations""". </p> <dl><dt>qid</dt> <dd>Always the first column of commands: the values in the column should contain the id of the item or entity to edit. If the cell is left empty, a new item will be created. See the item creation sample below.</dd></dl> <p>The other columns may specify the following commands: </p> <dl><dt>P1234</dt> <dd>A property ID (uppercase) begins a new statement. The column value specifies the main value of the statement, in the same format as in QuickStatements version 1.</dd> <dt>qal1234</dt> <dd>A lowercase "qal" followed by a property number (without "P") adds a qualifier to the current statement. The column value specifies the value of the qualifier, in QuickStatements version 1 syntax. There must be some "P" column before a "qal" column to specify which statement the qualifier is added to.</dd> <dt>S1234</dt> <dd>An uppercase "S" followed by a property number (without "P") begins a new source for the current statement. The column value specifies the value of the source, in QuickStatements version 1 syntax. There must be some "P" column before an "S" column to specify which statement the source is added to.</dd> <dt>s1234</dt> <dd>A lowercase "s" followed by a property number (without "P") adds another property-value pair to the current source. The column value specifies the value of the source, in QuickStatements version 1 syntax. There must be some "S" column before an "s" column to specify which source the property-value pair is added to.</dd> <dt>Len</dt> <dd>An uppercase "L" followed by a language code sets the label in that language.</dd> <dt>Dfr</dt> <dd>An uppercase "D" followed by a language code sets the description in that language.</dd> <dt>Ade</dt> <dd>An uppercase "A" followed by a language code adds an alias in that language.</dd> <dt>Senwiki</dt> <dd>An uppercase "S" followed by a site ID adds a sitelink to that site.</dd> <dt>#</dt> <dd>A number sign character sets the edit summary (comment) of the preceding command. The tool splits adding of a claim and its reference in two edits. A comment can be added to the edit summary of each of them. For the claim by putting a "#" column between the columns for the claim and its reference, for the reference by putting a "#" column behind its columns. For example:</dd></dl> <pre>qid,P21,#,S143,s813,# Q22124656,Q6581097,comment to claim adding edit,Q24731821,+2017-10-04T00:00:00Z/11,comment to reference adding edit </pre> <div class="mw-heading mw-heading3"><h3 id="Item_creation_2" data-mw-thread-id="h-Item_creation_2-CSV_file_syntax"><span data-mw-comment-start="" id="h-Item_creation_2-CSV_file_syntax"></span>Item creation<span data-mw-comment-end="h-Item_creation_2-CSV_file_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=13" title="Edit section: Item creation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>To create a new item, the first element of the row needs to be empty, so the line starts with a <code>,</code>. </p> <dl><dt>For example</dt> <dd></dd></dl> <pre>qid,Len,Den,P31 ,Regina Phalange,fictional character,Q95074 </pre> <p><br/> </p> <dl><dt>For example</dt></dl> <p>creates a new item. Suitable for LibreOffice (paste in cell A1) </p> <table class="wikitable"> <tbody><tr><th>filename</th><th>label</th><th>description</th><th><code>qid,P31,Len,Den,P18</code> </th></tr><tr><td><code>Mona Lisa - the Louvre.jpg</code></td><td>Mona Lisa</td><td><span lang="en">oil painting by Leonardo da Vinci</span></td><td><code>=",Q3305213,"""&B2&""","""&C2&""","""""""&A2&""""""""</code> </td></tr><tr><td><code>Mona Lisa - the Louvre.jpg</code></td><td>Mona Lisa</td><td><span lang="en">oil painting by Leonardo da Vinci</span></td><td><code>,Q3305213,"Mona Lisa","<span lang="en">oil painting by Leonardo da Vinci</span>","""Mona Lisa - the Louvre.jpg"""</code> </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Statement_removal_commands" data-mw-thread-id="h-Statement_removal_commands-CSV_file_syntax"><span data-mw-comment-start="" id="h-Statement_removal_commands-CSV_file_syntax"></span>Statement removal commands<span data-mw-comment-end="h-Statement_removal_commands-CSV_file_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=14" title="Edit section: Statement removal commands"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Statement column headers may also begin with "-" to remove the statement. (Note that this is only valid in the header for the whole column, not in individual values.) Removing other column types is not yet supported and will result in an error when the command is run; however, sitelinks and labels can be removed by setting them to the empty string (without "-" in the column header). </p> <table class="wikitable"> <tbody><tr><th><code>qid,P31,-P31</code> </th></tr><tr><td><code>Q4115189,Q5,Q5</code> </td></tr></tbody></table> <p>Adds to the <a href="/wiki/Q4115189" title="Q4115189">sandbox item</a> a P31 value of <a href="/wiki/Q5" title="Q5">human <small>(Q5)</small></a> and then removes that same statement again. </p> <div class="mw-heading mw-heading3"><h3 id="Commas_and_double_quotes" data-mw-thread-id="h-Commas_and_double_quotes-CSV_file_syntax"><span data-mw-comment-start="" id="h-Commas_and_double_quotes-CSV_file_syntax"></span>Commas and double quotes<span data-mw-comment-end="h-Commas_and_double_quotes-CSV_file_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=15" title="Edit section: Commas and double quotes"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><b>Labels, descriptions, aliases and sitelinks</b> do not need to be in double quotes unless they themselves contain commas (,) or double quotes ("). </p><p>In this case, replace all double quotes with two double quotes (e.g. <u>Toys "R" Us</u> → <u>Toys ""R"" Us</u>) and then wrap the string in a pair of double quotes (e.g. <u>"Toys ""R"" Us"</u>). </p><p>Samples: <a href="/wiki/Q4115189" title="Q4115189">Toys "R" Us</a> and <a href="/wiki/Q4115189" title="Q4115189">Patterns, Predictors, and Outcome</a> </p> <table class="wikitable"> <tbody><tr><th><code>qid,Len</code> </th></tr><tr><td><code>Q4115189,"Toys ""R"" Us"</code> </td></tr><tr><td><code>Q4115189,"Patterns, Predictors, and Outcome"</code> </td></tr></tbody></table> <p>To add a <b>string value</b> containing double quotes ("), replace all double quotes with two double quotes (""). </p><p>As any string value, then wrap it in three double quotes ("""), e.g. <u>"""Toys ""R"" Us"""</u>. </p><p>Samples for <a href="/wiki/Q4115189#P370" title="Q4115189">Q4115189#P370</a>, notably <code>Toys "R" Us</code> </p> <table class="wikitable"> <tbody><tr><th><code>qid,P370</code> </th></tr><tr><td><code>Q4115189,"""Toys ""R"" Us"""</code> </td></tr><tr><td><code>Q4115189,"""Patterns, Predictors, and Outcome"""</code> </td></tr><tr><td><code>Q4115189,"""Wikidata sandbox item 1"""</code> </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Combined_sample" data-mw-thread-id="h-Combined_sample-CSV_file_syntax"><span data-mw-comment-start="" id="h-Combined_sample-CSV_file_syntax"></span>Combined sample<span data-mw-comment-end="h-Combined_sample-CSV_file_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=16" title="Edit section: Combined sample"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable"> <tbody><tr><th><code>qid,Len,Den,Aen,P31,-P31,P21,P735,qal1545,S248,s214,S143,Senwiki</code> </th></tr><tr><td><code>Q4115189,Douglas Adams,author,Douglas Noël Adams,Q5,Q36180,Q6581097,Q463035,"""1""",Q54919,"""113230702""",Q328,Douglas Adams</code> </td></tr><tr><td><code>Q4115189,"Toys ""R"" Us",testin sample,Toys R Us,Q5,Q36180,Q6581097,Q463035,"""1""",Q54919,"""113230702""",Q328,"Toys ""R"" Us"</code> </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Samples_by_value_type" data-mw-thread-id="h-Samples_by_value_type-CSV_file_syntax"><span data-mw-comment-start="" id="h-Samples_by_value_type-CSV_file_syntax"></span>Samples by value type<span data-mw-comment-end="h-Samples_by_value_type-CSV_file_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=17" title="Edit section: Samples by value type"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Samples use the sandbox item (<a href="/wiki/Q4115189" title="Q4115189">Q4115189</a>) and can be pasted directly into QuickStatements for testing. Should be risk-free. </p> <dl><dt>Label</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,Len</code> </th></tr><tr><td><code>Q4115189,Sandbox</code> </td></tr><tr><td><code>Q4115189,"Patterns, Predictors, and Outcome"</code> </td></tr><tr><td><code>Q4115189,"Toys ""R"" Us"</code> </td></tr></tbody></table> <dl><dt>Description</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,Den</code> </th></tr><tr><td><code>Q4115189,Wikidata item for tests</code> </td></tr><tr><td><code>Q4115189,"sample for Patterns, Predictors, and Outcome"</code> </td></tr><tr><td><code>Q4115189,"description sample for Toys ""R"" Us"</code> </td></tr></tbody></table> <dl><dt>Alias</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,Aen</code> </th></tr><tr><td><code>Q4115189,Wikidata sandbox</code> </td></tr><tr><td><code>Q4115189,"Predictors, Patterns, and Outcome"</code> </td></tr><tr><td><code>Q4115189,"Toys ""4"" You"</code> </td></tr></tbody></table> <dl><dt>Item</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,P369</code> </th></tr><tr><td><code>Q4115189,Q5</code> </td></tr><tr><td><code>Q4115189,somevalue</code> </td></tr><tr><td><code>Q4115189,novalue</code> </td></tr><tr><td><code>L123,Q5</code> </td></tr><tr><td><code>L123-S1,Q5</code> </td></tr><tr><td><code>L123-F1,Q5</code> </td></tr></tbody></table> <p><tt>somevalue</tt> is for <span style="background:transparent;color:#54595d;" title=""><i>unknown value</i></span> <small><a href="/wiki/Special:MyLanguage/Help:Statements#Unknown_or_no_values" title="Special:MyLanguage/Help:Statements">Help</a></small>, <tt>novalue</tt> for <span style="background:transparent;color:#54595d;" title=""><i>no value</i></span> <small><a href="/wiki/Special:MyLanguage/Help:Statements#Unknown_or_no_values" title="Special:MyLanguage/Help:Statements">Help</a></small>. F1 and S1 on <a href="/wiki/Lexeme:L123" title="Lexeme:L123">Lexeme:L123</a> would have to exist for it to work. </p> <dl><dt>String or external identifiers (external-id)</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,P370</code> </th></tr><tr><td><code>Q4115189,"""Sandbox"""</code> </td></tr><tr><td><code>Q4115189,"""Patterns, Predictors, and Outcome"""</code> </td></tr><tr><td><code>Q4115189,"""Toys ""R"" Us"""</code> </td></tr></tbody></table> <p><span id="Monolingual_text"></span> </p> <dl><dt>Monolingual text</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,P1450</code> </th></tr><tr><td><code>Q4115189,en:"Sandbox"</code> </td></tr><tr><td><code>Q4115189,en:"Toys "R" Us"</code> </td></tr><tr><td><code>Q4115189,"en:""Toys ""R"" Us"""</code> </td></tr><tr><td><code>Q4115189,"en:""Patterns, Predictors, and Outcome"""</code> </td></tr></tbody></table> <p><code>en</code> is for English </p> <dl><dt>Date/time</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,P577</code> </th></tr><tr><td><code>Q4115189,+1856-01-01T00:00:00Z/9</code> </td></tr><tr><td><code>Q4115189,+1856-01-01T00:00:00Z/10</code> </td></tr><tr><td><code>Q4115189,+1856-01-01T00:00:00Z/11</code> </td></tr></tbody></table> <p>Precisions are 9=year, 10=month, 11=day, so the dates are 1856, January 1856 and 1 January 1856. </p> <dl><dt>Image/Commons media file</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,P18</code> </th></tr><tr><td><code>Q4115189,"""Frans Breydel - A merry company.jpg"""</code> </td></tr><tr><td><code>Q4115189,"""'Girl Reading' by Mary Colman Wheeler, El Paso Museum of Art.JPG"""</code> </td></tr><tr><td><code>Q4115189,"""Kaubalaeva ""E. Russ"" vrakk.jpg"""</code> </td></tr><tr><td><code>Q4115189,"""''L'empereur Napoleon III'' de Franz-Xaver Winterhalter.jpg"""</code> </td></tr></tbody></table> <p>Images are: </p> <ul><li><a href="/wiki/File:Frans_Breydel_-_A_merry_company.jpg" title="File:Frans Breydel - A merry company.jpg">File:Frans Breydel - A merry company.jpg</a></li> <li><a href="/wiki/File:%27Girl_Reading%27_by_Mary_Colman_Wheeler,_El_Paso_Museum_of_Art.JPG" title="File:'Girl Reading' by Mary Colman Wheeler, El Paso Museum of Art.JPG">File:'Girl Reading' by Mary Colman Wheeler, El Paso Museum of Art.JPG</a> (includes a single quote and a comma)</li> <li><a href="/wiki/File:Kaubalaeva_%22E._Russ%22_vrakk.jpg" title="File:Kaubalaeva "E. Russ" vrakk.jpg">File:Kaubalaeva "E. Russ" vrakk.jpg</a> (includes double quotes)</li> <li><a href="/wiki/File:%27%27L%27empereur_Napoleon_III%27%27_de_Franz-Xaver_Winterhalter.jpg" title="File:''L'empereur Napoleon III'' de Franz-Xaver Winterhalter.jpg">File:''L'empereur Napoleon III'' de Franz-Xaver Winterhalter.jpg</a></li></ul> <dl><dt>URL</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,P856</code> </th></tr><tr><td><code>Q4115189,"""https://example.com/"""</code> </td></tr><tr><td><code>Q4115189,"""https://example.com/equalsign=test"""</code> </td></tr><tr><td><code>Q4115189,"""https://example.com/underscore_test"""</code> </td></tr></tbody></table> <dl><dt>Coordinates</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,P625</code> </th></tr><tr><td><code>Q4115189,@43.26193/10.92708 </code><p><code></code> </p> </td></tr></tbody></table> <dl><dt>Quantity</dt></dl> <table class="wikitable"> <tbody><tr><th><code>qid,P1114</code> </th></tr><tr><td><code>Q4115189,10</code> </td></tr><tr><td><code>Q4115189,+20</code> </td></tr><tr><td><code>Q4115189,+3.1415926</code> </td></tr><tr><td><code>Q4115189,-40</code> </td></tr><tr><td><code>Q4115189,5.5U11574</code> </td></tr><tr><td><code>Q4115189,+60U11573</code> </td></tr><tr><td><code>Q4115189,+7.5U11574</code> </td></tr><tr><td><code>Q4115189,-80~1.5</code> </td></tr><tr><td><code>Q4115189,2.2~0.3</code> </td></tr><tr><td><code>Q4115189,+1.2~0.3</code> </td></tr></tbody></table> <p><code>U11573</code> is for <a href="/wiki/Q11573" title="Q11573">metre <small>(Q11573)</small></a>, <code>U11574</code> for <a href="/wiki/Q11574" title="Q11574">second <small>(Q11574)</small></a>. Note the odd result of <code>1.2~0.3</code>. </p> <div class="mw-heading mw-heading3"><h3 id="Full_example" data-mw-thread-id="h-Full_example-CSV_file_syntax"><span data-mw-comment-start="" id="h-Full_example-CSV_file_syntax"></span>Full example<span data-mw-comment-end="h-Full_example-CSV_file_syntax"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=18" title="Edit section: Full example"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Full examples can be found at <a href="/wiki/Help:QuickStatements/examples" title="Help:QuickStatements/examples">Help:QuickStatements/examples</a>. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Running_QuickStatements" data-mw-thread-id="h-Running_QuickStatements"><span data-mw-comment-start="" id="h-Running_QuickStatements"></span>Running QuickStatements<span data-mw-comment-end="h-Running_QuickStatements"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=19" title="Edit section: Running QuickStatements"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Running_QuickStatements","replies":["h-Using_QuickStatements_version_2-Running_QuickStatements","h-Using_QuickStatements_version_1-Running_QuickStatements","h-Using_QuickStatements_version_2_in_batch_mode-Running_QuickStatements","h-Running_QuickStatements_by_URL-Running_QuickStatements","h-Clients-Running_QuickStatements"]}}--></div> <div class="mw-heading mw-heading3"><h3 id="Using_QuickStatements_version_2" data-mw-thread-id="h-Using_QuickStatements_version_2-Running_QuickStatements"><span data-mw-comment-start="" id="h-Using_QuickStatements_version_2-Running_QuickStatements"></span>Using QuickStatements version 2<span data-mw-comment-end="h-Using_QuickStatements_version_2-Running_QuickStatements"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=20" title="Edit section: Using QuickStatements version 2"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:QuickStatement_V2_intro_screen.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/e/e9/QuickStatement_V2_intro_screen.png/220px-QuickStatement_V2_intro_screen.png" decoding="async" width="220" height="85" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/e9/QuickStatement_V2_intro_screen.png/330px-QuickStatement_V2_intro_screen.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/e9/QuickStatement_V2_intro_screen.png/440px-QuickStatement_V2_intro_screen.png 2x" data-file-width="1104" data-file-height="425"/></a><figcaption>QuickStatements V2 intro screen</figcaption></figure> <p>Here is how to use QuickStatements (version 2) in basic mode: </p> <ol><li>Go to <a class="external free" href="https://quickstatements.toolforge.org">https://quickstatements.toolforge.org</a></li> <li>Make sure you are logged into OAuth and your name is visible in the upper-right corner. If not, then log in.</li> <li>Click "New batch".</li> <li>For working with Wikimedia Commons <a href="https://commons.wikimedia.org/wiki/Commons:Structured_Data" class="extiw" title="c:Commons:Structured Data">Structured Data</a>: <ol><li>Look for the pull-down menu <i>Create new command batch for ...</i> and change project from <i>Wikidata</i> to <i>Commons [Batch mode only!]</i></li> <li>You need "M" ids to work on instead of "Q" numbers. Look up the media identifiers for Commons files with the <a class="external text" href="https://hay.toolforge.org/minefield/">Minefield tool</a></li> <li>Use statements in the form of "MXXXX|PXX|QXXX" or use the CSV format option</li> <li>Initiate the query with the "Run" or "Run in the background" button to run it in the <i>batch mode</i></li></ol></li> <li>Cut and paste your commands. See the syntax in the section above.</li> <li>When you are done, click "Import V1 commands" or "Import CSV commands".</li> <li>The tool will convert your commands into human-readable form. Inspect them and click "Run" or "Run in the background" to execute</li> <li>As your commands are being processed, double-check the results, and press "STOP" if you detect a problem.</li> <li>The user interface will tell you when all commands have been processed.</li></ol> <ul class="gallery mw-gallery-packed"> <li class="gallerybox" style="width: 458.66666666667px"> <div class="thumb" style="width: 456.66666666667px;"><span typeof="mw:File"><a href="/wiki/File:QuickStatements_-_V2_-_example_1_-_step_1.png" class="mw-file-description" title="Preparing commands in a spreadsheet"><img alt="Preparing commands in a spreadsheet" src="//upload.wikimedia.org/wikipedia/commons/2/23/QuickStatements_-_V2_-_example_1_-_step_1.png" decoding="async" width="457" height="150" class="mw-file-element" data-file-width="648" data-file-height="213"/></a></span></div> <div class="gallerytext">Preparing commands in a spreadsheet</div> </li> <li class="gallerybox" style="width: 254.66666666667px"> <div class="thumb" style="width: 252.66666666667px;"><span typeof="mw:File"><a href="/wiki/File:QuickStatements_-_V2_-_example_1_-_step_2.png" class="mw-file-description" title="Cut-and-paste the cells directly into the QS import window"><img alt="Cut-and-paste the cells directly into the QS import window" src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d4/QuickStatements_-_V2_-_example_1_-_step_2.png/379px-QuickStatements_-_V2_-_example_1_-_step_2.png" decoding="async" width="253" height="150" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/d4/QuickStatements_-_V2_-_example_1_-_step_2.png/569px-QuickStatements_-_V2_-_example_1_-_step_2.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/d4/QuickStatements_-_V2_-_example_1_-_step_2.png/757px-QuickStatements_-_V2_-_example_1_-_step_2.png 2x" data-file-width="819" data-file-height="487"/></a></span></div> <div class="gallerytext">Cut-and-paste the cells directly into the QS import window</div> </li> <li class="gallerybox" style="width: 122px"> <div class="thumb" style="width: 120px;"><span typeof="mw:File"><a href="/wiki/File:QuickStatements_-_V2_-_example_1_-_step_3.png" class="mw-file-description" title="QS converted your commands into human-readable form and waits for approval"><img alt="QS converted your commands into human-readable form and waits for approval" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/08/QuickStatements_-_V2_-_example_1_-_step_3.png/180px-QuickStatements_-_V2_-_example_1_-_step_3.png" decoding="async" width="120" height="150" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/08/QuickStatements_-_V2_-_example_1_-_step_3.png/271px-QuickStatements_-_V2_-_example_1_-_step_3.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/08/QuickStatements_-_V2_-_example_1_-_step_3.png/361px-QuickStatements_-_V2_-_example_1_-_step_3.png 2x" data-file-width="834" data-file-height="1040"/></a></span></div> <div class="gallerytext">QS converted your commands into human-readable form and waits for approval</div> </li> <li class="gallerybox" style="width: 122px"> <div class="thumb" style="width: 120px;"><span typeof="mw:File"><a href="/wiki/File:QuickStatements_-_V2_-_example_1_-_step_4.png" class="mw-file-description" title="QS executing the commands. Please see "Stop" button."><img alt="QS executing the commands. Please see "Stop" button." src="//upload.wikimedia.org/wikipedia/commons/thumb/d/db/QuickStatements_-_V2_-_example_1_-_step_4.png/180px-QuickStatements_-_V2_-_example_1_-_step_4.png" decoding="async" width="120" height="150" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/db/QuickStatements_-_V2_-_example_1_-_step_4.png/271px-QuickStatements_-_V2_-_example_1_-_step_4.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/db/QuickStatements_-_V2_-_example_1_-_step_4.png/361px-QuickStatements_-_V2_-_example_1_-_step_4.png 2x" data-file-width="834" data-file-height="1040"/></a></span></div> <div class="gallerytext">QS executing the commands. Please see "Stop" button.</div> </li> <li class="gallerybox" style="width: 122px"> <div class="thumb" style="width: 120px;"><span typeof="mw:File"><a href="/wiki/File:QuickStatements_-_V2_-_example_1_-_step_5.png" class="mw-file-description" title="QS completed the task."><img alt="QS completed the task." src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d3/QuickStatements_-_V2_-_example_1_-_step_5.png/180px-QuickStatements_-_V2_-_example_1_-_step_5.png" decoding="async" width="120" height="150" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/d3/QuickStatements_-_V2_-_example_1_-_step_5.png/271px-QuickStatements_-_V2_-_example_1_-_step_5.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/d3/QuickStatements_-_V2_-_example_1_-_step_5.png/361px-QuickStatements_-_V2_-_example_1_-_step_5.png 2x" data-file-width="834" data-file-height="1040"/></a></span></div> <div class="gallerytext">QS completed the task.</div> </li> </ul> <div class="mw-heading mw-heading3"><h3 id="Using_QuickStatements_version_1" data-mw-thread-id="h-Using_QuickStatements_version_1-Running_QuickStatements"><span data-mw-comment-start="" id="h-Using_QuickStatements_version_1-Running_QuickStatements"></span>Using QuickStatements version 1<span data-mw-comment-end="h-Using_QuickStatements_version_1-Running_QuickStatements"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=21" title="Edit section: Using QuickStatements version 1"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure typeof="mw:File/Thumb"><a href="/wiki/File:120317_quickstate_02.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/05/120317_quickstate_02.png/300px-120317_quickstate_02.png" decoding="async" width="300" height="188" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/05/120317_quickstate_02.png/450px-120317_quickstate_02.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/05/120317_quickstate_02.png/600px-120317_quickstate_02.png 2x" data-file-width="1440" data-file-height="900"/></a><figcaption>Screenshot of using QuickStatements version 1</figcaption></figure> <p>QuickStatements version 1 is still available, but no longer maintained. It has stopped <a rel="nofollow" class="external text" href="https://bitbucket.org/magnusmanske/wikidata-todo/issues/62">working</a> for some users, but still works fine for others. </p> <ol><li>Go to <a class="external free" href="https://wikidata-todo.toolforge.org/quick_statements.php">https://wikidata-todo.toolforge.org/quick_statements.php</a></li> <li>Cut and paste your commands into the window</li> <li>Click "Do it"</li> <li>The user interface will tell you when all statements have been processed.</li></ol> <div class="mw-heading mw-heading3"><h3 id="Using_QuickStatements_version_2_in_batch_mode" data-mw-thread-id="h-Using_QuickStatements_version_2_in_batch_mode-Running_QuickStatements"><span data-mw-comment-start="" id="h-Using_QuickStatements_version_2_in_batch_mode-Running_QuickStatements"></span>Using QuickStatements version 2 in batch mode<span data-mw-comment-end="h-Using_QuickStatements_version_2_in_batch_mode-Running_QuickStatements"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=22" title="Edit section: Using QuickStatements version 2 in batch mode"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202362292"><table class="plainlinks ombox ombox-style" role="presentation"><tbody><tr><td class="mbox-image"><bdi lang="en"><span typeof="mw:File"><a href="/wiki/File:OOjs_UI_icon_notice-warning.svg" class="mw-file-description"><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/OOjs_UI_icon_notice-warning.svg/40px-OOjs_UI_icon_notice-warning.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/OOjs_UI_icon_notice-warning.svg/60px-OOjs_UI_icon_notice-warning.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4c/OOjs_UI_icon_notice-warning.svg/80px-OOjs_UI_icon_notice-warning.svg.png 2x" data-file-width="20" data-file-height="20"/></a></span></bdi></td><td class="mbox-text"><bdi lang="en"><strong>Warning:</strong></bdi> As of May 2020, duplicated items may be created in batch mode. Please make sure you can find and merge them! This does not affect frontend mode.</td></tr></tbody></table> <div class="mw-heading mw-heading4"><h4 id="When_to_use_batch_mode?" data-mw-thread-id="h-When_to_use_batch_mode?-Using_QuickStatements_version_2_in_batch_mode"><span id="When_to_use_batch_mode.3F"></span><span data-mw-comment-start="" id="h-When_to_use_batch_mode?-Using_QuickStatements_version_2_in_batch_mode"></span>When to use batch mode?<span data-mw-comment-end="h-When_to_use_batch_mode?-Using_QuickStatements_version_2_in_batch_mode"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=23" title="Edit section: When to use batch mode?"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:600_SourceMD_QuickStatements_run_options.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a1/600_SourceMD_QuickStatements_run_options.png/220px-600_SourceMD_QuickStatements_run_options.png" decoding="async" width="220" height="114" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/a1/600_SourceMD_QuickStatements_run_options.png/330px-600_SourceMD_QuickStatements_run_options.png 1.5x, //upload.wikimedia.org/wikipedia/commons/a/a1/600_SourceMD_QuickStatements_run_options.png 2x" data-file-width="344" data-file-height="178"/></a><figcaption>QuickStatements version 2 has the "Run in background" button</figcaption></figure> <p>Batch mode (also known as running in the background or asynchronous batch mode) means your statements are executed from a Wikimedia server, rather than from your Web browser. This has several advantages: </p> <ul><li>Even if you close your browser or if your computer crashes, the statements will be executed until the last one.</li> <li>You can launch several batches in parallel, without slowing down your computer. (The batches seem to be run sequentially)</li> <li>You get a unique URL for your batch, to which you can refer later. This page shows some statistics about your run.</li> <li>To see all your recent batches click "Your last batch". To see everybody else's recent batches click <a class="external text" href="https://quickstatements.toolforge.org/#/batches">"Last batches"</a></li> <li>You or a project admin can stop your batch by going to its URL. For instance, if it is realized that the batch is erroneous and you are offline, an admin can stop it immediately (by going to the individual batch page), rather than having to block you.</li> <li>If you discover that something went wrong, you can revert the whole batch afterwards</li></ul> <p><b>But there are also drawbacks:</b> </p> <ul><li>It takes a few more clicks, so as a rule of thumb, if you only have 10 or fewer statements, it's better to run them in normal mode.</li> <li>Depending on how busy the server is it might take time for your batch to start so that checking the results might not be possible immediately.</li> <li>There is a limit on the number of statements in a batch, and batches with more statements do not load properly (showing blank page and revolving circle). For simpler statements, the maximum seems to be around 25 thousand statements per batch, but it is much smaller for more complex statements.</li> <li>Batch mode seems to work well for simple statements without qualifiers or references, but more complex statements (where, for example, the successful addition of a qualifier depends on the base statement being already present), there seems to be a much higher error rate.</li></ul> <p>Before running a batch, it can be a good idea to run a few commands directly in non-batch mode to get a good view of what is being done. </p> <div class="mw-heading mw-heading4"><h4 id="Using_batch_mode" data-mw-thread-id="h-Using_batch_mode-Using_QuickStatements_version_2_in_batch_mode"><span data-mw-comment-start="" id="h-Using_batch_mode-Using_QuickStatements_version_2_in_batch_mode"></span>Using batch mode<span data-mw-comment-end="h-Using_batch_mode-Using_QuickStatements_version_2_in_batch_mode"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=24" title="Edit section: Using batch mode"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ol><li>Prepare your statement normally as described in the <a href="#Using_QuickStatements_version_2">Using QuickStatements version 2</a> section above</li> <li>Instead of pressing "Run", press the "Run in background" button.</li> <li>"Your last batches" will show a list of the most recent batches run by you, with statistics.</li></ol> <p>The following statistical values are available: </p> <ul><li><span style="background-color:#00AA00;color:white;border:3px solid #00AA00;">DONE</span>: The number of statements that were successfully run</li> <li><span style="background-color:#CC0000;color:white;border:3px solid #CC0000;">ERROR</span>: The number of statements that failed</li> <li><span style="background-color:#0000EE;color:white;border:3px solid #0000EE;">INIT</span>: The number of statements left to run</li> <li><span style="background-color:#2e86c1;color:white;border:3px solid #2e86c1;">RUN</span>: The number of statements being run right now</li></ul> <div class="mw-heading mw-heading3"><h3 id="Running_QuickStatements_by_URL" data-mw-thread-id="h-Running_QuickStatements_by_URL-Running_QuickStatements"><span data-mw-comment-start="" id="h-Running_QuickStatements_by_URL-Running_QuickStatements"></span>Running QuickStatements by URL<span data-mw-comment-end="h-Running_QuickStatements_by_URL-Running_QuickStatements"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=25" title="Edit section: Running QuickStatements by URL"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure typeof="mw:File/Thumb"><a href="/wiki/File:QuickStatements_-_V2_-_example_3.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0b/QuickStatements_-_V2_-_example_3.png/300px-QuickStatements_-_V2_-_example_3.png" decoding="async" width="300" height="110" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/0b/QuickStatements_-_V2_-_example_3.png/450px-QuickStatements_-_V2_-_example_3.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/0b/QuickStatements_-_V2_-_example_3.png/600px-QuickStatements_-_V2_-_example_3.png 2x" data-file-width="788" data-file-height="290"/></a><figcaption>What you should see if you click on the <a class="external text" href="https://quickstatements.toolforge.org/#/v1=Q37887397%7CP214%7C%2296480189%22%7CS143%7CQ565">example link</a> in this section</figcaption></figure> <p>An alternative way of communicating with QuickStatements is to use a URL instead of cutting and pasting commands into the import window. For example, a command to add to <span class="statement"><b class="subject"><a href="/wiki/Q37887397" title="Q37887397">Emile Justin Merlot <small>(Q37887397)</small></a></b><span class="predicate"><a href="/wiki/Property:P214" title="Property:P214">VIAF ID <small>(P214)</small></a></span><span class="object"><a rel="nofollow" class="external text" href="https://viaf.org/viaf/96480189/">"96480189"</a></span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130"> with source <span class="statement"><span class="predicate"><a href="/wiki/Property:P143" title="Property:P143">imported from Wikimedia project <small>(P143)</small></a></span><span class="object"><a href="/wiki/Q565" title="Q565">Wikimedia Commons <small>(Q565)</small></a></span></span><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202089130"> is <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q37887397</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P214</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">"96480189"</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#FFDFDF;color:black;border:3px solid #FF9797;">S143</span> <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q565</span>. You can also generate a prefilled QuickStatements window with <a class="external free" href="https://quickstatements.toolforge.org/#/v1=">https://quickstatements.toolforge.org/#/v1=</a> <span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q37887397</span><span style="background-color:#FFFFC8;color:gray;border:3px solid #FFFF99;">%7C</span><span style="background-color:#DBEBFF;color:black;border:3px solid #99C7FF;">P214</span> <span style="background-color:#FFFFC8;color:gray;border:3px solid #FFFF99;">%7C</span><span style="background-color:#FFDBFB;color:black;border:3px solid #FE98F1;">%2296480189%22</span><span style="background-color:#FFFFC8;color:gray;border:3px solid #FFFF99;">%7C</span> <span style="background-color:#FFDFDF;color:black;border:3px solid #FF9797;">S143</span><span style="background-color:#FFFFC8;color:gray;border:3px solid #FFFF99;">%7C</span><span style="background-color:#D6F8DE;color:black;border:3px solid #93EEAA;">Q565</span> or <a class="external free" href="https://quickstatements.toolforge.org/#/v1=Q37887397%7CP214%7C%2296480189%22%7CS143%7CQ565">https://quickstatements.toolforge.org/#/v1=Q37887397%7CP214%7C%2296480189%22%7CS143%7CQ565</a>. The steps of converting V1 syntax to URL are: </p> <ol><li>replace <span style="background-color:#FFFFCC;color:gray;border:3px solid #FFFF99;">TAB</span> with "|" and newline with "||"</li> <li>apply <a href="https://en.wikipedia.org/wiki/Percent-encoding" class="extiw" title="w:Percent-encoding">URL encoding</a> to the string, which will replace "|" with "%7C", double quote with "%22", space with "%20", slash "/" with "%2F", etc.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></li> <li>put <a class="external free" href="https://quickstatements.toolforge.org/#/v1=">https://quickstatements.toolforge.org/#/v1=</a> in front of it</li></ol> <p>Many templates on Commons, like <a href="https://commons.wikimedia.org/wiki/Template:Creator" class="extiw" title="c:Template:Creator">c:Template:Creator</a> or <a href="https://commons.wikimedia.org/wiki/Template:Artwork" class="extiw" title="c:Template:Artwork">c:Template:Artwork</a> use that technique to package information that can be imported to Wikidata into a clickable URL. </p><p>Hints: </p> <ul><li><code>[[File:Commons to Wikidata QuickStatements.svg|20px|link=https://quickstatements.toolforge.org/#/v1=Q37887397%7CP214%7C%2296480189%22%7CS143%7CQ565]]</code> will encode the URL within a handy clickable icon: <span typeof="mw:File"><a href="https://quickstatements.toolforge.org/#/v1=Q37887397%7CP214%7C%2296480189%22%7CS143%7CQ565"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Commons_to_Wikidata_QuickStatements.svg/20px-Commons_to_Wikidata_QuickStatements.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Commons_to_Wikidata_QuickStatements.svg/30px-Commons_to_Wikidata_QuickStatements.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Commons_to_Wikidata_QuickStatements.svg/40px-Commons_to_Wikidata_QuickStatements.svg.png 2x" data-file-width="512" data-file-height="512"/></a></span> (click it but do not click "run"; pressing it will not work since that item already has that property).</li> <li>Pages with QuickStatements URLs may be located through <a href="/wiki/Special:LinkSearch" title="Special:LinkSearch">Special:LinkSearch</a> (see <a class="external text" href="https://commons.wikimedia.org/w/index.php?target=https%3A%2F%2Ftools.wmflabs.org%2Fquickstatements%2F%23v1%3D&title=Special%3ALinkSearch">here</a>) or through a database query calling <a href="https://www.mediawiki.org/wiki/Manual:externallinks_table" class="extiw" title="mw:Manual:externallinks table">externallinks table</a> (see for example <a href="https://quarry.wmcloud.org/query/24753" class="extiw" title="quarry:query/24753">here</a>).</li></ul> <div class="mw-heading mw-heading3"><h3 id="Clients" data-mw-thread-id="h-Clients-Running_QuickStatements"><span data-mw-comment-start="" id="h-Clients-Running_QuickStatements"></span>Clients<span data-mw-comment-end="h-Clients-Running_QuickStatements"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=26" title="Edit section: Clients"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>- <a rel="nofollow" class="external text" href="https://github.com/cthoyt/quickstatements_client">Python</a> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Limitations" data-mw-thread-id="h-Limitations"><span data-mw-comment-start="" id="h-Limitations"></span>Limitations<span data-mw-comment-end="h-Limitations"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=27" title="Edit section: Limitations"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Limitations","replies":[]}}--></div> <p>QuickStatements version 2 currently cannot: </p> <ul><li>create multiple items that are linked to each other</li> <li><a href="/wiki/Wikidata:Project_chat/Archive/2017/04#QuickStatements_-_setting_ranks?" title="Wikidata:Project chat/Archive/2017/04">set ranks</a> for statements</li> <li>set comments when removing statements</li> <li>specify calendar for a date statement</li> <li>specify precision or globe for a location statement</li> <li>add statements to redirected items</li> <li>add a second statement with the same property and value but with different qualifiers, since additional qualifiers will be added to the first statement</li> <li>remove a qualifier without removing the statement itself</li> <li>remove a reference without removing the statement itself</li> <li>update <a href="/wiki/Special:MyLanguage/Help:Badges" title="Special:MyLanguage/Help:Badges">badges</a></li> <li>create lexemes</li></ul> <p>Note that for using QuickStatements, an account needs to be <a href="/wiki/Special:MyLanguage/Wikidata:Autoconfirmed_users" title="Special:MyLanguage/Wikidata:Autoconfirmed users">autoconfirmed</a>. Also there is no way for users using <a href="/wiki/Special:MyLanguage/Wikidata:Bots#Bot_accounts" title="Special:MyLanguage/Wikidata:Bots">bot accounts</a> to mark their edits as <i>bot edit</i> (but there is an <a rel="nofollow" class="external text" href="https://github.com/magnusmanske/quickstatements/issues/40">open ticket</a> to address that). </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="FAQ" data-mw-thread-id="h-FAQ"><span data-mw-comment-start="" id="h-FAQ"></span>FAQ<span data-mw-comment-end="h-FAQ"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=28" title="Edit section: FAQ"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-FAQ","replies":[]}}--></div> <dl><dt>Can QuickStatements add reference statements with more than one claim?</dt> <dd>Yes, current QuickStatements can add references that have for example both <a href="/wiki/Property:P143" title="Property:P143">imported from Wikimedia project <small dir="ltr">(P143)</small></a> and <a href="/wiki/Property:P813" title="Property:P813">retrieved <small dir="ltr">(P813)</small></a> (<a class="external text" href="https://www.wikidata.org/w/index.php?title=Q41532805&type=revision&diff=571801578&oldid=571801573">see here</a>) or both <a href="/wiki/Property:P248" title="Property:P248">stated in <small dir="ltr">(P248)</small></a> and <a href="/wiki/Property:P304" title="Property:P304">page(s) <small dir="ltr">(P304)</small></a>.</dd> <dt>How do I experiment with QuickStatements?</dt> <dd>Use <a href="/wiki/Q4115189" title="Q4115189">Wikidata Sandbox <small>(Q4115189)</small></a>.</dd> <dt>How do I report issues with the tool?</dt> <dd>Check with other users at <a href="/wiki/Help_talk:QuickStatements" title="Help talk:QuickStatements">the talk page</a> or at <a href="/wiki/Wikidata:Project_chat" title="Wikidata:Project chat">Wikidata:Project chat</a>. Confirmed bugs should be reported <a class="external text" href="https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?projects=tools&subscribers=Magnus">on Phabricator</a> after reading <a href="https://www.mediawiki.org/wiki/How_to_report_a_bug" class="extiw" title="mw:How to report a bug">mw:How to report a bug</a>.</dd> <dt>Where do I suggest new features?</dt> <dd>You can ask at <a rel="nofollow" class="external text" href="https://github.com/magnusmanske/quickstatements">tool's Git page</a> or at <a href="/wiki/User:Magnus_Manske/quick_statements2" title="User:Magnus Manske/quick statements2">User:Magnus Manske/quick statements2</a>, but be aware that we keep Magnus busy!</dd> <dt>What is the maximum number of commands I can enter at once?</dt> <dd>Not documented. It was already tested with over 11,000 commands. But note that such large batch runs will take several hours to complete.</dd></dl> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Best_practices" data-mw-thread-id="h-Best_practices"><span data-mw-comment-start="" id="h-Best_practices"></span>Best practices<span data-mw-comment-end="h-Best_practices"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=29" title="Edit section: Best practices"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Best_practices","replies":[]}}--></div> <ul><li>QuickStatements allows edits ranging from single statement to multi-thousand-item batch runs. Very large runs or potentially-controversial runs should go through the approval process described in <a href="/wiki/Special:MyLanguage/Wikidata:Bots" title="Special:MyLanguage/Wikidata:Bots">Wikidata:Bots</a>.</li> <li>Users should avoid creating duplicate items.</li> <li>All statements should have references as per <a href="/wiki/Special:MyLanguage/Help:Sources" title="Special:MyLanguage/Help:Sources">Help:Sources</a>. That might be less important for identifiers, like <a href="/wiki/Property:P214" title="Property:P214">VIAF ID <small dir="ltr">(P214)</small></a> or <a href="/wiki/Property:P650" title="Property:P650">RKDartists ID <small dir="ltr">(P650)</small></a>, etc.</li> <li>Users doing the edits are responsible for fixing or undoing their changes if issues are found. See about <a href="#Removing_statements">statement removal</a>.</li> <li>This tool does not properly honor <a href="https://www.mediawiki.org/wiki/Manual:Maxlag_parameter" class="extiw" title="mw:Manual:Maxlag parameter">maxlag</a>. This is generally not a problem, because the actions of the tool are limited by the usual edit limits of the controlling user. This can, however, cause problems if the controlling user is not subject to edit limits (e.g. admins).</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Using_the_API_to_start_batches" data-mw-thread-id="h-Using_the_API_to_start_batches"><span data-mw-comment-start="" id="h-Using_the_API_to_start_batches"></span>Using the API to start batches<span data-mw-comment-end="h-Using_the_API_to_start_batches"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=30" title="Edit section: Using the API to start batches"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Using_the_API_to_start_batches","replies":[]}}--></div> <p>If you are logged in on QuickStatements, you can get a token on <a class="external text" href="https://tools.wmflabs.org/quickstatements/#/user">your user page</a>. That page also contains information about how to use the token to submit batches programmatically. <i>You need to have submitted at least one server-side batch manually before for this to work!</i> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Edit_groups" data-mw-thread-id="h-Edit_groups"><span data-mw-comment-start="" id="h-Edit_groups"></span>Edit groups<span data-mw-comment-end="h-Edit_groups"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=31" title="Edit section: Edit groups"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Edit_groups","replies":[]}}--></div> <p>QuickStatements V2 creates <a href="/wiki/Special:MyLanguage/Wikidata:Edit_groups" title="Special:MyLanguage/Wikidata:Edit groups">edit groups</a> for all individual batches. You may discuss individual edit groups, or rollback the whole edit group. </p><p>EditGroups is another external tool, not part of QuickStatements. Currently it works on Wikidata, and there is also <a href="https://iw.toolforge.org/editgroups-commons" class="extiw" title="toolforge:editgroups-commons">an instance for Commons</a>. On other Wikibase instances, it may be unavailable. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="See_also" data-mw-thread-id="h-See_also"><span data-mw-comment-start="" id="h-See_also"></span>See also<span data-mw-comment-end="h-See_also"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=32" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":["h-Tools_that_export_to_QuickStatements-See_also"]}}--></div> <ul><li><a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=L0TYQ9LRRTQ">YouTube instructions</a></li> <li><a class="external text" href="https://ash-django.toolforge.org/csv2qs/">CSV to quick_statements</a> tool converts a properly formatted CSV file into a series of QuickStatements commands.</li> <li><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Wikibase/Suite#QuickStatements" class="extiw" title="mw:Special:MyLanguage/Wikibase/Suite">Instructions on how to install QuickStatements as part of Wikibase suite</a></li></ul> <div class="mw-heading mw-heading3"><h3 id="Tools_that_export_to_QuickStatements" data-mw-thread-id="h-Tools_that_export_to_QuickStatements-See_also"><span data-mw-comment-start="" id="h-Tools_that_export_to_QuickStatements-See_also"></span>Tools that export to QuickStatements<span data-mw-comment-end="h-Tools_that_export_to_QuickStatements-See_also"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=33" title="Edit section: Tools that export to QuickStatements"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Special:MyLanguage/Wikidata:Zotero#How_to_export_to_QuickStatements" title="Special:MyLanguage/Wikidata:Zotero">Zotero export translator to QuickStatements format in zotkat</a>: allows the collection of references in Zotero, which can then be exported to QuickStatements for uploading to Wikidata</li> <li><a rel="nofollow" class="external text" href="https://lubianat.shinyapps.io/topictagger/">topictagger</a>: finds potentially missing <a href="/wiki/Property:P921" title="Property:P921">main subject <small dir="ltr">(P921)</small></a></li> <li><a class="external text" href="https://new-q5.toolforge.org/">New-Q5</a>: form for updating or creating an item that describes a person</li></ul> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="References" data-mw-thread-id="h-References"><span data-mw-comment-start="" id="h-References"></span>References<span data-mw-comment-end="h-References"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:QuickStatements&action=edit&section=34" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-References","replies":[]}}--></div> <ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text"><a class="external free" href="https://wikidata-todo.toolforge.org/quick_statements.php">https://wikidata-todo.toolforge.org/quick_statements.php</a></span> </li> <li id="cite_note-v2-2"><span class="mw-cite-backlink">↑ <sup><a href="#cite_ref-v2_2-0">2.0</a></sup> <sup><a href="#cite_ref-v2_2-1">2.1</a></sup> <sup><a href="#cite_ref-v2_2-2">2.2</a></sup> <sup><a href="#cite_ref-v2_2-3">2.3</a></sup> <sup><a href="#cite_ref-v2_2-4">2.4</a></sup> <sup><a href="#cite_ref-v2_2-5">2.5</a></sup> <sup><a href="#cite_ref-v2_2-6">2.6</a></sup> <sup><a href="#cite_ref-v2_2-7">2.7</a></sup></span> <span class="reference-text">syntax works only in QuickStatements version 2</span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3">↑</a></span> <span class="reference-text">Note that due to the way computers operate with floating-point numbers the input format of version 2 may produce undesired results when working with decimal numbers.</span> </li> <li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external free" href="https://www.url-encode-decode.com/">https://www.url-encode-decode.com/</a> is a handy URL encoder/decoder</span> </li> </ol> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐6df7948d6c‐6s9x7 Cached time: 20241127174138 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] DiscussionTools time usage: 0.092 seconds CPU time usage: 0.745 seconds Real time usage: 1.245 seconds Preprocessor visited node count: 4621/1000000 Post‐expand include size: 34274/2097152 bytes Template argument size: 5845/2097152 bytes Highest expansion depth: 7/100 Expensive parser function count: 4/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 32894/5000000 bytes Lua time usage: 0.199/10.000 seconds Lua memory usage: 2391599/52428800 bytes Number of Wikibase entities loaded: 0/500 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 607.360 1 -total 23.62% 143.458 11 Template:Statement 20.50% 124.524 2 Template:Mbox 17.23% 104.628 1 Template:2019_Coolest_tool_award 16.39% 99.553 1 Template:Userbox 9.09% 55.218 23 Template:Label 6.59% 40.027 10 Template:P 4.59% 27.898 1 Template:Shortcut 4.50% 27.358 10 Template:Q 3.51% 21.303 163 Template:Font_&_border_color --> <!-- Saved in parser cache with key wikidatawiki:pcache:idhash:42892887-0!canonical and timestamp 20241127174138 and revision id 2279705051. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://www.wikidata.org/w/index.php?title=Help:QuickStatements&oldid=2279705051">https://www.wikidata.org/w/index.php?title=Help:QuickStatements&oldid=2279705051</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:Pages_using_the_JsonConfig_extension" title="Category:Pages using the JsonConfig extension">Pages using the JsonConfig extension</a></li><li><a href="/wiki/Category:Help:QuickStatements" title="Category:Help:QuickStatements">Help:QuickStatements</a></li><li><a href="/wiki/Category:Help-en" title="Category:Help-en">Help-en</a></li></ul></div></div> </div> </div> <div id="mw-navigation"> <h2>Navigation menu</h2> <div id="mw-head"> <nav id="p-personal" class="mw-portlet mw-portlet-personal vector-user-menu-legacy vector-menu" aria-labelledby="p-personal-label" > <h3 id="p-personal-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Personal tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-uls" class="mw-list-item active"><a class="uls-trigger" href="#"><span>English</span></a></li><li id="pt-anonuserpage" class="mw-list-item"><span title="The user page for the IP address you are editing as">Not logged in</span></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li><li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-createaccount" class="mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Help%3AQuickStatements" title="You are encouraged to create an account and log in; however, it is not mandatory"><span>Create account</span></a></li><li id="pt-login" class="mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Help%3AQuickStatements" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span>Log in</span></a></li> </ul> </div> </nav> <div id="left-navigation"> <nav id="p-namespaces" class="mw-portlet mw-portlet-namespaces vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-namespaces-label" > <h3 id="p-namespaces-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Namespaces</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-help" class="selected mw-list-item"><a href="/wiki/Help:QuickStatements" title="View the help page [c]" accesskey="c"><span>Help page</span></a></li><li id="ca-talk" class="mw-list-item"><a href="/wiki/Help_talk:QuickStatements" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </nav> <nav id="p-variants" class="mw-portlet mw-portlet-variants emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-variants-label" > <input type="checkbox" id="p-variants-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-variants" class="vector-menu-checkbox" aria-labelledby="p-variants-label" > <label id="p-variants-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">English</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> </div> <div id="right-navigation"> <nav id="p-views" class="mw-portlet mw-portlet-views vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-views-label" > <h3 id="p-views-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Views</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected mw-list-item"><a href="/wiki/Help:QuickStatements"><span>Read</span></a></li><li id="ca-edit" class="mw-list-item"><a href="/w/index.php?title=Help:QuickStatements&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="mw-list-item"><a href="/w/index.php?title=Help:QuickStatements&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </nav> <nav id="p-cactions" class="mw-portlet mw-portlet-cactions emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-cactions-label" title="More options" > <input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-cactions" class="vector-menu-checkbox" aria-labelledby="p-cactions-label" > <label id="p-cactions-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">More</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box"> <h3 >Search</h3> <form action="/w/index.php" id="searchform" class="vector-search-box-form"> <div id="simpleSearch" class="vector-search-box-inner" data-search-loc="header-navigation"> <input class="vector-search-box-input" type="search" name="search" placeholder="Search Wikidata" aria-label="Search Wikidata" autocapitalize="sentences" title="Search Wikidata [f]" accesskey="f" id="searchInput" > <input type="hidden" name="title" value="Special:Search"> <input id="mw-searchButton" class="searchButton mw-fallbackSearchButton" type="submit" name="fulltext" title="Search the pages for this text" value="Search"> <input id="searchButton" class="searchButton" type="submit" name="go" title="Go to a page with this exact name if it exists" value="Go"> </div> </form> </div> </div> </div> <div id="mw-panel" class="vector-legacy-sidebar"> <div id="p-logo" role="banner"> <a class="mw-wiki-logo" href="/wiki/Wikidata:Main_Page" title="Visit the main page"></a> </div> <nav id="p-navigation" class="mw-portlet mw-portlet-navigation vector-menu-portal portal vector-menu" aria-labelledby="p-navigation-label" > <h3 id="p-navigation-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Navigation</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Wikidata:Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Project:Community_portal" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-villagepump" class="mw-list-item"><a href="/wiki/Wikidata:Project_chat"><span>Project chat</span></a></li><li id="n-special-newitem" class="mw-list-item"><a href="/wiki/Special:NewItem"><span>Create a new Item</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-wikibase-randomitem" class="mw-list-item"><a href="/wiki/Special:Random/Main" title="[x]" accesskey="x"><span>Random Item</span></a></li><li id="n-wikibase-queryservice" class="mw-list-item"><a href="//query.wikidata.org/"><span>Query Service</span></a></li><li id="n-nearby-pages-title" class="mw-list-item"><a href="/wiki/Special:Nearby"><span>Nearby</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>Help</span></a></li><li id="n-sitesupport" class="mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_wikidata.org&uselang=en" title="Support us"><span>Donate</span></a></li> </ul> </div> </nav> <nav id="p-wikibase-lexeme-lexicographical-data" class="mw-portlet mw-portlet-wikibase-lexeme-lexicographical-data vector-menu-portal portal vector-menu" aria-labelledby="p-wikibase-lexeme-lexicographical-data-label" > <h3 id="p-wikibase-lexeme-lexicographical-data-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Lexicographical data</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-special-newlexeme" class="mw-list-item"><a href="/wiki/Special:NewLexeme"><span>Create a new Lexeme</span></a></li><li id="n-recentchanges-lexemes" class="mw-list-item"><a href="https://www.wikidata.org/wiki/Special:RecentChanges?namespace=146%3B147"><span>Recent changes</span></a></li><li id="n-wikibase-lexeme-randomlexeme" class="mw-list-item"><a href="/wiki/Special:Random/Lexeme"><span>Random Lexeme</span></a></li> </ul> </div> </nav> <nav id="p-tb" class="mw-portlet mw-portlet-tb vector-menu-portal portal vector-menu" aria-labelledby="p-tb-label" > <h3 id="p-tb-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Help:QuickStatements" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Help:QuickStatements" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Help:QuickStatements&oldid=2279705051" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Help:QuickStatements&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FHelp%3AQuickStatements"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FHelp%3AQuickStatements"><span>Download QR code</span></a></li> </ul> </div> </nav> <nav id="p-coll-print_export" class="mw-portlet mw-portlet-coll-print_export vector-menu-portal portal vector-menu" aria-labelledby="p-coll-print_export-label" > <h3 id="p-coll-print_export-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Print/export</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&bookcmd=book_creator&referer=Help%3AQuickStatements"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Help%3AQuickStatements&action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Help:QuickStatements&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </nav> <nav id="p-wikibase-otherprojects" class="mw-portlet mw-portlet-wikibase-otherprojects vector-menu-portal portal vector-menu" aria-labelledby="p-wikibase-otherprojects-label" > <h3 id="p-wikibase-otherprojects-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">In other projects</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q107660738" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </nav> <nav id="p-lang" class="mw-portlet mw-portlet-lang vector-menu-portal portal vector-menu" aria-labelledby="p-lang-label" > <h3 id="p-lang-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">In Wikipedia</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q107660738#sitelinks-wikipedia" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </nav> </div> </div> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 25 November 2024, at 19:11.</li> <li id="footer-info-copyright">All structured data from the main, Property, Lexeme, and EntitySchema namespaces is available under the <a rel="nofollow" class="external text" href="//creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>; text in the other namespaces is available under the <a rel="nofollow" class="external text" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Special:MyLanguage/Project:Introduction">About Wikidata</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Special:MyLanguage/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/www.wikidata.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//m.wikidata.org/w/index.php?title=Help:QuickStatements&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> <li id="footer-places-data-access"><a href="/wiki/Special:MyLanguage/Wikidata:Data_access">Data access</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> <script>(RLQ=window.RLQ||[]).push(function(){mw.log.warn("This page is using the deprecated ResourceLoader module \"codex-search-styles\".\n[1.43] Use a CodexModule with codexComponents to set your specific components used: https://www.mediawiki.org/wiki/Codex#Using_a_limited_subset_of_components");mw.config.set({"wgHostname":"mw-web.codfw.main-6d67bf974d-wsqgq","wgBackendResponseTime":138,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-The_tools","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Command_sequence_syntax","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Add_simple_statement-Command_sequence_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Add_statement_with_qualifiers-Command_sequence_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Add_statement_with_sources-Command_sequence_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Adding_labels,_aliases,_descriptions_and_sitelinks-Command_sequence_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Item_creation-Command_sequence_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Item_merging-Command_sequence_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Removing_statements-Command_sequence_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Comments-Command_sequence_syntax","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-CSV_file_syntax","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Commands-CSV_file_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Item_creation_2-CSV_file_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Statement_removal_commands-CSV_file_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Commas_and_double_quotes-CSV_file_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Combined_sample-CSV_file_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Samples_by_value_type-CSV_file_syntax","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Full_example-CSV_file_syntax","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Running_QuickStatements","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Using_QuickStatements_version_2-Running_QuickStatements","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Using_QuickStatements_version_1-Running_QuickStatements","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Using_QuickStatements_version_2_in_batch_mode-Running_QuickStatements","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-When_to_use_batch_mode?-Using_QuickStatements_version_2_in_batch_mode","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-Using_batch_mode-Using_QuickStatements_version_2_in_batch_mode","replies":[]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Running_QuickStatements_by_URL-Running_QuickStatements","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Clients-Running_QuickStatements","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Limitations","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-FAQ","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Best_practices","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Using_the_API_to_start_batches","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Edit_groups","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-See_also","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Tools_that_export_to_QuickStatements-See_also","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-References","replies":[]}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.092"},"limitreport":{"cputime":"0.745","walltime":"1.245","ppvisitednodes":{"value":4621,"limit":1000000},"postexpandincludesize":{"value":34274,"limit":2097152},"templateargumentsize":{"value":5845,"limit":2097152},"expansiondepth":{"value":7,"limit":100},"expensivefunctioncount":{"value":4,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":32894,"limit":5000000},"entityaccesscount":{"value":0,"limit":500},"timingprofile":["100.00% 607.360 1 -total"," 23.62% 143.458 11 Template:Statement"," 20.50% 124.524 2 Template:Mbox"," 17.23% 104.628 1 Template:2019_Coolest_tool_award"," 16.39% 99.553 1 Template:Userbox"," 9.09% 55.218 23 Template:Label"," 6.59% 40.027 10 Template:P"," 4.59% 27.898 1 Template:Shortcut"," 4.50% 27.358 10 Template:Q"," 3.51% 21.303 163 Template:Font_\u0026amp;_border_color"]},"scribunto":{"limitreport-timeusage":{"value":"0.199","limit":"10.000"},"limitreport-memusage":{"value":2391599,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-6df7948d6c-6s9x7","timestamp":"20241127174138","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>