Property talk:P31
Documentation
that class of which this subject is a particular example and member; different from P279 (subclass of); for example: K2 is an instance of mountain; volcano is a subclass of mountain (and an instance of volcanic landform)
Description | This item is an instance of that other item (which represents some type or grouping of entities). Rather use a more specific type or instance of property, if one applies. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Represents | instance of (Q21503252) | ||||||||||||
Data type | Item | ||||||||||||
Domain | Instances (note: this should be moved to the property statements) | ||||||||||||
Allowed values | According to this template:
Any item that represents a class; any item that is not an instance
According to statements in the property:
When possible, data should only be stored as statements | ||||||||||||
Usage notes | Usage instructions in English | ||||||||||||
Example | Nelson Mandela (Q8023) → human (Q5) Gachalá Emerald (Q772466) → emerald (Q43513) lists of communes of France (Q177866) → Wikimedia list article (Q13406463) electron (Q2225) → type of quantum particle (Q22675015) | ||||||||||||
Source | http://www.w3.org/TR/rdf-schema/#ch_type | ||||||||||||
Robot and gadget jobs | DeltaBot does the following jobs: The gadget Wikidata useful lets the user choose among some common types and store the statement in one click. | ||||||||||||
Tracking: same | Category tracking usage of P31 (instance of) (Q42533274) | ||||||||||||
Tracking: usage | Category:Pages using Wikidata property P31 (Q20117426) | ||||||||||||
Tracking: local yes, WD no | no label (Q32764726) | ||||||||||||
See also | subclass of (P279), part of (P361) | ||||||||||||
Lists |
| ||||||||||||
Proposal discussion | [not applicable Proposal discussion] | ||||||||||||
Current uses |
| ||||||||||||
Search for values |
List of violations of this constraint: Database reports/Constraint violations/P31#allowed qualifiers, SPARQL
Replacement property:
Replacement values: work of art (Q838948), musical work (Q2188189) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P31#Scope, SPARQL
if [item A] has this property (instance of (P31)) linked to [item B],
then [item A] and [item B] have to coincide or coexist at some point of history. (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#Contemporary, SPARQL
Replacement property: living people protection class (P8274)
Replacement values: (Help)
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: human (Q5) (Help)
Replacement property: sex or gender (P21)
Replacement values: female (Q6581072) (Help)
Replacement property: sex or gender (P21)
Replacement values: male (Q6581097) (Help)
Replacement property:
Replacement values: Wikimedia category (Q4167836) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: heritage designation (P1435)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: occupation (P106)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: occupation (P106)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: video game (Q7889) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: podcast (Q24634210) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: character type (P9071)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: narrative role (P5800)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: subject has role (P2868)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: album (Q482994) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: album (Q482994) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: has characteristic (P1552)
Replacement values: album (Q482994) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: video album (Q10590726) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: has characteristic (P1552)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: dramatico-musical work (Q58483083) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: dramatico-musical work (Q58483083) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: has characteristic (P1552)
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: has characteristic (P1552)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: subclass of (P279)
Replacement values: absence (Q19829125) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: sex or gender (P21)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: significant event (P793)
Replacement values: The Holocaust (Q2763) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: has characteristic (P1552)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: has characteristic (P1552)
Replacement values: audio track (Q7302866) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: significant event (P793)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: religion or worldview (P140)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: painting (Q3305213) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: occupation (P106)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: narrative role (P5800)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: type of dance (Q107357104) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: musical work/composition (Q105543609) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: capital of (P1376)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: mass shooting (Q21480300) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: terrorist attack (Q2223653) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: domestic terrorist attack (Q112044283) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: video game developer (Q210167), video game publisher (Q1137109) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P31#Target required claim P279, SPARQL, SPARQL (by value)
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: heritage designation (P1435)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: physical location (Q17334923), virtual place (Q107307154), location in a fictional work (Q15796005) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: occupation (P106)
Replacement values: soldier (Q4991371) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: literary work (Q7725634), version, edition or translation (Q3331189), written work (Q47461344) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: transitivity (P9295)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: religious sculpture as object (Q116445901) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: art genre (Q1792379), art movement (Q968159), art style (Q1792644), artistic technique (Q11177771), artistic theme (Q1406161), type of arts (Q56055944), aspect in a geographic region (Q74817647), aspect in a historical period (Q111676757), aspect by ethnic group (Q106727146), work of art (Q838948) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: visual artwork (Q4502142) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: performance work (Q17538722) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: literary work (Q7725634) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: religious work of art (Q117023378) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: textile artwork (Q22075301) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: performance artwork (Q22672348) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: video artwork (Q20742776) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: environmental artwork (Q21042249) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: photograph (Q125191), photographic work (Q11900210) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: interactive artwork (Q115452528) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: painting (Q3305213) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: sculpture (Q860861) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: drawing (Q93184) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: has characteristic (P1552)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: form of creative work (P7937)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: controversy (Q1255828) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: antagonist (Q245204) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: woodwork (Q60734095) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: streetlight (Q503958) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: declarative sentence (Q474328), proposition (Q108163), message (Q628523), declaration (Q2620826), declaration (Q62662439), assertion (Q814441), saying (Q3026787) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: natural system (Q106865236), technical system (Q994895), physical system (Q1454986), conceptual system (Q3622126), continuous system (Q3509189), discrete system (Q3509386), social system (Q1639378), engineered physical system (Q120926552) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: remarkable tree (Q811534) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: fictional country (Q1145276) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: fort (Q1785071) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: association (Q15911314) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: mill (Q44494) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: mythical location (Q3238337), fictional location (Q3895768), planet (Q634) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: physical object (Q223557), physical substance (Q28732711), spatial entity (Q58416391), physical location (Q17334923), geographical feature (Q618123) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: theatre building (Q24354) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: genre (P136)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: industry (Q268592), economic sector (Q3958441) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: part of (P361)
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: distribution format (P437)
Replacement values: online video (Q23058567), viral video (Q1030329), web series episode (Q1464125), music video (Q193977), short film (Q24862), video work (Q110879246) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: language (Q34770) (Help)
Replacement property:
Replacement values: plastic artwork (Q350268) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: subclass of (P279)
Replacement values: educational institution (Q2385804) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: ship grave (Q124473037) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: film character (Q15773347) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: occupation (P106)
Replacement values: vigilante (Q3190387) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property:
Replacement values: (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Replacement property: subclass of (P279)
Replacement values: point of view (Q12558574), world view (Q49447), ideology (Q7257) (Help)
List of violations of this constraint: Database reports/Constraint violations/P31#none of, SPARQL
Multiple P31 claims are unnecessary in most cases with Wikimedia-related items. Consider facet of (P1269) instead of second P31 value. (Help)
Violations query:
SELECT ?item #?class ?class2 ?itemLabel WHERE{ VALUES ?class{ wd:Q4167836 wd:Q11266439 wd:Q17362920 }?item wdt:P31 ?class. ?item wdt:P31 ?class2 FILTER(?class2!=?class). MINUS{VALUES ?whitelist{ wd:Q4115189 wd:Q15397819 #placeholders }?item wdt:P31 ?whitelist} #SERVICE wikibase:label{bd:serviceParam wikibase:language "en"} }
List of this constraint violations: Database reports/Complex constraint violations/P31#Multiple P31 claims lead to duplicate tuples
In most cases, this is an oversight or item that needs update after child item(s) were added (Help)
Violations query:
SELECT ?item(COUNT(*) AS ?count)WHERE{ ?class wdt:P31 ?item FILTER(?item NOT IN(wd:Q7187,wd:Q8054)). ?class wdt:P279/wdt:P279 ?item. }GROUP BY ?item ORDER BY DESC(?count)
List of this constraint violations: Database reports/Complex constraint violations/P31#P31=samevalue and P279=samevalue (indirect P279)
(Help)
Violations query:
SELECT ?item(COUNT(*)AS ?count)WHERE{ ?classC wdt:P279 ?item;wdt:P279 ?classB. ?classB wdt:P31 ?item }GROUP BY ?item ORDER BY DESC(?count)
List of this constraint violations: Database reports/Complex constraint violations/P31#Strange P31 link between parents in P279
(Help)
Violations query:
SELECT ?item WHERE{?item wdt:P31/wdt:P279+ wd:Q5}
List of this constraint violations: Database reports/Complex constraint violations/P31#Avoid P31 of P279 of Q5 (P106 or other properties should be created)
is most cases unspecific could be replaced with specific variant (Help)
Violations query:
SELECT ?item WHERE{ ?item wdt:P31 ?claim1 FILTER(?claim1=wd:Q95074). ?item wdt:P31 ?claim2 FILTER(?claim2!=?claim1) }
List of this constraint violations: Database reports/Complex constraint violations/P31#Second claim and unspecific
keep only one claim (Help)
Violations query:
SELECT ?item WHERE{ ?item wdt:P31 wd:Q5. # real ?item wdt:P31/wdt:P279* wd:Q21070568. # possibly fictional }
List of this constraint violations: Database reports/Complex constraint violations/P31#Can't be human and possibly fictional
keep only one claim, split into several items: Q1880543, Q161678, Q232009 (Help)
Violations query:
SELECT ?item WHERE ?item wdt:P31/wdt:P279* wd:Q15619176. # one ?item wdt:P31/wdt:P279* wd:Q17519152. # group }
List of this constraint violations: Database reports/Complex constraint violations/P31#Can't be one thing and group of things
impossible claim or it should be a separate item (Help)
Violations query:
SELECT ?item WHERE{?item wdt:P31 ?item}
List of this constraint violations: Database reports/Complex constraint violations/P31#Can't be ?item P31 ?item
Can't be ?item wdt:P31/wdt:P31 wd:Q5. (Help)
Violations query:
SELECT ?item WHERE{?item wdt:P31/wdt:P31 wd:Q5}
List of this constraint violations: Database reports/Complex constraint violations/P31#Cannot be an instance of an individual human
Should not an instance of (P31) both a human (Q5) and an occupation (Q12737077). Consider using occupation (P106). (Help)
Violations query:
SELECT ?item WHERE { ?occupation wdt:P279*/wdt:P31+ wd:Q12737077. ?item wdt:P31 wd:Q5. ?item wdt:P31 ?occupation. } GROUP BY ?item
List of this constraint violations: Database reports/Complex constraint violations/P31#Can't be instance of both human and occupation
Should not be an instance of (P31) both a human (Q5) and an position (Q4164871). Consider using position held (P39). (Help)
Violations query:
SELECT ?item WHERE { ?position wdt:P279*/wdt:P31+ wd:Q4164871. ?item wdt:P31 wd:Q5. ?item wdt:P31 ?position. } GROUP BY ?item
List of this constraint violations: Database reports/Complex constraint violations/P31#Can't be instance of both human and position
Items should not be an instance of (P31) both a song (Q7366) and a single (Q134556); the musical release (Q2031291) (single) should be separate from the creative work (Q17537576) (song). Sitelinks should usually be attached to items about songs. Consider removing one statement (probably single (Q134556)), and creating a new item for the other entity. Songs and singles can be linked with tracklist (P658) and part of (P361). (Help)
Violations query:
SELECT ?item WHERE{ ?item wdt:P31 wd:Q7366. ?item wdt:P31 wd:Q134556. }
List of this constraint violations: Database reports/Complex constraint violations/P31#Can't be instance of song and single
Should not be an instance of (P31) both a fictional character (Q95074) and an literary work (Q7725634). This is usually caused by conflation between a literary work and the main character that it is named after. (Help)
Violations query:
SELECT ?item WHERE{ ?item (wdt:P31/(wdt:P279*)) wd:Q95074, wd:Q7725634. }GROUP BY ?item
List of this constraint violations: Database reports/Complex constraint violations/P31#Can't be instance of both fictional character and literary work.
Template:Autotranslate Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Complex constraint Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix
Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix
Template:Autofix Template:Autofix Template:Autofix
Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix
Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix
Template:Autofix Template:Autofix Template:Autofix Template:Autofix Template:Autofix
Template:Autofix Template:Autofix Template:Autofix
Template:Autofix Template:Autofix
Template:Autofix Template:Autofix Template:Autofix Template:Autofix
Template:Autofix Template:Autofix
Template:Autofix Template:Autofix
Template:Autofix Template:Autofix Template:Autofix
Template:Autofix Template:Autofix
Template:ExternalUse Template:Wikidata property documentation properties Template:Tree properties
Archive edit
Older discussions archived under Property talk:P31/Archive.
Usage note edit
Usage is detailed in Help:Basic membership properties.
Discussion edit
(qualifierSnak proposal) Statements of Instance Of should be treated more generally and loosely as Events themselves edit
Context Item: https://www.wikidata.org/wiki/Q91629492
Context: Governments and other authorities often state that some things are instances of other things. This is universally known. This is most often treated as a set of statements themselves in other Graph systems.
I want to bring something up that is going to spin a few minds of folks. In other Graph systems, the very act of me or someone at some time saying something is an "instance of" is a complete Event itself (Event based graphs were recently highlighted in "CS520 Knowledge Graph Seminar Session 1" video on YouTube at 34:00) (with all the metadata that any Event could possibly contain, who,what,when,where,etc. said this thing was an instance of some other thing). However, in Wikidata, we don't treat Statements, for example the act of saying something is an "instance of", as an Event itself. We do have in the data model however a wrapper through qualifierSnak, to store additional information, but it lacks treatment as an entire Event.
This causes a number of issues:
- Each individual qualifier would need an attached reference, instead of only once for the single Event (the set of qualifiers, a qualifierSnak).
- Constraints and Rules become harder to maintain because there is not a single wrapper for the entire metadata of a statement (that I am aware of).
I offer an alternative design: Allow a set of qualifierSnaks to be treated in whole as an entire Event type (and possibly other types as needed).
qualifierSnak =
- Who
- What (we have this)
- When
- Where
- How (not sure we have this)
This allows a few nice things:
- We can easily give a single reference for the entire qualiferSnak Event, or multiple references if we desire, saving us from having to add a reference on each individual qualifier assertion.
- Constraints and Rules can be applied on the whole qualifierSnak Event (or additional Snak types other than Event types if they are out there and needed).
- Since all Events share a common set of properties, these can be maintained at a datatype level, or perhaps somehow allowing a flexible datatype that can use Wikidata itself and just maintaining an agreed set of Template:Property statements on Event Template:Q which qualifierSnak's would be typed as.
I welcome disagreement, head spinning, and "we already thought about that, see this..." comments. ;-)
(and perhaps this is all entirely possible via API and programmatically, but just not exposed in this way in the UI currently)
Thadguidry ([[User talk:Thadguidry|int:Talkpagelinktext]]) 18:28, 23 April 2020 (UTC)
Suitability of Template:Q as value edit
If Commons has a category, it would either go on an item with Template:Q or the related topical item, not one with Template:Q in P31. As I don't see what other uses there could be for the above in P31, there could be, I added a "none of" constraint. --- Jura 09:02, 25 October 2020 (UTC)
Suitability of Template:Q as value edit
In most cases, I think one should the sitelink to an item about the topic covered by the article, not an item for "Wikipedia articles". As I don't see what other uses in P31, there could be, I added a "none of" constraint. --- Jura 09:02, 25 October 2020 (UTC)
- Well, based on items currently having P31=Q15138389 statement, the idea seems to be that these items are for Wikipedia articles that are not about single topic (or single clear-cut concept), but rather are arbitrarily split from some other article, or that combine several topics. For example Template:Q currently having this P31 value seems more straightforwad than Template:Q claimed to be an instance of some pseudo-class called "climate of geographic location". See also Template:Q (a subclass of this item). Though, indeed the distinction between items about Wikimedia article pages and normal topic items should be made more clear. 2001:7D0:81F7:B580:9587:D3CB:74EF:6AF3 18:46, 29 November 2020 (UTC)
- There are academic articles that cite Wikipedia articles. In those cases it's useful to have an item for the Wikipedia article.
- When it comes to Template:Q https://en.wikipedia.org/wiki/Geology_of_Israel is not a page about a Wikipedia article and thus shouldn't be linked to an item with Template:P Template:Q. ChristianKl ❪✉❫ 00:18, 11 December 2020 (UTC)
- All or almost all current uses of P31 Q15138389 are incorrect, but there could theoretically be an item for which the statement would be correct, similar to how Q42395533 is correctly described as an instance of Wikidata item. (There should really be a help page describing the potential mistakes relating to mixing up an item/article and its topic.) --Yair rand ([[User talk:Yair rand|int:Talkpagelinktext]]) 02:04, 21 December 2020 (UTC)
- As far as I can see items like Template:Q compare with items that are instances of Wikimedia category page or Wikimedia list page, rather than with normal concept items. This example item exists because country article on Wikipedia has been split, not because "geology of Israel" is its own thing, special kind of geology, or whatever. So it seems reosonable to make this distinction clear, one way or another, instead of inventing various and dubious ways to fit such items into concept hierarchy. In case of "climate of Israel" mentioned above, setting it as both instance of and subclss of "climate" is just meaningless. Take another example Template:Q which per subclass tree is currently set as instance of "information", instead of frankly indicating that item is for a Wikipedia article. 2001:7D0:81F7:B580:9C67:F3D6:A94A:A88D 09:22, 5 February 2021 (UTC)
- Isn't it fairly common in geography and its various aspects to study it for some area? It's possibly that one hasn't come across studies of that specific country, but I don't see that as a problem. I don't think it really matters what Wikipedia does or doesn't do. We can just link its articles if there are some. --- Jura 09:37, 5 February 2021 (UTC)
- The study subject can be delimited in whatever arbitrary way (as is the case for splitting a long Wikipedia article), e.g. one can specify further and study "geology of the Permian and Triassic in the territory of Israel". Which does't make any such arbitary subject into a new concept, does it. Surely Wikidata can and does link to any existing Wikipedia article. The problem is how to classify resulting items meaningfully. Based on most items currently having P31=Q15138389 (or more specifially P31=Q21484471) it is at least evident that the statement isn't used for random items with Wikipedia sitelinks and there's an intent to make it clear that these items aren't about individual clear-cut concepts. 2001:7D0:81F7:B580:298C:2394:42D3:C4D1 12:05, 5 February 2021 (UTC)
- I'm sure we can find a meaningful way to classify and describe "geology of <country>" topics. --- Jura 12:14, 5 February 2021 (UTC)
- I also don't think it's an impossible task, neither in regard to other similar examples cited above. Though, out of options I've encountered, P31=Q15138389 or similar statements for reasons outlined above to me make the most sense. I again admit it's an imperfect solution and needs further refinement, so that it was clear that the statement shouldn't be used for all items with Wikipedia sitelinks. The second best option I can think of is to leave such items without any P31/P279 statement, and rely on Template:P, Template:P and alike, but then users probably eventually add P31/P279 anyway with some "close enough" value (i.e. more or less meaningless value). 2001:7D0:81F7:B580:298C:2394:42D3:C4D1 12:41, 5 February 2021 (UTC)
- I'm sure we can find a meaningful way to classify and describe "geology of <country>" topics. --- Jura 12:14, 5 February 2021 (UTC)
- The study subject can be delimited in whatever arbitrary way (as is the case for splitting a long Wikipedia article), e.g. one can specify further and study "geology of the Permian and Triassic in the territory of Israel". Which does't make any such arbitary subject into a new concept, does it. Surely Wikidata can and does link to any existing Wikipedia article. The problem is how to classify resulting items meaningfully. Based on most items currently having P31=Q15138389 (or more specifially P31=Q21484471) it is at least evident that the statement isn't used for random items with Wikipedia sitelinks and there's an intent to make it clear that these items aren't about individual clear-cut concepts. 2001:7D0:81F7:B580:298C:2394:42D3:C4D1 12:05, 5 February 2021 (UTC)
- Isn't it fairly common in geography and its various aspects to study it for some area? It's possibly that one hasn't come across studies of that specific country, but I don't see that as a problem. I don't think it really matters what Wikipedia does or doesn't do. We can just link its articles if there are some. --- Jura 09:37, 5 February 2021 (UTC)
- As far as I can see items like Template:Q compare with items that are instances of Wikimedia category page or Wikimedia list page, rather than with normal concept items. This example item exists because country article on Wikipedia has been split, not because "geology of Israel" is its own thing, special kind of geology, or whatever. So it seems reosonable to make this distinction clear, one way or another, instead of inventing various and dubious ways to fit such items into concept hierarchy. In case of "climate of Israel" mentioned above, setting it as both instance of and subclss of "climate" is just meaningless. Take another example Template:Q which per subclass tree is currently set as instance of "information", instead of frankly indicating that item is for a Wikipedia article. 2001:7D0:81F7:B580:9C67:F3D6:A94A:A88D 09:22, 5 February 2021 (UTC)
Removing Template:P as qualifier edit
It seems to me like many qualifiers get currently used on Template:P that have no good business being mixed up in Template:P. Template:P at the top of the list seem without good footing and gets mostly used in taxonomy. Template:Ping project ChristianKl ❪✉❫ 00:30, 11 December 2020 (UTC)
- Seems reasonable to me. --Yair rand ([[User talk:Yair rand|int:Talkpagelinktext]]) 02:10, 21 December 2020 (UTC)
Removing Template:P as qualifier edit
This finds current uses. They seem to be of two types:
- (1) Items where contributors try to describe a Wikipedia page connected to the item, but irrelevant for the P31-statement [1]
- (2) Items where the statement would better be a main statement (or already is) [2]
I'd remove (1) and move (2) where possible. If nothing is left, P407 can be removed. --- Jura 17:14, 18 March 2021 (UTC)
None-of constraints: podcast and games? edit
Several none-of constraints such as "None of Template:Q, Template:Q, Template:Q, Template:Q" or "None of Template:Q, Template:Q, Template:Q, Template:Q" seem arbitrary. What are the reasons for these? – Template:Autotranslate
- We use Template:Q and Template:Q instead. Template:Ping --Trade ([[User talk:Trade|int:Talkpagelinktext]]) 21:20, 7 November 2021 (UTC)
- Template:Ping but Template:Q and Template:Q are both subclasses of Template:Q ... so not being able to use them with Template:P doesn't seem to make any sense to me. --Push-f ([[User talk:Push-f|int:Talkpagelinktext]]) 11:27, 20 October 2022 (UTC)
- They are all marked as Template:Q which = Template:P Template:Ping--Trade ([[User talk:Trade|int:Talkpagelinktext]]) 13:53, 20 October 2022 (UTC)
- Template:Ping right I understand that Template:P is currently used but I don't see why it should be used. I think Template:P makes sense to say that a game is distributed on e.g. a DVD but in regards to Template:Q there is an "is" relationship. An audio-only podcast is an audio podcast, so instance of Template:Q is the best way to model this in my opinion. --Push-f ([[User talk:Push-f|int:Talkpagelinktext]]) 16:58, 20 October 2022 (UTC)
- Template:Ping I'm not against removing it if the other members of the Podcast Wikidata project agree--Trade ([[User talk:Trade|int:Talkpagelinktext]]) 22:46, 20 October 2022 (UTC)
- Template:Ping right I understand that Template:P is currently used but I don't see why it should be used. I think Template:P makes sense to say that a game is distributed on e.g. a DVD but in regards to Template:Q there is an "is" relationship. An audio-only podcast is an audio podcast, so instance of Template:Q is the best way to model this in my opinion. --Push-f ([[User talk:Push-f|int:Talkpagelinktext]]) 16:58, 20 October 2022 (UTC)
- They are all marked as Template:Q which = Template:P Template:Ping--Trade ([[User talk:Trade|int:Talkpagelinktext]]) 13:53, 20 October 2022 (UTC)
- Template:Ping but Template:Q and Template:Q are both subclasses of Template:Q ... so not being able to use them with Template:P doesn't seem to make any sense to me. --Push-f ([[User talk:Push-f|int:Talkpagelinktext]]) 11:27, 20 October 2022 (UTC)
None-of constraint: book? edit
Template:Reply to You added "book" (Q571) to none-of constraint (Q52558054) twice (see this and this), and I reverted them (see this and this). The reasons you gave were "use more precise value (most of the case: Q47461344, written work)" and "too general value ; use a more specific values, see [[Wikidata:WikiProject_Books]]". But book (Q571) is a subclass of, and more specific than, written work (Q47461344). If book (Q571) is "too general", written work (Q47461344) is even more general. So, in my view, "book" (Q571) is as specific as "article" (Q191067) and "chapter" (Q1980247), and can be the value of instance of (Property:P31). --Neo-Jay ([[User talk:Neo-Jay|int:Talkpagelinktext]]) 04:50, 19 October 2021 (UTC)
- Template:Ping oh, I didn't noticed (and that explains why I was surprised the constraint was not already here).
- Yes, book should no be used as a value of P31. And also yes, Template:Q is too general and problematic. Subclass of Template:Q changes a lot and right now I see it's a sublclass of work (so intangible) and of document/publication/object (tangible) which is contradictory and illogical. I think the adding of sublclass of work is the mistake here (I'll ask on Talk:Q571 again...). Anyway, many people clean books and remove the value Q571 to P31 since the beggining of Wikidata, removing the constraints will only make our job harder. Cheers, VIGNERON ([[User talk:VIGNERON|int:Talkpagelinktext]]) 06:39, 19 October 2021 (UTC)
- That's patently ridiculous. It should be possible to give an 'instance of' property as a book. Referring to something as a 'book' has strong colloquial usage Jack4576 ([[User talk:Jack4576|int:Talkpagelinktext]]) 14:36, 1 September 2023 (UTC)
- Template:Ping no it shouldn't, because Q571 can refer to several different concepts. See Wikidata:WikiProject Books. If the item you want to model has a publication date, a publisher and you can read it, use Q3331189. --Jahl de Vautban ([[User talk:Jahl de Vautban|int:Talkpagelinktext]]) 15:16, 1 September 2023 (UTC)
- So what if it can refer to several different concepts. We should still be allowed to identify something as a 'book'. Categorisation does not require the use of concepts that aren't ambiguous. If we applied "because X can refer to several different concepts" universally across the identifiers on this site it would be chaos. I don't know why we are making an exception for 'book'.
- If a more specific category is more appropriate in context, then we can use that more specific category. However, to prevent the word 'book' being used at all is a wholly unnecessary and artificial restriction. Jack4576 ([[User talk:Jack4576|int:Talkpagelinktext]]) 15:36, 1 September 2023 (UTC)
- Template:Ping no it shouldn't, because Q571 can refer to several different concepts. See Wikidata:WikiProject Books. If the item you want to model has a publication date, a publisher and you can read it, use Q3331189. --Jahl de Vautban ([[User talk:Jahl de Vautban|int:Talkpagelinktext]]) 15:16, 1 September 2023 (UTC)
- That's patently ridiculous. It should be possible to give an 'instance of' property as a book. Referring to something as a 'book' has strong colloquial usage Jack4576 ([[User talk:Jack4576|int:Talkpagelinktext]]) 14:36, 1 September 2023 (UTC)
Add type constraint to be mutually exclusive with Template:P edit
I'd like to suggest adding a type constraint that prevents something from being both Template:P (synonym "is") and Template:P (synonym "is not"). After all, X is Y and X is not Y cannot be simultaneously true. -Thunderforge ([[User talk:Thunderforge|int:Talkpagelinktext]]) 21:38, 1 November 2021 (UTC)
- Any use case to see more what you'd like ?Bouzinac 💬●✒️●💛 21:56, 1 November 2021 (UTC)
- @Bouzinac I'm not quite understanding what you are saying. Are you asking for an example? Here's one: for a brief time, Template:Q simultaneously had both Template:P and Template:P with values of "emulator". This means that ScummVM is an emulator and ScummVM is not an emulator were simultaneously listed. This is of course nonsensical, but there was no constraint on either property pointing out the issue. Thunderforge ([[User talk:Thunderforge|int:Talkpagelinktext]]) 18:38, 2 November 2021 (UTC)
- Okay, I get what you are saying : you'd like to alert when there is same value both in P31 and in P1889. Bouzinac 💬●✒️●💛 19:48, 2 November 2021 (UTC)
- Yes, that is what I am looking for. Thunderforge ([[User talk:Thunderforge|int:Talkpagelinktext]]) 01:29, 3 November 2021 (UTC)
- Okay, I get what you are saying : you'd like to alert when there is same value both in P31 and in P1889. Bouzinac 💬●✒️●💛 19:48, 2 November 2021 (UTC)
- @Bouzinac I'm not quite understanding what you are saying. Are you asking for an example? Here's one: for a brief time, Template:Q simultaneously had both Template:P and Template:P with values of "emulator". This means that ScummVM is an emulator and ScummVM is not an emulator were simultaneously listed. This is of course nonsensical, but there was no constraint on either property pointing out the issue. Thunderforge ([[User talk:Thunderforge|int:Talkpagelinktext]]) 18:38, 2 November 2021 (UTC)
- I don't see a problem with stating that a jeep is an instance of an off-road vehicle and different from that. This as they can be considered synonyms. --- Jura 01:58, 21 December 2021 (UTC)
Finding those without it set edit
Is there a query for finding humans without P31 set and optionally lets people filter on labels that end with a particular string (so they could work on everyone in a family they were researching for example) Back ache ([[User talk:Back ache|int:Talkpagelinktext]]) 09:13, 21 December 2021 (UTC)
- You need to find another way to determine if an item is about a person. This could be:
- a category on Wikipedia
- a property generally found on items about people (sample: date of birth).
- infobox or text of the article at Wikipedia
- The label alone generally doesn't allow to determine it.
- Special:Search/inlabel:"Miller" -haswbstatement:P31 -haswbstatement:P279 finds items with "Miller" in the label, but no P31 or P279 statement. It currently includes Ron Miller and G.A. Miller. You could then check the items or linked articles to see if its about a person. --- Jura 10:48, 21 December 2021 (UTC)
简体中文 标签 的翻译 edit
有原来的“隶属于”改为“(以类型分)属于”,原因如下:
1,隶属于 并没有表达“属于某一类别”的意思,更多是“首。。。。。。 管辖”的意思
2,(以类型分)属于 有明确的类型概念 如: Template:Q Template:P Template:Q
--Bangbang.S 11:52, 8 January 2022 (UTC)
Removal of some redundant English aliases edit
I am just making a note here to say why I removed some of the many English language aliases for this property. It was making the language heading quite unweildy to edit and read, in addition to making search suggestions confusing by including names which have overlap with other properties. For example, "member of" already exists as a different concept, and "has class" reads as something analagous to "has parts" or "has parts of class." The various "is a..." aliases I removed because so long as at least one is present, instance of will already appear in the search suggestions regardless of what is typed, and unless the aliases are particularly interchangeable I saw no reason to keep those. Further, the "was" aliases seemed out of scope. The time of the statement is with respect to the presently existing item; a historic building may still be represented by an item which is currently an instance of building. -Middle river exports ([[User talk:Middle river exports|int:Talkpagelinktext]]) 04:40, 4 October 2022 (UTC)
Russian label edit
{{editprotected}}
Please, change Russian label to «экземпляр от» as more close to English label and property usage. 217.117.125.83 16:42, 6 December 2022 (UTC)
- This is arguable. Current label is a result of consensus, and it must be discussed. --Infovarius ([[User talk:Infovarius|int:Talkpagelinktext]]) 20:57, 6 December 2022 (UTC)
- Template:Not done problematic renaming per discussion--Estopedist1 ([[User talk:Estopedist1|int:Talkpagelinktext]]) 19:01, 15 January 2023 (UTC)
- Was there a discussion of this previously? I couldn't find it by myself; would you please help? Nikolay Komarov ([[User talk:Nikolay Komarov|int:Talkpagelinktext]]) 20:29, 7 February 2024 (UTC)
- Я тоже не нашёл. Но меня многолетнее использование самого популярного свойства без обсуждений неправильно. --Infovarius ([[User talk:Infovarius|int:Talkpagelinktext]]) 10:59, 9 February 2024 (UTC)
Revision "Undo revision 1790142757 by Lectrician1 (talk): this is not true at all, the statements on the class apply to the class itself, not its instances; this is not Java/C++ " by LiberatorG edit
@User:LiberatorG Revision Could you give an example of an instance that does not inherit the properties of its superclass? Lectrician1 ([[User talk:Lectrician1|int:Talkpagelinktext]]) 15:44, 15 December 2022 (UTC)
- @Lectrician1 Take the example of metaclasses, just for example. A metaclass is a class of class. A class can be an instance of a specific metaclass. But its instances are generally not classes, and are not instances of the metaclass.
- In biology for example, if you consider taxons instances to be classes of organisms. Say, I’m an instance of mammal, and mammal is an instance of taxon. But as an instance, if I inherited everything from the mammal class it would entail that I’m a taxon, which is not true. author TomT0m / talk page 16:11, 15 December 2022 (UTC)
- @Lectrician1 Your revision said "the class this existent instance inherits all statements from". That would mean that because Template:Statement, the Template:P on Template:Q is an image of Template:Q, which it is not. Similarly, the Template:P, Template:P, Template:P, Template:P, Template:P, Template:P, Template:P, Template:P from Template:Q would make no sense on Template:Q, and obviously the identifiers like Template:P and Template:P for Template:Q are not identifiers for Template:Q. –LiberatorG ([[User talk:LiberatorG|int:Talkpagelinktext]]) 16:47, 15 December 2022 (UTC)
- Huh. This actually brings up a really interesting thing though. Some properties on classes are meant to be inherited (for example Template:P, Template:P, etc. on Template:Q). But others are not (the ones you listed). Do we have a way to distinguish ones that should be inherited and ones that shouldn't? Lectrician1 ([[User talk:Lectrician1|int:Talkpagelinktext]]) 16:59, 15 December 2022 (UTC)
- I proposed a long time ago to use a construction with Template:P' and qualifiers, but it’s imperfect.
- If the property is meant to be inherited, use
- Template:C author TomT0m / talk page 19:02, 15 December 2022 (UTC)
- How do you use Template:P? That's a property constraint qualifier... Lectrician1 ([[User talk:Lectrician1|int:Talkpagelinktext]]) 20:20, 15 December 2022 (UTC)
- Oh sorry wrong template, corrected. author TomT0m / talk page 20:42, 15 December 2022 (UTC)
- But aren't some properties always inherited, nomatter what class they're used on? For example, the ones I mentioned above? If so, shouldn't we somehow express on the property that whatever class it is used on it can be inherited by subclasses? Lectrician1 ([[User talk:Lectrician1|int:Talkpagelinktext]]) 21:02, 15 December 2022 (UTC)
- Well, in that case there is only one class, physical entity according to the property description. So, I guess whatever but it’s easier, say in a template context, to go up the class hierarchy in lua to get all the properties inherited from the superclass than to get all the domains of the property, there is no accessible link in the latter case with the current API. author TomT0m / talk page 21:13, 15 December 2022 (UTC)
- How do you use Template:P? That's a property constraint qualifier... Lectrician1 ([[User talk:Lectrician1|int:Talkpagelinktext]]) 20:20, 15 December 2022 (UTC)
- Huh. This actually brings up a really interesting thing though. Some properties on classes are meant to be inherited (for example Template:P, Template:P, etc. on Template:Q). But others are not (the ones you listed). Do we have a way to distinguish ones that should be inherited and ones that shouldn't? Lectrician1 ([[User talk:Lectrician1|int:Talkpagelinktext]]) 16:59, 15 December 2022 (UTC)
Removed complex constraint P31=samevalue and P279=samevalue for being too common edit
This constraint had 17,360 violations on the most recent page, making the page difficult to load, and preventing the templates on the rest of the page to load. If/when people want it, they can run the query themselves. To facilitate that, I'm including the template below. JesseW ([[User talk:JesseW|int:Talkpagelinktext]]) 03:11, 8 March 2023 (UTC)
{{Complex constraint | label = P31=samevalue and P279=samevalue | description = in most cases this is an oversight or item that needs update after child item(s) were added | sparql = SELECT ?item # ?itemLabel ?class ?classLabel WHERE { ?item wdt:P31 ?class ; wdt:P279 ?class . MINUS { ?class wdt:P31?/wdt:P279* wd:Q17442446 } # any internal stuff FILTER (?class != wd:Q11173) FILTER (?class != wd:Q7187) FILTER (?class != wd:Q8054) FILTER (?class != wd:Q201448) FILTER (?class != wd:Q215980) FILTER (?class != wd:Q277338) FILTER (?class != wd:Q284416) FILTER (?class != wd:Q427087) # SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } }}
"Domain" and "codomain" as qualifiers edit
Template:Ping Like "start time" and "end time", they should be paired properly when there are more than one pairs of available values. 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 16:31, 18 August 2023 (UTC)
- Please give an example. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 16:34, 18 August 2023 (UTC)
- One example would be Template:Q (disclaimer: related statements are created by myself). It has different pairs of domain and codomain under different constructions. 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 16:39, 18 August 2023 (UTC)
- Template:Q does not have a Template:P statement on it. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 16:50, 18 August 2023 (UTC)
- You're right. But any instance of that might. I'll give some examples in some minutes. 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 16:56, 18 August 2023 (UTC)
- I see a total of eight statements on six items where Template:P or Template:P qualifies Template:P. All of these qualifying statements should be main statements instead. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 16:59, 18 August 2023 (UTC)
- What do you think about this one I've just created? 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 17:04, 18 August 2023 (UTC)
- Besides we have the concept of tuples of sets, which is a function from an index set to the class of sets, and which is equivalent constructed as the functions whose codomain is the index set. 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 17:20, 18 August 2023 (UTC)
- I'm not very familiar with the math here, but as I understand it, Template:Q is a function that is multi-valued over part of its domain, and single-valued over the rest. So you could model that with five statements:
- I'm not sure if that modeling is better or worse than what you've just done; you should consult a math-oriented Wikiproject. What I'm pretty sure of is that, where there is only one value for Template:P, it should not be qualified with these properties, but instead they should be used as main statements. But if you want to re-add the properties to the allowed-qualifiers constraint to allow for cases like what you've just done, that's fine with me. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 17:25, 18 August 2023 (UTC)
- That modeling is mostly satisfying to me, but I'm concerned that in principle, there are some things with equivalent constructions with different pairs of domains and codomains, but both as functions or both as multivalued functions, etc.. I wish there is a qualifier that somehow effectively identify different constructions of the concepts. As for your last concern, I wonder if (appropriately) repeating the statements without qualifiers will solve the problem? 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 17:51, 18 August 2023 (UTC)
- What do you mean by "repeating the statements without qualifiers"? You could also, if there are not many items (like Template:Q) requiring these qualifiers, leave the constraint in place and add those items as constrain exceptions. Otherwise, I think the only way to allow the qualifiers when distinguishing different P31 values, but disallow them when there is only one P31 value, would be with a complex constraint. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 14:23, 21 August 2023 (UTC)
- What I meant was to state that the item is an instance of a function or a multivalued function without qualifiers, so that the item unconditionally becomes an instance of some Wikidata class, if statments with qualifiers prevents this from happening. I can't come up with a way to simplify the constraint you mentioned, maybe the constraint could be on P31 (at least one statement is without qualifier, if there is one)? After some thought after the discussion I have in mind a variant of your modeling like this:
- i.e. making Template:P a qualifier of Template:P. Some of P31 statments are still "paritally right", I guess they can be followed by a qualifier like in Template:Statement. 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 21:41, 21 August 2023 (UTC)
- What do you mean by "repeating the statements without qualifiers"? You could also, if there are not many items (like Template:Q) requiring these qualifiers, leave the constraint in place and add those items as constrain exceptions. Otherwise, I think the only way to allow the qualifiers when distinguishing different P31 values, but disallow them when there is only one P31 value, would be with a complex constraint. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 14:23, 21 August 2023 (UTC)
- That modeling is mostly satisfying to me, but I'm concerned that in principle, there are some things with equivalent constructions with different pairs of domains and codomains, but both as functions or both as multivalued functions, etc.. I wish there is a qualifier that somehow effectively identify different constructions of the concepts. As for your last concern, I wonder if (appropriately) repeating the statements without qualifiers will solve the problem? 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 17:51, 18 August 2023 (UTC)
- I see a total of eight statements on six items where Template:P or Template:P qualifies Template:P. All of these qualifying statements should be main statements instead. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 16:59, 18 August 2023 (UTC)
- You're right. But any instance of that might. I'll give some examples in some minutes. 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 16:56, 18 August 2023 (UTC)
- Template:Q does not have a Template:P statement on it. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 16:50, 18 August 2023 (UTC)
- One example would be Template:Q (disclaimer: related statements are created by myself). It has different pairs of domain and codomain under different constructions. 慈居 ([[User talk:慈居|int:Talkpagelinktext]]) 16:39, 18 August 2023 (UTC)
Broken templates edit
Does everyone loading this talk page encounter broken templates before the talk page discussions are even reached? Which leads to my actual question, are there not far too many constraints for this property? I don't think they are intended to be used for every possible misuse of "instance of", thousands more could conceivably be added. —Xezbeth ([[User talk:Xezbeth|int:Talkpagelinktext]]) 15:06, 31 August 2023 (UTC)
- To the first question, yes, I see broken templates here. To the second question, I think the constraints here are appropriate until alternatives exist with the same effect. I've proposed one such alternative (Phabricator ticket here, not sure how to get it prioritized) that could replace a lot of the "none-of" constraints here with much simpler constraints. Until then, if the number and size of constraints is causing software issues, I think that's a developer problem. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 16:08, 31 August 2023 (UTC)
Autofix for Q208361 edit
Why KrBot does such autoreplaces? I can't see relevant "autofix" at this page... Infovarius ([[User talk:Infovarius|int:Talkpagelinktext]]) 09:38, 1 September 2023 (UTC)
- It was here, I have just removed it: [3] Brandkoeler ([[User talk:Brandkoeler|int:Talkpagelinktext]]) 10:39, 1 September 2023 (UTC)
Usage of P276 as qualifier edit
Why is P276 not allowed as qualifier with that property? Example use case imo: Q19766189 Best regards, Arjoopy ([[User talk:Arjoopy|int:Talkpagelinktext]]) 19:09, 26 September 2023 (UTC)
- A property can't be a statement. Use Template:Q or in the worst Case Template:Q. Newt713 ([[User talk:Newt713|int:Talkpagelinktext]]) 13:47, 23 October 2023 (UTC)
- I don't think you understood. Arjoopy isn't trying to make P276 the value of a P31 statement; they want to use it as a qualifier. In their example, it should be a main statement. Swpb ([[User talk:Swpb|int:Talkpagelinktext]]) 18:28, 23 October 2023 (UTC)
none-of constraint Q157031 Template:Q edit
Why is there a none-of constraint for Q157031 Template:Q. I do understand that the item should not be type of specific legal types like Stichting Template:Q or StiftungTemplate:Q, but "foundation" Template:Q is very broad and really a type of nonprofit organization not a specific legal form with a legal jurisdiction. That's why I would propose to replace "foundation" Template:Q with some specific national legal types. --Newt713 ([[User talk:Newt713|int:Talkpagelinktext]]) 13:39, 23 October 2023 (UTC)
Use cases with grouping edit
Could someone help me finding statistics or create a query to find out entity types that this property is most popular to use with?
For example, is it mostly for the real objects or theoretical concepts, or humans?
It would greatly help to adjust the descriptions of this property in various languages by mentioning the most popular cases in the first place and thus making the description more precise. Nikolay Komarov ([[User talk:Nikolay Komarov|int:Talkpagelinktext]]) 12:53, 6 February 2024 (UTC)
- P31 is used on 111180863 items (99%?), so we can safely consider it everywhere and just look at overall statistics. --Infovarius ([[User talk:Infovarius|int:Talkpagelinktext]]) 10:51, 9 February 2024 (UTC)