Property talk:P2354
Documentation
Wikimedia list related to this subject
List of violations of this constraint: Database reports/Constraint violations/P2354#Value type Q13406463, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2354#Target required claim P360, SPARQL, SPARQL (by value)
List of violations of this constraint: Database reports/Constraint violations/P2354#Scope, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2354#Entity types
sample of 500 lists (Help)
Violations query:
SELECT ?item WHERE { SERVICE bd:sample { ?item wdt:P31 wd:Q13406463. bd:serviceParam bd:sample.limit 4000 } MINUS { _:b61 wdt:P2354 ?item. } MINUS { _:b62 wdt:P1753 ?item. } MINUS { ?item wdt:P1754 _:b63. } MINUS { _:b64 wdt:P1811 ?item. } MINUS { _:b65 wdt:P358 ?item. } MINUS { _:b66 wdt:P1283 ?item. } MINUS { _:b82 wdt:P1881 ?item. } MINUS { _:b83 wdt:P1455 ?item. } MINUS { _:b84 wdt:P1456 ?item. } MINUS { _:b85 wdt:P5125 ?item. } } LIMIT 500
List of this constraint violations: Database reports/Complex constraint violations/P2354#Lists not values of P2354 (1st sample)
2nd sample of 500 lists (Help)
Violations query:
SELECT ?item WHERE { SERVICE bd:sample { ?item wdt:P31 wd:Q13406463. bd:serviceParam bd:sample.limit 4000 } FILTER NOT EXISTS { [ ] wdt:P2354 ?item } FILTER NOT EXISTS { [ ] wdt:P1753 ?item } FILTER NOT EXISTS { ?item wdt:P1754 [ ] } FILTER NOT EXISTS { [ ] wdt:P1811 ?item } FILTER NOT EXISTS { [ ] wdt:P358 ?item } FILTER NOT EXISTS { [ ] wdt:P1283 ?item } FILTER NOT EXISTS { [ ] wdt:P1881 ?item } FILTER NOT EXISTS { [ ] wdt:P1455 ?item } FILTER NOT EXISTS { [ ] wdt:P1456 ?item } FILTER NOT EXISTS { [ ] wdt:P5125 ?item } } LIMIT 500
List of this constraint violations: Database reports/Complex constraint violations/P2354#Lists not values of P2354 (2nd sample)
(Help)
Violations query:
SELECT ?item WHERE { ?item wdt:P31 wd:Q13406463; wdt:P17 wd:Q228 . MINUS { _:b61 wdt:P2354 ?item. } MINUS { _:b62 wdt:P1753 ?item. } MINUS { ?item wdt:P1754 _:b63. } MINUS { _:b64 wdt:P1811 ?item. } MINUS { _:b65 wdt:P358 ?item. } MINUS { _:b66 wdt:P1283 ?item. } MINUS { _:b82 wdt:P1881 ?item. } MINUS { _:b83 wdt:P1455 ?item. } MINUS { _:b84 wdt:P1456 ?item. } MINUS { _:b85 wdt:P5125 ?item. } } LIMIT 100
List of this constraint violations: Database reports/Complex constraint violations/P2354#Lists about Andorra not values of P2354
(Help)
Violations query:
SELECT ?item WHERE { ?item wdt:P31 wd:Q13406463; wdt:P17 wd:Q414 . MINUS { _:b61 wdt:P2354 ?item. } MINUS { _:b62 wdt:P1753 ?item. } MINUS { ?item wdt:P1754 _:b63. } MINUS { _:b64 wdt:P1811 ?item. } MINUS { _:b65 wdt:P358 ?item. } MINUS { _:b66 wdt:P1283 ?item. } MINUS { _:b82 wdt:P1881 ?item. } MINUS { _:b83 wdt:P1455 ?item. } MINUS { _:b84 wdt:P1456 ?item. } MINUS { _:b85 wdt:P5125 ?item. } } LIMIT 100
List of this constraint violations: Database reports/Complex constraint violations/P2354#Lists about Argentina not values of P2354
(Help)
Violations query:
SELECT ?item WHERE { ?item wdt:P31 wd:Q13406463; wdt:P17 wd:Q32 . MINUS { _:b61 wdt:P2354 ?item. } MINUS { _:b62 wdt:P1753 ?item. } MINUS { ?item wdt:P1754 _:b63. } MINUS { _:b64 wdt:P1811 ?item. } MINUS { _:b65 wdt:P358 ?item. } MINUS { _:b66 wdt:P1283 ?item. } MINUS { _:b82 wdt:P1881 ?item. } MINUS { _:b83 wdt:P1455 ?item. } MINUS { _:b84 wdt:P1456 ?item. } MINUS { _:b85 wdt:P5125 ?item. } } LIMIT 100
List of this constraint violations: Database reports/Complex constraint violations/P2354#Lists about Luxembourg not values of P2354
(Help)
Violations query:
SELECT ?item WHERE { ?item wdt:P31 wd:Q13406463; wdt:P17 wd:Q235 . MINUS { _:b61 wdt:P2354 ?item. } MINUS { _:b62 wdt:P1753 ?item. } MINUS { ?item wdt:P1754 _:b63. } MINUS { _:b64 wdt:P1811 ?item. } MINUS { _:b65 wdt:P358 ?item. } MINUS { _:b66 wdt:P1283 ?item. } MINUS { _:b82 wdt:P1881 ?item. } MINUS { _:b83 wdt:P1455 ?item. } MINUS { _:b84 wdt:P1456 ?item. } MINUS { _:b85 wdt:P5125 ?item. } } LIMIT 1000
List of this constraint violations: Database reports/Complex constraint violations/P2354#Lists about Monaco not values of P2354
This property is being used by:
Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.) |
Constraints
[edit]Hi @Andreasmperu: many thanks for creating this. The constraints may need a bit more thinking about though.
If we take the original use-case as an example,
- ⟨ Spain (Q29) ⟩ has list (P2354) [[Special:Search/Property:has list (P2354)|Search]] ⟨ list of cities of Spain (Q189098) ⟩
of (P642) [[Special:Search/Property:of (P642)|Search]] ⟨ municipality (Q15284) ⟩
then in general:
- the target may not necessarily be single, since "Spain" may also have other notable lists related to it, eg a list of autonomous community of Spain (Q10742)
- the target may not necessarily be unique, since it is possible that it might also appear as a target of has list (P2354) on the item municipality (Q15284) (with a suitable qualifier) or municipality of Spain (Q2074737)
- the inverse is not conventional, since we do not expect there to be an item that is a "list of Spains" -- the value of is a list of (P360) on list of cities of Spain (Q189098) is municipality of Spain (Q2074737), not Spain (Q29). We also do not necessarily expect full inverse matching -- we do not expect on human (Q5) a listing of all lists relating to humans, nor on Spain (Q29) a listing of all lists relating to Spain -- only those that might be considered notable enough to include in its infobox.
These constraints should therefore all probably be dropped, unless a way can be found to suitably qualify them. Jheald (talk) 23:27, 25 November 2015 (UTC)
- The initial sample might not be ideal. Q2074737 could be a better sample.
- As for the constraints, let's just avoid making them mandatory.
- Given the various ways is a list of (P360) is being used, maybe named after (P138) could work better. --- Jura 08:48, 26 November 2015 (UTC)
- @Jura1: Maybe. But another thing: why have you made P31 mandatory? I would have thought, if anything, lists would be more likely to be created for classes. (Except for cases, like Spain, where we're using this for lists related to a thing). Jheald (talk) 09:12, 26 November 2015 (UTC)
- In theory I guess that's true. In any case, I will remove "mandatory=true". --- Jura 09:19, 26 November 2015 (UTC)
- I added both. Somehow I think this property might have been defined too large. Should Q29 include all lists related to Spain? --- Jura 09:29, 26 November 2015 (UTC)
- @Jura1: No. The purpose is to allow Q29 to include some lists related to Spain. Jheald (talk) 11:23, 26 November 2015 (UTC)
- @Jura1: Maybe. But another thing: why have you made P31 mandatory? I would have thought, if anything, lists would be more likely to be created for classes. (Except for cases, like Spain, where we're using this for lists related to a thing). Jheald (talk) 09:12, 26 November 2015 (UTC)
Due to contribution the User:Xaris333 request me to explain the statement property constraint (P2302)inverse constraint (Q21510855)
by Wikidata property example (P1855) would mean this:
- President of the French Republic (Q191954)has list (P2354)list of presidents of France (Q29580)
- list of presidents of France (Q29580)is a list of (P360)President of the French Republic (Q191954)
and that would mean:
conversely, it also makes no sense:
- Emmanuel Macron (Q3052772)instance of (P31)human (Q5)
- President of the French Republic (Q191954)has list (P2354)List of humans
- list of presidents of France (Q29580)is a list of (P360)human (Q5)
it is correct
- Emmanuel Macron (Q3052772)instance of (P31)human (Q5)
- Emmanuel Macron (Q3052772)position held (P39)President of the French Republic (Q191954)
- President of the French Republic (Q191954)has list (P2354)list of presidents of France (Q29580)
- list of presidents of France (Q29580)is a list of (P360)human (Q5)
position held (P39)President of the French Republic (Q191954)
Thus, a inverse constraint is not given and therefore should not be inserted. --Labant (talk) 02:09, 1 January 2019 (UTC)
Restrictive constraint?
[edit]Right now, values must be "instance of" "wikimedia list article". This excludes subclasses of the latter, so an entry with "instance of = Wikimedia information list (Q80096233)" triggers an exclamation mark. IMO, subclasses should also be included. Retired electrician (talk) 23:00, 7 February 2024 (UTC)