People by groups
Lidé podle skupin
Explore people by different groups they belong to.
Objevujte lidi dle různých skupin, do kterých patří.
Group of people
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 . } } }
Person
PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> ASK { ?node wdt:P31 wd:Q5 . }
Child group
Parent group
Personality in groups
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") }
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 . } } }
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/")) }
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") }
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") }
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) }
group of people
number of people
number of people in the group
belongs to
a person belongs to a group of people