Difference between revisions of "Help:ASK"

MyWikiBiz, Author Your Legacy — Wednesday April 24, 2024
Jump to navigationJump to search
(→‎Example 2: Everyone needs to work together to drive ASK power)
(Centiare to MyWikiBiz)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
''<blockquote>See also [[Help:Inline queries|Inline queries]] for more detailed explanations regarding semantic searches.</blockquote>''
 
''<blockquote>See also [[Help:Inline queries|Inline queries]] for more detailed explanations regarding semantic searches.</blockquote>''
  
'''ASK''' is perhaps [[Directory:Centiare|Centiare's]] most powerful tool for searching for information in the directory. It can be used in conjunction with or as an alternative to the [[Centiare:Search Triple|Search Triple]] form-based search tool.  Only [[Centiare:Registration|registered users]] may create these ASK queries.
+
'''ASK''' is perhaps [[Directory:MyWikiBiz|MyWikiBiz's]] most powerful tool for searching for information in the directory. It can be used in conjunction with or as an alternative to the [[Help:Search Triple|Search Triple]] form-based search tool.  Only [[Help:Registration|registered users]] may create these ASK queries.
  
 
----
 
----
  
 
===Example 1===
 
===Example 1===
Suppose you were interested in displaying all of the Centiare articles where a ''[[Latitude]]'' [[Help:Semantic_Tags#Attributes|attribute]] between 36 degrees and 42 degrees North has been tagged by an editor.  The following example ASK query...  
+
Suppose you were interested in displaying all of the MyWikiBiz articles where a ''[[Latitude]]'' [[Help:Semantic_Tags#Attributes|attribute]] between 36 degrees and 42 degrees North has been tagged by an editor.  The following example ASK query...  
  
 
<pre>
 
<pre>
Line 29: Line 29:
  
 
===Example 2===
 
===Example 2===
Suppose you wanted to find all the Centiare articles that identify something in Canada (Country Code is "CA"), but only those that indicate that the subject is incorporated in the state of New York (Incorporation State is "NY").  You also want the phone number of any of the matches.  The following example ASK query...  
+
Suppose you wanted to find all the MyWikiBiz articles that identify something in Canada (Country Code is "CA"), but only those that indicate that the subject is incorporated in the state of New York (Incorporation State is "NY").  You also want the phone number of any of the matches.  The following example ASK query...  
  
 
<pre>
 
<pre>
Line 57: Line 57:
  
 
===Stop marveling and get going!===
 
===Stop marveling and get going!===
Of course, these are just examples, and ASK queries may be written to be as inclusive or restrictive of qualifying [[Special:Attributes|attributes]], [[Special:Categories|categories]], or [[Special:Relations|relations]] as the author wishes.  The strength of these searches depends on other Centiare users properly tagging articles with useful and appropriate semantic tags.  The more you semantic tags you introduce to an article, the more likely it will be found by someone constructing an ASK query.
+
Of course, these are just examples, and ASK queries may be written to be as inclusive or restrictive of qualifying [[Special:Attributes|attributes]], [[Special:Categories|categories]], or [[Special:Relations|relations]] as the author wishes.  The strength of these searches depends on other MyWikiBiz users properly tagging articles with useful and appropriate semantic tags.  The more semantic tags you introduce to an article, the more likely it will be found by someone constructing an ASK query.
  
 
We recommend that you experiment with your own ASK queries on your User page (or sub-page) before you implement them in Directory or Main Space pages.
 
We recommend that you experiment with your own ASK queries on your User page (or sub-page) before you implement them in Directory or Main Space pages.

Latest revision as of 16:44, 26 December 2007

See also Inline queries for more detailed explanations regarding semantic searches.

ASK is perhaps MyWikiBiz's most powerful tool for searching for information in the directory. It can be used in conjunction with or as an alternative to the Search Triple form-based search tool. Only registered users may create these ASK queries.


Example 1

Suppose you were interested in displaying all of the MyWikiBiz articles where a Latitude attribute between 36 degrees and 42 degrees North has been tagged by an editor. The following example ASK query...

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

...instantaneously produces this report when the page is saved:

<ask> * State * >36.0Property "Latitude" (as page type) with input value ">36.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>


Example 2

Suppose you wanted to find all the MyWikiBiz articles that identify something in Canada (Country Code is "CA"), but only those that indicate that the subject is incorporated in the state of New York (Incorporation State is "NY"). You also want the phone number of any of the matches. The following example ASK query...

<ask>
[[City:=*]]
[[State Code:=*|State]]
[[Zip:=*]]
[[Phone:=*]]
[[Country Code:=CA]]
[[Incorporation State:=NY]]
</ask>

...instantaneously produces this report when the page is saved:

<ask> * State * * CA NY </ask>



Stop marveling and get going!

Of course, these are just examples, and ASK queries may be written to be as inclusive or restrictive of qualifying attributes, categories, or relations as the author wishes. The strength of these searches depends on other MyWikiBiz users properly tagging articles with useful and appropriate semantic tags. The more semantic tags you introduce to an article, the more likely it will be found by someone constructing an ASK query.

We recommend that you experiment with your own ASK queries on your User page (or sub-page) before you implement them in Directory or Main Space pages.