query-fd914abd251fa051d4a9896446ca7090

rq turtle/ttl

Type specimens of Echinodermata in the MNHN

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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 distinct ?stype ?stypeLabel ?collec ?collecLabel ?role ?de ?deLabel {
   service <https://query.wikidata.org/sparql> {
     select ?stype ?stypeLabel ?collec ?collecLabel ?role ?de ?roleLabel ?deLabel { 
       ?stype wdt:P31/wdt:P279* wd:Q51255340 
       SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
       optional {
         ?stype wdt:P195 ?collec .
       }
       ?stype p:P2868 [ps:P2868 ?role ; pq:P642 ?de] .
       values ?collec {
        wd:Q838691 
             }
        ?de wdt:P171* wd:Q44631
     }
   }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?collec"):::projected v4("?de"):::projected v3("?role"):::projected v1("?stype"):::projected a1((" ")) a2((" ")) c4(["wd:Q51255340"]):::iri c14(["wd:Q44631"]):::iri c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["https://query.wikidata.org/sparql"] style s1 stroke-width:4px; v1 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c4 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c6 --"wikibase:language"--> c8 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P195".-> v5 end a2 --"p:statement/P2868"--> v3 a2 --"p:qualifier/P642"--> v4 v1 --"p:P2868"--> a2 bind0[/VALUES ?collec/] bind0-->v5 bind00(["wd:Q838691"]) bind00 --> bind0 v4 --"p:direct/P171"--> c14 end