@@ -0,0 +1,1568 @@
+package org.semanticweb.drew.rl.sparql;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Test;%0Aimport org.semanticweb.drew.dlprogram.format.DLProgramStorer;%0Aimport org.semanticweb.drew.dlprogram.format.DLProgramStorerImpl;%0Aimport org.semanticweb.drew.dlprogram.format.RLProgramStorerImpl;%0Aimport org.semanticweb.drew.dlprogram.model.Clause;%0Aimport org.semanticweb.drew.el.reasoner.DReWELManager;%0Aimport org.semanticweb.drew.el.reasoner.NamingStrategy;%0Aimport org.semanticweb.drew.ldlp.reasoner.LDLPQueryCompiler;%0Aimport org.semanticweb.drew.rl.sparql.SparqlCompiler;%0A%0Aimport com.hp.hpl.jena.query.Query;%0Aimport com.hp.hpl.jena.query.QueryFactory;%0Aimport com.hp.hpl.jena.query.Syntax;%0A%0Apublic class SparqlCompilerTest %7B%0A%0A    @Test%0A    public void test() %7B%0A        String prefixRDF = %22PREFIX rdf: %3Chttp://www.w3.org/1999/02/22-rdf-syntax-ns#%3E %22;%0A        String queryText = prefixRDF + %22PREFIX : %3C#%3E%22%0A                + %22SELECT ?X ?Y %22 + %22WHERE %7B%22%0A                + %22?X rdf:type :preOnt1____ORDERS_LineItemQuantity .%22%0A                + %22?X :preOnt1____hasValue ?Y %22 + %22%7D%22;%0A%0A        Query query = QueryFactory.create(queryText, Syntax.syntaxARQ);%0A        SparqlCompiler sparqlCompiler = new SparqlCompiler();%0A%0A        Clause drewQuery = sparqlCompiler.compileQuery(query);%0A        LDLPQueryCompiler queryCompiler = new LDLPQueryCompiler();%0A        Clause drewRLQuery = queryCompiler.compileQuery(drewQuery);%0A        DLProgramStorer storer = new RLProgramStorerImpl();%0A        storer.store(drewQuery, System.out);%0A        storer.store(drewRLQuery, System.out);%0A    %7D%0A%0A%7D%0A

add a sparql compiler test