6 #include <boost/spirit/include/phoenix.hpp>
7 #include "knowrob/queries/QueryError.h"
8 #include "knowrob/queries/parsers/strings.h"
9 #include "knowrob/semweb/PrefixRegistry.h"
13 if (uri.has_value()) {
21 namespace qi = boost::spirit::qi;
22 namespace ascii = boost::spirit::ascii;
23 #define RETURN_STRING_RULE(expr) static StringRule r(expr); return r
51 [qi::_val = boost::phoenix::bind(&createIRI, qi::_1, qi::_2)]);
static std::optional< std::string > createIRI(std::string_view alias, std::string_view entityName)
constexpr std::string_view prefix
boost::spirit::qi::rule< std::string::const_iterator, std::string()> StringRule
StringRule & atom_or_iri()
StringRule & upper_prefix()
StringRule & iri_entity()
StringRule & single_quotes()
StringRule & lower_prefix()
StringRule & double_quotes()
#define RETURN_STRING_RULE(expr)