query-90dea833359818b7f8e82ff6ed1a3604

rq turtle/ttl

, en ajoutant la localisation administrative, l'État et le pays. Exemple de requête concernée : (Q41176)building Je poursuis avec les

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?locLabel ?etatLabel
WHERE
{
    ?item
            wdt:P31 wd:Q41176 ;
            wdt:P17 wd:Q30 ;
            wdt:P131 ?loc ;
            wdt:P131* ?etat .
            #wdt:P131* wd:Q99 .
            ?etat wdt:P31 wd:Q35657 .
            #wdt:P17/wdt:P30 ?continent ;
            #wdt:P17/wdt:P30 wd:Q15 .
MINUS { ?item schema:description ?itemDescription filter(lang(?itemDescription)="en") .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
#group by ?item ?locLabel having(COUNT(DISTINCT ?continent) = 1) order by desc (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?etat") v1("?item"):::projected v4("?itemDescription") v2("?loc") c10(["bd:serviceParam"]):::iri c2(["wd:Q41176"]):::iri c4(["wd:Q30"]):::iri c7(["en"]):::literal c6(["wd:Q35657"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P17"--> c4 v1 --"wdt:P131"--> v2 v1 --"wdt:P131"--> v3 v3 --"wdt:P31"--> c6 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; f1[["?itemDescription = 'en'"]] f1 --> v4 v1 --"schema:description"--> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c7 end