query-1021b0702f6839eb6ae90ade861c9ec9

rq turtle/ttl

Personne qui ont un ID SAPA dans Wikidata et qui ont une occupation "bizarre" (religieuse) SELECT DISTINCT ?item ?itemLabel (CONCAT("http://data.performing-arts.ch/",?idSAPA) AS ?SAPA) WHERE { ?item wdt:P8974 ?idSAPA; wdt:P106 ?occupation. ?occupation wdt:P31 ?natureoccupation. ?natureoccupation wdt:P279* wd:Q108290376. # La nature de l'occupation doit être une sous-classe de "profession religieuse" SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,de,fr,en". } # le label viendra de préférence dans votre langue, et autrement en italien, allemand, français, anglais }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Personne qui ont un ID SAPA dans Wikidata et qui ont une occupation "bizarre" (religieuse)
SELECT DISTINCT ?item ?itemLabel (CONCAT("http://data.performing-arts.ch/",?idSAPA) AS ?SAPA)
WHERE 
{
  ?item wdt:P8974 ?idSAPA;
        wdt:P106 ?occupation.
  ?occupation wdt:P31 ?natureoccupation.
  ?natureoccupation wdt:P279* wd:Q108290376. # La nature de l'occupation doit être une sous-classe de "profession religieuse"
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,de,fr,en". } # le label viendra de préférence dans votre langue, et autrement en italien, allemand, français, anglais
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?SAPA") v2("?idSAPA"):::projected v1("?item"):::projected v4("?natureoccupation") v3("?occupation") c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,it,de,fr,en"]):::literal c5(["wd:Q108290376"]):::iri v1 --"wdt:P8974"--> v2 v1 --"wdt:P106"--> v3 v3 --"wdt:P31"--> v4 v4 --"wdt:P279"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind0[/"concat('http://data.performing-arts.ch/',?idSAPA)"/] v2 --o bind0 bind0 --as--o v5