People by groups
type: Configuration
title: Lidé podle skupin @cs
description: Explore people by different groups they belong to.
description: Objevujte lidi dle různých skupin, do kterých patří. @cs
has visual style sheet: style-sheet
starting node: Category:19th century in the Austrian Empire
starting node: Category:Women scientists by field
starting node: Category:European Commissioners
starting node: Category:Academy Award winners
starting node: Q23434
starting node: Q36233
starting node: Q78492
has view set: Group of people
has view set: Person
has view set: work
has view set: award
has view set: discovery

Group of people
type: ViewSet
has view: Child group
has view: Parent group
has view: Group of people
has default view: Child group
has condition: PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dct: <http://purl.org/dc/terms/> ASK { ?node skos:prefLabel ?label . FILTER(LANG(?label) = "en") FILTER EXISTS { ?person a dbo:Person . { ?person dct:subject ?node . } UNION { ?person dct:subject/skos:broader ?node . } UNION { ?person dct:subject/skos:broader/skos:broader ?node . } } }
has dataset: DBPedia SPARQL endpoint

Person
type: ViewSet
has view: Personality in groups
has view: family
has view: author
has view: awarded-person
has view: discoverer
has view: filmmaker
has default view: Personality in groups
has condition: PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> ASK { ?node wdt:P31 wd:Q5 . }
has dataset: wikidata

Child group
type: View
has expansion: Broader groups
has preview: Group of people preview
has detail: Group of people detail

Parent group
type: View
has expansion: Narrower groups
has preview: Group of people preview
has detail: Group of people detail

Group of people
type: View
has expansion: People in the group
has preview: Group of people preview
has detail: Group of people detail

Personality in groups
type: View
has expansion: Groups of the person
has preview: person
has detail: person

Broader groups
type: ExpansionQuery
has dataset: DBPedia SPARQL endpoint
query: PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX av: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/people-by-groups/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?broader a av:group-of-people ; skos:prefLabel ?broaderLabel ; browser:class "groupOfPeople" . ?node skos:broader ?broader . skos:broader browser:class "broader" . } WHERE { ?node skos:broader ?broader . ?broader skos:prefLabel ?broaderLabel . FILTER(LANG(?broaderLabel) = "en") }

Narrower groups
type: ExpansionQuery
has dataset: DBPedia SPARQL endpoint
query: PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX av: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/people-by-groups/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?narrower a av:group-of-people ; skos:prefLabel ?narrowerLabel ; browser:class "groupOfPeople" . ?narrower skos:broader ?node . skos:broader browser:class "broader" . } WHERE { ?narrower skos:broader ?node ; skos:prefLabel ?narrowerLabel . FILTER(LANG(?narrowerLabel) = "en") FILTER EXISTS { ?person a dbo:Person ; owl:sameAs ?personwd . FILTER(STRSTARTS(STR(?personwd), "http://www.wikidata.org/entity/")) { ?person dct:subject ?narrower . } UNION { ?person dct:subject/skos:broader ?narrower . } UNION { ?person dct:subject/skos:broader/skos:broader ?narrower . } } }

People in the group
type: ExpansionQuery
has dataset: DBPedia SPARQL endpoint
query: PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX av: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/people-by-groups/> PREFIX wdav: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/wikidata/personalities/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?personwd a wdav:personality ; skos:prefLabel ?name ; av:belongsTo ?node ; browser:class "personality" . av:belongsTo browser:class "belongsTo" . } WHERE { ?person a dbo:Person ; owl:sameAs ?personwd ; dct:subject ?node ; foaf:name ?name . FILTER(STRSTARTS(STR(?personwd), "http://www.wikidata.org/entity/")) }

Groups of the person
type: ExpansionQuery
has dataset: DBPedia SPARQL endpoint
query: PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX av: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/people-by-groups/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?group a av:group-of-people ; skos:prefLabel ?label ; browser:class "groupOfPeople" . ?node av:belongsTo ?group . av:belongsTo browser:class "belongsTo" . } WHERE { ?person owl:sameAs ?node ; dct:subject ?group . ?group skos:prefLabel ?label . FILTER(LANG(?label ) = "en") }

Group of people preview
type: PreviewQuery
has dataset: DBPedia SPARQL endpoint
query: PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX av: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/people-by-groups/> PREFIX browser: <https://linked.opendata.cz/ontology/knowledge-graph-browser/> CONSTRUCT { ?node a av:group-of-people ; skos:prefLabel ?label ; browser:class "groupOfPeople" . } WHERE { ?node skos:prefLabel ?label . FILTER(LANG(?label) = "en") }

Group of people detail
type: DetailQuery
has dataset: DBPedia SPARQL endpoint
query: PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX av: <https://linked.opendata.cz/resource/vocabulary/knowledge-graph-browser/people-by-groups/> CONSTRUCT { ?node skos:prefLabel ?label ; av:number-of-people ?numberOfPeople . } WHERE { ?node skos:prefLabel ?label . FILTER(LANG(?label) = "en") OPTIONAL { SELECT ?node (COUNT(*) AS ?numberOfPeople1) WHERE { ?person a dbo:Person ; dct:subject ?node . } GROUP BY ?node } BIND(COALESCE(?numberOfPeople1, 0) AS ?numberOfPeople) }

DBPedia SPARQL endpoint
type: Dataset
sparql endpoint: sparql

group of people
type: Class
comment: group of people

number of people
type: DatatypeProperty
comment: number of people in the group @cs
domain: group of people
range: Literal

belongs to
type: ObjectProperty
comment: a person belongs to a group of people @cs
domain: personality
range: group of people

groupOfPeople
type: VisualStyle
shape: barrel
width: 90px
height: 40px
background-color: #bbdcbc
border-color: #59775a
border-width: 3px
padding: 4px
text-halign: center
text-valign: center
text-wrap: wrap
text-max-width: 80px
color: black
label: data(label)
font-size: 9px
has selector: .groupOfPeople

broader
type: VisualStyle
line-color: #207866
width: 2
target-arrow-shape: triangle
target-arrow-fill: hollow
curve-style: straight
line-style: solid
label: data(label)
font-size: 8px
curve-style: bezier
control-point-step-size: 40
has selector: .broader

belongsTo
type: VisualStyle
line-color: #207866
width: 2
target-arrow-shape: triangle
target-arrow-fill: hollow
curve-style: straight
line-style: solid
label: data(label)
font-size: 8px
curve-style: bezier
control-point-step-size: 40
has selector: .belongsTo