01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.repository.sail;
07:
08: import java.io.File;
09:
10: import info.aduna.io.FileUtil;
11:
12: import org.openrdf.repository.RDFSchemaRepositoryConnectionTest;
13: import org.openrdf.repository.Repository;
14: import org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencer;
15: import org.openrdf.sail.nativerdf.NativeStore;
16:
17: public class RDFSchemaNativeRepositoryConnectionTest extends
18: RDFSchemaRepositoryConnectionTest {
19:
20: private File dataDir;
21:
22: public RDFSchemaNativeRepositoryConnectionTest(String name) {
23: super (name);
24: }
25:
26: @Override
27: protected Repository createRepository() throws Exception {
28: dataDir = FileUtil.createTempDir("nativestore");
29: return new SailRepository(new ForwardChainingRDFSInferencer(
30: new NativeStore(dataDir, "spoc")));
31: }
32: }
|