Election nominations

1 view
Skip to first unread message

Chris Wallace

unread,
Apr 30, 2010, 12:10:57 PM4/30/10
to Data Incubator
I did a scrape of the Press Assocation's page of election nominations
to xml and then to RDF which is up in a (misnamed) datastore.

http://api.talis.com/stores/uk-twinning-dev1/services/sparql

I wrote up the exercise in my blog

http://kitwallace.posterous.com/tag/election

Performance on this dataset seemed very sluggish and I wondered if
there was anything in the RDF or the example queries to cause this.

Any comments on the RDF itself would be welcome - I know there is more
to be added to make this Linked data but I just wanted to get some
basic page-to-RDF XQuery tools tested.

Chris

--
You received this message because you are subscribed to the Google Groups "Data Incubator" group.
To post to this group, send email to datain...@googlegroups.com.
To unsubscribe from this group, send email to dataincubato...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dataincubator?hl=en.

Chris Clarke

unread,
Apr 30, 2010, 12:20:15 PM4/30/10
to datain...@googlegroups.com
Hi Chris, 

The queries run much, much faster if you take out the filter in your sparql queries and replace the bind variable with the literal you were previously filtering on, e.g.

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}  

or 


...executes and returns in under a second on my browser.

Thanks,

Chris
Programme Manager
Education Division

Talis Information Limited
Knights Court, 
Solihull Parkway,
Birmingham Business Park,
United Kingdom
B37 7YB

Direct Number: +44 (0)870 400 5423
Mobile Number: +44 (0)7595 022154
Office Number: +44 (0)870 400 5000



Please consider the environment before printing this email.

Find out more about Talis at http://www.talis.com/
shared innovation™

Any views or personal opinions expressed within this email may not be those of Talis Information Ltd or its employees. The content of this email message and any files that may be attached are confidential, and for the usage of the intended recipient only. If you are not the intended recipient, then please return this message to the sender and delete it. Any use of this e-mail by an unauthorised recipient is prohibited.

Talis Information Ltd is a member of the Talis Group of companies and is registered in England No 3638278 with its registered office at Knights Court, Solihull Parkway, Birmingham Business Park, B37 7YB.

Chris Wallace

unread,
Apr 30, 2010, 6:29:18 PM4/30/10
to Data Incubator
Thanks Chris

Funny, that's how I usually write these queries - not sure what
prompted me to change to using Filters today.
Reply all
Reply to author
Forward
0 new messages