query-2dfc63c6a1cb034d4904cf78083e998f

rq turtle/ttl

Geschlecht der namensgebenden Personen für Strassen in Hannover

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
SELECT DISTINCT ?GeschlechtLabel (COUNT(?Objekt) AS ?count) 
WHERE
{
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
  FILTER NOT EXISTS { ?Objekt wdt:P5816 wd:Q63065035. }
  VALUES ?instance_of {
    wd:Q34442      # Straße
    wd:Q79007      # Innerortstraße
    wd:Q21000333   # Einkaufsstraße 
    wd:Q174782     # Platz
    wd:Q537127     # Straßenbrücke
    wd:Q3397519    # Spannbetonbrücke 
    wd:Q1055465    # Balkenbrücke   
    wd:Q57577442   # Feldweg  
    wd:Q207934     # Allee
    } 
  ?Objekt wdt:P31 ?instance_of;
          wdt:P131* wd:Q1715 ;
          wdt:P131 ?Stadtbezirk ;
          wdt:P138 ?Name . 
  ?Name wdt:P31 wd:Q5 ;
        wdt:P21 ?Geschlecht .
  }
GROUP BY ?GeschlechtLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?Geschlecht") v4("?Name") v1("?Objekt"):::projected v3("?Stadtbezirk") v6("?count") v2("?instance_of") c6(["#91;AUTO_LANGUAGE#93;,de"]):::literal c4(["bd:serviceParam"]):::iri c9(["wd:Q1715"]):::iri c11(["wd:Q5"]):::iri c2(["wd:Q63065035"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P5816"--> e0c2 e0v1("?Objekt"):::projected e0c2(["wd:Q63065035"]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> c2 v1 --"wdt:P5816"--> c2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind1[/VALUES ?instance_of/] bind1-->v2 bind10(["wd:Q34442"]) bind10 --> bind1 bind11(["wd:Q79007"]) bind11 --> bind1 bind12(["wd:Q21000333"]) bind12 --> bind1 bind13(["wd:Q174782"]) bind13 --> bind1 bind14(["wd:Q537127"]) bind14 --> bind1 bind15(["wd:Q3397519"]) bind15 --> bind1 bind16(["wd:Q1055465"]) bind16 --> bind1 bind17(["wd:Q57577442"]) bind17 --> bind1 bind18(["wd:Q207934"]) bind18 --> bind1 v1 --"wdt:P31"--> v2 v1 --"wdt:P131"--> c9 v1 --"wdt:P131"--> v3 v1 --"wdt:P138"--> v4 v4 --"wdt:P31"--> c11 v4 --"wdt:P21"--> v5 bind3[/"count(?Objekt)"/] v1 --o bind3 bind3 --as--o v6