Skip to content

Commit

Permalink
backing to embedded graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Neubauer committed Oct 6, 2011
1 parent c6f80ea commit 063cbe8
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.util.HashMap;
import java.util.Map;

import org.junit.Ignore;
import org.junit.Test;
import org.openrdf.query.BindingSet;
import org.openrdf.query.QueryEvaluationException;
Expand All @@ -40,7 +41,6 @@
import org.openrdf.sail.SailConnection;

import com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jGraph;
import com.tinkerpop.blueprints.pgm.impls.neo4jbatch.Neo4jBatchGraph;
import com.tinkerpop.blueprints.pgm.oupls.sail.GraphSail;

public class BerlinDatasetTest
Expand All @@ -56,7 +56,7 @@ public class BerlinDatasetTest
@Test
public void berlinQuery() throws Exception
{
// loadTriples();
loadTriples();
Sail sail = new GraphSail( new Neo4jGraph( dB_DIR ) );
sail.initialize();
Map<String, String> queries = new HashMap<String, String>();
Expand Down Expand Up @@ -321,11 +321,12 @@ public void berlinQuery() throws Exception
}

@Test
@Ignore
public void loadTriples() throws Exception
{
Neo4jBatchGraph neo = new Neo4jBatchGraph( dB_DIR+"_batch" );
// Neo4jGraph neo = new Neo4jGraph( dB_DIR+"_embedded" );
// neo.setMaxBufferSize( 20000 );
// Neo4jBatchGraph neo = new Neo4jBatchGraph( dB_DIR+"_batch" );
Neo4jGraph neo = new Neo4jGraph( dB_DIR );
neo.setMaxBufferSize( 20000 );
Sail sail = new GraphSail( neo );
sail.initialize();
SailRepositoryConnection connection;
Expand Down

0 comments on commit 063cbe8

Please sign in to comment.