Correction to regex processing within sparql queries