public abstract class AbstractLuceneSailTest extends Object
Modifier and Type | Field and Description |
---|---|
protected RepositoryConnection |
connection |
static URI |
CONTEXT_1 |
static URI |
CONTEXT_2 |
static URI |
CONTEXT_3 |
static URI |
PREDICATE_1 |
static URI |
PREDICATE_2 |
static URI |
PREDICATE_3 |
static String |
QUERY_STRING |
protected Repository |
repository |
protected LuceneSail |
sail |
static URI |
SUBJECT_1 |
static URI |
SUBJECT_2 |
static URI |
SUBJECT_3 |
static URI |
SUBJECT_4 |
static URI |
SUBJECT_5 |
Constructor and Description |
---|
AbstractLuceneSailTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertNoQueryResult(String literal) |
protected void |
assertQueryResult(String literal,
URI predicate,
Resource resultUri) |
protected abstract void |
configure(LuceneSail sail) |
void |
setUp() |
void |
tearDown() |
void |
testComplexQueryOne() |
void |
testComplexQueryTwo() |
void |
testConcurrentReadingAndWriting() |
void |
testContextHandling() |
void |
testFuzzyQuery() |
void |
testGraphQuery() |
void |
testMultipleLuceneQueries() |
void |
testNullContextHandling()
we experienced problems with the NULL context and lucenesail in August
2008
|
void |
testPredicateLuceneQueries() |
void |
testQueryWithSpecifiedSubject() |
void |
testRegularQuery() |
void |
testReindexing() |
void |
testSnippetLimitedToPredicate()
Test if the snippets do not accidentially come from the "text" field while
we actually expect them to come from the predicate field.
|
void |
testSnippetQueries() |
void |
testTriplesStored() |
void |
testUnionQuery() |
public static final String QUERY_STRING
public static final URI SUBJECT_1
public static final URI SUBJECT_2
public static final URI SUBJECT_3
public static final URI SUBJECT_4
public static final URI SUBJECT_5
public static final URI CONTEXT_1
public static final URI CONTEXT_2
public static final URI CONTEXT_3
public static final URI PREDICATE_1
public static final URI PREDICATE_2
public static final URI PREDICATE_3
protected LuceneSail sail
protected Repository repository
protected RepositoryConnection connection
protected abstract void configure(LuceneSail sail) throws IOException
IOException
public void setUp() throws IOException, RepositoryException
IOException
RepositoryException
public void tearDown() throws IOException, RepositoryException
IOException
RepositoryException
public void testRegularQuery() throws RepositoryException, MalformedQueryException, QueryEvaluationException
public void testComplexQueryOne() throws MalformedQueryException, RepositoryException, QueryEvaluationException
public void testComplexQueryTwo() throws MalformedQueryException, RepositoryException, QueryEvaluationException
public void testMultipleLuceneQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException
public void testPredicateLuceneQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException
public void testSnippetQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException
public void testSnippetLimitedToPredicate() throws MalformedQueryException, RepositoryException, QueryEvaluationException
public void testGraphQuery() throws QueryEvaluationException, MalformedQueryException, RepositoryException
public void testQueryWithSpecifiedSubject() throws RepositoryException, MalformedQueryException, QueryEvaluationException
public void testUnionQuery() throws RepositoryException, MalformedQueryException, QueryEvaluationException
public void testConcurrentReadingAndWriting() throws Exception
Exception
public void testNullContextHandling() throws Exception
Exception
public void testFuzzyQuery() throws MalformedQueryException, RepositoryException, QueryEvaluationException
protected void assertQueryResult(String literal, URI predicate, Resource resultUri) throws Exception
Exception
Copyright © 2001-2016 Aduna. All Rights Reserved.