I'm including Sparql in an installation profile but it breaks with the following error:

  Call to undefined function db_result() in ../path.inc on line 55

The problem is with hook_requirements because it's looking for ARC2 and because it hasn't been enabled yet it just breaks the whole thing, I've tried it with another profile installations and it just give me a WSOD instead of the problem.

Commenting hook_requirements solves the problem and the installation continues.