2007/2/16, Jos van den Oever <<a href="mailto:jvdoever@gmail.com">jvdoever@gmail.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2007/2/15, Mikkel Kamstrup Erlandsen <<a href="mailto:mikkel.kamstrup@gmail.com">mikkel.kamstrup@gmail.com</a>>:<br>> 2007/2/15, Joe Shaw <<a href="mailto:joeshaw@novell.com">joeshaw@novell.com</a>>:<br>>
<br>> > Hi,<br>> ><br>> > Jos van den Oever wrote:<br>> > > Shouldnt we start sharing parts of the code required to implement<br>> > > wasabi? I'm mainly thinking about a struct in c representing a parsed
<br>> > > wasabi query and functions to de- and serialize these from either the<br>> > > xml or the user language.<br>> > ><br>> > > This should be no more than a couple of files that we can put in an
<br>> > > xsd svn. Requirements to make it palletable for most: few deps and<br>> > > written in c. For C++ fans we can add a small wrapper.<br>> > ><br>> > > What do you think?<br>> >
<br>> > Definitely. For the spec to be useful (particularly the query language<br>> > part) we need either a reference implementation or a conformance test<br>> > (preferably both).<br>><br>><br>> Agreed. I have been thinking about doing something in Python, but held back
<br>> a little to anticipate where a hand was needed (fx. glib bindings). However<br>> several people have already showed interest in glib bindings so I figure I<br>> can do something else (sorry qt guys - you qouldn't like my c++ :-D).
<br>><br>> What requirements would a reference implementation have? I'm thinking<br>> something like 30-50 files with a priori known metadata hardcoded into an<br>> "index" and small wasabi-compliant "search engine" that searches this index.
<br>> To go with the bundle there could be a collection of queries with matching<br>> results. Given this it would be trivial to write a Python script that did a<br>> conformance test (on a search engine that had indexed the given files - and
<br>> only them).<br><br>I was thinking about a small c file that implements serializing and<br>deserializing the query language in xml and user language. So no glib<br>and no Qt. That way we can all use it. Starting the complete search is
<br>too much. Let's see if we can pull even serializing and deserializing<br>off decently. Emphasis should be on the right struct / class for this.</blockquote><div><br>I agree - a fast reference implementation in C could be a good idea. We are going to need a sax parser though. I don't know how big the glib one is - maybe we can rip it out...
<br><br>Well, also if we store (query,result) tuples beforehand, then there wont be any big need for a real service. However a Python script that "unit tests" the service against the known metadata would be useful (or s/Python/Java/ - - where have I seen that before Jos :-D).
<br></div><br>Cheers,<br>Mikkel<br></div>