<div dir="ltr">Bumped into an interesting mail post and I&#39;ve put in <b>news:0+title+source+date</b>, <b>s</b> and <b>p:0+id </b>now as s-attributes. Seems to be working now. Could anyone confirm I&#39;m doing this right?<div>

<br></div><div>Thanks,</div><div>Kurt</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 26, 2013 at 7:41 PM, Kurt Sultana <span dir="ltr">&lt;<a href="mailto:kurtanatlus@gmail.com" target="_blank">kurtanatlus@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi, <br><br>I&#39;ve dug up a bit and have come to know that the attributes I mentioned are stored as s-attributes. So, I have this example text:<br>

<br>&lt;news title=&quot;A Thrilling Experience&quot; date=&quot;01/01/2013&quot; source=&quot;<a href="http://www.timesofmalta.com" target="_blank">www.timesofmalta.com</a>&quot;&gt;<br>
&lt;text id=&quot;4&quot;&gt;<br>&lt;p id=&quot;1&quot;&gt;<br>&lt;s&gt;<br>Tick    NN    tick<br>.    SENT     .<br>&lt;/s&gt;<br>&lt;s&gt;<br>A    DT     a<br>clock    NN    clock<br>.    SENT    .<br>&lt;/s&gt;<br>&lt;s&gt;<br>


Tick    VB    tick<br>,    ,    ,<br>tick    VB    tick<br>.    SENT    .<br>&lt;/s&gt;<br>&lt;/p&gt;<br>&lt;/text&gt;<br>&lt;/news&gt;<br><br></div>As s-attributes (XML elements) I put in <b>p</b>, <b>p_id</b>, <b>news</b>, <b>news_title</b>, <b>news_source</b> and <b>news_date</b>. Upon installing the corpus, I select to install metadata via xml annotated within the corpus and select <b>news_title</b>, <b>news_source</b> and <b>news_date</b> however when I click on &quot;Create metadata table from XML using settings above&quot;, I get this error: <br>


<br><p><b>Error message</b></p>
        
        
                
                                **** CQP ERROR ****<br>        CQP Error:<br>                No annotated values for s-attribute ``news_title&#39;&#39; in named query c_M_F_xml<br><br></div><br>I&#39;m not 100% confident of what I&#39;m doing since it&#39;s my first time, so I might have easily misunderstood something. What am I doing wrong?<br>


<br></div>Many thanks in advance,<br></div>Kurt<div><div class="h5"><br><div><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 24, 2013 at 10:39 PM, Kurt Sultana <span dir="ltr">&lt;<a href="mailto:kurtanatlus@gmail.com" target="_blank">kurtanatlus@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all, <div><br></div><div>I have a news corpus which I&#39;d like to put in CQPWeb. </div>


<div><br></div><div>I&#39;m currently representing a news text (in Maltese) like this: </div><div>
<div>&lt;text id=&quot;1&quot;&gt;</div><div>&lt;s&gt;</div><div>L<span style="white-space:pre-wrap">        </span>NP<br></div><div>-<span style="white-space:pre-wrap">        </span>PUN</div><div>armi<span style="white-space:pre-wrap">        </span>VV</div>



<div>nxtraw<span style="white-space:pre-wrap">        </span>VV</div><div>separatament<span style="white-space:pre-wrap">        </span>MV</div><div>minn<span style="white-space:pre-wrap">        </span>PRP</div><div>l-<span style="white-space:pre-wrap">        </span>DDC</div>



<div>istess<span style="white-space:pre-wrap">        </span>MJ</div><div>kollezzjonista<span style="white-space:pre-wrap">        </span>NN</div><div>anonimu<span style="white-space:pre-wrap">        </span>NN</div><div>minn<span style="white-space:pre-wrap">        </span>PRP</div>



<div>Texas<span style="white-space:pre-wrap">        </span>NP</div><div>.<span style="white-space:pre-wrap">        </span>PUN</div><div>&lt;/s&gt;</div><div>&lt;s&gt;</div><div>Dan<span style="white-space:pre-wrap">        </span>PD</div>
<div>ifisser<span style="white-space:pre-wrap">        </span>VV</div><div>li<span style="white-space:pre-wrap">        </span>CMP</div><div>l-<span style="white-space:pre-wrap">        </span>DDC</div><div>armi<span style="white-space:pre-wrap">        </span>NN</div>



<div>anke<span style="white-space:pre-wrap">        </span>CC</div><div>wara<span style="white-space:pre-wrap">        </span>PRP</div><div>li<span style="white-space:pre-wrap">        </span>CMP</div><div>nbiegħu<span style="white-space:pre-wrap">        </span>VV</div>



<div>se<span style="white-space:pre-wrap">        </span>PAF</div><div>jibqgħu<span style="white-space:pre-wrap">        </span>VV</div><div>flimkien<span style="white-space:pre-wrap">        </span>MV</div><div>.<span style="white-space:pre-wrap">        </span>PUN</div>



<div>&lt;/s&gt;</div><div>&lt;/text&gt;</div><div><br></div><div>A news text, apart from text, usually contains the title and date of publication. How could I include this information in the above, for example? Would these take the form of attributes? And could I run queries against these new attributes?<br>



</div><div><br></div><div>Thanks in advance,<br></div><div>Kurt</div></div></div>
</blockquote></div><br></div></div></div></div></div></div></div></div>
</blockquote></div><br></div>