VIVO-870 Make IndexingUriFinders configurable.
Use no-argument constructors, supplying data through the ContextModelsUser interface as needed. Add toString() methods to IndexingUriFinders, DocumentModifiers and SearchIndexExcluders
This commit is contained in:
parent
5b89014105
commit
69711960bc
8 changed files with 109 additions and 93 deletions
|
@ -9,9 +9,12 @@ import java.util.List;
|
|||
|
||||
import org.junit.Test;
|
||||
|
||||
import stubs.edu.cornell.mannlib.vitro.webapp.modelaccess.ContextModelAccessStub;
|
||||
|
||||
import com.hp.hpl.jena.ontology.OntModel;
|
||||
import com.hp.hpl.jena.rdf.model.ModelFactory;
|
||||
|
||||
import edu.cornell.mannlib.vitro.webapp.modelaccess.ModelAccess.WhichService;
|
||||
import edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.model.RDFServiceModel;
|
||||
|
||||
|
||||
|
@ -598,7 +601,11 @@ public class AdditionalURIsForContextNodesTest {
|
|||
private void populateModelAndCreateUriFinder(String n3String) {
|
||||
OntModel model = ModelFactory.createOntologyModel();
|
||||
model.read(new StringReader(n3String), null, "N3");
|
||||
uriFinder = new AdditionalURIsForContextNodes(
|
||||
new RDFServiceModel(model));
|
||||
|
||||
ContextModelAccessStub cmas = new ContextModelAccessStub();
|
||||
cmas.setRDFService(WhichService.CONTENT, new RDFServiceModel(model));
|
||||
|
||||
uriFinder = new AdditionalURIsForContextNodes();
|
||||
uriFinder.setContextModels(cmas);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue