Wikidata:WikiProject Deprecate P642/Use cases
This page documents the recommended handling of statements using the property of (P642), which is set to be deprecated. To get involved in the larger effort to deprecate this property, see Wikidata:WikiProject Deprecate P642.
Basic process (please read!)
editFor any statement using of (P642), if you are not sure what to replace it with:
1. Get the parents of each part of the statement (i.e. main property, main value, and qualifier value) with these queries:
- Parent properties (replace "P1065" with the property ID)
- Parents of a class (replace "Q146" with the item ID)
- Parents of an instance (replace "Q146" with the item ID)
2. Search this page (using the Table of Contents on the right) for use cases matching each part of the statement, and pick the most specific. (If you can't find a match, bring your statement to the Talk page, and if you're inclined, see the guide on defining new use cases.) Assume (except where noted) that:
- "Main value" is equal to, a subclass of, or rarely, an instance of a listed class or its subclasses. ("Exactly" means equal to only.)
- "Qualifier value" is an instance, or sometimes a subclass, of a listed class or its subclasses.
3. Make sure the recommendation makes sense for the statement (if it doesn't, ask on the Talk page), and apply it.
When to replace with a main statement
editUsually, of (P642) should be replaced by another qualifier on the same statement. However, it is sometimes more appropriate to use the replacement property as a main property instead, with the same value as the original qualifier. (In fact, many properties are not allowed to qualify instance of (P31).) A qualifier should usually be replaced with a main statement when two things are true:
- 1. The information expressed by the qualifier applies directly to the subject item, rather than to a statement about the subject. This is often the case when the statement uses a basic membership property (i.e. instance of (P31), subclass of (P279), part of (P361), or subject has role (P2868)) (and sometimes other properties such as genre (P136)).
- 2. The replacement property is allowed as a main statement property (i.e., it is not constrained to the qualifier scope).
For example:
- Paso Terra (Q65093014)instance of (P31)restaurant (Q11707)
of (P642)seafood (Q192935) should be replaced with two statements:
- Paso Terra (Q65093014)instance of (P31)restaurant (Q11707), and Paso Terra (Q65093014)cuisine (P2012)seafood (Q192935).
If the statement has other qualifiers (especially restrictive ones) or references, these should usually be copied to the new main statement.
When to remove without replacing
editWhen a qualifier presents information that is always true of the relationship between the statement value and the qualifier value, that information should be stated on one or both of those two items, rather than as a qualifier on other items. For example:
- The Star-Spangled Banner (Q44696)lyricist (P676)Francis Scott Key (Q320633)
of (P642)United States of America (Q30)
The fact that Key was a citizen of the United States is always true, irrespective of his authorship of the national anthem. So we would ensure that Francis Scott Key (Q320633) has the statement country of citizenship (P27)United States of America (Q30), then remove this qualifier from The Star-Spangled Banner (Q44696).
Also, if a qualifier presents information that is already presented in a main statement on the same item, it can simply be removed. For example:
- history of Canada (Q2945)instance of (P31)history of a country or state (Q17544377)
of (P642)Canada (Q16) - history of Canada (Q2945)facet of (P1269)Canada (Q16)
The presence of the second statement obviates the need for the qualifier on the first statement.
Doing mass cleanup
editMain value is, or is a subclass of....
edit
Main value is, or is a subclass of, academic discipline
Main value is a subclass of | Qualifier value is an instance of | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
academic discipline (Q11862829) | country (Q6256) | Change main value to one more specific to the qualifier value, where such exists, e.g. history of Spain (Q7781), and remove the qualifier; otherwise, use qualifier country (P17) | cleared 2024-09-26 | |
era (Q6428674) | Change main value to one more specific to the qualifier value, where such exists, and remove the qualifier; otherwise, use qualifier time period (P2348) | cleared 2024-11-04 | ||
any not covered above | Change main value to one more specific to the qualifier value, where such exists, and remove the qualifier; otherwise, use qualifier facet of (P1269) | many false positives |
Main value is, or is a subclass of, intellectual work or group of works.
...and qualifier value is animate
edit...and qualifier value is inanimate
edit
Main value is, or is a subclass of, geographic entity.
...and qualifier value is also a geographic entity
edit...and qualifier value is not a geographic entity
editMain value is a subclass of | Qualifier value is an instance of | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
restaurant (Q11707) | cuisine (Q1778821) | cuisine (P2012) | cleared 2024-09-24 | Paso Terra (Q65093014) |
retail location (Q49416455) BUT NOT repair shop (Q111541200) |
instance or subclass of product (Q2424752) | typically sells (P7163) if main property is subclass of (P279) otherwise, product, material, or service produced or provided (P1056) |
cleared 2024-10-15 | |
memorial (Q5003624) | any | commemorates (P547) (NOT conflict (P607)) | cleared 2024-11-07 | Gaza War Cemetery (Q17511203) |
cemetery (Q39614) grave (Q173387) BUT NOT memorial (Q5003624) |
era (Q6428674) | time period (P2348) | cleared 2024-11-07 | |
human (Q5) individual animal (Q26401003) |
contains (P4330), often | cleared 2024-11-07 | ||
group of humans (Q16334295) BUT NOT territory (Q183366) | used by (P1535), often | cleared 2024-11-13 |
Main value is, or is a subclass of, number.
Main value is a subclass of | Qualifier value is an instance of | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
exactly multiple (Q1055293) number of entities (Q614112) |
any except number (Q11563) | is a number of (P11279) | cleared 2024-11-21 | |
number (Q11563) | relative to (P2210) | cleared 2024-11-21 | ||
Exactly ordinal number (Q191780) | natural number (Q21199) | Replacement property to be identified |
job title, occupation, or position
editMain value is, or is a subclass of, job title, occupation, or position.
Main value is, or is a subclass of, occurrent (event).
Caution: For some types of events, of (P642) may indicate more than one semantic role, whose values may belong to the same class. Such statements require additional interpretation of context to determine the role of each qualifier; the tables suggest possibilities.
Note 1: If the same item both causes and undergoes an occurrence and is animate, it is considered an agent; if inanimate, it is considered an object.
...and qualifier value is its agent (animate cause)
edit...and qualifier value is its object (undergoer)
edit...and qualifier value is neither its agent or object
editMain value is, or is a subclass of, person or group of people.
For occupations, see Main value is a subclass of occupation.
Main value is a subclass of | Qualifier value is an instance of | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
fandom (Q773944) | any | dedicated to (P825) | cleared 2024-09-30 | |
military personnel (Q47064) military casualties of war (Q122527314) |
conflict (Q180684) | conflict (P607) | cleared military casualties of war (Q122527314) 2024-9-30 | |
victim (Q1851760) EXCEPT military casualties of war (Q122527314) | any | TBD | Handling TBD, probably multiple cases |
Main value is, or is a subclass of, product.
Qualifier value is a...
editperson, group of people, or individual animal
editQualifier value is a person, group of people (including political territories!), or individual animal.
Main value is a subclass of | Qualifier value is an instance of | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
academic degree (Q189533) | educational organization (Q5341295) | conferred by (P1027) | cleared 2024-11-12 | |
anatomical structure (Q4936952) | individual organism (Q110224119) | part of (P361) | cleared 2024-11-12 | |
badge (Q336533) decoration (Q11796413) regalia (Q119814) |
organization (Q43229) | conferred by (P1027) | cleared 2024-11-12 | |
name (Q82799) | population group (Q851990) | culture (P2596) | cleared 2024-10-28 | Kuhap (Q96650979) |
flight number (Q133663), probably others |
operator (Q29933786) | operator (P137) | cleared flight number (Q133663) 2024-12-11 | |
income (Q1527264) | human (Q5) sometimes organization (Q43229) |
destination of transfer (P12694) | cleared 2024-11-12 | |
subsidiary entity (Q62079110) | organization (Q43229) | parent organization (P749) | clearing 2024-11-13 | |
property (Q1400881) | human (Q5) organization (Q43229) |
owned by (P127), often |
place
editQualifier value is a place.
If main value is also a place, see table in section Main value is a subclass of geographic entity
taxon
editQualifier value is a taxon.
Purview of Wikidata:WikiProject Taxonomy. Generally qualifying instance of (P31).
word or name
editQualifier value is a word or name.
Main value is a subclass of | Qualifier value is an instance of | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
abbreviation (Q102786) transliterated text (Q108102023) transliteration (Q134550) |
lexical item (Q2944660) | based on (P144) | cleared 2024-11-22 | |
amalgamated name (Q4739381) complex word (Q109316367) |
lexical item (Q2944660) | has part(s) (P527) | cleared 2024-11-22 | |
anthroponym from a specific origin (Q33274034) diminutive (Q108709) kunya (Q1285470) matriname (Q6787830) nickname (Q49614), usually occupational surname (Q829026) patriname (Q122848517) possibly others |
anthroponym (Q10856962) | based on (P144) | cleared 2024-11-22 | |
family name named after given name (Q98775491) name without diacritical marks (Q89410507) possibly others |
anthroponym (Q10856962) | named after (P138) | cleared 2024-11-22 |
Other use cases not dependent on main property
edit
Main property is...
editItem-valued properties
editQualifier value | Recommended replacement approach | Status | Example/query |
---|---|---|---|
creative work (Q17537576) or or one of its subclasses | applies to part, aspect, or form (P518)? (qualifier only) | ||
instance of country (Q6256) | Ensure the item for the creator has a main statement country of citizenship (P27), then remove this qualifier | ||
instance of creative work (Q17537576) | Ensure the item for the work has a main statement identifying its creator, then remove this qualifier |
Main value is exactly | Qualifier value | Recommended replacement approach | Status | Example/query |
---|---|---|---|---|
absence (Q19829125) | part of subject | Main statement does not have part (P3113) | ||
characteristic of subject | Main statement does not have characteristic (P6477) | |||
occupational surname (Q829026) | occupation (Q12737077) | used by (P1535) | cleared 2024-11-13 | |
any other | any | see entry for property-valued statements |
Note: Most statements using instance of (P31) will belong to use cases that do not depend on the main property, which are listed in the sections above.
Main value | Qualifier value | Recommended replacement approach | Status | Example/query |
---|---|---|---|---|
exactly class (Q16889133) | any | Main statement subclass of (P279) | cleared 2024-09-26 | |
exactly second-order class (Q24017414) | any | Main statement is metaclass for (P8225) | cleared 2024-11-21 | |
exactly largest city (Q51929311) | geographic region (Q82794) | Remove statement, and instead create a "most populous settlement" statement on the parent region | property proposal | |
exactly list (Q12139612) exactly Wikimedia list article (Q13406463) probably other classes with "list" in their name |
any class | is a list of (P360) | cleared 2024-11-19 |
Qualifier value | Recommended replacement property | Status | Example/query |
---|---|---|---|
instance or subclass of: award (Q618779) class of award (Q38033430) |
award received (P166) | Ongoing discussion; Do not migrate until Module:Cycling race is updated. Add an allowed qualifiers constraint to winner (P1346). |
2019 Pulitzer Prize (Q63185624) |
instance or subclass of rank (Q4120621) subclass of: winner (Q18560095) runner-up (Q3275569) |
results (P2501) | 2008 Tour de France, Stage 8 (Q265672) | |
role of competitors within a competition, e.g.: driver (Q352388), co-driver (Q2465611), and team (Q327245) |
object of statement has role (P3831) | ||
instance of country (Q6256) | country for sport (P1532) (as long as the subject item is a sport competition) |
||
subclass of a larger competition, e.g.: by age, gender, distance, team size, vehicle type, etc. |
competition class (P2094) | ||
any not covered above | TBD (see all qualifiers used with this property) |
Other item-valued properties
editNon-item-valued properties
editProperty with a date/time value
editQuery of time-valued properties ordered by number of statements using P642
Statement property | Qualifier value | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
publication date (P577) | instance of periodical (Q1002697) | published in (P1433) | cleared 2024-10-15 | |
any other than above | TBD (see allowed qualifiers of this property) |
Property with a numeric value
editQuery of numeric-valued properties ordered by number of statements using P642
Property with a string value
editQuery of string-valued properties ordered by number of statements using P642
Statement property | Qualifier value | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
sport number (P1618) | sports organization (Q4438121) | member of sports team (P54) | clearing 2024-11-20 Handling discussion |
|
series ordinal (P1545) | thoroughfare (Q83620) | relative to (P2210) | cleared 2024-11-20 | Joyo junction |
country (Q6256) | country (P17) | cleared 2024-11-20 | Gerboise bleue | |
postal code (P281) | any | applies to part, aspect, or form (P518) | clearing 2024-11-21 | Uzwil |
any identifier property | any | applies to part, aspect, or form (P518), often |
Property with a URL value
edit(URL (P2699) or one of its sub-properties)
Query of URL-valued properties ordered by number of statements using P642
Qualifier value | Recommended replacement property | Status | Example/query |
---|---|---|---|
(identical to subject item) | remove qualifier | ||
subclass of: information (Q11028) manifestation (Q286583) work (Q386724) but NOT of: architectural structure (Q811979) |
contains (P4330) | ||
collection (Q2668072) database (Q8513) |
collection (P195) or content deliverer (P3274) | Need to separate cases Cleared 2024-09-25 |
|
periodical (Q1002697) | published in (P1433) (as a main statement only) or content deliverer (P3274) | Need to separate cases Cleared 2024-09-25 |
|
publishing company (Q2085381) | publisher (P123) | Cleared 2024-09-25 | |
online publication (Q1714118) web service (Q193424) |
part of (P361) or publisher (P123) | Need to separate cases | |
person or organization (Q106559804) not included above | owned by (P127) or publisher (P123) | Need to separate cases | |
any except above | object of statement has role (P3831), main subject (P921), or contains (P4330) | Need to separate cases | Maryland (Q1391) |
Other non-item-valued properties
edit- Query of MonlingualText-valued properties ordered by number of statements using P642
- Query of CommonsMedia-valued properties ordered by number of statements using P642
Main property | Qualifier value | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
coordinate location (P625) any other property with value type GlobeCoordinate |
subclass of physical location (Q17334923) | applies to part, aspect, or form (P518) | ||
image (P18) | any | depicts (P180), often |
See also
edit- User:Lucas Werkmeister/P642 considered harmful (essay that precipitated efforts to deprecate P642)