query-8f5bdbcaff4544f8ea56c28d5dbffd63

rq turtle/ttl

20:38, 2 March 2016 (UTC)) talk (AyackQuelqu'un pourrait-il m'indiquer la syntaxe adéquate svp ? Merci. —

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?place ?placeLabel
WHERE
{
    ?place wdt:P17 wd:Q142 . 
    ?place wdt:P31 wd:Q484170 .
    FILTER(CONTAINS(?placeLabel, 'Saint')) .
    SERVICE wikibase:label {
        bd:serviceParam wikibase:language "fr" .
        ?place rdfs:label ?placeLabel }
}
ORDER BY ?placeLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?place"):::projected v1("?placeLabel"):::projected c7(["bd:serviceParam"]):::iri c9(["fr"]):::literal c5(["wd:Q484170"]):::iri c3(["wd:Q142"]):::iri f0[["contains(?placeLabel,'Saint')"]] f0 --> v1 v2 --"wdt:P17"--> c3 v2 --"wdt:P31"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 v2 --"rdfs:label"--> v1 end