package it.unibz.inf.ontop.cli;

import org.junit.Ignore;
import org.junit.Test;

public class OntopOBDAToR2RMLTest {

    @Test
    public void testOntopHelp (){
        String[] argv = {"help", "mapping", "to-r2rml"};
        Ontop.main(argv);
    }

    @Ignore("avoids overwriting exampleBooks.ttl")
    @Test
    public void testOntopOBDAToR2RML (){
        String[] argv = {"mapping", "to-r2rml",
                "-i", "src/test/resources/books/exampleBooks.obda",
                "-t", "src/test/resources/books/exampleBooks.owl"
        };
        Ontop.main(argv);
    }



    @Test
    public void testOntopOBDAToR2RML1 (){
        String[] argv = {"mapping", "to-r2rml",
                "-i", "src/test/resources/templateExample.obda",
                "-t", "src/test/resources/books/exampleBooks.owl",
                "-o", "src/test/resources/output/templateExample.r2rml"
        };
        Ontop.main(argv);
    }

    @Test
    public void testOntopOBDAToR2RML2 (){
        String[] argv = {"mapping", "to-r2rml",
                "-i", "src/test/resources/mapping-northwind.obda",
                "-t", "src/test/resources/mapping-northwind.owl",
                "-o", "src/test/resources/output/mapping-northwind.r2rml"
        };
        Ontop.main(argv);
    }

    @Test
    public void testOntopOBDAToR2RML_NoOntology (){
        String[] argv = {"mapping", "to-r2rml",
                "-i", "src/test/resources/books/exampleBooks.obda",
                "-o", "src/test/resources/output/exampleBooks.r2rml"
        };
        Ontop.main(argv);
    }

    @Test
    public void testOntopOBDAToR2RML3 (){
        String[] argv = {"mapping", "to-r2rml",
                "-i", "src/test/resources/oreda_bootstrapped_mapping.obda",
                "-t", "src/test/resources/oreda_bootstrapped_ontology.owl",
                "-o", "src/test/resources/output/oreda_bootstrapped_mapping.r2rml"
        };
        Ontop.main(argv);
    }

    @Test
    public void testOntopOBDAToR2RML4 (){
        String[] argv = {"mapping", "to-r2rml",
                "-i", "src/test/resources/npd-boolean-mapping.obda",
                "-o", "src/test/resources/output/npd-boolean-mapping.ttl"
        };
        Ontop.main(argv);
    }
}

@@ -1949,292 +1949,7 @@
  %7D%0A%0A
-    @Test%0A    public void testOntopOBDAToR2RML4 ()%7B%0A        String%5B%5D argv = %7B%22mapping%22, %22to-r2rml%22,%0A                %22-i%22, %22src/test/resources/npd-boolean-mapping.obda%22,%0A                %22-o%22, %22src/test/resources/output/npd-boolean-mapping.ttl%22%0A        %7D;%0A        Ontop.main(argv);%0A    %7D
 %0A%7D%0A

remove useless test