Get Version

0.7.1

→ ‘cql-ruby’

What

cql-ruby provides a common querly language (CQL) parser. CQL is a format frequently used in the library world. This parser was translated from the CQL-Java parser written by Mike Taylor available here http://zing.z3950.org/cql/java/

The parser builds a CQL parse tree suitable to serializing to various forms, built in are to_cql, to_xcql and a provisional to_solr

Installing

sudo gem install cql-ruby

The basics

You have been asked to provide SRU access to your website, so that the dynamic and exciting library community can find and promote access to and awareness of your rich content. You discover that in order to support SRU, dang! you need a CQL parser. Well now you have one.

Demonstration of usage

require 'cql_ruby'
parser = CqlRuby::CqlParser.new
puts parser.parse( 'dog and cat' ).to_solr

Forum

http://groups.google.com/group/cql_ruby

How to submit patches

Read the 8 steps for fixing other people’s code and for section 8b: Submit patch to Google Groups, use the Google Group above.

The trunk repository is svn://rubyforge.org/var/svn/cql_ruby/trunk for anonymous access.

License

This code is free to use under the terms of the LGPL license.

Contact

Comments are welcome. Send an email to “Chick” chick at diglib dor org email via the forum

Chick Markley, 16th April 2008
Theme extended from Paul Battley