/* * SPARQLquery.h * * Created on: 2014-6-20 * Author: liyouhuan */ #ifndef SPARQLQUERY_H_ #define SPARQLQUERY_H_ #include "BasicQuery.h" class SPARQLquery{ private: vector query_union; vector query_var; public: SPARQLquery(const string& _query); SPARQLquery(); ~SPARQLquery(); void addQueryVar(const string& _var); void addTriple(const Triple& _triple); void addBasicQuery(BasicQuery* _basic_q); void addBasicQuery(); const int getBasicQueryNum(); BasicQuery& getBasicQuery(int _basic_query_id); const int getQueryVarNum(); const vector& getQueryVar()const; const string& getQueryVar(int _id); void encodeQuery(KVstore* _p_kv_store); vector& getBasicQueryVec(); void print(ostream& _out_stream); std::string triple_str(); std::string candidate_str(); std::string result_str(); std::string to_str(); }; #endif /* SPARQLQUERY_H_ */