public static function escapePrefix($predicate, array $namespaces) {

    $exploded = explode(":", $predicate);
    if (!isset($namespaces[$exploded[0]])) {
      return $predicate;
    }
    return $namespaces[$exploded[0]] . $exploded[1];
  }