1. Ok, just to be clear:<br /><span class="Code">&lt;corpus id=&quot;1&quot;&gt;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;text id=&quot;1&quot;&gt;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;s
id=&quot;1&quot;&gt;<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
bla<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
bla<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/s&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/text&gt;<br
/>&lt;/corpus&gt;</span><br /><br />in this case the higher level is <span
class="Code">&lt;corpus&gt;</span> or <span class="Code">&lt;s&gt;</span>, I think is <span
class="Code">&lt;corpus&gt;</span> so I can only introduce text metadata at <span
class="Code">&lt;text&gt;</span> or <span class="Code">&lt;corpus&gt;</span> levels, if so,
what could I include at <span class="Code">&lt;corpus&gt;</span> level and how?<br /><br />2.
ok<br /><br />3. when indexing I did declare at &quot;Create metadata table from corpus XML
annotations&quot; the metadata as classification giving one of them the status of primary, but
anyway I don't have the restrictions available at the standar query even when they do are
present at &quot;restricted query&quot;<br /><br /><br />thanks again<br /><br />El Sab, 4 de
Enero de 2014, 17:24, Hardie, Andrew escribi&oacute;:<br /> <!-- begin sanitized html -->    
<style type="text/css">-></style>
<div class="bodyclass">
<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&rsquo;s clearer.</span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1"
class="MsoListParagraph"> <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;">   
</span></span></span><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&rsquo;s compulsory, (b)
it&rsquo;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.</span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1"
class="MsoListParagraph"> <strong><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;">   
</span></span></span></strong><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&rsquo;t matter how the corpus has been created,
<strong>CQPweb cannot currently perform restrictions or handle metadata for any unit other
than &ldquo;text&rdquo;.</strong></span></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1"
class="MsoListParagraph"> <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;">   
</span></span></span><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 &ldquo;classifications&rdquo; 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:
&ldquo;classification&rdquo; and &ldquo;free text&rdquo;. Only the ones specified as
&ldquo;classification&rdquo; are available in the Restricted Query screen, and  only the one
selected as the &ldquo;primary classification&rdquo; is available in the shortcut dropdown on
the Standard Query screen. BUT NOTE that the contents of a &ldquo;classification field&rdquo;
must be a single &ldquo;handle&rdquo; consisting only of alphanumeric characters.</span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">best</span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">
</span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrew.</span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">
</span></p>
<p class="MsoNormal"><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>On Behalf Of
</strong>Andres Chandia<br /> <strong>Sent:</strong> 04 January 2014 16:07<br />
<strong>To:</strong> Open source development of the Corpus WorkBench<br />
<strong>Subject:</strong> Re: [CWB] problem at managing corpus metadata</span></p>
<p class="MsoNormal"> </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+id+name+lang+season&quot; then in the
second field I put &quot;s:0+id+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&oacute;:</p>
<div>
<div>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto" class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">I&rsquo;m
sorry I don&rsquo;t understand the questions. Can you rephrase/elaborate.</span></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto" class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">best</span></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto" class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrew.</span></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto" class="MsoNormal"><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></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto" class="MsoNormal">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&oacute;:</p>
<div>
<div>
<p style="margin-left:36.0pt;text-indent:-18.0pt" class="MsoListParagraph"><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></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt"
class="MsoNormal"> <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></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt"
class="MsoNormal"> <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></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt"
class="MsoNormal"> <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></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt"
class="MsoNormal"> <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></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto" class="MsoNormal"><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&rsquo;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&rsquo;t be done
<em><span
style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">now</span></em>.</span></s></p>
<p style="margin-left:36.0pt;text-indent:-18.0pt" class="MsoListParagraph"><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></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto" class="MsoNormal"><s><span
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">best</span></s></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto" class="MsoNormal"><s><span
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrew.</span></s></p>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"
class="MsoNormal"><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 target="_blank" title="Este enlace externo se abrirá en una nueva ventana"
href="mailto:andres@chandia.net">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></p>
<p style="mso-margin-top-alt:auto;margin-bottom:12.0pt" class="MsoNormal"><s>Thanks, I turned
back to the previous one that I had CQPweb v3.0.7 &copy; 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+id+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></p>
</div>
</div>
<p style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto" class="MsoNormal"><br /> <br />
<br /> _______________________<br /> andr&eacute;s chand&iacute;a<br /> <a target="_blank"
title="Este enlace externo se abrirá en una nueva ventana" href="http://www.chandia.net"><span
style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none">[IMAGE
REMOVED]</span></a><br /> administrador de<br /> <a target="_blank" title="Este enlace externo
se abrirá en una nueva ventana" href="http://parles.upf.edu">parles.upf.edu</a><br /> <a
target="_blank" title="Este enlace externo se abrirá en una nueva ventana"
href="http://psicoaching.net">psicoaching.net</a><br /> <a target="_blank" title="Este enlace
externo se abrirá en una nueva ventana" href="http://koyaktumapuche.net">mapuche
koyaktu</a><br /> <a target="_blank" title="Este enlace externo se abrirá en una nueva
ventana" 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. &iexcl;Cuide el medio
ambiente!</span></p>
</div>
</div>
<p class="MsoNormal"><br /> <br /> <br /> _______________________<br />            
andr&eacute;s chand&iacute;a<br /> <a title="Este enlace externo se abrirá en una nueva
ventana" target="_blank" href="http://www.chandia.net"><span style="border:solid windowtext
1.0pt;padding:0cm;text-decoration:none">[IMAGE REMOVED]</span></a><br /> administrador de<br /> <a title="Este enlace externo se
abrirá en una nueva ventana" target="_blank"
href="http://parles.upf.edu">parles.upf.edu</a><br /> <a title="Este enlace externo se abrirá
en una nueva ventana" target="_blank" href="http://psicoaching.net">psicoaching.net</a><br />
<a title="Este enlace externo se abrirá en una nueva ventana" target="_blank"
href="http://koyaktumapuche.net">mapuche koyaktu</a><br /> <a title="Este enlace externo se
abrirá en una nueva ventana" target="_blank" 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. &iexcl;Cuide
el medio ambiente!</span></p>
</div>
</div>
<!-- end sanitized html --> <br /><br /><br />_______________________<br
/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;andr&eacute;s
chand&iacute;a<br /><a target="_blank" href="http://www.chandia.net"><img border="0"
alt="chandia.net" src="http://www.chandia.net/sites/default/files/images/chandia.netd.png"
/></a><a target="_blank" href="https://twitter.com/andreschandia"><img
src="http://www.upf.edu/universitat/_img/ico_tw.png" alt="" /></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:
18pt; color: rgb(79, 98, 40); font-family: Webdings;">P </span><span style="font-size: 10pt;
color: rgb(79, 98, 40);">No imprima innecesariamente. &iexcl;Cuide el medio ambiente!</span>