UK Parliament
type: Configuration
title: Parlament Spojeného království @cs
description: Prozkoumejte poslance parlamentu Spojeného království. @cs
description: Explore members of the UK Parliament.
has visual style sheet: style-sheet
starting node: Q180589
starting node: Q332987
has view set: Government position
has view set: Member of UK Parliament

Government position
type: ViewSet
has view: Government position occupied by members of UK parliament
has default view: Government position occupied by members of UK parliament
has condition: PREFIX ukp: <https://id.parliament.uk/schema/> ASK { ?node a ukp:GovernmentPosition . }
has dataset: SPARQL endpoint of UK parliament

Member of UK Parliament
type: ViewSet
has view: Member of UK parliament in government positions
has default view: Member of UK parliament in government positions
has condition: PREFIX ukp: <https://id.parliament.uk/schema/> ASK { ?person a ukp:Member . ?node ukp:wikidataResourceHasEquivalentWikidataThing ?person . }
has dataset: SPARQL endpoint of UK parliament

Government position occupied by members of UK parliament
type: View
has expansion: Members of UK parliament in government position
has preview: Basic preview of government position
has detail: Basic detail of government position

Member of UK parliament in government positions
type: View
has expansion: Government positions of member of UK parliament
has preview: Basic preview of member of UK parliament
has detail: Basic detail of member of UK parliament

Members of UK parliament in government position
type: ExpansionQuery
has dataset: SPARQL endpoint of UK parliament
query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX ukp: <https://id.parliament.uk/schema/> PREFIX ukpb: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/ukparliament/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?personwd a ukp:Member ; rdfs:label ?personName ; ukpb:hasPosition ?node ; browser:class "ukparliamentmember" . ukpb:hasPosition browser:class "hasukgovernmentposition" . } WHERE { ?incumbency a ukp:GovernmentIncumbency ; ukp:governmentIncumbencyHasGovernmentPosition ?node ; ukp:governmentIncumbencyHasGovernmentPerson ?person . ?person a ukp:Member ; ukp:personGivenName ?givenName ; ukp:personFamilyName ?familyName . BIND(CONCAT(STR(?givenName), " ", STR(?familyName)) AS ?personName) ?personwd ukp:wikidataResourceHasEquivalentWikidataThing ?person . }

Government positions of member of UK parliament
type: ExpansionQuery
has dataset: SPARQL endpoint of UK parliament
query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX ukp: <https://id.parliament.uk/schema/> PREFIX ukpb: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/ukparliament/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?position a ukp:GovernmentPosition ; rdfs:label ?name ; browser:class "ukgovernmentposition" . ?node ukpb:hasPosition ?position . ukpb:hasPosition browser:class "hasukgovernmentposition" . } WHERE { ?node ukp:wikidataResourceHasEquivalentWikidataThing ?person . ?incumbency a ukp:GovernmentIncumbency ; ukp:governmentIncumbencyHasGovernmentPosition ?position ; ukp:governmentIncumbencyHasGovernmentPerson ?person . ?position a ukp:GovernmentPosition ; ukp:name ?name . }

Basic preview of government position
type: PreviewQuery
has dataset: SPARQL endpoint of UK parliament
query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX ukp: <https://id.parliament.uk/schema/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?node a ukp:GovernmentPosition ; rdfs:label ?label ; browser:class "ukgovernmentposition" . } WHERE { ?node rdfs:label ?label . }

Basic preview of member of UK parliament
type: PreviewQuery
has dataset: SPARQL endpoint of UK parliament
query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX ukp: <https://id.parliament.uk/schema/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?node a ukp:Member ; rdfs:label ?label ; browser:class "ukparliamentmember" . } WHERE { ?person rdfs:seeAlso ?node ; ukp:personGivenName ?givenName ; ukp:personFamilyName ?familyName . OPTIONAL {?person ukp:personOtherNames ?otherNames.} BIND(CONCAT(STR(?givenName), " ", COALESCE(CONCAT(STR(?otherNames), " "), ""), STR(?familyName)) AS ?label) }

Basic detail of government position
type: DetailQuery
has dataset: SPARQL endpoint of UK parliament
query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX ukp: <https://id.parliament.uk/schema/> PREFIX ukpb: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/ukparliament/> CONSTRUCT { ?node a ukp:GovernmentPosition ; ukp:name ?label ; ukpb:positionHasGroupName ?groupName . } WHERE { ?node rdfs:label ?label ; ukp:positionHasGroup ?group . ?group ukp:name ?groupName . }

Basic detail of member of UK parliament
type: DetailQuery
has dataset: SPARQL endpoint of UK parliament
query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX ukp: <https://id.parliament.uk/schema/> PREFIX ukpb: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/ukparliament/> CONSTRUCT { ?node a ukp:Member ; ukp:personGivenName ?givenName ; ukp:personFamilyName ?familyName ; ukp:personOtherNames ?otherNames ; ukp:personDateOfBirth ?birthDate ; ukpb:personPartiesNames ?partyNames . } WHERE { ?person rdfs:seeAlso ?node ; ukp:personGivenName ?givenName ; ukp:personFamilyName ?familyName . OPTIONAL {?person ukp:personOtherNames ?otherNames.} OPTIONAL {?person ukp:personDateOfBirth ?birthDate .} OPTIONAL { SELECT ?person (GROUP_CONCAT(DISTINCT ?partyName;SEPARATOR=",") AS ?partyNames) WHERE { ?person ukp:partyMemberHasPartyMembership/ukp:partyMembershipHasParty/rdfs:label ?partyName. } GROUP BY ?person } }

SPARQL endpoint of UK parliament
type: Dataset
sparql endpoint: sparql
accept: text/turtle

has position
type: ObjectProperty
domain: Member
range: Position

group name
type: DatatypeProperty
domain: Group

parties names
type: DatatypeProperty
domain: Member

governmentposition
type: VisualStyle
border-width: 2px
shape: octagon
label: data(label)
width: 20px
height: 20px
padding: 2px
text-halign: center
text-valign: bottom
text-margin-y: 2px
text-wrap: wrap
text-max-width: 100px
background-color: #a4caf0
border-color: #407bb7
color: #407bb7
has selector: .ukgovernmentposition

member
type: VisualStyle
background-color: #e8c395
border-color: #c89351
border-width: 2px
color: #c89351
shape: round-rectangle
label: data(label)
width: 20px
height: 20px
padding: 2px
text-halign: center
text-valign: bottom
text-margin-y: 2px
has selector: .ukparliamentmember

hasposition
type: VisualStyle
line-color: #8E97A0
line-style: solid
label: data(label)
font-size: 6px
has selector: .hasukgovernmentposition

node
type: VisualStyle
has selector: node

edge
type: VisualStyle
has selector: edge