[CWB] cqpserver, CQI and C#

Yannick Versley yversley at gmail.com
Tue Aug 3 09:42:30 CEST 2010


Hi,

The CQi spec just defines the binary protocol used by CQi. To make it work,
you need to add code
that makes a socket to cqpserver, writes the right messages, and
serializes/deserializes the data
that is passed around.
To see an example for this, see the java code at
http://textometrie.svn.sourceforge.net/viewvc/textometrie/trunk/Toolbox/0.4.7/org.textometrie.toolbox/src/java/org/textometrie/searchengine/cqp/CqiClient.java?revision=1167&view=markup
Javadoc is at:
http://textometrie.sourceforge.net/doc/Java/org/textometrie/searchengine/cqp/CqiClient.html

Best,
Yannick


On Mon, Aug 2, 2010 at 8:53 PM, Misko Obrenovic <dartonja at gmail.com> wrote:

> Hi,
>
> I'm using CWB for the past 7 years, and recently I've discovered the new
> site and this mailing list. You're doing a great job. I'm interested now in
> CWB on Windows, so I downloaded  and tested the cwb-3.1.0-windows-i586.zip.
> I found a new things like cqpserver and CQi, and started to look more
> information about them. I saw that textometrie project uses it, I read the
> cqi_tutorial.pdf, then I tried to modify CQi_spec/MakeInterfaces.perl and
> generate
> CQi specification for C# using settings similiar to those for Java. I got a
> C# class but I don't know how to use it right. It's a bunch od constants'
> definitions (readonly static members to be more precised). I didn't
> understand how these constants can be used as methods, but I tried anyway,
> testing
> CTRL_CONNECT("anonymous", "");
> and, of course, got the message that "it can't be invoked". So, I would be
> much grateful if someone could explain me, or point me some existing
> documentation that I missed (a short concrete example in C or Java about how
> to communicate to cqpserver from external application would be the best).
>
> There's another thing I want to consult you, but I leave it for a separate
> message.
>
> Thanks in advance for your help,
> Misko
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20100803/e272b420/attachment.htm


More information about the CWB mailing list