6 #ifndef KNOWROB_GRAPH_QUERY_H
7 #define KNOWROB_GRAPH_QUERY_H
9 #include "knowrob/queries/Query.h"
10 #include "knowrob/semweb/GraphTerm.h"
11 #include "knowrob/semweb/TriplePattern.h"
18 class GraphQuery :
public Query {
24 explicit GraphQuery(
const std::shared_ptr<GraphTerm> &query,
31 explicit GraphQuery(
const std::vector<TriplePatternPtr> &query,
57 std::shared_ptr<GraphTerm>
term_;
59 void write(std::ostream &os)
const override;
GraphQuery(const TriplePatternPtr &query, const QueryContextPtr &ctx)
GraphQuery(const std::shared_ptr< GraphTerm > &query, const QueryContextPtr &ctx=DefaultQueryContext())
void write(std::ostream &os) const override
std::shared_ptr< GraphTerm > term_
GraphQuery(const QueryContextPtr &ctx=DefaultQueryContext())
GraphQuery(const TriplePatternPtr &query)
GraphQuery(const std::vector< TriplePatternPtr > &query, const QueryContextPtr &ctx=DefaultQueryContext())
FormulaPtr toFormula() const
std::shared_ptr< TriplePattern > TriplePatternPtr
QueryContextPtr DefaultQueryContext()
std::shared_ptr< Formula > FormulaPtr
std::shared_ptr< const QueryContext > QueryContextPtr
std::shared_ptr< GraphQuery > GraphQueryPtr