private ClerezzaBackend backend;
private LDPath<Resource> ldpath;
@BeforeClass
public static void readTestData() throws IOException {
ParsingProvider parser = new JenaParserProvider();
//NOTE(rw): the new third parameter is the base URI used to resolve relative paths
graph = new IndexedMGraph();
InputStream in = ClerezzaBackendTest.class.getClassLoader().getResourceAsStream("testdata.rdf.zip");
assertNotNull(in);
ZipInputStream zipIn = new ZipInputStream(new BufferedInputStream(in));
InputStream uncloseable = new UncloseableStream(zipIn);
ZipEntry entry;
while((entry = zipIn.getNextEntry()) != null){
if(entry.getName().endsWith(".rdf")){
parser.parse(graph,uncloseable, SupportedFormat.RDF_XML,null);
}
}
assertTrue(graph.size() > 0);
zipIn.close();