@Test public void test_index_literal_3()
{
Model model = ModelFactory.createDefaultModel() ;
IndexLARQ index = TestLARQUtils.createIndex(model, datafile, new IndexBuilderString()) ;
NodeIterator nIter = index.searchModelByIndex(model, "+document") ;
// Search both DC title and RDFS label
for ( ; nIter.hasNext(); )
{
RDFNode n = nIter.nextNode() ;
assertTrue(n instanceof Literal) ;
assertTrue(model.contains(null, null, n)) ;
boolean b = model.contains(null, DC.title, n) ||
model.contains(null, RDFS.label, n) ;
assertTrue("DC.title or RDFS.label", b) ;