two new getter functions: rasqal_graph_pattern_get_triples, rasqal_literal_get_type