Wikidata:WikiProject every politician/Ireland/Dail/prompts/KildareStreet

From Wikidata
Jump to navigation Jump to search

This prompt compares the Wikidata information for 32nd Dáil (Q28976095), with the list from KildareStreet.com (reconciled via EveryPolitician.org)


Comparison

@@ wikidata (SPARQL) wikidata (CSV) wikidata_group (SPARQL) wikidata_group (CSV) wikidata_area (SPARQL) wikidata_area (CSV)

Stats

  • Items only found in SPARQL (--- in the first column): 0
  • Items only found in CSV (+++ in the first column): 0
  • Items that differ between sources (→ in the first column): 0
  • Total items in SPARQL: 158
  • Total items in CSV: 158

External source

https://raw.githubusercontent.com/everypolitician/everypolitician-data/master/data/Ireland/Dail/unstable/latest.csv

SPARQL query

SELECT DISTINCT (STRAFTER(STR(?item), STR(wd:)) AS ?wikidata) 
        (STRAFTER(STR(?group), STR(wd:)) AS ?wikidata_group) 
        (STRAFTER(STR(?district), STR(wd:)) AS ?wikidata_area) 
  WHERE {
    ?item p:P39 ?mem .
    ?mem ps:P39 wd:Q654291 ; pq:P2937 wd:Q28976095 .
    OPTIONAL { ?mem pq:P768 ?district }
    OPTIONAL { ?mem pq:P4100 ?group }
    FILTER NOT EXISTS { ?mem pq:P582 [] } # only current members
    SERVICE wikibase:label { 
      bd:serviceParam wikibase:language "en". 
      ?item rdfs:label ?name .
    }
  }
  ORDER BY ?name
Try it!

Refresh prompt

Refresh this comparison Purge the cache

Customize (optional)