knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::RDFGoal Class Reference

#include <RDFGoal.h>

Inheritance diagram for knowrob::RDFGoal:
Collaboration diagram for knowrob::RDFGoal:

Public Member Functions

 RDFGoal (const std::vector< TriplePatternPtr > &literals, const QueryContextPtr &ctx=DefaultQueryContext())
 
 RDFGoal (const TriplePatternPtr &literal, const QueryContextPtr &ctx=DefaultQueryContext())
 
 RDFGoal (const std::vector< TriplePatternPtr > &literals, const Goal &goal)
 
 ~RDFGoal () override=default
 
auto & rdfLiterals () const
 
 RDFGoal (const std::vector< TriplePatternPtr > &literals, const QueryContextPtr &ctx=DefaultQueryContext())
 
 RDFGoal (const TriplePatternPtr &literal, const QueryContextPtr &ctx=DefaultQueryContext())
 
 RDFGoal (const std::vector< TriplePatternPtr > &literals, const Goal &goal)
 
 ~RDFGoal () override=default
 
auto & rdfLiterals () const
 
- Public Member Functions inherited from knowrob::Goal
 Goal (SimpleConjunctionPtr formula, QueryContextPtr ctx=DefaultQueryContext())
 
 Goal (const FirstOrderLiteralPtr &literal, QueryContextPtr ctx=DefaultQueryContext())
 
 Goal (SimpleConjunctionPtr formula, const Goal &goal)
 
 ~Goal () override
 
auto & formula () const
 
void push (const AnswerPtr &answer)
 
void push (const BindingsPtr &bindings)
 
void finish ()
 
auto & answerBuffer () const
 
auto & outputChannel () const
 
 Goal (SimpleConjunctionPtr formula, QueryContextPtr ctx=DefaultQueryContext())
 
 Goal (const FirstOrderLiteralPtr &literal, QueryContextPtr ctx=DefaultQueryContext())
 
 Goal (SimpleConjunctionPtr formula, const Goal &goal)
 
 ~Goal () override
 
auto & formula () const
 
void push (const AnswerPtr &answer)
 
void push (const BindingsPtr &bindings)
 
void finish ()
 
auto & answerBuffer () const
 
auto & outputChannel () const
 
- Public Member Functions inherited from knowrob::Query
 Query (QueryContextPtr ctx=DefaultQueryContext())
 
virtual ~Query ()=default
 
auto & ctx () const
 
void setContext (QueryContextPtr ctx)
 
 Query (QueryContextPtr ctx=DefaultQueryContext())
 
virtual ~Query ()=default
 
auto & ctx () const
 
void setContext (QueryContextPtr ctx)
 
- Public Member Functions inherited from knowrob::Printable
virtual ~Printable ()=default
 
virtual std::string format () const
 
virtual ~Printable ()=default
 
virtual std::string format () const
 

Protected Attributes

const std::vector< TriplePatternPtrrdfLiterals_
 
- Protected Attributes inherited from knowrob::Goal
std::shared_ptr< const QueryContextctx_
 
std::shared_ptr< TokenBufferanswerBuffer_
 
std::shared_ptr< TokenStream::ChanneloutputChannel_
 
std::shared_ptr< SimpleConjunctionformula_
 
- Protected Attributes inherited from knowrob::Query
QueryContextPtr ctx_
 

Additional Inherited Members

- Protected Member Functions inherited from knowrob::Goal
void write (std::ostream &os) const override
 
void write (std::ostream &os) const override
 

Detailed Description

An RDF goal.

Definition at line 15 of file RDFGoal.h.

Constructor & Destructor Documentation

◆ RDFGoal() [1/6]

RDFGoal::RDFGoal ( const std::vector< TriplePatternPtr > &  literals,
const QueryContextPtr ctx = DefaultQueryContext() 
)
explicit
Parameters
literalsa sequence of RDF literals.
ctxa query context.

Definition at line 26 of file RDFGoal.cpp.

27  : Goal(makeSimpleConjunction(literals), ctx), rdfLiterals_(literals) {
28 }
Goal(SimpleConjunctionPtr formula, QueryContextPtr ctx=DefaultQueryContext())
Definition: Goal.cpp:57
auto & ctx() const
Definition: Query.h:41
const std::vector< TriplePatternPtr > rdfLiterals_
Definition: RDFGoal.h:39

◆ RDFGoal() [2/6]

RDFGoal::RDFGoal ( const TriplePatternPtr literal,
const QueryContextPtr ctx = DefaultQueryContext() 
)
explicit
Parameters
literala literal.
ctxa query context.

Definition at line 30 of file RDFGoal.cpp.

31  : Goal(literal, ctx), rdfLiterals_({literal}) {
32 }

◆ RDFGoal() [3/6]

RDFGoal::RDFGoal ( const std::vector< TriplePatternPtr > &  literals,
const Goal goal 
)

Definition at line 22 of file RDFGoal.cpp.

23  : Goal(makeSimpleConjunction(literals), goal), rdfLiterals_(literals) {
24 }

◆ ~RDFGoal() [1/2]

knowrob::RDFGoal::~RDFGoal ( )
overridedefault

◆ RDFGoal() [4/6]

knowrob::RDFGoal::RDFGoal ( const std::vector< TriplePatternPtr > &  literals,
const QueryContextPtr ctx = DefaultQueryContext() 
)
explicit
Parameters
literalsa sequence of RDF literals.
ctxa query context.

◆ RDFGoal() [5/6]

knowrob::RDFGoal::RDFGoal ( const TriplePatternPtr literal,
const QueryContextPtr ctx = DefaultQueryContext() 
)
explicit
Parameters
literala literal.
ctxa query context.

◆ RDFGoal() [6/6]

knowrob::RDFGoal::RDFGoal ( const std::vector< TriplePatternPtr > &  literals,
const Goal goal 
)

◆ ~RDFGoal() [2/2]

knowrob::RDFGoal::~RDFGoal ( )
overridedefault

Member Function Documentation

◆ rdfLiterals() [1/2]

auto& knowrob::RDFGoal::rdfLiterals ( ) const
inline
Returns
the RDF literals.

Definition at line 36 of file RDFGoal.h.

36 { return rdfLiterals_; }

◆ rdfLiterals() [2/2]

auto& knowrob::RDFGoal::rdfLiterals ( ) const
inline
Returns
the RDF literals.

Definition at line 36 of file RDFGoal.h.

36 { return rdfLiterals_; }

Member Data Documentation

◆ rdfLiterals_

const std::vector< TriplePatternPtr > knowrob::RDFGoal::rdfLiterals_
protected

Definition at line 39 of file RDFGoal.h.


The documentation for this class was generated from the following files: