Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git@github.com:yql/yql-tables

  • Loading branch information...
commit 04a004a2ab70fb9b243bdadd691f71f93e3c3a57 2 parents 0150e33 + 37382ce
erik authored
View
17 brazil/correios/brazil.correios.encomendas.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Guilherme Chapiewski</author>
+ <sampleQuery>select * from {table} where numero='EC884014459BR'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="results.status" produces="XML">
+ <urls>
+ <url>http://correios-api.appspot.com/yql</url>
+ </urls>
+ <inputs>
+ <key id="numero" type="xs:string" paramType="query" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
19 flickr/flickr.people.getInfo.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Fabio Kung &lt;fabio.kung@gmail.com&gt;</author>
+ <documentationURL>http://www.flickr.com/services/api/flickr.people.getInfo.html</documentationURL>
+ <sampleQuery>select * from {table} where user_id="26545327@N00"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="rsp.person" produces="XML">
+ <urls>
+ <url env="all">http://api.flickr.com/services/rest/?method=flickr.people.getInfo</url>
+ </urls>
+ <inputs>
+ <key id="user_id" type="xs:string" paramType="query" />
+ <key id="api_key" type="xs:string" const="true" private="true" paramType="query" default="d98a5516040113c777323bea72473fc7"/>
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
36 foursquare/foursquare.addvenue.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/addvenue</url>
+ </urls>
+ <inputs>
+ <key id="name" type="xs:string" paramType="query" required="true" />
+ <key id="address" type="xs:string" paramType="query" required="false" />
+ <key id="crossstreet" type="xs:string" paramType="query" required="false" />
+ <key id="city" type="xs:string" paramType="query" required="false" />
+ <key id="state" type="xs:string" paramType="query" required="false" />
+ <key id="zip" type="xs:string" paramType="query" required="false" />
+ <key id="phone" type="xs:string" paramType="query" required="false" />
+ <key id="geolat" type="xs:string" paramType="query" required="false" />
+ <key id="geolong" type="xs:string" paramType="query" required="false" />
+ <key id="primarycategoryid" type="xs:string" paramType="query" required="false" />
+ <key id="username" type="xs:string" paramType="variable" required="true" />
+ <key id="password" type="xs:string" paramType="variable" required="true" />
+ </inputs>
+ <execute>
+ <![CDATA[
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).post(y.queryParams).response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
15 foursquare/foursquare.categories.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/categories</url>
+ </urls>
+ </select>
+ </bindings>
+</table>
View
39 foursquare/foursquare.checkin.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/checkin</url>
+ </urls>
+ <inputs>
+ <key id="vid" type="xs:string" paramType="query" required="false" />
+ <key id="venue" type="xs:string" paramType="query" required="false" />
+ <key id="shout" type="xs:string" paramType="query" required="false" />
+ <key id="private" type="xs:string" paramType="query" required="false" />
+ <key id="twitter" type="xs:string" paramType="query" required="false" />
+ <key id="facebook" type="xs:string" paramType="query" required="false" />
+ <key id="geolat" type="xs:string" paramType="query" required="false" />
+ <key id="geolong" type="xs:string" paramType="query" required="false" />
+ <key id="username" type="xs:string" paramType="variable" required="true" />
+ <key id="password" type="xs:string" paramType="variable" required="true" />
+ </inputs>
+ <execute>
+ <![CDATA[
+ if(!vid && !venue && !shout){
+ out = <error>I need a vid, venue or shout</error>
+ response.object = out;
+ } else {
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).post(y.queryParams).response;
+ }
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
26 foursquare/foursquare.checkins.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/checkins</url>
+ </urls>
+ <inputs>
+ <key id="geolat" type="xs:string" paramType="query" required="false" />
+ <key id="geolong" type="xs:string" paramType="query" required="false" />
+ <key id="username" type="xs:string" paramType="variable" required="true" />
+ <key id="password" type="xs:string" paramType="variable" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).get().response;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
27 foursquare/foursquare.flagclosed.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table} where vid="1"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/flagclosed</url>
+ </urls>
+ <inputs>
+ <key id="vid" type="xs:string" paramType="query" required="true" />
+ <key id="username" type="xs:string" paramType="variable" required="true" />
+ <key id="password" type="xs:string" paramType="variable" required="true" />
+ </inputs>
+ <execute>
+ <![CDATA[
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).post(y.queryParams).response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
25 foursquare/foursquare.friends.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/friends</url>
+ </urls>
+ <inputs>
+ <key id="uid" type="xs:string" paramType="query" required="false" />
+ <key id="username" type="xs:string" paramType="variable" required="true" />
+ <key id="password" type="xs:string" paramType="variable" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).get().response;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
26 foursquare/foursquare.history.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/history</url>
+ </urls>
+ <inputs>
+ <key id="l" type="xs:string" paramType="query" required="false" />
+ <key id="sinceid" type="xs:string" paramType="query" required="false" />
+ <key id="username" type="xs:string" paramType="variable" required="true" />
+ <key id="password" type="xs:string" paramType="variable" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).get().response;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
36 foursquare/foursquare.proposeedit.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/proposeedit</url>
+ </urls>
+ <inputs>
+ <key id="vid" type="xs:string" paramType="query" required="true" />
+ <key id="name" type="xs:string" paramType="query" required="true" />
+ <key id="address" type="xs:string" paramType="query" required="true" />
+ <key id="crossstreet" type="xs:string" paramType="query" required="false" />
+ <key id="city" type="xs:string" paramType="query" required="true" />
+ <key id="state" type="xs:string" paramType="query" required="true" />
+ <key id="zip" type="xs:string" paramType="query" required="false" />
+ <key id="phone" type="xs:string" paramType="query" required="false" />
+ <key id="geolat" type="xs:string" paramType="query" required="false" />
+ <key id="geolong" type="xs:string" paramType="query" required="false" />
+ <key id="username" type="xs:string" paramType="variable" required="true" />
+ <key id="password" type="xs:string" paramType="variable" required="true" />
+ </inputs>
+ <execute>
+ <![CDATA[
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).post(y.queryParams).response;
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
27 foursquare/foursquare.user.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/user</url>
+ </urls>
+ <inputs>
+ <key id="uid" type="xs:string" paramType="query" required="false" />
+ <key id="badges" type="xs:string" paramType="query" required="false" />
+ <key id="mayor" type="xs:string" paramType="query" required="false" />
+ <key id="username" type="xs:string" paramType="variable" required="true" />
+ <key id="password" type="xs:string" paramType="variable" required="true" />
+ </inputs>
+ <execute><![CDATA[
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).get().response;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
32 foursquare/foursquare.venue.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table} where vid="125694"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/venue</url>
+ </urls>
+ <inputs>
+ <key id="vid" type="xs:string" paramType="query" required="true" />
+ <key id="username" type="xs:string" paramType="variable" required="false" />
+ <key id="password" type="xs:string" paramType="variable" required="false" />
+ </inputs>
+ <execute><![CDATA[
+ if(username && password)
+ {
+ y.include("http://yqlblog.net/samples/base64.js");
+ var authheader = "Basic "+Base64.encode(username+":"+password);
+ response.object = request.header("Authorization",authheader).get().response;
+ }
+ else
+ {
+ response.object = request.get().response;
+ }
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
21 foursquare/foursquare.venues.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Andrew Guyton</author>
+ <documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
+ <sampleQuery>select * from {table} where geolat="33.7772869" and geolong="-84.3976068"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.foursquare.com/v1/venues</url>
+ </urls>
+ <inputs>
+ <key id="geolat" type="xs:string" paramType="query" required="true" />
+ <key id="geolong" type="xs:string" paramType="query" required="true" />
+ <key id="l" type="xs:string" paramType="query" required="false" />
+ <key id="q" type="xs:string" paramType="query" required="false" />
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
89 noaa/noaa.spc.day1otlk.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Hank Marquardt</author>
+ <description>NOAA Storm Prediction Center Day 1 Outlook Data</description>
+ <sampleQuery>select * from {table} where areatype="TORNADO"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url env="all">http://www.spc.noaa.gov/products/outlook/day1otlk.html</url>
+ </urls>
+ <inputs>
+ <key id="areatype" type="xs:string" paramType="variable" required="false" />
+ <key id="debug" type="xs:string" paramType="variable" required="false" />
+ </inputs>
+ <execute><![CDATA[
+ var spcurl = "http://www.spc.noaa.gov/products/outlook/day1otlk.html";
+ var spcbase = "http://www.spc.noaa.gov";
+ var spcxpath = "//pre/a";
+ var q = y.query('select * from html where url = @url and xpath = @xpath',{'url': spcurl, 'xpath': spcxpath});
+
+ /*
+ This about killed me ... apparently response.object, does an internal call to xmlToJson on assignment
+ and that wasn't apparent to me, so I was flummoxed as to why my code wasn't working, the next line here solved
+ all that ... facepalm. Oh and thank you to y.log which helped me figure that out.
+ */
+
+ var myresults = y.xmlToJson(q.results);
+ var dataurl = spcbase+myresults.results.a.href;
+ var dataReq = y.rest(dataurl);
+ var rawData = dataReq.get().response;
+
+ /*
+ At this point, we have the raw SPC data for the current 1 day outlook, what follows is regex magic
+ and not for the faint of heart.
+ */
+
+ // Isolate the percentage fields then strip the new lines
+ rawData=rawData.replace(/([0-9]\.[0-9]{2}|SLGT|TSTM)/mg,'|$1|');
+ rawData=rawData.replace(/\n/mg,'');
+
+ // This gives us an array with each type isolated (ie TORNADO, HAIL, WIND)
+ var weatherArr = rawData.match(/\.\.\. (.+?) \.\.\.(.)+?&&/mg);
+
+ // Setup the output and log variables
+ var resultSet = [];
+ var resultIndex = 0;
+ var oLog = [];
+ var oLogIdx = 0;
+
+ for(var weatherType in weatherArr) {
+ wrkStr = weatherArr[weatherType];
+ wrkStr = wrkStr.replace(/^\.\.\. /,'');
+ wType = wrkStr.split(/ \.\.\./);
+ oType = wType[0]; // Output for 'type' eg. TORNADO, WIND
+ oData = wType[1]; // Data associated with type
+ wPcts = oData.match(/(\|[^\|]+\|)/g); // Gets values of Percents
+ wPctsData = oData.split(/\|[^\|]+\|/g); // Split data by Percents
+ wPctsData.shift(); // Throw out first value of split
+ oLog[oLogIdx++] = {'wPctsData': wPctsData};
+ for(var i in wPcts) {
+ oPct = wPcts[i].replace(/\|/g,''); // Percent value to be output
+ wPctData = wPctsData[i].match(/[0-9]{8}/g); // Grab all the lat/lon pairs
+ oLog[oLogIdx++] = {'wPctData': wPctData};
+ latlonSet = [];
+ latlonIndex = 0;
+ for(var j in wPctData) {
+ wLatLon = wPctData[j].match(/[0-9]{4}/g);
+ oLat = wLatLon[0]/100;
+ oLon = wLatLon[1]/100*-1; // Lon values are negative for US
+ latlonSet[latlonIndex++] = {'lat': oLat, 'lon': oLon};
+ }
+ if(areatype == oType || !areatype) {
+ resultSet[resultIndex++] = {'type': oType, 'probablity': oPct, 'areadata': latlonSet};
+ }
+ }
+ }
+
+ if(!debug) {
+ response.object={'data': resultSet, 'records': resultIndex};
+ } else {
+ response.object={'data': resultSet, 'records': resultIndex, 'oLogs': oLog};
+ }
+
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
37 text/text.text.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <sampleQuery>select * from {table} where text.key1 = "http://farm" and text.key3 = ".static.flickr.com/" and text.key5 = "/" and text.key7 = "_" and text.key9 = ".jpg" and (text.key2, text.key4, text.key6, text.key8) in (select farm, server, id, secret from flickr.photos.search where text = "fish");</sampleQuery>
+ <author>Tom Hughes-Croucher (@sh1mmer) croucher@yahoo-inc.com</author>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url></url>
+ </urls>
+ <inputs>
+ <map id='text' type='xs:string' paramType='variable' required="true" />
+ </inputs>
+ <execute><![CDATA[
+ var results = "";
+ var keys = [];
+
+ for (k in text) {
+ keys.push(k);
+ }
+
+ keys.sort();
+
+ for (var i=0;i<keys.length;i++) {
+ key = keys[i];
+ value = text[key];
+ results += value;
+ }
+
+ results = <text>{results}</text>;
+
+ response.object = results;
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
View
110 uknutritionals/nutritionals.xml
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <sampleQuery>select * from {table} where name like "banana";</sampleQuery>
+ <author>Max Manders</author>
+ <documentationURL>http://maxmanders.co.uk/lab/nutritionals/</documentationURL>
+ <description>Provides access to UK OPSI Composition of Foods Data. Reproduced in part with the permission of http://www.opsi.gov.uk (http://bit.ly/a3dfdp)</description>
+ </meta>
+
+ <bindings>
+ <select itemPath="" produces="XML">
+ <inputs>
+ <key id='name' type='xs:string' paramType='variable' required="false" />
+ <key id='water' type='xs:string' paramType='variable' required="false" />
+ <key id='nitrogen' type='xs:string' paramType='variable' required="false" />
+ <key id='protein' type='xs:string' paramType='variable' required="false" />
+ <key id='fat' type='xs:string' paramType='variable' required="false" />
+ <key id='carbohydrate' type='xs:string' paramType='variable' required="false" />
+ <key id='kcal' type='xs:string' paramType='variable' required="false" />
+ <key id='kj' type='xs:string' paramType='variable' required="false" />
+ <key id='starch' type='xs:string' paramType='variable' required="false" />
+ <key id='sugars' type='xs:string' paramType='variable' required="false" />
+ </inputs>
+ <execute><![CDATA[
+ var out = <nutritionals/>;
+ var query = 'select * from csv where url="http://maxmanders.co.uk/lab/nutritionals/nutritionals.csv"';
+ if(name){
+ query+= ' and col0 like "%'+name+'%"';
+ }
+ if(water){
+ query+= ' and col1 like "%'+water+'%"';
+ }
+ if(nitrogen){
+ query+= ' and col2 like "%'+nitrogen+'%"';
+ }
+ if(protein){
+ query+= ' and col3 like "%'+protein+'%"';
+ }
+ if(fat){
+ query+= ' and col4 like "%'+fat+'%"';
+ }
+ if(carbohydrate){
+ query+= ' and col5 like "%'+carbohydrate+'%"';
+ }
+ if(kcal){
+ query+= ' and col6 like "%'+kcal+'%"';
+ }
+ if(kj){
+ query+= ' and col7 like "%'+kj+'%"';
+ }
+ if(starch){
+ query+= ' and col8 like "%'+starch+'%"';
+ }
+ if(sugars){
+ query+= ' and col9 like "%'+sugars+'%"';
+ }
+
+ var x = y.query(query);
+ var l = x.results..row;
+ for each(var n in l){
+ n.setName("nutritional");
+ }
+ var l = x.results..col0;
+ for each(var n in l){
+ n.setName("name");
+ }
+ var l = x.results..col1;
+ for each(var n in l){
+ n.setName("water");
+ }
+ var l = x.results..col2;
+ for each(var n in l){
+ n.setName("nitrogen");
+ }
+ var l = x.results..col3;
+ for each(var n in l){
+ n.setName("protein");
+ }
+ var l = x.results..col4;
+ for each(var n in l){
+ n.setName("fat");
+ }
+ var l = x.results..col5;
+ for each(var n in l){
+ n.setName("carbohydrate");
+ }
+ var l = x.results..col6;
+ for each(var n in l){
+ n.setName("kcal");
+ }
+ var l = x.results..col7;
+ for each(var n in l){
+ n.setName("kj");
+ }
+ var l = x.results..col8;
+ for each(var n in l){
+ n.setName("starch");
+ }
+ var l = x.results..col9;
+ for each(var n in l){
+ n.setName("sugars");
+ }
+ out.nutritional = x.results.nutritional;
+ response.object = out;
+ ]]></execute>
+ </select>
+
+ </bindings>
+</table>
+
Please sign in to comment.
Something went wrong with that request. Please try again.