query-cda86a69d27cd8c8d19eb21e2c4bd056

rq turtle/ttl

Search for missing descriptions in a target language and match with description string SELECT DISTINCT ?item ?itemLabel ?itemDescription ?datePrix ?itemPrenomLabel ?itemNomLabel ?itemGenreLabel ?itemNaissanceLabel ?itemDateNaissance ?prixLabel WHERE { ?item wdt:P31 wd:Q5. # instance of human OPTIONAL {?item wdt:P735 ?itemPrenom.} OPTIONAL {?item wdt:P734 ?itemNom.} OPTIONAL {?item wdt:P21 ?itemGenre.} OPTIONAL {?item wdt:P19 ?itemNaissance.} OPTIONAL {?item wdt:P569 ?itemDateNaissance.}

?item p:P166 ?award_statement . ?award_statement ps:P166 ?prix . ?prix wdt:P361 wd:Q3405853 . OPTIONAL {?award_statement pq:P585 ?datePrix.} OPTIONAL {?award_statement prov:wasDerivedFrom ?ref}

SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }

}

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 prov: <http://www.w3.org/ns/prov#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Search for missing descriptions in a target language and match with description string
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?datePrix ?itemPrenomLabel ?itemNomLabel ?itemGenreLabel ?itemNaissanceLabel ?itemDateNaissance ?prixLabel WHERE {
  ?item wdt:P31 wd:Q5.  # instance of human
  OPTIONAL {?item wdt:P735 ?itemPrenom.}
  OPTIONAL {?item wdt:P734 ?itemNom.}
  OPTIONAL {?item wdt:P21 ?itemGenre.}
  OPTIONAL {?item wdt:P19 ?itemNaissance.}
  OPTIONAL {?item wdt:P569 ?itemDateNaissance.}

  ?item p:P166 ?award_statement .
  ?award_statement ps:P166 ?prix .
  ?prix wdt:P361 wd:Q3405853 . 
  OPTIONAL {?award_statement pq:P585 ?datePrix.} 
  OPTIONAL {?award_statement prov:wasDerivedFrom ?ref}


 SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?award_statement") v9("?datePrix"):::projected v1("?item"):::projected v6("?itemDateNaissance"):::projected v4("?itemGenre") v5("?itemNaissance") v3("?itemNom") v2("?itemPrenom") v8("?prix") v10("?ref") c11(["wd:Q3405853"]):::iri c17(["fr"]):::literal c15(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri v1 --"p:direct/P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P735".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P734".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P21".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P19".-> v5 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P569".-> v6 end v1 --"p:P166"--> v7 v7 --"p:statement/P166"--> v8 v8 --"p:direct/P361"--> c11 subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v7 -."p:qualifier/P585".-> v9 end subgraph optional6["(optional)"] style optional6 fill:#bbf,stroke-dasharray: 5 5; v7 -."prov:wasDerivedFrom".-> v10 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c15 --"wikibase:language"--> c17 end