Fruits table: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
No edit summary
Line 40: Line 40:


{{#store_external_table:Is fruit in|Has name={{{name}}}|Has color={{{color}}}|Has shape={{{shape}}} }}
{{#store_external_table:Is fruit in|Has name={{{name}}}|Has color={{{color}}}|Has shape={{{shape}}} }}
{{#ask: [[Is fruit in]]
| ?Has name
| ?Has color
}}

Revision as of 09:56, May 4, 2010

Data was retrieved from the fruits data page, using the External Data extension.

All fruits (retrieved from the URL http://discoursedb.org/wiki/Special:GetData/Fruits_data, with links added to the fruit names as a demonstration):

Name Color Shape


Yellow fruits only (retrieved from the URL http://discoursedb.org/wiki/Special:GetData/Fruits_data?Color=Yellow): Error: No "source" parameter specified.
Error: No suitable data source is defined for this external data query

Name Color Shape


Red fruits only (retrieved from the URL http://discoursedb.org/wiki/Special:GetData/Fruits_data, with an additional "color==Red" filter placed in the call):

Name Color Shape

{{#store_external_table:Is fruit in|Has name={{{name}}}|Has color={{{color}}}|Has shape={{{shape}}} }}

{{#ask: Is fruit in | ?Has name | ?Has color }}