add an example of new query funtion

This commit is contained in:
mrmrfan 2018-07-18 15:29:02 +08:00
parent 407dfa83d8
commit 7f1d87940f
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ int main(int argc, char * argv[])
}";
std::string answer = gc.query("root", "123456", "test", sparql);
std::cout << answer << std::endl;
// make a SPARQL query and save the result in ans.txt
gc.query("root", "123456", "test", sparql, "ans.txt");
// unload this database.
gc.unload("test", "root", "123456");