private string completeQuery(string coreQuery, Dictionary<string, List<string>> options, Dictionary<string, List<string>> vars)
{
string completeQuery = "";
//foreach (string key in prefixes.Keys)
//{
// completeQuery += "PREFIX" + key + ": <" + prefixes[key] + ">\n";
//}
// TODO: we have to ask for an abstract, an imageURL and a link to wikipedia for each information too!
completeQuery += "Select * WHERE {" + "\n";
completeQuery += coreQuery + "\n";
completeQuery += generateFilter(options, vars) + "\n";
string limit = "";
if (options.Keys.Contains("limit"))
{
limit = "LIMIT " + listToString(options["limit"]);
}
completeQuery += "}" + limit;
completeQuery = completeQuery.Replace('\n', ' ');
completeQuery = completeQuery.Replace(" ", " ");
return completeQuery;
}