query-88d6f3fb9cb4d944026babbefa70b41b

rq turtle/ttl

Jcornelius TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?MEP ?MEPLabel ?start ?end ?groupLabel ?representsLabel ?constituencyLabel ?electionLabel
WHERE
{
  ?MEP p:P39 ?MEPstatement .
  ?MEPstatement ps:P39 wd:Q27169 .
  ?MEPstatement pq:P2937 wd:Q17315702 .
  OPTIONAL { ?MEPstatement pq:P580 ?start . }
  OPTIONAL { ?MEPstatement pq:P582 ?end . }
  OPTIONAL { ?MEPstatement pq:P4100 ?group . }
  OPTIONAL { ?MEPstatement pq:P1268 ?represents . }
  OPTIONAL { ?MEPstatement pq:P768 ?constituency . }
  OPTIONAL { ?MEPstatement pq:P2715 ?election . }  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?MEP"):::projected v2("?MEPstatement") v7("?constituency") v8("?election") v4("?end"):::projected v5("?group") v6("?represents") v3("?start"):::projected c3(["wd:Q27169"]):::iri c5(["wd:Q17315702"]):::iri c13(["bd:serviceParam"]):::iri c15(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal v1 --"p:P39"--> v2 v2 --"p:statement/P39"--> c3 v2 --"p:qualifier/P2937"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P580".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P582".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P4100".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P1268".-> v6 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P768".-> v7 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P2715".-> v8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end