data layer - executing sparql queries, exception handling