StmtIterator it = input.listStatements((Resource)null, input.createProperty( curr.asNode().getURI() ), (RDFNode)null);
Model toDel = ModelFactory.createDefaultModel();
Model toAdd = ModelFactory.createDefaultModel();
while( it.hasNext() )
{
Statement torem = it.nextStatement();
toDel.add( torem );
toAdd.add( torem.getSubject(), toAdd.createProperty( replacement ), torem.getObject() );
}
// Replace all instances of statement object curr in input with replacement