User:Daniel Mietchen/Quick statements

From Wikidata
Jump to navigation Jump to search

About[edit]

This page collects sample code for using Quick statements to start or enrich items of specific classes.

  • Note: MediaWiki converts the tabs in the examples to spaces, so be sure to convert that back before deploying Quick statements. For that reason, I am moving this documentation to GitHub

Examples[edit]

Scientific articles[edit]

CREATE
LAST	Len	"One hundred and one new species of Trigonopterus weevils from New Guinea"
LAST	Den	"scholarly article"
LAST	P31	Q13442814
LAST	P1433	Q219980
LAST	P1476	"One hundred and one new species of Trigonopterus weevils from New Guinea"

Authors[edit]

Relevant properties[edit]

Creating an item for an author[edit]

Be sure to check whether an item about that person already exists before creating a new item. To add the statements to an existing item, delete the "CREATE" line and replace all occurrences of "LAST" with that item's Q number. The item for the example now exists under Jun Ying (Q19896805).

CREATE
LAST	Len	"Jun Ying"
LAST	Den	"researcher"
LAST	P31	Q5
LAST	P106	Q1650915
LAST	P800	Q19896534

Adding authors on the paper's item[edit]

The relevant property is author (P50). Order matters. The example paper here is Associations between dietary intake of choline and betaine and lung cancer risk (Q19896534).

Q19896534	P50	Q19896805
Q19896534	P50	Q19896807
Q19896534	P50	Q19896810
Q19896534	P50	Q19896811
Q19896534	P50	Q19896812
Q19896534	P50	Q19896814
Q19896534	P50	Q19896815

Taxa[edit]

Family[edit]

Example: Chiropsellidae (Q19897576)

CREATE
LAST	Len	"Chiropsellidae"
LAST	Den	"family of jellyfish"
LAST	P31	Q16521
LAST	P105	Q35409
LAST	P225	"Chiropsellidae"
LAST	P171	Q2963928
LAST	P1746	"7690E036-F8BD-4B62-A7BB-EF9DD1D6DE87"

Genus[edit]

Example: Meteorona (Q19897577)

CREATE
LAST	Len	"Meteorona"
LAST	Den	"genus of jellyfish"
LAST	P31	Q16521
LAST	P105	Q34740
LAST	P225	"Meteorona"
LAST	P171	Q19897576
LAST	P1746	"E3AA7CD7-8DE7-4BEE-9151-2D6EAAD54793"

Species[edit]

Example: Xenodorus basquini (Q19945831)

CREATE
LAST	Len	"Xenoderus basquini"
LAST	Den	"species of beetle"
LAST	P31	Q16521
LAST	P105	Q7432
LAST	P225	"Xenoderus basquini"
LAST	P171	Q12010852