Skip to content
Browse files

Added UK Parliament members and constituencies

  • Loading branch information...
1 parent 0fc8cff commit b832a34905ff98f2490a6ffa611762149f83b22d @adrianshort adrianshort committed
View
18 ukparliament/ukparliament.commons.constituencies.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Adrian Short</author>
+ <documentationURL>http://projects.adrianshort.co.uk/yql/</documentationURL>
+ <sampleQuery>SELECT * from {table} WHERE query="birmingham" AND member-party != 'Labour'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="results.constituencies.constituency" produces="XML">
+ <urls>
+ <url env="all"><![CDATA[http://findyourmp.parliament.uk/api/search?f=xml]]></url>
+ </urls>
+ <inputs>
+ <key id="q" as="query" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
18 ukparliament/ukparliament.commons.members.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Adrian Short</author>
+ <documentationURL>http://projects.adrianshort.co.uk/yql/</documentationURL>
+ <sampleQuery>SELECT * from {table} WHERE query="brown" AND member-name LIKE 'rt hon%'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="results.members.constituency" produces="XML">
+ <urls>
+ <url env="all"><![CDATA[http://findyourmp.parliament.uk/api/search?f=xml]]></url>
+ </urls>
+ <inputs>
+ <key id="q" as="query" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>

0 comments on commit b832a34

Please sign in to comment.
Something went wrong with that request. Please try again.