}
public static void searchAndReplace( Model model, Map<String, URI> namespaceMap, String search, String remove, String add ) {
log.trace("rule remove... ");
Model removeModel = RDF2Go.getModelFactory().createModel();
removeModel.open();
ClosableIterator<Statement> it = model.sparqlConstruct(
Transformer.toSparqlConstruct(namespaceMap, remove, search))
.iterator();
while (it.hasNext()) {
Statement stmt = it.next();