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) and fictional country (Q1145276)
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 uses2,336
[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): element must contain property “instance of (P31)” with classes “political territorial entity (Q1048835), regional organization (Q4120211), fictional country (Q1145276)” or their subclasses (defined using subclass of (P279)). (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P194#Type Q1048835, Q4120211, Q1145276, SPARQL, SPARQL (new)
Value type “legislature (Q11204), fictional government (Q15238535), legislative house (Q10553309): 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) (or a subclass thereof). (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P194#Value type Q11204, Q15238535, Q10553309, SPARQL, SPARQL (new)
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Known exceptions: Germany (Q183), European Union (Q458)
List of this constraint violations: Database reports/Constraint violations/P194#Single value, SPARQL, SPARQL (new)
Distinct values: this property likely contains a value that is different from all other items. (Help)
Exceptions are possible as rare values may exist. Known exceptions: States General (Q1371388), Folketing (Q209151)
List of this constraint violations: Database reports/Constraint violations/P194#Unique value, SPARQL (every item), SPARQL (by value), SPARQL (new)
Pictogram voting comment.svg 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
Pictogram voting comment.svg 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

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)

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)