Class AbstractLuceneSailTest
- java.lang.Object
-
- org.eclipse.testsuite.rdf4j.sail.lucene.AbstractLuceneSailTest
-
-
Field Summary
Fields Modifier and Type Field Description static IRICONTEXT_1static IRICONTEXT_2static IRICONTEXT_3static IRIPREDICATE_1static IRIPREDICATE_2static IRIPREDICATE_3static StringQUERY_STRINGprotected Repositoryrepositoryprotected LuceneSailsailstatic IRISUBJECT_1static IRISUBJECT_2static IRISUBJECT_3static IRISUBJECT_4static IRISUBJECT_5protected static ValueFactoryvf
-
Constructor Summary
Constructors Constructor Description AbstractLuceneSailTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidassertNoQueryResult(String literal)protected voidassertQueryResult(String literal, IRI predicate, Resource resultUri)protected abstract voidconfigure(LuceneSail sail)voidsetUp()voidtearDown()voidtestComplexQueryOne()voidtestComplexQueryTwo()voidtestConcurrentReadingAndWriting()voidtestContextHandling()voidtestFuzzyQuery()voidtestGraphQuery()voidtestMultipleLuceneQueries()voidtestMultithreadedAdd()voidtestNullContextHandling()we experienced problems with the NULL context and lucenesail in August 2008voidtestPredicateLuceneQueries()voidtestPropertyVar()voidtestQueryWithSpecifiedSubject()voidtestRegularQuery()voidtestReindexing()voidtestSnippetLimitedToPredicate()Test if the snippets do not accidentially come from the "text" field while we actually expect them to come from the predicate field.voidtestSnippetQueries()voidtestTriplesStored()voidtestUnionQuery()
-
-
-
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:
IOExceptionRepositoryException
-
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, QueryEvaluationExceptionTest 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 Exceptionwe 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
-
-