knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <SPARQLQuery.h>
Public Member Functions | |
SPARQLQuery (const TriplePattern &triplePattern, SPARQLFlags flags=SPARQLFlag::NOTHING) | |
SPARQLQuery (const std::shared_ptr< GraphQuery > &query, SPARQLFlags flags=SPARQLFlag::NOTHING) | |
std::string_view | operator() () const |
const unsigned char * | asUnsignedString () const |
SPARQLQuery (const TriplePattern &triplePattern, SPARQLFlags flags=SPARQLFlag::NOTHING) | |
SPARQLQuery (const std::shared_ptr< GraphQuery > &query, SPARQLFlags flags=SPARQLFlag::NOTHING) | |
std::string_view | operator() () const |
const unsigned char * | asUnsignedString () const |
Protected Member Functions | |
void | selectBegin (std::ostream &os) |
void | appendPrefixes (std::ostream &os) |
void | add (std::ostream &os, const TriplePattern &triplePattern) |
void | add (std::ostream &os, const GraphBuiltin &builtin) |
void | add (std::ostream &os, const std::shared_ptr< GraphTerm > &graphTerm) |
bool | optional (std::ostream &os, const TriplePattern &triplePattern) |
void | iri (std::ostream &os, std::string_view iri) |
void | negationViaNotExists (std::ostream &os, const TriplePattern &triplePattern) |
void | negationViaOptional (std::ostream &os, const TriplePattern &triplePattern) |
bool | where (std::ostream &os, const TriplePattern &triplePattern) |
void | where_with_filter (std::ostream &os, const TriplePattern &triplePattern) |
void | where (std::ostream &os, const TermPtr &term) |
void | comparison (std::ostream &os, const GraphBuiltin &builtin, const char *comparisonOperator) |
void | bindOneOfIf (std::ostream &os, const GraphBuiltin &builtin, const char *comparisonOperator) |
void | filter (std::ostream &os, std::string_view varName, const TermPtr &term, FilterType operatorType) |
void | filter_optional (std::ostream &os, std::string_view varName, const TermPtr &term, FilterType operatorType) |
void | doFilter (std::ostream &os, std::string_view varName, const std::shared_ptr< Atomic > &atomic, FilterType operatorType) |
void | selectBegin (std::ostream &os) |
void | appendPrefixes (std::ostream &os) |
void | add (std::ostream &os, const TriplePattern &triplePattern) |
void | add (std::ostream &os, const GraphBuiltin &builtin) |
void | add (std::ostream &os, const std::shared_ptr< GraphTerm > &graphTerm) |
bool | optional (std::ostream &os, const TriplePattern &triplePattern) |
void | iri (std::ostream &os, std::string_view iri) |
void | negationViaNotExists (std::ostream &os, const TriplePattern &triplePattern) |
void | negationViaOptional (std::ostream &os, const TriplePattern &triplePattern) |
bool | where (std::ostream &os, const TriplePattern &triplePattern) |
void | where_with_filter (std::ostream &os, const TriplePattern &triplePattern) |
void | where (std::ostream &os, const TermPtr &term) |
void | comparison (std::ostream &os, const GraphBuiltin &builtin, const char *comparisonOperator) |
void | bindOneOfIf (std::ostream &os, const GraphBuiltin &builtin, const char *comparisonOperator) |
void | filter (std::ostream &os, std::string_view varName, const TermPtr &term, FilterType operatorType) |
void | filter_optional (std::ostream &os, std::string_view varName, const TermPtr &term, FilterType operatorType) |
void | doFilter (std::ostream &os, std::string_view varName, const std::shared_ptr< Atomic > &atomic, FilterType operatorType) |
Static Protected Member Functions | |
static void | selectEnd (std::ostream &os) |
static void | selectEnd (std::ostream &os) |
Protected Attributes | |
SPARQLFlags | flags_ |
uint32_t | varCounter_ |
std::map< std::string_view, std::string_view > | aliases_ |
std::set< std::string_view > | variables_ |
std::string | queryString_ |
std::string | lastVar_ |
A SPARQL query using 1.1 syntax. But since some backends do not support all features, this class allows to specify some features that cannot be used.
Definition at line 45 of file SPARQLQuery.h.
|
explicit |
Create a SPARQL query that selects all triples matching the given pattern.
triplePattern | the pattern to match. |
flags | the flags that indicate which features are supported. |
Definition at line 15 of file SPARQLQuery.cpp.
|
explicit |
query | the query to execute. |
flags | the flags that indicate which features are supported. |
Definition at line 27 of file SPARQLQuery.cpp.
|
explicit |
Create a SPARQL query that selects all triples matching the given pattern.
triplePattern | the pattern to match. |
flags | the flags that indicate which features are supported. |
|
explicit |
query | the query to execute. |
flags | the flags that indicate which features are supported. |
|
protected |
Definition at line 154 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 51 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 85 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 44 of file SPARQLQuery.cpp.
|
protected |
|
inline |
|
inline |
|
protected |
Definition at line 134 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 115 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 222 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 214 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 206 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 289 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 257 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 263 of file SPARQLQuery.cpp.
|
protected |
|
inline |
|
inline |
|
protected |
Definition at line 282 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 189 of file SPARQLQuery.cpp.
|
protected |
|
staticprotected |
Definition at line 202 of file SPARQLQuery.cpp.
|
staticprotected |
|
protected |
Definition at line 345 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 313 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 307 of file SPARQLQuery.cpp.
|
protected |
|
protected |
Definition at line 74 of file SPARQLQuery.h.
|
protected |
Definition at line 72 of file SPARQLQuery.h.
|
protected |
Definition at line 77 of file SPARQLQuery.h.
|
protected |
Definition at line 76 of file SPARQLQuery.h.
|
protected |
Definition at line 73 of file SPARQLQuery.h.
|
protected |
Definition at line 75 of file SPARQLQuery.h.