Shortcut: WD:P642
Wikidata:WikiProject Data Quality/Issues/P642
This page serves to coordinate the process of deprecating of (P642). See also User:Lucas Werkmeister/P642 considered harmful.
Migration process[edit]
- 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.)
- Identify a new handling approach for the case, and make sure it makes sense for all query results.
- 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.
- Migrate uses to new handling; automate where practical.
- 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):
- Scope to be determined
- Handling to be determined
- SPARQL query needed
- Handling discussion started/ongoing/concluded [here]
- Property proposal to be created
- Property proposal: [here]
- Ready to constrain use of P642
- Constraints created on use of P642: [here]
- Ready to migrate
- 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:
- (4) is a number of (P11279)
- (2) list item (P11260)
- (8) right ascension component of proper motion (P10752)
- (8) declination component of proper motion (P10751)
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 |
|
2 | the material or substance constituting or identifying a thing |
|
3 | belonging, connection, or possession |
|
4 | identity or close relation |
|
5 | removal, separation, or privation |
|
6 | reference, direction, or respect |
|
7 | objective relation |
|
8 | partition, classification, or inclusion |
|
9 | description, quality, or condition |
|
10 | N. Amer. time in relation to the following hour |
|
Preparatory statistics[edit]
General queries[edit]
- Obtain statistics per property
- Obtain statistics per property type (if it times out, try again)
- Obtain statistics per property value data type
- Obtain statistics per property value data type for property items only
- Obtain statistics per item (timing out)
- Obtain statistics per property object (timing out)
- first 100,000 of (P642) uses grouped by qualifier value
Special queries[edit]
These may require manual intervention.
- Use of the deprecated qualifier as a main value statement (obvious constraint violation)
- The deprecated qualifier appearing in value position (mostly in property constraint declarations)
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)
Qualifying statements on Wikidata items[edit]
Qualifying instance of (P31) only (expand to is a list of (P360)?)[edit]
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)val
- val: value of original statement
- qval: qualifier value of original statement
- ins: instance of (P31) (either directly or via a chain of subclass of (P279) statements)
- sub: subclass of (P279) (either directly or via a chain of subclass of (P279) statements)
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)
- qval: qualifier value of original statement
- ins: instance of (P31) (either directly or via a chain of subclass of (P279) statements)
- sub: subclass of (P279) (either directly or via a chain of subclass of (P279) statements)
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] | 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]
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]
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 |
|
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 | add properties for this type (P1963) assigned to | refinement required | class of ambassadors to a country (Q29918335) | |
a2 | Query | 259 | add assigned to V | pending new property | ambassador to France (Q19359050) |