Wikidata:WikiProject Deprecate P642/Use cases
This page gives the recommended handling of statements using the property of (P642), which is set to be deprecated. It is managed by 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 the subject item, property, main value (if it's an item), and qualifier value. (Most use cases depend only on the latter two.) Use these queries:
- Parent classes (replace "Q146" with the item ID)
- Parent properties (replace "P1065" with the property ID)
2. Search this page (see the Table of Contents) for use cases matching each part of the statement, and pick the most specific. (If you can't find a match, ask on the Talk page, and if you're inclined, see the guide on defining new use cases.) Assume (except where noted):
- "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 claim made by the qualifier applies directly to the subject item, rather than to a statement about the subject. This is usually true of qualifiers on the basic membership properties (instance of (P31), subclass of (P279) or part of (P361)), and often on certain other properties, including subject has role (P2868) and genre (P136).
- 2. The replacement property is allowed as a main 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 gives 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)
That Key was a US citizen is always true, irrespective of his authorship of the national anthem. So, ensuring that Francis Scott Key (Q320633) has country of citizenship (P27)United States of America (Q30), we remove the qualifier from The Star-Spangled Banner (Q44696).
Also, if a qualifier gives information that is already given in a main statement on the same item, it can simply be removed. For example, the presence of the second statement below obviates the need for the qualifier on the first:
- 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)
Mass migration
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
editQualifier value is a person or group of people.
...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 |
---|---|---|---|---|
eating or drinking establishment (Q88985865) restaurant district (Q40553563) |
See this entry | |||
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 value; 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
edit
Main 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, or is a subclass of, product.
Main value is, or is a subclass of, Wikimedia internal item.
Main value is a subclass of | Qualifier value is an instance of | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
Wikimedia country data template (Q108783631) probably other data templates |
any | main subject (P921) | cleared 2024-11-14 | |
Wikimedia duplicated category (Q111019629) | Wikimedia category (Q4167836) | said to be the same as (P460) (as qualifier) | cleared 2024-11-25 | |
Wikimedia duplicated page (Q17362920) | any | cleared 2024-11-19 |
Qualifier value is a...
editpart of the subject item
editQualifier value is a part, or class of parts, of the subject item.
Subject item is an instance of | Qualifier value is an instance or subclass of | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
architectural structure (Q811979) | architectural element (Q391414) building component (Q19603939) building division (Q56052926) |
applies to part (P518) if main property is not a basic membership property; otherwise part of (P361) |
cleared all but architectural element (Q391414) 2024-12-17 |
person, group of people, or individual animal
editQualifier value is a person, group of people (including political territories!), or individual animal.
place
editQualifier value is a place.
If main value is a person or group of people, see table in section Main value is a subclass of person or group of people.
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.
temporal entity (event or time period)
editMain value is a subclass of | Qualifier value is an instance of | Recommended replacement property | Status | Example/query |
---|---|---|---|---|
temporal entity (Q26907166) | temporal entity (Q26907166) BUT NOT month (Q5151) | part of (P361) | Scope needs validation | |
month (Q5151) | month of the year (P2922) | Scope needs validation | ||
battlefield (Q4895508) military activity (Q68482296) naval vessel (Q177597) possibly others |
violent conflict (Q115431196) | conflict (P607) | ||
any | recurring sporting event (Q18608583) sports competition (Q13406554) |
See this entry | ||
any | era (Q6428674) (BUT NOT: archaeological culture (Q465299) culture (Q11042) violent conflict (Q115431196) political entity (Q16562419)) |
time period (P2348), often, unless valid in period (P1264) applies |
cleared 2024-12-05 |
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 with any 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 (P518), often (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). ~150k statements. |
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) | |||
work period (start) (P2031) possibly others |
instance of occupation (Q12737077) | occupation (P106) | cleared 2024-12-10 allowed quals constrained |
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) | cleared 2024-11-20 discussion allowed quals constrained |
|
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 (P518) | cleared 2024-11-21 | Uzwil |
instance of Wikidata property for an identifier (Q19847637) | any | applies to part (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
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 with value type "GlobeCoordinate" |
subclass of: geographic location (Q2221906) or physical location (Q17334923) |
applies to part (P518) | cleared 2024-11-27 | |
image (P18) | any | depicts (P180), often | allowed quals constrained |
See also
edit- User:Lucas Werkmeister/P642 considered harmful (essay that precipitated efforts to deprecate P642)