Class AbstractLuceneSailTest
- java.lang.Object
-
- org.eclipse.testsuite.rdf4j.sail.lucene.AbstractLuceneSailTest
-
-
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
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
-
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
@AfterEach public void tearDown() throws IOException, RepositoryException
- Throws:
IOException
RepositoryException
-
testRegularQuery
@Test public void testRegularQuery() throws RepositoryException, MalformedQueryException, QueryEvaluationException
-
testComplexQueryOne
@Test public void testComplexQueryOne() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testComplexQueryTwo
@Test public void testComplexQueryTwo() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testMultipleLuceneQueries
@Test public void testMultipleLuceneQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testPredicateLuceneQueries
@Test public void testPredicateLuceneQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testSnippetQueries
@Test public void testSnippetQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testSnippetLimitedToPredicate
@Test 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
@Test public void testGraphQuery() throws QueryEvaluationException, MalformedQueryException, RepositoryException
-
testQueryWithSpecifiedSubject
@Test public void testQueryWithSpecifiedSubject() throws RepositoryException, MalformedQueryException, QueryEvaluationException
-
testUnionQuery
@Test public void testUnionQuery() throws RepositoryException, MalformedQueryException, QueryEvaluationException
-
testConcurrentReadingAndWriting
@Test public void testConcurrentReadingAndWriting() throws Exception
- Throws:
Exception
-
testNullContextHandling
@Test public void testNullContextHandling() throws Exception
we experienced problems with the NULL context and lucenesail in August 2008- Throws:
Exception
-
testFuzzyQuery
@Test public void testFuzzyQuery() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testPropertyVar
@Test public void testPropertyVar() throws MalformedQueryException, RepositoryException, QueryEvaluationException
-
testMultithreadedAdd
@Test public void testMultithreadedAdd() throws InterruptedException
- Throws:
InterruptedException
-
assertQueryResult
protected void assertQueryResult(String literal, IRI predicate, Resource resultUri) throws Exception
- Throws:
Exception
-
-