[CWB] problem at managing corpus metadata

Hardie, Andrew a.hardie at lancaster.ac.uk
Tue Dec 31 20:50:43 CET 2013



1.    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 <s> element per text will actually have any effect. There is a warning in the interface to this effect:
The following XML annotations are indexed in the corpus.
Select the ones which you wish to use as text-metadata fields.
Note: you must only select annotations that occur at or above
the level of <text> in the XML hierarchy of your corpus

What you seem to actually want is to be able to restrict your queries to particular <s> elements depending on their attributes. CQPweb can't do this. Queries can only be restricted to particular *texts*, 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't be done now.


2.    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.
best

Andrew.

From: Andres Chandia [mailto:andres at chandia.net]
Sent: 31 December 2013 19:32
To: Hardie, Andrew
Cc: Open source development of the Corpus WorkBench
Subject: RE: [CWB] problem at managing corpus metadata

Thanks, I turned back to the previous one that I had CQPweb v3.0.7 (c) 2008-2012 and all went well
except for this:

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


And I take the opportunity to ask you how do I upgrade with svn to the version you are recommending


Thanks, and If you don't answer right now I would understand it, Have a Great New Year's Eve!!!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20131231/fbc94557/attachment.html>


More information about the CWB mailing list