To carry on this scraping exercise, I uploaded the election nomination RDF into a Talis Data Incubator data store which had been set up (for another yet to be completed project on twinning).
Some queries to demonstrate (I initially wrote these using Filters but performance was poor).
1. list the candidates and their parties for the BRISTOL WEST constituency SPARQL XML
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix t: <http://www.cems.uwe.ac.uk/xmlwiki/vocab/type/> prefix p: <http://www.cems.uwe.ac.uk/xmlwiki/vocab/property/> select ?name ?party ?sitting where { ?c rdf:type t:constituency. ?c rdfs:label "BRISTOL WEST". ?c p:nomination ?nom. ?nom rdfs:label ?name. ?nom p:party-name ?party. OPTIONAL {?nom p:sitting-MP ?sitting} }
2. list all Labour nominations and their constituencies where the boundary has changed SPARQL XML
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix t: <http://www.cems.uwe.ac.uk/xmlwiki/vocab/type/> prefix p: <http://www.cems.uwe.ac.uk/xmlwiki/vocab/property/> select ?cname ?name ?change where { ?c rdf:type t:constituency. ?c p:nomination ?nomination. ?c rdfs:label ?cname. ?c p:boundary-change ?change. ?nomination p:party-abbrev "Lab". ?nomination rdfs:label ?name } ORDER BY ?cname
I also pointed my inductive browser over the dataset The ER diagram shows the structure (although it hasn't been able to acquire the multiplicities of the constituency/nomination because the dataset is a bit large).