Skip to content
This repository
Browse code

adding 7mary4 changes

  • Loading branch information...
commit 8c4542d597cc6a09c8616427da5cbedf0c70ae96 1 parent 832e90b
Paul Donnelly authored November 03, 2010
21  recovery/readme.txt
... ...
@@ -0,0 +1,21 @@
  1
+Recovery.gov open table
  2
+
  3
+This YQL table allows you to track the money spent via the Recovery Act.  http://recovery.gov
  4
+
  5
+Access the most recently updated Recipient Reported data
  6
+to build applications for the web, desktop, or mobile devices. Information on how to access the API
  7
+and describes the various parameters for retrieving data at http://www.recovery.gov/FAQ/Developer/Pages/RecoveryAPI.aspx.    
  8
+                                                                                                                              
  9
+Sample queries:
  10
+View recovery items in California for 2010
  11
+SELECT * FROM recovery.data WHERE recipient_state="CA"  AND calendar_year="2010" limit 15 offset 2
  12
+
  13
+View recovery grants issued to Verizon
  14
+SELECT * FROM recovery.data WHERE recipient_name="VERIZON COMMUNICATIONS INC."
  15
+
  16
+View recovery grants issued by the FCC in New York that have been completed
  17
+SELECT * FROM recovery.data WHERE funding_agency_code="2700" AND project_status="4"  AND pop_state_cd="NY" limit 25 offset 1  
  18
+
  19
+Changelog
  20
+November 2, 2010
  21
+Initial creation and addition to github
68  recovery/recovery.data.xml
... ...
@@ -0,0 +1,68 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any"	https="false">   
  3
+	<meta>
  4
+	    <author>Ted Drake, Yahoo! Inc.</author>
  5
+	    <documentationURL>http://www.recovery.gov/FAQ/Developer/Pages/RecoveryAPI.aspx</documentationURL>
  6
+	    <sampleQuery description="View recovery items in California for 2010">SELECT * FROM {table} WHERE recipient_state="CA"  AND calendar_year="2010" limit 15 offset 2</sampleQuery>      
  7
+	    <sampleQuery description="View recovery grants issued to Verizon">SELECT * FROM {table} WHERE recipient_name="VERIZON COMMUNICATIONS INC." </sampleQuery>       
  8
+	    <sampleQuery description="View recovery grants issued by the FCC in New York that have been completed">SELECT * FROM {table} WHERE funding_agency_code="2700" AND project_status="4"  AND pop_state_cd="NY" limit 25 offset 1</sampleQuery>
  9
+		<description>Access the most recently updated Recipient Reported data
  10
+to build applications for the web, desktop, or mobile devices. Information on how to access the API
  11
+and describes the various parameters for retrieving data at http://www.recovery.gov/FAQ/Developer/Pages/RecoveryAPI.aspx.    
  12
+VIEW OPEN TABLE SOURCE FOR MORE INFO ON QUERY PARAMS
  13
+		 </description>
  14
+    </meta>
  15
+	<bindings>
  16
+		<select itemPath="records.record" produces="XML">  
  17
+			<urls>
  18
+				<url>http://data.recovery.gov/presto/edge/api/rest/RecoveryGovAdvancedSearch/Invoke</url>
  19
+			</urls>
  20
+			<paging model="page">
  21
+			  <start id="start" default="1" />
  22
+			  <pagesize id="number_of_entries" max="1000"/>
  23
+			  <total default="300" />
  24
+			</paging>  
  25
+			<inputs>
  26
+			<!--award_type accepts values C (for Contracts), G (for Grants) and L (for Loans). For multiple values enter comma separated values.-->
  27
+				<key id="award_type"             type="xs:string" paramType="query" required="false"/>
  28
+				<!--Name of the award recipient entity.-->
  29
+				<key id="recipient_name"         type="xs:string" paramType="query" required="false" />
  30
+				<!--Name of the award recipient entity.-->
  31
+				<key id="pop_postal_cd"          type="xs:string" paramType="query" required="false" />
  32
+				<!-- Place of Performance State Code e.g. MD, VA (for selecting MD or VA) -->
  33
+				<key id="pop_state_cd"           type="xs:string" paramType="query" required="false" />
  34
+				<!-- Place of Performance State Code e.g. MD, VA (for selecting MD or VA) -->
  35
+				<key id="pop_congressional_district" type="xs:string" paramType="query" required="false" />
  36
+				<!-- Recipient state location e..g. FL (for a recipient with headquarters in the State of Florida). -->
  37
+				<key id="recipient_state"        type="xs:string" paramType="query" required="false" />
  38
+				<!-- Code for the funding agency e.g. US Department of Agriculture is 1200.  list of valid values. https://www.federalreporting.gov/federalreporting/agencyCodes.do?. -->
  39
+				<key id="funding_agency_code"        type="xs:string" paramType="query" required="false" />
  40
+				<!--Code for the funding agency e.g. US Department of Agriculture is 1200.  list of valid values: https://www.federalreporting.gov/federalreporting/agencyCodes.do?-->
  41
+				<key id="awarding_agency_code"   type="xs:string" paramType="query" required="false" />
  42
+				<!-- Total Award Amount. One can enter a range of values by using a syntax like "[bt]0,1000000" if you are looking for awards between $0 and $1 million.-->
  43
+				<key id="award_amount"           type="xs:string" paramType="query" required="false" />
  44
+				<!--Completion status of the project. Options for selection: 1: Not started; 2: Less than 50% completed; 3: Completed 50% or more; 4: Fully Completed.-->
  45
+				<key id="project_status"         type="xs:string" paramType="query" required="false" />
  46
+				<!--Date of the Award. You may specify a date range by using a syntax like "[bt]01/01/2010,06/30/2010".-->
  47
+				<key id="award_date"             type="xs:string" paramType="query" required="false" />
  48
+				<!--The Recovery Act Award Number. Depending on the recipient_role value this could be the Prime Award Number or the Sub-award Number.-->
  49
+				<key id="award_number"           type="xs:string" paramType="query" required="false" />
  50
+				<!--The Recipient DUNS number. Depending on the recipient_role value this could be either a Prime recipient or Sub-recipient or both (if the recipient_role value is left blank).-->
  51
+				<key id="recipient_duns_number"  type="xs:string" paramType="query" required="false" />
  52
+				<!--Calendar Year within which the recipient report was submitted e.g. 2009.-->
  53
+				<key id="calendar_year"          type="xs:string" paramType="query" required="false" />
  54
+				<!--Calendar Quarter within which the recipient report was submitted. Valid values are 1,2,3,4.-->
  55
+				<key id="calendar_qtr"           type="xs:string" paramType="query" required="false" />
  56
+				<!--This flag allows the user to specify if they want Cumulative (Recovery Act Till Date) information or if they want just the specified quarter and year related reports. For cumulative results specify 1, for quarterly specify 2.-->
  57
+				<key id="cumulative_quarterly_flag" type="xs:string" paramType="query" required="false" default="1" />
  58
+				<!-- Name of the CFDA code for a given Grants Program. For a list of valid values, visit https://www.federalreporting.gov/federalreporting/cfdaCodes.do. -->
  59
+				<key id="cfda_code" type="xs:string" paramType="query" required="false" />
  60
+				<!-- The type of recipient being searched i.e. Prime Recipient (P), Sub-Recipient (S), Prime Recipient Vendor (PV) or Sub-recipient Vendor (SV). -->
  61
+				<key id="recipient_role" type="xs:string" paramType="query" required="false" />
  62
+				<!-- Specify the level of details of the records you want to retrieve. If value is ‘all’, returns all available fields in the database. -->
  63
+				<key id="level_of_details" type="xs:string" paramType="query" required="false" default="all" />
  64
+				
  65
+			</inputs>
  66
+		</select>
  67
+	</bindings>
  68
+</table>	

0 notes on commit 8c4542d

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