PMLTQ
view release on metacpan or search on metacpan
doc/pmltq_tutorial_web_client.xml view on Meta::CPAN
<listitem>
<para>Method 1: Click on
<inlinemediaobject>
<imageobject role="html">
<imagedata contentdepth="20pt"
fileref="images/callouts/toolbar-NodeTypes.png" format="PNG" />
</imageobject>
<textobject>
<phrase>Node Types</phrase>
</textobject>
</inlinemediaobject> in the toolbar; a list of available nodes for PDT 3.0 is displayed:
<figure id="fig-screenshot-web-lindat-pdt30-nodetypes">
<title>A part of the list of available node types for PDT 3.0</title>
<mediaobject>
<imageobject role="html">
<imagedata scale="&cutshotscale;" align="center" fileref="images/screenshot_web_lindat_pdt30_node_types_menu_cut.png"
format="PNG" />
</imageobject>
</mediaobject>
</figure>
Choose <literal>t-node</literal>. The string <literal>t-node</literal> will be copied to the text area below the toolbar.
</para>
<para>
Properties of a node follow its type, enclosed in square brackets: type <literal>[</literal> and choose
a t-node attribute <literal>functor</literal>
from menu <inlinemediaobject>
<imageobject role="html">
<imagedata contentdepth="20pt"
fileref="images/callouts/toolbar-Attributes.png" format="PNG" />
</imageobject>
<textobject>
<phrase>Attributes</phrase>
</textobject>
</inlinemediaobject> in the toolbar. Next, select operator <literal>=</literal> from the <literal>Comparison</literal> group
in the <inlinemediaobject>
<imageobject role="html">
<imagedata contentdepth="20pt"
fileref="images/callouts/toolbar-Operators.png" format="PNG" />
</imageobject>
<textobject>
<phrase>Operators</phrase>
</textobject>
</inlinemediaobject> menu in the toolbar, and type <literal>"PRED"</literal>. Finish by closing the definition of the t-node by <literal>]</literal>.
<xref linkend="fig-screenshot-web-lindat-pdt30-query-PRED"/> shows how the query should look like (the spaces are optional).
<figure id="fig-screenshot-web-lindat-pdt30-query-PRED">
<title>A simple query searching for Predicates in PDT 3.0</title>
<mediaobject>
<imageobject role="html">
<imagedata scale="&cutshotscale;" align="center" fileref="images/screenshot_web_lindat_pdt30_query_PRED_cut.png"
format="PNG" />
</imageobject>
</mediaobject>
</figure>
</para>
</listitem>
<listitem>
<para>Method 2: In the query text area, start typing <literal>t-</literal>. The popup menu with possible node types will be offered:
<figure id="fig-screenshot-web-lindat-pdt30-node-type-hints-t-layer-cut">
<title>List of available node types for PDT 3.0 containing the string <literal>t-</literal></title>
<mediaobject>
<imageobject role="html">
<imagedata scale="&cutshotscale;" align="center" fileref="images/screenshot_web_lindat_pdt30_node_type_hints_t-layer_cut.png"
format="PNG" />
</imageobject>
</mediaobject>
</figure>
Choose <literal>t-node</literal> and continue typing the query, i.e. <literal>[ fu</literal>. After you start typing the name of the attribute,
another popup window with possible attributes is offered:
<figure id="fig-screenshot-web-lindat-pdt30-attribute-hints-functor-cut">
<title>List of available attribute names in PDT 3.0 containing the string <literal>fu</literal></title>
<mediaobject>
<imageobject role="html">
<imagedata scale="&cutshotscale;" align="center" fileref="images/screenshot_web_lindat_pdt30_attribute_hints_functor_cut.png"
format="PNG" />
</imageobject>
</mediaobject>
</figure>
Choose <literal>functor</literal> and finish typing the rest of the query, i.e. <literal>="functor"]</literal>.
<para>
The resulting query should be the same as in <xref linkend="fig-screenshot-web-lindat-pdt30-query-PRED"/> (again, the spaces are optional), i.e.:
<programlisting>t-node [ functor="PRED" ]</programlisting>
<keysym><ulink url="http://hdl.handle.net/11346/PMLTQ-KVJI">try the query</ulink></keysym></para>
</para>
</listitem>
</itemizedlist>
<note>
<para>Throughout the tutorial, you can use the button <keysym>try the query</keysym> placed
below examples to go directly to the web client and try the example. Such permanent links
to queries in the web client can be created by clicking on <inlinemediaobject>
<imageobject role="html">
<imagedata contentdepth="20pt"
fileref="images/callouts/PermanentLink.png" format="PNG" />
</imageobject>
<textobject>
<phrase>Permanent Link</phrase>
</textobject>
</inlinemediaobject> on the right side below the query text area.</para>
</note>
</section>
<section>
<title>Executing the query</title>
<para>
To execute the query, press <inlinemediaobject>
<imageobject role="html">
<imagedata contentdepth="20pt"
fileref="images/callouts/ExecuteQuery.png" format="PNG" />
</imageobject>
<textobject>
<phrase>Execute Query</phrase>
</textobject>
</inlinemediaobject> below the query text area. The query gets processed by the server and the result
is displayed. <xref linkend="fig-screenshot-web-lindat-pdt30-query-PRED"/> shows the first matching tree.
<figure id="fig-screenshot-web-lindat-pdt30-query-PRED-result">
<title>A result tree for the query searching for Predicates in PDT 3.0</title>
<mediaobject>
<imageobject role="html">
<imagedata width="&screenshotwidth;%" scalefit="1" align="center" fileref="images/screenshot_web_lindat_pdt30_query_PRED_result.png"
format="PNG" />
</imageobject>
</mediaobject>
</figure>
( run in 1.325 second using v1.01-cache-2.11-cpan-364913b4093 )