Property talk:P2354

From Wikidata
Jump to navigation Jump to search

Documentation

DescriptionWikimedia list related to this subject
RepresentsWikimedia list article (Q13406463)
Data typeItem
Allowed valuesinstance of (P31): Wikimedia list article (Q13406463) (note: this should be moved to the property statements)
ExamplePresident of the French Republic (Q191954)list of presidents of France (Q29580)
Basshunter (Q383541)list of awards and nominations received by Basshunter (Q63384701)
list of songs recorded by Basshunter (Q11761784)
list of Basshunter live performances (Q6352124)
See alsolist of works (P1455), list of characters (P1881), list of episodes (P1811), list of monuments (P1456), list related to category (P1753)
Lists
Proposal discussionProposal discussion
Current uses
Total39,469
Main statement39,435>99.9% of uses
Qualifier25<0.1% of uses
Reference9<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Value type “Wikimedia list article (Q13406463): This property should use items as value that contain property “instance of (P31)”. On these, the value for instance of (P31) should be an item that uses subclass of (P279) with value Wikimedia list article (Q13406463) (or a subclass thereof). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2354#Value type Q13406463, SPARQL
Property “is a list of (P360)” declared by target items of “has list (P2354): If [item A] has this property with value [item B], [item B] is required to have property “is a list of (P360)”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2354#Target required claim P360, SPARQL, SPARQL (by value)
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2354#Scope, SPARQL
Allowed entity types are Wikibase item (Q29934200), Wikibase property (Q29934218): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P2354#Entity types
Lists not values of P2354 (1st sample)
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)
Lists not values of P2354 (2nd 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)
Lists about Andorra not values of P2354
(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
Lists about Argentina 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
Lists about Luxembourg 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
Lists about Monaco 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

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:

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)[reply]

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)[reply]
@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)[reply]
In theory I guess that's true. In any case, I will remove "mandatory=true". --- Jura 09:19, 26 November 2015 (UTC)[reply]
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)[reply]
@Jura1: No. The purpose is to allow Q29 to include some lists related to Spain. Jheald (talk) 11:23, 26 November 2015 (UTC)[reply]

Due to contribution the User:Xaris333 request me to explain the statement property constraint (P2302)inverse constraint (Q21510855)property (P2306)is a list of (P360):

by Wikidata property example (P1855) would mean this:

and that would mean:

conversely, it also makes no sense:

it is correct

Thus, a inverse constraint is not given and therefore should not be inserted. --Labant (talk) 02:09, 1 January 2019 (UTC)[reply]

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)[reply]