query-5e63b8871a6d83d7cb1a2423e2d3d068

rq turtle/ttl

mtDNA Haplogroups SELECT ?item ?itemLabel ?p569 ?p19Label ?p155Label ?p156Label WHERE { ?item wdt:P31 wd:Q1356230. OPTIONAL { ?item wdt:P569 ?p569 } #date of birth OPTIONAL { ?item wdt:P19 ?p19 } #place of birth OPTIONAL { ?item wdt:P155 ?p155 } #follows OPTIONAL { ?item wdt:P156 ?p156 } #followed by

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

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#>
#mtDNA Haplogroups
SELECT ?item ?itemLabel ?p569 ?p19Label ?p155Label ?p156Label
WHERE 
{
  ?item wdt:P31 wd:Q1356230.
  OPTIONAL { ?item wdt:P569 ?p569 } #date of birth
  OPTIONAL { ?item wdt:P19 ?p19 } #place of birth
  OPTIONAL { ?item wdt:P155 ?p155 } #follows
  OPTIONAL { ?item wdt:P156 ?p156 } #followed by

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v4("?p155") v5("?p156") v3("?p19") v2("?p569"):::projected c2(["wd:Q1356230"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P569".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P19".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P155".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P156".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end