<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tutorials on ajq — semantic jq</title><link>https://ricardocabral.github.io/ajq/docs/tutorials/</link><description>Recent content in Tutorials on ajq — semantic jq</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://ricardocabral.github.io/ajq/docs/tutorials/index.xml" rel="self" type="application/rss+xml"/><item><title>Your first ajq pipeline</title><link>https://ricardocabral.github.io/ajq/docs/tutorials/first-pipeline/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ricardocabral.github.io/ajq/docs/tutorials/first-pipeline/</guid><description>&lt;p&gt;Run a real jq query through ajq. You&amp;rsquo;ll process a small JSON document, filter it, and
confirm ajq matches jq for ordinary queries. No model, API key, or configuration.&lt;/p&gt;
&lt;p&gt;Time: &lt;strong&gt;5 minutes&lt;/strong&gt;. Requires ajq on your &lt;code&gt;PATH&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="step-1--get-ajq"&gt;Step 1 — Get ajq&lt;/h2&gt;
&lt;p&gt;Use the checksum-verifying install script, a manual release download, or build from source
(see &lt;a href="../../how-to/install/"&gt;Install ajq&lt;/a&gt; for details):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl -fsSL https://raw.githubusercontent.com/ricardocabral/ajq/main/scripts/install.sh &lt;span class="p"&gt;|&lt;/span&gt; sh
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Check that it works:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ajq --version
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This tutorial uses only deterministic jq, so there&amp;rsquo;s nothing else to set up — no model
download, no API key.&lt;/p&gt;</description></item><item><title>See how ajq plans a semantic query</title><link>https://ricardocabral.github.io/ajq/docs/tutorials/explain-semantic-plan/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ricardocabral.github.io/ajq/docs/tutorials/explain-semantic-plan/</guid><description>&lt;p&gt;Write a fuzzy match and inspect the plan. &lt;code&gt;--explain&lt;/code&gt; does not contact a model, so you can
inspect and cost any query before running it for real.&lt;/p&gt;
&lt;p&gt;Requires ajq on your &lt;code&gt;PATH&lt;/code&gt; (see &lt;a href="../../how-to/install/"&gt;Install ajq&lt;/a&gt;).&lt;/p&gt;
&lt;h2 id="step-1--write-a-fuzzy-predicate"&gt;Step 1 — Write a fuzzy predicate&lt;/h2&gt;
&lt;p&gt;Ordinary jq can test text with &lt;code&gt;test()&lt;/code&gt; or &lt;code&gt;==&lt;/code&gt;, but only &lt;em&gt;literally&lt;/em&gt;. ajq adds a fuzzy
operator, &lt;code&gt;=~&lt;/code&gt;, that asks a model &amp;ldquo;does this value match this description?&amp;rdquo;. Here&amp;rsquo;s a
stream of three messages, and a query that keeps the ones that read as &lt;em&gt;urgent&lt;/em&gt;:&lt;/p&gt;</description></item></channel></rss>