Class AbstractLuceneSailTest
- java.lang.Object
-
- org.eclipse.testsuite.rdf4j.sail.lucene.AbstractLuceneSailTest
-
public abstract class AbstractLuceneSailTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static IRI
CONTEXT_1
static IRI
CONTEXT_2
static IRI
CONTEXT_3
static IRI
PREDICATE_1
static IRI
PREDICATE_2
static IRI
PREDICATE_3
static String
QUERY_STRING
protected Repository
repository
protected LuceneSail
sail
static IRI
SUBJECT_1
static IRI
SUBJECT_2
static IRI
SUBJECT_3
static IRI
SUBJECT_4
static IRI
SUBJECT_5
org.junit.rules.Timeout
timeout
protected static ValueFactory
vf
-
Constructor Summary
Constructors Constructor Description AbstractLuceneSailTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
assertNoQueryResult(String literal)
protected void
assertQueryResult(String literal, IRI 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
testMultithreadedAdd()
void
testNullContextHandling()
we experienced problems with the NULL context and lucenesail in August 2008void
testPredicateLuceneQueries()
void
testPropertyVar()
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()
-
-
-
Field Detail
-
timeout
public org.junit.rules.Timeout timeout
-
vf
protected static final ValueFactory vf
-
QUERY_STRING
public static final String QUERY_STRING
-
SUBJECT_1
public static final IRI SUBJECT_1
-
SUBJECT_2
public static final IRI SUBJECT_2
-
SUBJECT_3
public static final IRI SUBJECT_3
-
SUBJECT_4
public static final IRI SUBJECT_4
-
SUBJECT_5
public static final IRI SUBJECT_5
-
CONTEXT_1
public static final IRI CONTEXT_1
-
CONTEXT_2
public static final IRI CONTEXT_2
-
CONTEXT_3
public static final IRI CONTEXT_3
-
PREDICATE_1
public static final IRI PREDICATE_1
-
PREDICATE_2
public static final IRI PREDICATE_2
-
PREDICATE_3
public static final IRI PREDICATE_3
-
sail
protected LuceneSail sail
-
repository
protected Repository repository
-
-
Method Detail
-
configure
protected abstract void configure(LuceneSail sail) throws IOException
- Throws:
IOException
-
tearDown
public void tearDown() throws IOException, RepositoryException
- Throws:
IOException
RepositoryException
-
testRegularQuery
public void testRegularQuery() throws RepositoryException, MalformedQueryException, QueryEvaluationException
-
testComplexQueryOne
public void testComplexQueryOne() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testComplexQueryTwo
public void testComplexQueryTwo() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testMultipleLuceneQueries
public void testMultipleLuceneQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testPredicateLuceneQueries
public void testPredicateLuceneQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testSnippetQueries
public void testSnippetQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testSnippetLimitedToPredicate
public void testSnippetLimitedToPredicate() throws MalformedQueryException, RepositoryException, QueryEvaluationException
Test if the snippets do not accidentially come from the "text" field while we actually expect them to come from the predicate field.
-
testGraphQuery
public void testGraphQuery() throws QueryEvaluationException, MalformedQueryException, RepositoryException
-
testQueryWithSpecifiedSubject
public void testQueryWithSpecifiedSubject() throws RepositoryException, MalformedQueryException, QueryEvaluationException
-
testUnionQuery
public void testUnionQuery() throws RepositoryException, MalformedQueryException, QueryEvaluationException
-
testConcurrentReadingAndWriting
public void testConcurrentReadingAndWriting() throws Exception
- Throws:
Exception
-
testNullContextHandling
public void testNullContextHandling() throws Exception
we experienced problems with the NULL context and lucenesail in August 2008- Throws:
Exception
-
testFuzzyQuery
public void testFuzzyQuery() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testPropertyVar
public void testPropertyVar() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testMultithreadedAdd
public void testMultithreadedAdd() throws InterruptedException
- Throws:
InterruptedException
-
assertQueryResult
protected void assertQueryResult(String literal, IRI predicate, Resource resultUri) throws Exception
- Throws:
Exception
-
-