sarcophagus:carcass:tutorials:advanced_3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sarcophagus:carcass:tutorials:advanced_3 [2012/06/05 16:50] – [Query History] erossarcophagus:carcass:tutorials:advanced_3 [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-[[sarcophagus:carcass:tutorials:advanced_2|{{:buttons:previous.png|Tutorial part 2}}]] 
-[[sarcophagus:carcass:tutorials:advanced_4|{{ :buttons:next.png|Tutorial part 4}}]] 
----- 
-====== Carcass Advanced Tutorial - Part 3 ====== 
  
-==== Expert Query Editor ==== 
- 
-The most advanced query editor available in Carcass is the **Expert Query Editor** which allows you to use the full CQP syntax. 
- 
-To open the //Expert Query Editor// click on the tab marked by the green arrow in the picture below: 
- 
-{{ :sarcophagus:carcass:tutorials:advanced:120_expert_query_editor.png?950&nolink }} 
- 
-\\ 
- 
-The //Expert Query Editor// consists of a single text box where you can type your query directly using the CQP language. Type the following query and then click on ''Submit'': 
- 
-<file> 
-[word="obsessive"] [pos="NN.*"]; 
-</file> 
- 
-{{ :sarcophagus:carcass:tutorials:advanced:130_expert_query_1.png?950&nolink }} 
- 
-The query will take a few seconds to complete: it will appear in the query history as usual and the results will be displayed at the bottom of the screen. 
- 
-Now you can browse the results or sort them just like you did with the results from the Simple and Smart query editors. 
- 
-The CQP language used by the //Expert Query Editor// is rather complex and is beyond the scope of this tutorial, for more information refer to the official [[http://www.ims.uni-stuttgart.de/projekte/CorpusWorkbench/CQPTutorial/html/|CQP tutorial]]. 
- 
-==== Query History ==== 
- 
-You may have realised by now that the queries listed in the //Query History// are all expressed using the CQP language: if you use the //Simple// or the //Smart// query editors, Carcass automatically "translates" your queries into the CQP language. 
- 
-We've seen how you can recall the results of previous queries by clicking on them, but there is another interesting thing you can do: 
- 
-  * delete the content of the //Expert Query Editor// box, which should look like this 
- 
-\\ 
- 
-{{ :sarcophagus:carcass:tutorials:advanced:140_query_history_1.png?950&nolink }} 
- 
-\\ 
- 
-  * in the //Query history//, click on the first query you submitted 
- 
-\\ 
- 
-{{ :sarcophagus:carcass:tutorials:advanced:150_query_history_2.png?950&nolink }} 
- 
-\\ 
- 
-  * press **CTRL-C** (or **CMD-C** if you are using a Mac) on your keyboard, this will **copy** the query to the clipboard 
-  * click in the empty text box in the //Expert Query Editor// and then press **CTRL-V** (or **CMD-V** if you are using a Mac) on your keyboard 
-  * the CQP query will be **pasted** in the box 
- 
-\\ 
- 
-{{ :sarcophagus:carcass:tutorials:advanced:150_query_history_3.png?950&nolink }} 
- 
-\\ 
- 
-This is particularly useful if you want to start composing a query in the //Smart Editor// and then modify it manually. 
-==== Conclusion ==== 
- 
-This concludes the Carcass Advanced Tutorial, you can go back to the [[sarcophagus:carcass:tutorials:|tutorials home page]] or to the [[sarcophagus:carcass:|Carcass documentation]] home page. 
- 
-======= ======= 
----- 
-[[sarcophagus:carcass:tutorials:advanced_2|{{:buttons:previous.png|Tutorial part 2}}]] 
-[[sarcophagus:carcass:tutorials:advanced_4|{{ :buttons:next.png|Tutorial part 4}}]] 
  • sarcophagus/carcass/tutorials/advanced_3.1338907803.txt.gz
  • Last modified: 2012/06/05 16:50
  • by eros