test for rdf.postgresql and rdf.mysql and compile accordingly