@Test public void testWriteMultiLabelledRDF() throws Exception { AbstractQuery q = new NativeMultiLabelledQuery(new Dump(), testOutput + "/dumpstore1"); q.addFileToRepository("src/test/resources/unit_test_no_bc.nt", RDFFormat.N3); _assertDump(q, testOutput + "/dumpoutput1", "testWriteMultiLabelledRDF"); }
@Test public void testMultiLabelledWrongClassAtrribute() throws Exception { String[] type = {"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}; AnalyticsClassAttributes.initClassAttributes(type); AbstractQuery q = new NativeMultiLabelledQuery(new Dump(), testOutput + "/dumpstore5"); q.addFileToRepository("src/test/resources/unit_test_encode.nt", RDFFormat.N3); _assertDump(q, testOutput + "/dumpoutput5", "testMultiLabelledWrongClassAtrribute"); }
@Test public void testWriteMultiLabelledDomainRDF() throws Exception { AbstractQuery q = new NativeMultiLabelledQuery(testOutput + "/dumpstore2"); q.setGraph("http://www.testunit.com"); q.addFileToRepository( "src/test/resources/unit_test_no_bc.nt", RDFFormat.N3, NTriplesUtil.parseResource("<http://www.testunit.com>", new MemValueFactory())); _assertDump(q, testOutput + "/dumpoutput2", "testWriteMultiLabelledDomainRDF"); }
@Test public void testMultiLabelledRDFWithMultipleDomain() throws Exception { AbstractQuery q = new NativeMultiLabelledQuery(new Dump(), testOutput + "/dumpstore4"); q.addFileToRepository("src/test/resources/unit_test_multidomain.nt", RDFFormat.N3); _assertDump(q, testOutput + "/dumpoutput4", "testMultiLabelledRDFWithMultipleDomain"); }