Adding sparql_query method to query the treestore directly.