private String complexQuery;
protected void setUp() throws Exception {
mapModel = ModelFactory.createDefaultModel();
mapModel.read(D2RQTestSuite.ISWC_MAP, "http://test/", "TURTLE");
MapParser parser = new MapParser(mapModel, null);
databases = parser.parse().databases();
firstDatabase = (Database)databases.iterator().next();
simplestQuery = "SELECT 1;";
// mediumQuery = "SELECT PaperID from papers";
mediumQuery = "SELECT DISTINCT papers.PaperID FROM rel_paper_topic, papers, topics WHERE papers.PaperID=rel_paper_topic.PaperID AND rel_paper_topic.TopicID=topics.TopicID AND topics.TopicID=3 AND rel_paper_topic.RelationType = 1 AND papers.Publish = 1;";
complexQuery = "SELECT T0_Papers.PaperID, T0_Persons.URI, T1_Persons.Email, T1_Persons.URI FROM persons AS T1_Persons, papers AS T0_Papers, rel_person_paper AS T0_Rel_Person_Paper, persons AS T0_Persons WHERE T0_Persons.PerID=T0_Rel_Person_Paper.PersonID AND T0_Papers.PaperID=T0_Rel_Person_Paper.PaperID AND T0_Papers.Publish = 1 AND T0_Persons.URI=T1_Persons.URI AND (NOT (CONCAT('http://www.conference.org/conf02004/paper#Paper' , CAST(T0_Papers.PaperID AS char) , '') = T0_Persons.URI));";