Skip to content

Commit

Permalink
Modified examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tinwelint committed Apr 16, 2010
1 parent 9ca8553 commit 038d3e4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/test/java/examples/SiteExamples.java
Expand Up @@ -29,9 +29,9 @@ public static void clear()
}

@Test
// START SNIPPET: rdfStoreUsage
public void rdfStoreUsage()
{
// START SNIPPET: rdfStoreUsage
GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "target/var/examples" );
LuceneIndexService indexService = new LuceneIndexService( graphDb );
RdfStore store = new VerboseQuadStore( graphDb, indexService );
Expand All @@ -53,17 +53,13 @@ public void rdfStoreUsage()
{
System.out.println( "Found statement " + statement );
}

store.shutDown();
indexService.shutdown();
graphDb.shutdown();
// END SNIPPET: rdfStoreUsage
}
// END SNIPPET: rdfStoreUsage

@Test
// START SNIPPET: fulltextIndexing
public void fulltextIndexing()
{
// START SNIPPET: fulltextIndexing
GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "target/var/examples" );
LuceneIndexService indexService = new LuceneIndexService( graphDb );
FulltextIndex fulltextIndex = new SimpleFulltextIndex( graphDb,
Expand All @@ -76,10 +72,10 @@ public void fulltextIndexing()
{
System.out.println( searchHit.getStatement() );
}
// END SNIPPET: fulltextIndexing

store.shutDown();
indexService.shutdown();
graphDb.shutdown();
}
// END SNIPPET: fulltextIndexing
}

0 comments on commit 038d3e4

Please sign in to comment.