Queries

CATMA queries are normally started from within the Analyze module. For example, this is how you would run a query for all occurrences of the word Snoopy in a document or corpus: just type in

Screenshot of the CATMA querie box with a one-word search
Screenshot of the CATMA querie box with a one-word search for “Snoopy”

Now click on “Execute Query” – done. CATMA immediately displays all occurrences of “Snoopy”; unfortunately, in this case it’s only one …  But you will obviously want to ask more complicated questions – that’s why you annotated your text!

CATMA’s main analytical tool is a powerful query language that allows you to search and count occurrences of text and annotations. CATMA offers you two options to formulate analytical queries that go far beyond Wordlists:

  • The CATMA Query Builder is a widget that makes it very easy to formulate queries of low to medium level of complexity. This is the option for beginners.
  • Once you have learned the syntax of the query language, you can also input any query directly into a query box. This is the option for advanced users – it saves you time and allows you to formulate highly complex queries that are nested, recursive, etc.
CAT;A querie builder
Screenshot of the CATMA Query Builder widget which allows you to formulate queries in natural language

CATMA’s query language also allows you to use simple wildcards as well as full-blown regular expressions with look-around. It offers union, exclusion and collocation operators. Moreover, the query language is not limited to text occurrences – you can also use it to find all occurrences of a specific Tag.

For an in-depth decsription of how the query language works, please follow this link.