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