|
|
@@ -14,6 +14,7 @@ import org.junit.BeforeClass;
|
|
14
|
14
|
import junit.framework.TestCase;
|
|
15
|
15
|
import r2rml.engine.Configuration;
|
|
16
|
16
|
import r2rml.engine.R2RMLProcessor;
|
|
|
17
|
+import r2rml.function.JSEnv;
|
|
17
|
18
|
|
|
18
|
19
|
/**
|
|
19
|
20
|
* Unit test for testing the functionality of this implementation using an
|
|
|
@@ -102,6 +103,21 @@ public class TestR2RMLF extends TestCase {
|
|
102
|
103
|
target.read("./test/resources/F01.output.ttl");
|
|
103
|
104
|
assertEquals(true, model.difference(target).isEmpty());
|
|
104
|
105
|
assertEquals(true, target.difference(model).isEmpty());
|
|
|
106
|
+
|
|
|
107
|
+ JSEnv.reset();
|
|
|
108
|
+ }
|
|
|
109
|
+
|
|
|
110
|
+ public void testExampleF03() {
|
|
|
111
|
+ Configuration configuration = new Configuration();
|
|
|
112
|
+ configuration.setMappingFile("./test/resources/F03.mapping.ttl");
|
|
|
113
|
+ configuration.setConnectionURL(connectionURL);
|
|
|
114
|
+ R2RMLProcessor engine = new R2RMLProcessor(configuration);
|
|
|
115
|
+ engine.execute();
|
|
|
116
|
+ Model model = engine.getDataset().getDefaultModel();
|
|
|
117
|
+ Model target = ModelFactory.createDefaultModel();
|
|
|
118
|
+ target.read("./test/resources/F03.output.ttl");
|
|
|
119
|
+ assertEquals(true, model.difference(target).isEmpty());
|
|
|
120
|
+ assertEquals(true, target.difference(model).isEmpty());
|
|
105
|
121
|
}
|
|
106
|
122
|
|
|
107
|
123
|
}
|