01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.nativerdf;
07:
08: import java.io.File;
09: import java.io.IOException;
10:
11: import junit.framework.Test;
12: import junit.framework.TestCase;
13:
14: import info.aduna.io.FileUtil;
15:
16: import org.openrdf.sail.InferencingTest;
17: import org.openrdf.sail.Sail;
18: import org.openrdf.sail.SailException;
19: import org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencer;
20:
21: public class NativeStoreInferencingTest extends TestCase {
22:
23: private static File dataDir;
24:
25: public static Test suite() throws SailException, IOException {
26: dataDir = FileUtil.createTempDir("nativestore");
27: Sail sailStack = new NativeStore(dataDir, "spoc,posc");
28: sailStack = new ForwardChainingRDFSInferencer(sailStack);
29: return InferencingTest.suite(sailStack);
30: }
31:
32: @Override
33: protected void finalize() throws Throwable {
34: if (dataDir != null) {
35: FileUtil.deleteDir(dataDir);
36: dataDir = null;
37: }
38:
39: super.finalize();
40: }
41: }
|