JPM/HM: Adapted to more forgiving meresco-triplestore