Property talk:P194
Jump to navigation
Jump to search
Documentation
legislative body
legislative body governing this entity; political institution with elected representatives, such as a parliament/legislature or council
legislative body governing this entity; political institution with elected representatives, such as a parliament/legislature or council
[create Create a translatable help page (preferably in English) for this property to be included here]
Type “political territorial entity (Q1048835), regional organization (Q4120211), fictional country (Q1145276), administrative territorial entity (Q56061), government (Q7188)”: item must contain property “instance of (P31)” with classes “political territorial entity (Q1048835), regional organization (Q4120211), fictional country (Q1145276), administrative territorial entity (Q56061), government (Q7188)” or their subclasses (defined using subclass of (P279)). (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/P194#Type Q1048835, Q4120211, Q1145276, Q56061, Q7188, SPARQL
Value type “legislature (Q11204), fictional government (Q15238535), legislative house (Q10553309), local government (Q6501447), government commission (Q17456916), group of assemblies (Q117006686)”: 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 legislature (Q11204), fictional government (Q15238535), legislative house (Q10553309), local government (Q6501447), government commission (Q17456916), group of assemblies (Q117006686) (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/P194#Value type Q11204, Q15238535, Q10553309, Q6501447, Q17456916, Q117006686, SPARQL
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Germany (Q183), European Union (Q458), Society of Jesus (Q36380)List of violations of this constraint: Database reports/Constraint violations/P194#Single value, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: States General (Q1371388), Folketing (Q209151), Senate of the Czech Republic (Q389423), General Assembly of Nova Scotia (Q3246027), Parliament of Finland (Q643412)List of violations of this constraint: Database reports/Constraint violations/P194#Unique value, SPARQL (every item), 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/P194#Scope, SPARQL
Allowed entity types are Wikibase item (Q29934200): 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/P194#Entity types
Countries generally have this property
Create item for the legislature, add the property or use does not have part (P3113)=legislature (Q11204) on the item. (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/P194#Countries generally have this property
Create item for the legislature, add the property or use does not have part (P3113)=legislature (Q11204) on the item. (Help)
Violations query:
SELECT DISTINCT ?item ?itemLabel { ?item wdt:P31 wd:Q6256 FILTER NOT EXISTS { ?item p:P194 [] } FILTER NOT EXISTS { ?item wdt:P576 [] } FILTER NOT EXISTS { ?item wdt:P3113 wd:Q11204 } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } LIMIT 100
List of this constraint violations: Database reports/Complex constraint violations/P194#Countries generally have this property
First-level administrative divisions generally have this property
Create item for the legislature or use does not have part (P3113)=legislature (Q11204) on the item or the subdivision class. Sample: Q1208802#P3113. (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/P194#First-level administrative divisions generally have this property
Create item for the legislature or use does not have part (P3113)=legislature (Q11204) on the item or the subdivision class. Sample: Q1208802#P3113. (Help)
Violations query:
SELECT DISTINCT ?item # ?itemLabel ?countryLabel ?population { ?item wdt:P31/wdt:P279* wd:Q10864048 ; wdt:P17 ?country ; wdt:P1082 ?population . FILTER NOT EXISTS { ?item p:P194 [] } FILTER NOT EXISTS { ?item wdt:P576 [] } FILTER NOT EXISTS { ?country wdt:P576 [] } FILTER NOT EXISTS { ?item wdt:P3113 wd:Q11204 } FILTER NOT EXISTS { ?item wdt:P31 / wdt:P3113 wd:Q11204 } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?population) LIMIT 200
List of this constraint violations: Database reports/Complex constraint violations/P194#First-level administrative divisions generally have this property
This property is being used by:
Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.) |
Queries
[edit]Most populous first-level subdivisions without legislature
[edit]# Most populous first-level country subdivisions without legislatures
# Based on "Largest first-level country subdivisions" at https://twitter.com/PoulpyWP/status/994669235296133129
SELECT DISTINCT ?item ?itemLabel ?countryLabel ?area ?population
WHERE
{
?item wdt:P31/wdt:P279* wd:Q10864048 ; # first-level subdivision
wdt:P17 ?country ; # country
p:P2046/psv:P2046 [ # area
wikibase:quantityAmount ?baseArea;
wikibase:quantityUnit [
p:P2370/psv:P2370 [
wikibase:quantityAmount ?unitArea;
wikibase:quantityUnit wd:Q25343
]
]
] ;
wdt:P1082 ?population . # population
BIND(ROUND(?baseArea * ?unitArea / 1000000) AS ?area) .
FILTER NOT EXISTS { ?item wdt:P194 [] } # without legislature
FILTER NOT EXISTS { ?item wdt:P576 [] } # filter dissolved subdivisions
FILTER NOT EXISTS { ?country wdt:P576 [] } # filter dissolved countries
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?population)
LIMIT 500
Discussion
[edit]single value
[edit]many countries have multiple legislative bodies, so the single value constraint should be removed. --Akkakk 00:23, 8 July 2013 (UTC)
- Perhaps, perhaps not. For example the United States Congress (Q11268) is bicameral legislature (Q189445) with a United States House of Representatives (Q11701) and a United States Senate (Q66096). Unless there are a significant number of fully separated legislative bodies the single value constraint should remain. Allen4names (talk) 00:28, 9 July 2013 (UTC)
- I agree with User:Allen4names. For bicameral legislatures this property should link to "Foobar Legislature" or "Foobar General Assembly" or whathaveyou, which in turn should have the property "has part => Senate" and "has part => House". I know that there are a couple odd cases where there are two overlapping legislatures, but we can look at those exceptions one-by-one. --Arctic.gnome (talk) 05:32, 26 November 2013 (UTC)
- In almost all cases there will be a collective term for all bodies in the legislature. The more likely situation where there would be more than one value is when the government changes. For example "Foobar military advisory counsel (1950-1980)" and "People's Parliament of Foobar (1980-present)". --Arctic.gnome (talk) 00:17, 15 February 2016 (UTC)
Categories:
- All Properties
- Properties with wikibase-item-datatype
- Properties used on 10000 items
- Properties with constraints on type
- Properties with single value constraints
- Properties with unique value constraints
- Properties with scope constraints
- Properties with entity type constraints
- Properties with complex constraints