Difference between revisions of "Help:ASK"

MyWikiBiz, Author Your Legacy — Thursday November 21, 2024
Jump to navigationJump to search
m (Protected "Centiare:ASK" [edit=sysop:move=sysop])
(Copyediting)
Line 1: Line 1:
'''ASK''' is Centiare's parser function free-form query tool that can be used in conjunction with the [[Centiare:Search Triple|query-by-form]] tool. The following example produces the report below:
+
'''ASK''' is [[Directory:Centiare|Centiare's]] parser function free-form query tool that can be used in conjunction with or as an alternative to the [[Centiare:Search Triple|Search Triple]] query-by-form tool.  
 +
 
 +
===Example===
 +
Suppose you were interested in displaying all of the Centiare articles where a ''Latitude'' attribute between 39 degrees and 40 degrees North has been tagged.  The following example ASK query...
  
 
<pre>
 
<pre>
Line 9: Line 12:
 
</ask>
 
</ask>
 
</pre>
 
</pre>
 +
 +
...produces this report:
  
 
<ask>
 
<ask>
Line 17: Line 22:
 
</ask>
 
</ask>
  
 
+
<br>
(The above query shows all Centiare articles where a Latitude attribute between 39 degrees and 40 degrees North has been tagged.)
+
Of course, this is just an example, and ASK queries may be written to be as inclusive or restrictive of qualifying attributes as the author wishes.

Revision as of 18:32, 18 December 2006

ASK is Centiare's parser function free-form query tool that can be used in conjunction with or as an alternative to the Search Triple query-by-form tool.

Example

Suppose you were interested in displaying all of the Centiare articles where a Latitude attribute between 39 degrees and 40 degrees North has been tagged. The following example ASK query...

<ask>
[[City:=*]]
[[State Code:=*|State]]
[[Zip:=*]]
[[Latitude:=>39.0]][[Latitude:=<40.0]][[Latitude:=*|Latitude]]
</ask>

...produces this report:

<ask> * State * >39.0Property "Latitude" (as page type) with input value ">39.0" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.<40.0Property "Latitude" (as page type) with input value "" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.Latitude </ask>


Of course, this is just an example, and ASK queries may be written to be as inclusive or restrictive of qualifying attributes as the author wishes.