fix compilation issue
made syntax.Syntax parameterized on Rdf to improve the type inference of projected types -- see http://stackoverflow.com/questions/14721127/how-to-infer-the-right-type-parameter-from-a-projection-type