User:Mzeinstra/sandbox/QS: Difference between revisions

no edit summary
(Added example)
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 18: Line 18:


* fist referencing the Q number of the item in question (eg. [[Item:Q462|Q465]]), Edith Blake
* fist referencing the Q number of the item in question (eg. [[Item:Q462|Q465]]), Edith Blake
* followed by the P number of the property (eg. gender [[Property:P3|P3]])  
* followed by the P number of the property (eg. instance of [[Property:P12|P12]])  
* and finally the value to be added,  
* and finally the value to be added,  
** which can reference another item by its Q number (eg. woman [[Item:Q3|Q3]])  
** which can reference another item by its Q number (eg. human [[Item:Q2137|Q2137]])  
** or a string value, delimited by "" (eg. "2021-02-21" or "Lucius, Michel").  
** or a string value, delimited by "" (eg. "2021-02-21" or "Lucius, Michel").  


These 3 elements need to be separated by a TAB or "|" characters
These 3 elements need to be separated by a TAB or "|" characters
e.g. adding that Edith Blak is a woman, and adding that her birth day is 1876-12-09 (fictitious date).
e.g. adding that Edith Blake is a woman, and adding that her birth day is 1876-12-09 (fictitious date).
  Q462|P3|Q3
  Q462|P12|QQ2137


  Q462 P26 "1876-12-09"
  Q462 P26 "1876-12-09"
Line 83: Line 83:
Also, you will *not* be able to store batches for working on them later.
Also, you will *not* be able to store batches for working on them later.


=== Moving data from statement to statement ===
== Moving data from statement to statement ==
It is possible to move data from one field to another using quick statement. For example copying all 'en-gb' labels to 'en' labels:
It is possible to move data from one field to another using quick statement. For example copying all 'en-gb' labels to 'en' labels:


Line 100: Line 100:
* Test the commands and verify that the right labels and descriptions get ingested.
* Test the commands and verify that the right labels and descriptions get ingested.
* Run the entire set commands
* Run the entire set commands
== Creating a spreadsheet based ingest==
Creating a QuickStatements CSV
For example we want to import this information for new records:
* Label (in english)
* Gender
* Resided at
With the qualifiers to the resided at statement
* Street address free text
* Start time
We would create a spreadsheet with the following header (row):
* qid
* Len
* P3
* P29
* qal1
* P29
* qal31
Where qid remains an empty column (indicating a new record needs to be created. A good help section on how to create these spreadsheets can be found on quickstatements/#/batch under the ‘import CSV’ button. Fill in the spreadsheet, export it as a CSV and use QuickStatement to add multiple statements at once.


== More information ==
== More information ==
https://www.wikidata.org/wiki/Help:QuickStatements
https://www.wikidata.org/wiki/Help:QuickStatements