Darling: A datalog rewriter for owl 2 rl ontological reasoning under sparql queries