<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:818349710;
        mso-list-type:hybrid;
        mso-list-template-ids:-699082818 134807567 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks, that&#8217;s clearer.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><span style="mso-list:Ignore">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">This has nothing to do with one field vs. another on the form. This has to do with the fact that the text element is given special treatment in CQPweb,
 namely (a) it&#8217;s compulsory, (b) it&#8217;s used as the unit for metadata and for query restriction (also for subcorpus creation). The text element is the only one that is treated this way. Thus, necessarily, if you want to introduce text metadata via XML, you have
 to introduce it at the level of the text (or higher) in the XML hierarchy. Since the text is the unit of metadata, nothing can be treated as metadata if it has more than one value within the scope of a single text.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1">
<![if !supportLists]><b><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><span style="mso-list:Ignore">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;
</span></span></span></b><![endif]><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">No, that would make no difference at all. It doesn&#8217;t matter how the corpus has been created,
<b>CQPweb cannot currently perform restrictions or handle metadata for any unit other than &#8220;text&#8221;.<o:p></o:p></b></span></p>
<p class="MsoListParagraph" style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><span style="mso-list:Ignore">3.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Only items of metadata that have been designated as &#8220;classifications&#8221; are available for use in restricted queries. You designate this on the form
 for creating metadata (whether from a file or form the XML). There is an entry on each line with a dropdown which has two options: &#8220;classification&#8221; and &#8220;free text&#8221;. Only the ones specified as &#8220;classification&#8221; are available in the Restricted Query screen, and
 only the one selected as the &#8220;primary classification&#8221; is available in the shortcut dropdown on the Standard Query screen. BUT NOTE that the contents of a &#8220;classification field&#8221; must be a single &#8220;handle&#8221; consisting only of alphanumeric characters.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it]
<b>On Behalf Of </b>Andres Chandia<br>
<b>Sent:</b> 04 January 2014 16:07<br>
<b>To:</b> Open source development of the Corpus WorkBench<br>
<b>Subject:</b> Re: [CWB] problem at managing corpus metadata<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">1. Do you remember that, following your instructions, I put in the first field of s-attributes (XML elements): &quot;text:0&#43;id&#43;name&#43;lang&#43;season&quot; then in the second field I put &quot;s:0&#43;id&#43;type&quot;, but this didn't work, so you use first field but what
 about the next ones, can you use them some way, how?<br>
<br>
2. You understood what was my intention when using the second field explained at previous point, can this intention be achieved indexing the coprpus via cwb by command line and then uploaded to the cqp interface through the &quot;Install a corpus pre-indexed in
 CWB&quot;<br>
<br>
3. Once indexed the corpus, at the standard query there is an option that says: &quot;Restriction:&quot; but it shows no option to me, how should this option be available, what do I need to do to put some restrictions in here?<br>
<br>
I hope this is clearer than before, if not, I will try it again....<br>
<br>
thanks<br>
<br>
<br>
El Sab, 4 de Enero de 2014, 16:46, Hardie, Andrew escribió:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">I&#8217;m sorry I don&#8217;t understand the questions. Can you rephrase/elaborate.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">best</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrew.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><strong><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></strong><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
 cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it] <strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">On Behalf Of
</span></strong>Andres Chandia<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Sent:</span></strong> 04 January 2014 15:31<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">To:</span></strong> Open source development of the Corpus WorkBench<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Subject:</span></strong> Re: [CWB] problem at managing corpus metadata</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Some questions then...<br>
<br>
1. if you have to index the metadata as an s-attribute in only one field when you index a corpus, what are the rest of the fields for, how and what for can they be used to?<br>
<br>
2. if you index corpus via command line with cwb would the s-attributes be availabe in the way I intended to index them, the way that you say is not available yet by cqp interface?<br>
<br>
3. at the standard query there is the restriction option, but this one does not get activated when the corpora is indexed, how shoul I proceed at indexing process to activate this?<br>
<br>
Thanks<br>
<br>
<br>
El Mar, 31 de Diciembre de 2013, 20:50, Hardie, Andrew escribió:<o:p></o:p></p>
<div>
<div>
<p class="MsoListParagraph" style="margin-left:36.0pt;text-indent:-18.0pt"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">1.</span><span style="font-size:7.0pt;color:#1F497D">
</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Yes, of course, because metadata works at the text level. So if you index text metadata from something on the
<s>element, then naturally only 1 element per text will actually have any effect. There is a warning in the interface to this effect:</s></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt">
<s><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">The following XML annotations are indexed in the corpus.</span></s><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt">
<s><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Select the ones which you wish to use as
<strong><u><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">text-metadata</span></u></strong> fields.</span></s><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt">
<s><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Note: you must only select annotations that occur
<strong><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">at or above</span></strong></span></s><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt">
<s><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">the level of in the XML hierarchy of your corpus</span></s><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><s><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">What you seem to actually want is to be able to restrict your queries to particular elements depending
 on their attributes. CQPweb can&#8217;t do this. Queries can only be restricted to particular *<strong><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">texts</span></strong>*, not to sub-parts of texts. XML Restricted Queries is a much-requested feature and one
 I hope to be able to implement once the database reorganisation in v3.1 is done. But it can&#8217;t be done
<em><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">now</span></em>.</span></s><o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:36.0pt;text-indent:-18.0pt"><s><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">2.</span></s><s><span style="font-size:7.0pt;color:#1F497D">
</span></s><s><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Either switch your checkout over from the trunk to the URL of the 3.0 branch, or just manually copy the code available in the download tarball.</span></s><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><s><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">best</span></s><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><s><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrew.</span></s><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><strong><s><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></s></strong><s><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
 Andres Chandia [<a href="mailto:andres@chandia.net" target="_blank" title="Este enlace externo se abrirá en una nueva ventana">mailto:andres@chandia.net</a>]
<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Sent:</span></strong> 31<br>
December 2013 19:32<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">To:</span></strong> Hardie, Andrew<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Cc:</span></strong> Open source development of the Corpus WorkBench<br>
<strong><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Subject:</span></strong> RE: [CWB] problem at managing corpus metadata</span></s><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><s>Thanks, I turned back to the previous one that I had CQPweb v3.0.7 © 2008-2012 and all went well<br>
except for this:<br>
<br>
1. I have introduced at the second line s-attributes this way: s:0&#43;id&#43;type, then at the restricted query for the s_id it only appears the data for S1 and S3, but not for S2 and S4, if you see the corpus text_1 owns S1 and S2, text_2 owns S3 and S4, so only
 appears the first S of each text<br>
<br>
<br>
And I take the opportunity to ask you how do I upgrade with svn to the version you are recommending
<br>
<br>
<br>
Thanks, and If you don't answer right now I would understand it, Have a Great New Year's Eve!!!</s><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br>
<br>
<br>
_______________________<br>
andrés chandía<br>
<a href="http://www.chandia.net" target="_blank" title="Este enlace externo se abrirá en una nueva
ventana"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none">[IMAGE REMOVED]</span></a><br>
administrador de<br>
<a href="http://parles.upf.edu" target="_blank" title="Este enlace externo se
abrirá en una nueva ventana">parles.upf.edu</a><br>
<a href="http://psicoaching.net" target="_blank" title="Este enlace externo se abrirá
en una nueva ventana">psicoaching.net</a><br>
<a href="http://koyaktumapuche.net" target="_blank" title="Este enlace externo se abrirá en una nueva ventana">mapuche koyaktu</a><br>
<a href="http://corporacionkoyaktu.net" target="_blank" title="Este enlace externo se
abrirá en una nueva ventana">ong mapuche koyaktu</a><br>
<span style="font-size:18.0pt;font-family:Webdings;color:#4F6228">P </span><span style="font-size:10.0pt;color:#4F6228">No imprima innecesariamente. ¡Cuide el medio ambiente!</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<br>
_______________________<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;andrés chandía<br>
<a href="http://www.chandia.net" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1025" src="cid:~WRD071.jpg" alt="Image removed by sender. chandia.net"></span></a><a href="https://twitter.com/andreschandia" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1026" src="cid:~WRD071.jpg" alt="Image removed by sender."></span></a><br>
administrador de<br>
<a href="http://parles.upf.edu">parles.upf.edu</a><br>
<a href="http://psicoaching.net">psicoaching.net</a><br>
<a href="http://koyaktumapuche.net">mapuche koyaktu</a><br>
<a href="http://corporacionkoyaktu.net">ong mapuche koyaktu</a><br>
<span style="font-size:18.0pt;font-family:Webdings;color:#4F6228">P </span><span style="font-size:10.0pt;color:#4F6228">No imprima innecesariamente. ¡Cuide el medio ambiente!</span><o:p></o:p></p>
</div>
</body>
</html>