Property talk:P194

From Wikidata
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
Descriptiona (political) institution with elected representatives, i.e. parliaments/legislatures, (city) councils...
Representslegislature (Q11204)
Data typeItem
Domain
According to this template: political entities (anything from cities to countries to supranational organisations) - political territorial entity (Q1048835)
According to statements in the property:
political territorial entity (Q1048835), regional organization (Q4120211), fictional country (Q1145276), administrative territorial entity (Q56061) or government (Q7188)
When possible, data should only be stored as statements
Allowed valueslegislature (Q11204) (note: this should be moved to the property statements)
ExampleUnited Kingdom (Q145)Parliament of the United Kingdom (Q11010)
New York City (Q60)New York City Council (Q645195)
Israel (Q801)Knesset (Q133396)
Tracking: sameno label (Q42533376)
Tracking: usageCategory:Pages using Wikidata property P194 (Q23909125)
See alsohighest judicial authority (P209), executive body (P208), authority (P797)
Lists
Proposal discussionProposal discussion
Current uses
Total38,095
Main statement4,96113% of uses
Qualifier33,11086.9% of uses
Reference24<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
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: 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: 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

Try it!

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

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