#include <QueryParser.h>
Constructs formulae from strings.
Definition at line 18 of file QueryParser.h.
◆ parse() [1/2]
FormulaPtr QueryParser::parse |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a formula.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed formula.
Definition at line 33 of file QueryParser.cpp.
34 return parse_<FormulaPtr, knowrob::parsers::formula::FormulaRule>(queryString,
◆ parse() [2/2]
static FormulaPtr knowrob::QueryParser::parse |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a formula.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed formula.
◆ parseConstant() [1/2]
TermPtr QueryParser::parseConstant |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a constant term.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed constant term.
Definition at line 52 of file QueryParser.cpp.
◆ parseConstant() [2/2]
static TermPtr knowrob::QueryParser::parseConstant |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a constant term.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed constant term.
◆ parseFunction() [1/2]
FunctionPtr QueryParser::parseFunction |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a function.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed function.
Definition at line 48 of file QueryParser.cpp.
FunctionRule & function()
◆ parseFunction() [2/2]
static FunctionPtr knowrob::QueryParser::parseFunction |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a function.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed function.
◆ parseGraphTerm() [1/2]
std::shared_ptr< GraphTerm > QueryParser::parseGraphTerm |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a graph term.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed graph term.
Definition at line 43 of file QueryParser.cpp.
boost::spirit::qi::rule< std::string::const_iterator, std::shared_ptr< GraphTerm >(), boost::spirit::ascii::space_type > GraphTermRule
GraphTermRule & graphTerm()
◆ parseGraphTerm() [2/2]
static std::shared_ptr<GraphTerm> knowrob::QueryParser::parseGraphTerm |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a graph term.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed graph term.
◆ parsePredicate() [1/2]
PredicatePtr QueryParser::parsePredicate |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a predicate.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed predicate.
Definition at line 38 of file QueryParser.cpp.
39 return parse_<PredicatePtr, knowrob::parsers::formula::PredicateRule>(queryString,
◆ parsePredicate() [2/2]
static PredicatePtr knowrob::QueryParser::parsePredicate |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a predicate.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed predicate.
◆ parseRawAtom() [1/2]
std::string QueryParser::parseRawAtom |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a raw atom.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed raw atom.
Definition at line 56 of file QueryParser.cpp.
StringRule & atom_or_iri()
◆ parseRawAtom() [2/2]
static std::string knowrob::QueryParser::parseRawAtom |
( |
const std::string & |
queryString | ) |
|
|
static |
Parse a query string into a raw atom.
- Parameters
-
queryString | the query string. |
- Returns
- the parsed raw atom.
The documentation for this class was generated from the following files: