Shortcut: WD:P642

Wikidata:WikiProject Data Quality/Issues/P642

From Wikidata
Jump to navigation Jump to search

This page serves to coordinate the process of deprecating of (P642). See also User:Lucas Werkmeister/P642 considered harmful.

Migration process[edit]

  1. Identify a use case (a set of statements that can be handled the same way). (Check if an already identified use case can reasonably be expanded.)
  2. Identify a new handling approach for the case, and make sure it makes sense for all query results.
  3. Get consensus on the new handling approach:
    • If the use case involves specific main statement properties, seek input on the talk pages of those properties, and of any associated WikiProjects.
    • Once consensus is achieved, if a new property is required, create a property proposal. For new properties, work with speakers of major languages to ensure accurate and unambiguous labels are in place before migrating.
  4. Migrate uses to new handling; automate where practical.
  5. Implement constraints to dissuade future use of of (P642) for the given case, and provide constraint clarification (P6607) explaining the new handling.

Update status on this page at each step. Status should be one or more of (add options as needed):

  1. Scope to be determined
  2. Handling to be determined
  3. SPARQL query needed
  4. Handling discussion started/ongoing/concluded [here]
  5. Property proposal to be created
  6. Property proposal: [here]
  7. Ready to constrain use of P642
  8. Constraints created on use of P642: [here]
  9. Ready to migrate
  10. Fully migrated as of [date]

Property proposals to replace specific P642 uses[edit]

Proposed property COD9 Description Proposal status
action applies to 7 Use case identified below  Not done No consensus
quality or property of 9 Use cases identified below Not yet proposed; more work needed
in service of 3 To be used with position held (P39) and similar to specify what country, organization, private corporation, business enterprise or other legal entity a natural person is appointed to represent or work on behalf of. This allows the main statement value to be a generic position such as president, ambassador, attorney general, board member, auditor, CEO and so on without the need for the identity of the served entity to be embedded in the role item (such as "Clark County Commissioner (Q105802373)"; there seem to be a lot of those). Proposed; more work needed
assigned to 3 Sometimes combined with in service of to indicate the receiving country of a diplomatic mission, a conference to which a formal delegation is sent, a legislative committee or any other assignment outside the control of the sending entity. Not yet proposed; more work needed
with respect to 6 Use cases identified below Not yet proposed; more work needed
applies in context 4 A limitation of applicability to a particular context such as a profession, a field of science, a culture, an organization, a programming language etc. For an example, see use case #o20. Some existing properties such as applies to part (P518), applies to jurisdiction (P1001), valid in period (P1264), valid in place (P3005), applies to people (P6001) and applies to work (P10663) might be considered subproperties of applies in context that may be less than perfect matches in some cases. Not yet proposed; more work needed
to benefit 7 product packaging process (Q117156507) has goal (P3712) "protection of product" Not actual proposal; just an example case for comparison
describing 6 product packaging process (Q117156507) has goal (P3712) "advertising of product" Not actual proposal; just an example case for comparison
target audience 6 product packaging process (Q117156507) has goal (P3712) "education of consumer" Not actual proposal; just an example case for comparison

Properties that have already been created:

Property labels[edit]

The associated table lists labels in some major languages (currently English, German, French, Spanish, Russian, Arabic, Japanese and Chinese) for a number of properties either affected by or created as part of this deprecation effort. The idea is to get an overview of the translation process, as well as a comparison of the appropriateness of those translations (feedback from editors fluent in or at least familiar with these languages will be appreciated).

English[edit]

These are senses of "of" according to the Consise Oxford Dictionary, ninth edition:

COD9 Sense Examples
1 origin, cause, or ownership
  • paintings of Turner
  • people of Rome
  • died of malnutrition
2 the material or substance constituting or identifying a thing
  • a house of cards
  • was built of bricks
3 belonging, connection, or possession
  • a thing of the past
  • articles of clothing
  • the head of the business
  • the tip of the iceberg
4 identity or close relation
  • the city of Rome
  • a pound of apples
  • a fool of a man
5 removal, separation, or privation
  • north of the city
  • got rid of them
  • robbed us of £1,000
6 reference, direction, or respect
  • beware of the dog
  • suspected of lying
  • very good of you
  • short of money
  • the selling of goods
7 objective relation
  • love of music
  • in search of peace
8 partition, classification, or inclusion
  • no more of that
  • part of the story
  • a friend of mine
  • this sort of book
  • some of us will stay
9 description, quality, or condition
  • the hour of prayer
  • a person of tact
  • a girl of ten
  • on the point of leaving
10 N. Amer. time in relation to the following hour
  • a quarter of three

Preparatory statistics[edit]

General queries[edit]

Special queries[edit]

These may require manual intervention.

Tabulated cases[edit]

Query Quantity Statement property Statement value class Qualifier value Proposed handling Example item
Query 164558 subject has role (P2868) N/A any TBD Theun de Vries (Q2143934)
Query 60792 position held (P39) N/A any TBD Jaroslav Faltýnek (Q15124034)
Query 57854 N/A any TBD Dani Pedrosa (Q313959)
Query 38241 winner (P1346) N/A any TBD 2019 Pulitzer Prize (Q63185624)
Query 10452 taxon range (P9714) N/A any TBD Oriental Turtle Dove (Q704987)
Query 8976 occupation (P106) N/A any TBD Franz-Josef Sehr (Q22075663)
Query 5892 significant event (P793) N/A any TBD Kami Rita Sherpa (Q30688283)
Query 54587 any any creative work (Q17537576) (classes only) TBD Executive Order 13990 (Q105332577)
Query 19730 any any work of art (Q838948) (classes only) TBD Mattioli Productions Company (Q95593375)
Query 12036 any any film directed by this person (Q29017630) (classes only) TBD Wes Anderson (Q223687)

Use cases by property being qualified[edit]

This section serves to identify specific use cases of of (P642) and appropriate alternative statement forms.

Important notes for reading these tables[edit]

Scope:

  • Unless noted as "exactly [class]", listed classes include all subclasses.
  • Unless otherwise noted, qualifier value must be an instance of the qualifier value class or its subclasses.

Proposed handling:

  • Where a main statement is proposed, the statement value will be the original qualifier value.
  • Unless otherwise noted, the statement with the P642 qualifier will not be removed; only the qualifier will be removed.

For example, Paso Terra (Q65093014)instance of (P31)restaurant (Q11707)of (P642)seafood (Q192935) becomes two statements, Paso Terra (Q65093014)instance of (P31)restaurant (Q11707) and Paso Terra (Q65093014)cuisine (P2012)seafood (Q192935). Only the latter is shown in the proposed handling.

Qualifying statements on Wikidata items[edit]

Qualifying instance of (P31) only (expand to is a list of (P360)?)[edit]

Scope of use case
Case ID Query Quantity Statement value class*
("Item is an instance of ____ ...")
Qualifier value class*
("...of something in class ____.")
Proposed handling Status Example item
i1 [1] (includes P360) 61 broadcasting program (Q11578774) broadcaster (Q15265344) Main statement original broadcaster (P449)
(Expand scope to allow syndicators?)
Handling to be determined
i5 [2] (includes P360) TBD article (Q191067) written work (Q47461344) Main statement part of (P361) or published in (P1433) Handing to be determined EB-11 / Andromeda (Q76812409)
i6 [3] (expand) 6174 anthroponym (Q10856962)
TBD
ethnic group (Q41710)
human social group (Q874405)
Main statement culture (P2596) Scope to be determined Kuhap (Q96650979)
i7

[4] (expand)
[5] (any parent class)

TBD
4213
anthroponym (Q10856962)
group of humans (Q16334295)
infrastructure (Q121359)
geographic location (Q2221906)
inhabitant (Q22947)
human population (Q33829)
TBD - any?
country (Q6256) Main statement country (P17) Scope to be determined Passage The Pays (Q100365407)
i9

[6] (any parent class)

TBD any? physical location (Q17334923) AND NOT country (Q6256) Main statement location (P276) Scope to be determined
i10 [7] 100 political territorial entity (Q1048835) political territorial entity (Q1048835) Main statement part of (P361)
Scope of use case
Case ID Query Quantity Statement value class*
("Item is an instance of ____ ...")
Qualifier value class*
("...of something in class ____.")
Proposed handling Status Example item
i11 [8] TBD organizational subdivision (Q9261468)
organizational unit (Q679206)
organization (Q43229) Main statement parent organization (P749)
i12 [9] 143 exactly list (Q12139612) any Main statement is a list of (P360)
i13 [10] 2357 discography (Q273057) performing artist (Q713200)
performing arts group (Q105815710)
Main statement performer (P175)
i14 [11] 1629 war cemetery (Q1707610) armed conflict (Q350604) Main statement time period (P2348) Gaza War Cemetery (Q17511203)
i15 [12] 790 concept (Q151885) knowledge system (Q110402795) Main statement facet of (P1269) line frequency (Q184893)
i16 [13] 88 restaurant (Q11707) cuisine (Q1778821) Main statement cuisine (P2012) Paso Terra (Q65093014)
i17 [14] 447 quality (Q1207505)
property (Q937228)
state (Q3505845)
relation (Q930933)
any Main statement with new property "quality or property of" Property proposal to be created
i18 https://w.wiki/5TZN fandom (Q773944) Main statements dedicated to (P825) and affiliation (P1416)
i19 [15] 99 product model (Q10929058) any Main statement subclass of (P279)
i20 Query 58 Exactly ordinal number (Q191780) natural number (Q21199) Qualifier series ordinal (P1545)
Scope of use case
Case ID Query Quantity Statement value class*
("Item is an instance of ____ ...")
Qualifier value class*
("...of something in class ____.")
Proposed handling Status Example item
i21 [16] 10306 exactly synonym (Q1040689) taxon (Q16521) Remove P31 = synonym (Q1040689) and
replace with main statement "synonym of" (inv. of taxon synonym (P1420))
Property proposal to be created
(purview of Wikidata:WikiProject Taxonomy)
i22 [17] 173 exactly protonym (Q10640897) taxon (Q16521) Remove P31 = protonym (Q10640897) and
replace with main statement "protonym of" (inv. of original combination (P1403))
Property proposal to be created
(purview of Wikidata:WikiProject Taxonomy)
i23 [18] 5 exactly basionym (Q810198) taxon (Q16521) Remove P31 = basionym (Q810198) and
replace with main statement "basionym of" (inv. of basionym (P566))
Property proposal to be created
(purview of Wikidata:WikiProject Taxonomy)

Qualifying subclass of (P279) only[edit]

Scope of use case
Case ID Query Quantity Statement value class*
("Item is a subclass of ____ ...")
Qualifier value class*
("...of something in class ____.")
Proposed handling Status Example item
s1 [19] (expand) TBD political territorial entity (Q1048835) political territorial entity (Q1048835) Main statement applies to jurisdiction (P1001)
s2 [20] 116 instance of second-order class (Q24017414) any Remove P642 qualifier from "subclass of" statement and add its value as the value of a main statement is metaclass for (P8225)

Qualifying instance of (P31) or subclass of (P279) (expand to is a list of (P360)?)[edit]

Handling existing statements of the form iteminstance of (P31) OR subclass of (P279) OR is a list of (P360)valof (P642)qval

ID Query Quantity Use case: Example statement Proposed handling Status
is1 [21] TBD val[ins or sub]product (Q2424752)
qval[ins]productive animal (Q1797813)
duck meat (Q542042)subclass of (P279)meat (Q10990)of (P642)duck (Q3736439) itemnatural product of taxon (P1582)qval
is2 [22] TBD val[ins or sub]equipment (Q10273457)
qval[ins]human activity (Q61788060)
personal anti-tank weapon (Q10912680)subclass of (P279)weapon (Q728)of (P642)anti-tank warfare (Q316936) itemhas use (P366)qval
is3 [23]
(expand)
TBD val[sub]leader (Q1251441) or statesperson (Q372436)
or government organization (Q2659904)
or national symbol (Q1128637) or rule (Q1151067)
or technical standard (Q317623) or legal form (Q12047392)
or nationality (Q231002) or TBD

qval[ins]political territorial entity (Q1048835)
Monarch of Spain (Q58637583)subclass of (P279)monarch (Q116)of (P642)Spain (Q29)
censorship in Turkey (Q1185409)subclass of (P279)censorship (Q543)of (P642)Turkey (Q43)
itemapplies to jurisdiction (P1001)qval
is4

[24]

505 val[ins or sub]form of art (Q1437361) or TBD (any?)
qval[ins]physical location (Q17334923)
itemlocation (P276)qval
is5 [25] TBD val[ins or sub]quality (Q1207505) or property (Q937228)
or state (Q3505845) or relation (Q930933)

OR
val[sub]type of property (Q96253971)
qval=any
itempropval"quality or property of" (new)qval Property proposal to be created
is6 [26] 53 val=number of entities (Q614112)
qval=any
atomic number (Q23809)subclass of (P279)number of entities (Q614112)of (P642)proton (Q2294) itemis a number of (P11279)qval Constraint needed on use of P642
Ready to migrate

Qualifying creator (P170) property group[edit]

Scope of use case
Case ID Query Quantity Statement property Statement value class Qualifier value class Proposed handling Status Example item
c1 Query (limited) TBD author (P50) human (Q5) (instances only) creative work (Q17537576) (classes only) Verify, then qualifier applies to part (P518)
c2 Query (limited) 11 creator (P170) human (Q5) (instances only) creative work (Q17537576) (classes only) Verify, then qualifier applies to part (P518) Grosshaus (Q19362549)
c3 Query (limited) 15 Subproperties of creator (P170) except author (P50) human (Q5) (instances only) creative work (Q17537576) (classes only) Qualifier applies to part (P518) Pinocchio (Q7196391)
c4 TBD creator (P170) with subproperties human (Q5) (instances only) creative work (Q17537576) (instances only) TBD
c5 TBD creator (P170) with subproperties human (Q5) (instances only) not creative work (Q17537576) TBD
c6 TBD creator (P170) with subproperties not human (Q5) (instances only) any TBD
c7 [27] 3 programmer (P943) human (Q5) (direct instances only) any Qualifier applies to part (P518) TOPS-20 (Q1481861)
c8 Query (limited) 79 creator (P170) with subproperties (here enumerated) human (Q5) (instances only) instance of country (Q6256) when consistent with country of citizenship (P27) of object Drop qualifier Jag vill leva i Europa (Q10539163)
c9 Query (timing out) TBD creator (P170) with subproperties human (Q5) (instances only) instance of country (Q6256) when conflicting with country of citizenship (P27) of object Investigate reason for discrepancy, resolve, and then drop qualifier

Qualifying positions, occupations, and roles[edit]

Some positions may involve multiple interpretations of of (P642); diplomats constitute an obvious case calling for at least two properties (possibly existing ones; that can be determined when all the queries have been listed).

Scope of use case
Case ID Query Quantity Statement property Statement value class Qualifier value class Proposed handling Status Example item
j1 Query 1271 position held (P39) nuncio (Q157037) (classes only) country (Q6256) (instances only) drop qualifier refinement required Ivan Dias (Q469942)
j2 Query 31 position held (P39) papal legate (Q740369) except nuncio (Q157037) (class or instance) country (Q6256) (instances only) "assigned to" Bruno Heim (Q124214)
j3 Query 14 position held (P39) diplomat (Q193391) except papal legate (Q740369) (class or instance) country (Q6256) (instances only) "assigned to" Jari Vilén (Q736216)
j4 Query 162 position held (P39) official (Q599151) except diplomat (Q193391) (classes only) country (Q6256) (instances only) "in service of" Dorit Beinisch (Q271778)

Qualifying URL (P2699) (expand to subproperties)[edit]

Use case: existing statements of the form itemURL (P2699)(any)of (P642)qval

Status: allowed qualifiers constraint (Q21510851) applied to URL (P2699) allows the following replacement qualifiers, and does not allow of (P642). In cases with multiple proposed replacements, a rule for which replacement is most appropriate must be determined to allow automated migration.

To do: Change handling to use sub-properties of URL ([28]) without a qualifier as appropriate.

Case ID Query Quantity Use case (qualifier value) Proposed handling Status Example item
u0 [29]

[30] [31]

3959
612
449
qval[sub]information (Q11028), manifestation (Q286583), or work (Q386724), and
qval[NOT sub]architectural structure (Q811979)
Qualifier contains (P4330)
u1 [32] 0 qval=item (qualifier value is the parent item) Drop qualifier Cleared 2022-02-24
u2
(was o10)
[33] 3 qval[ins]periodical (Q1002697) Qualifier published in (P1433)?
u3
(was o11)
[34] 73 qval[ins]collection (Q2668072) or database (Q8513) Qualifier collection (P195)
u4 [35] 53 qval[ins]online publication (Q1714118) or web service (Q193424) Qualifier part of (P361) or publisher (P123) Need to separate cases
u4b [36] 20 qval[ins]publisher (Q2085381) Qualifier publisher (P123)
u5
(was o12)
[37] TBD qval[ins]person or organization (Q106559804), but not periodical (Q1002697), online publication (Q1714118), or web service (Q193424) Qualifier publisher (P123) or owned by (P127) Need to separate cases
u6
(was o9)
[38] 83 qval[sub]any and not matched above Qualifier object has role (P3831), main subject (P921), or contains (P4330) Need to separate cases abook (Q9138324)

Qualifying other specific properties[edit]

Scope of use case
Case ID Query Quantity Statement property Statement value class Qualifier value class Proposed handling Status Example item
o1 [39] (limited) TBD position held (P39) any political territorial entity (Q1048835) Qualifier applies to jurisdiction (P1001) different approach suggested in previous section
o2 TBD position held (P39) any organization (Q43229) excluding political territorial entity (Q1048835) Qualifier employer (P108), affiliation (P1416), or a new qualifier
o3 TBD main subject (P921) academic discipline (Q11862829) country (Q6256) Change main value to more specific one that includes the qualifier value, where such exists, e.g. history of Spain (Q7781); otherwise use qualifier country (P17)
o4 TBD main subject (P921) academic discipline (Q11862829) TBD Change main value to more specific one that includes the qualifier value, where such exists, e.g. history of Spain (Q7781); otherwise use qualifier TBD
o5 [40] (limited) TBD main subject (P921) academic discipline (Q11862829) any not covered above Change main value to more specific one that includes the qualifier value, where such exists, e.g. history of Spain (Q7781); otherwise use qualifier facet of (P1269)
o6 [41] 9587 number of matches played/races/starts (P1350) (numeric) recurring sporting event (Q18608583) Qualifier applies to part (P518) or part of (P361)?
o7 [42] 28 precipitation height (P3036) (numeric) any TBD:
New qualifier "precipitation type" or
Qualifier phase of matter (P515) with value liquid (Q11435) (for liquid water) or solid (Q11438) (for snow)
Handling discussion started Montreal Flood of 1987 (Q3043389)
o8 [43] 752 occupation (P106) scholar (Q2248623) (instances only) any Main statement field of work (P101) AnaLouise Keating (Q30070209)
o13 [44] 6718 mass (P2067) (numeric) birth mass (Q4128476)
adult weight (Q78101716)
Qualifier object has role (P3831) wolverine (Q14334)
Scope of use case
Case ID Query Quantity Statement property Statement value class Qualifier value class Proposed handling Status Example item
o14 [45] 1260 has characteristic (P1552) any EXCEPT name without diacritical marks (Q89410507) any qualify with new property "quality or property of" Property proposal to be created baseball rubbing mud (Q4866552)
o15 [46] 7213 has characteristic (P1552) exactly name without diacritical marks (Q89410507) proper name (Q28129886) TBD Bade (Q16479689)
o16 [47] 14518 related category (P7084) Wikimedia category (Q4167836) metaclass (Q19361238) Qualifier category contains (P4224) Handling discussion
Constraint applied to related category (P7084)
Ready to migrate
Charlize Theron (Q80046)
o17 [48] 4300 sport number (P1618) (numeric) any Qualifier member of sports team (P54) Handling discussion
Constraints applied to sport number (P1618)
Ready to migrate
Mario Götze (Q104454)
o18 [49] 373 port (P1641) (numeric) any Qualifier protocol (P2700) Handling discussion
Constraint applied to port (P1641)
Ready to migrate
Tunnel Setup Protocol (Q3542129)
o19 [50] 652 union of (P2737)
disjoint union of (P2738)
any (expected to be list of values as qualifiers (Q23766486) any Qualifier list item (P11260) Property created
Constraints created on P2737 and P2738
Ready to migrate
series (Q170198)
o20 [51] 28 has use (P366) any formal system (Q649732) Qualifier applies in context Appropriate scope of main item (currently limited to information (Q11028) in query) to be determined. @ (Q10714)

Qualifying any property[edit]

Scope of use case
Case ID Query Quantity Statement value class Qualifier value class Proposed handling Status Example item
x1 TBD human (Q5) (instances only)
group of humans (Q16334295) (instances only)
physical location (Q17334923) drop qualifier
x2 TBD any EXCEPT human (Q5) or group of humans (Q16334295) country (Q6256) Qualifier country (P17)
x3 [52] 157 any any item which the subject item has as a value of has part(s) (P527) Qualifier applies to part (P518) Constraint created on P642
Ready to migrate
Piganino (Q18328047)
x4 TBD occurrence (Q1190554) property (Q937228)
state (Q3505845)
relation (Q930933)
Qualifier criterion used (P1013) playing (Q110458661)
(statement has goal (P3712))
x5 TBD occurrence (Q1190554) any not captured above New qualifier "action applies to" (aliases: object of action; target of action; patient) Property proposal: action applies to passivation (Q7142788)
playing (Q110458661) (statement has effect (P1542))
x6 TBD anatomical structure (Q4936952) individual organism (Q110224119) Replace qualifier with part of (P361) Salome (Fragment) (Q116966881)

Qualifying statements on Wikidata properties[edit]

Scope of use case
Case ID Query Quantity Statement property Statement value class Qualifier value class Proposed handling Status Example property
p1 Query 124 any n/a any Split cases by property Done base (P3263)
p2 Query 26 instance of (P31) any any TBD Handling TBD pinyin transliteration (P1721)
p3 Query 21 subproperty of (P1647) any any TBD Handling TBD Truth Social username (P10858)
p4 Query 34 Wikidata property example (P1855) any any TBD Handling TBD related category (P7084)
p5 Query 9 third-party formatter URL (P3303) n/a any Moving target; qualifier applies to part (P518)? Handling TBD Minecraft UUID (P8727)
p6 Query 7 Wikidata item of this property (P1629) any any TBD Handling TBD mushroom cap shape (P784)
p7 Query 6 subject has role (P2868) any any TBD Handling TBD language of work or name (P407)
p8 Query 5 number of records (P4876) n/a any TBD Handling TBD Meta Store ID (P11088)
p9 Query 4 used by (P1535) any any TBD Handling TBD ORCID iD (P496)
p10 Query 3 URL (P2699) n/a any Qualifier object has role (P3831) Handling TBD MIMO instrument ID (P3763)
p11 Query 3 inverse property (P1696) any any n/a Closed 2023-01-16 taxon synonym (P1420)
p12 Query 3 formatter URL (P1630) n/a any Qualifier applies to part (P518) Migrated 2023-01-16 ESR station code (P2815)
Query 9 any not already covered above n/a any manual one by one Handling TBD orbital period (P2146)

Qualifying statements on Wikidata Lexemes[edit]

All TBD, see talk page.

Addenda[edit]

Prerequisite changes[edit]

These are edits not themselves necessarily involving the of (P642) qualifier, but needed or at least helpful to support subsequent removal of of (P642) from other statements.

Redundant statements[edit]

There may be Wikidata best practices recommending certain redundant claims; check out what applies to country (P17).

Certain items have multiple country (P17) claims, contradicting its documented purpose of describing the location. It may be desirable to either remove or ignore some of the redundant ones, before using the values of the remaining ones for other statements.

Case ID Query Quantity Scope of use case Proposed handling Status Example item
r1 Query TBD
S: [s+] agent (Q24229398)
P: country (P17)
discover redundant country (P17) claims to avoid changing later on ambassador to France (Q19359050)

Interpret country (P17) to define values of other statements[edit]

There have been lots of discussion about country (P17), requiring extra consideration be given to current best practice before depending on (and potentially replacing) some cases of country (P17) with assigned to.

Case ID Query Quantity Scope of use case Proposed handling Status Example item
a1 Query TBD
P: properties for this type (P1963)
V: country (P17)
add properties for this type (P1963) assigned to refinement required class of ambassadors to a country (Q29918335)
a2 Query 259
S: [i/s*] class of ambassadors to a country (Q29918335)
P: country (P17)
add assigned to V pending new property ambassador to France (Q19359050)

Other queries[edit]

  • Entities with the most of (P642) qualifiers: Query (takes 519 seconds to run un-cached)
  • Classes who have the most number of instances with of (P642) qualifiers and example instances: Query