Auto-generated SPARQL Algebra expressions for the algebra test suites

Attached is a first shot at a script which serializes parsed SPARQL back
into Algebra expressions similar to the (informative) syntax used in the
specification.  I have only eyeballed it, but some caveats:

* It doesn't serialize FILTERs
* The parser breaks up triple patterns in a BGP into Joins against each
triple pattern

So:  BGP([(?s,?p,?o),(?s2,?p2,?o2)]
becomes: Join(BGP([(?s,?p,?o),]),BGP([(?s2,?p2,?o2)])

Otherwise, everything else should be okay.  I wanted to make sure this
is what we have in mind and that the expressions being generated are not
malformed before turning it loose on the entire test collection.

-- 
Chimezie Ogbuji
Lead Systems Analyst
Thoracic and Cardiovascular Surgery
Cleveland Clinic Foundation
9500 Euclid Avenue/ W26
Cleveland, Ohio 44195
Office: (216)444-8593
ogbujic@ccf.org


===================================




Cleveland Clinic is ranked one of the top 3 hospitals in
America by U.S.News & World Report. Visit us online at
http://www.clevelandclinic.org for a complete listing of
our services, staff and locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.

Received on Tuesday, 10 July 2007 14:37:46 UTC