MICO Platform
 All Classes Namespaces Functions Variables Friends
Public Member Functions | Friends | List of all members
mico::rdf::query::TupleResult Class Reference

The result of a SPARQL SELECT query. More...

#include <rdf_query.hpp>

Inheritance diagram for mico::rdf::query::TupleResult:
mico::rdf::query::QueryResult

Public Member Functions

const std::vector< std::string > & getBindingNames () const
 Return the binding names (variable names) contained in the result.
 
void loadFrom (std::istream &is)
 Load query result data represented in the XML SPARQL protocol syntax into the query result given as argument. More...
 
void loadFrom (const char *ptr, size_t len)
 Load query result data represented in the XML SPARQL protocol syntax into the query result given as argument. More...
 
std::vector< BindingSet >::iterator begin ()
 
std::vector< BindingSet >::iterator end ()
 
size_t size () const
 
BindingSet & at (size_t i)
 
const BindingSet & at (size_t i) const
 
BindingSet & operator[] (size_t i)
 
const BindingSet & operator[] (size_t i) const
 

Friends

std::istream & operator>> (std::istream &is, TupleResult &r)
 Load query result data represented in the XML SPARQL protocol syntax into the query result given as argument. More...
 
std::ostream & operator<< (std::ostream &is, TupleResult &r)
 Serialize query result data from the given argument into XML SPARQL protocol syntax.
 

Detailed Description

The result of a SPARQL SELECT query.

Implemented as a vector of BindingSet instances, each representing one row in the result.

Member Function Documentation

void mico::rdf::query::TupleResult::loadFrom ( std::istream &  is)
virtual

Load query result data represented in the XML SPARQL protocol syntax into the query result given as argument.

http://www.w3.org/TR/rdf-sparql-XMLres/

Implements mico::rdf::query::QueryResult.

void mico::rdf::query::TupleResult::loadFrom ( const char *  ptr,
size_t  len 
)
virtual

Load query result data represented in the XML SPARQL protocol syntax into the query result given as argument.

http://www.w3.org/TR/rdf-sparql-XMLres/

Implements mico::rdf::query::QueryResult.

Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  is,
TupleResult r 
)
friend

Load query result data represented in the XML SPARQL protocol syntax into the query result given as argument.

http://www.w3.org/TR/rdf-sparql-XMLres/


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