query-74890f48bfcf63b645f00752752d3b68

rq turtle/ttl

Ricolajazz?statementRDF data model

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 ?item ?itemLabel ?position ?positionLabel ?image
  ?bornplace ?bornplaceLabel ?nationality ?nationalityLabel ?geocoord
  ?date_start ?date_end
WHERE
{
 ?item wdt:P31 wd:Q5;
       wdt:P21 wd:Q6581072;
       p:P39 ?statement.

 ?statement ps:P39 ?position;
            pq:P580 ?date_start;
            pq:P582 ?date_end.

 ?position wdt:P279 wd:Q14212.

 ?item wdt:P19 ?bornplace;
       wdt:P27 ?nationality.

 OPTIONAL {?item wdt:P18 ?image.}
 OPTIONAL {?bornplace wdt:P625 ?geocoord.}

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

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?bornplace"):::projected v5("?date_end"):::projected v4("?date_start"):::projected v9("?geocoord"):::projected v8("?image"):::projected v1("?item"):::projected v7("?nationality"):::projected v3("?position"):::projected v2("?statement") c18(["#91;AUTO_LANGUAGE#93;,fr, en"]):::literal c4(["wd:Q6581072"]):::iri c10(["wd:Q14212"]):::iri c16(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri v1 --"p:direct/P31"--> c2 v1 --"p:direct/P21"--> c4 v1 --"p:P39"--> v2 v2 --"p:statement/P39"--> v3 v2 --"p:qualifier/P580"--> v4 v2 --"p:qualifier/P582"--> v5 v3 --"p:direct/P279"--> c10 v1 --"p:direct/P19"--> v6 v1 --"p:direct/P27"--> v7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P18".-> v8 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v6 -."p:direct/P625".-> v9 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c16 --"wikibase:language"--> c18 end