query-8cdc42d2e7b5c894fefebf2a842aa7e2

rq turtle/ttl

Completing the list of historical House of Representatives members and compared that against what's in Wikidata. There are a few entries which don't exist in the Biographical Directory but are mentioned in entries for other members (see above). I've contacted them about this. Other than those, there are 11029 members which are in Wikidata and 1778 (funny number) which are missing. If anyone has any advice on how to add new entries or any template they'd like me to use, please let me know. Otherwise, I'll try to figure it out and post back here. Regards, 23:29, 27 November 2020 (UTC) Biographical Directory I just grabbed the list of all ids for members of the House from the instead.the WikiProject's talk page. Please post on couldn't be pinged has more than 50 participants and WikiProject every politician Trying to reconcile the two sites against each other turned up only a handful of discrepancies which should be easy to manual follow up on. 23:26, 6 December 2020 (UTC)) talk (Gettinwikiwidit does at least back to 1974. I'm currently scraping this data. Wikipedia itself can be scraped for older terms, but I'm unable to track down from which sources this information was derived. this siteSadly the Biographical directory does not have information about which districts were served. However

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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?rep ?repLabel ?bioid ?missingDirectoryTerm ?bioURL ?congressURL ?article WHERE {
  VALUES (?bioid ?missingDirectoryTerm ) {
    ("S000847" "96")
    ("T000410" "92")
    ("H001092" "116")
    ("Z000001" "98")
    ("M000249" "109")
    ("M000388" "111")
    ("C000542" "101")
    ("S000716" "97")
    ("D000211" "80")
    ("B000966" "99")
    ("R000249" "94")
    ("D000373" "107")
    }
  ?rep wdt:P1157 ?bioid;
       p:P39 ?stmt.
  OPTIONAL {
?rep       ^schema:about ?article. }
  ?article schema:isPartOf <https://en.wikipedia.org/>.

  OPTIONAL { ?stmt ps:P39 wd:Q13218630. }
  OPTIONAL { ?stmt prov:wasDerivedFrom/pr:P854 ?ref. }
  OPTIONAL { ?stmt pq:P2937 ?term. }
  OPTIONAL { ?stmt pq:P4100 ?party. }
  BIND(URI(CONCAT("https://www.congress.gov/member/william-steiger/",?bioid,"?searchResultViewType=expanded")) AS ?congressURL)
  BIND(URI(CONCAT("http://bioguide.congress.gov/scripts/biodisplay.pl?index=",?bioid)) AS ?bioURL )
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?repLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?article"):::projected v11("?bioURL"):::projected v2("?bioid"):::projected v10("?congressURL"):::projected v3("?missingDirectoryTerm"):::projected v9("?party") v7("?ref") v4("?rep"):::projected v1("?repLabel"):::projected v5("?stmt") v8("?term") a1((" ")) c5([https://en.wikipedia.org/]):::iri c7(["wd:Q13218630"]):::iri c13(["bd:serviceParam"]):::iri c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?bioid ?missingDirectoryTerm/] bind0-->v2 bind0-->v3 bind00(["S000847"]) bind00 --> bind0 bind01(["96"]) bind01 --> bind0 bind02(["T000410"]) bind02 --> bind0 bind03(["92"]) bind03 --> bind0 bind04(["H001092"]) bind04 --> bind0 bind05(["116"]) bind05 --> bind0 bind06(["Z000001"]) bind06 --> bind0 bind07(["98"]) bind07 --> bind0 bind08(["M000249"]) bind08 --> bind0 bind09(["109"]) bind09 --> bind0 bind010(["M000388"]) bind010 --> bind0 bind011(["111"]) bind011 --> bind0 bind012(["C000542"]) bind012 --> bind0 bind013(["101"]) bind013 --> bind0 bind014(["S000716"]) bind014 --> bind0 bind015(["97"]) bind015 --> bind0 bind016(["D000211"]) bind016 --> bind0 bind017(["80"]) bind017 --> bind0 bind018(["B000966"]) bind018 --> bind0 bind019(["99"]) bind019 --> bind0 bind020(["R000249"]) bind020 --> bind0 bind021(["94"]) bind021 --> bind0 bind022(["D000373"]) bind022 --> bind0 bind023(["107"]) bind023 --> bind0 v4 --"p:direct/P1157"--> v2 v4 --"p:P39"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v4 end v6 --"schema:isPartOf"--> c5 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:statement/P39".-> c7 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v5 -."prov:wasDerivedFrom".-> a1 a1 --"p:reference/P854"--> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P2937".-> v8 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P4100".-> v9 end bind1[/"concat('https://www.congress.gov/member/william-steiger/',?bioid,'?searchResultViewType=expanded')"/] v2 --o bind1 bind1 --as--o v10 bind2[/"concat('http://bioguide.congress.gov/scripts/biodisplay.pl?index=',?bioid)"/] v2 --o bind2 bind2 --as--o v11 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end