« Partis politiques nationaux » : différence entre les versions

De Wikiromandie.org
Aller à la navigation Aller à la recherche
MaxiBrice (discussion | contributions)
Aucun résumé des modifications
MaxiBrice (discussion | contributions)
Ligne 69 : Ligne 69 :
     BIND(IRI(REPLACE(?formatter, "\\$1", STR(?ESID))) AS ?ESID_link)
     BIND(IRI(REPLACE(?formatter, "\\$1", STR(?ESID))) AS ?ESID_link)
   }
   }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,de,it,en". }
}
GROUP BY ?item ?itemLabel}}
{{#invoke:WikidataTable|render|title = Partis politiques suisses (niveau fédéral)|sparql = SELECT ?item ?itemLabel (SAMPLE(?logo) AS ?oneLogo) WHERE {
  ?item wdt:P31/wdt:P279* wd:Q7278.
  ?item wdt:P17 wd:Q39. 
  { ?item wdt:P1001 wd:Q39. }
  UNION
  { FILTER NOT EXISTS { ?item wdt:P1001 ?x. } }
  FILTER NOT EXISTS { ?item wdt:P1001 ?canton. ?canton wdt:P31 wd:Q23058. }
  FILTER NOT EXISTS { ?item wdt:P749 ?parent. ?parent wdt:P31/wdt:P279* wd:Q7278. }
 
  OPTIONAL { ?item wdt:P154 ?logo. }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,de,it,en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,de,it,en". }
}
}
GROUP BY ?item ?itemLabel}}
GROUP BY ?item ?itemLabel}}

Version du 7 novembre 2026 à 21:47