knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
RDFGoal.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_RDF_GOAL_H
7 #define KNOWROB_RDF_GOAL_H
8 
9 #include "Goal.h"
10 
11 namespace knowrob {
15  class RDFGoal : public Goal {
16  public:
21  explicit RDFGoal(const std::vector<TriplePatternPtr> &literals, const QueryContextPtr &ctx = DefaultQueryContext());
22 
27  explicit RDFGoal(const TriplePatternPtr &literal, const QueryContextPtr &ctx = DefaultQueryContext());
28 
29  RDFGoal(const std::vector<TriplePatternPtr> &literals, const Goal &goal);
30 
31  ~RDFGoal() override = default;
32 
36  auto &rdfLiterals() const { return rdfLiterals_; }
37 
38  protected:
39  const std::vector<TriplePatternPtr> rdfLiterals_;
40  };
41 
42  using RDFGoalPtr = std::shared_ptr<RDFGoal>;
43 
44 } // knowrob
45 
46 #endif //KNOWROB_RDF_GOAL_H
auto & ctx() const
Definition: Query.h:41
RDFGoal(const std::vector< TriplePatternPtr > &literals, const Goal &goal)
~RDFGoal() override=default
auto & rdfLiterals() const
Definition: RDFGoal.h:36
const std::vector< TriplePatternPtr > rdfLiterals_
Definition: RDFGoal.h:39
RDFGoal(const std::vector< TriplePatternPtr > &literals, const QueryContextPtr &ctx=DefaultQueryContext())
RDFGoal(const TriplePatternPtr &literal, const QueryContextPtr &ctx=DefaultQueryContext())
std::shared_ptr< TriplePattern > TriplePatternPtr
QueryContextPtr DefaultQueryContext()
Definition: Query.cpp:11
std::shared_ptr< const QueryContext > QueryContextPtr
Definition: QueryContext.h:41
std::shared_ptr< RDFGoal > RDFGoalPtr
Definition: RDFGoal.h:42