update query triple.java