KDE 4.7 PyKDE API Reference

- KDE's Python API

# QueryResultIteratorBackend Class Reference

`from PyKDE4.soprano import *`

Namespace: Soprano

## Detailed Description

\class QueryResultIteratorBackend queryresultiteratorbackend.h Soprano/QueryResultIteratorBackend

QueryResultIteratorBackend is the actual working horse behind QueryResultIterator.

Each Backend implementation has to have its own version of QueryResultIteratorBackend.

Author:
  Daniele Galdi <daniele.galdi@gmail.com>
  Sebastian Trueg <trueg@kde.org>

## Methods

| __init__ (self)
Soprano.Node | binding (self, QString name)
Soprano.Node | binding (self, int offset)
int | bindingCount (self)
QStringList | bindingNames (self)
bool | boolValue (self)
| close (self)
Soprano.BindingSet | current (self)
Soprano.Statement | currentStatement (self)
bool | isBinding (self)
bool | isBool (self)
bool | isGraph (self)
bool | next (self)

## Method Documentation

__init__ | ( |  | self ) |

Soprano.Node binding | ( | self, |
|  | QString | name
| ) |  |  |

Abstract method:
  This method is abstract and can be overridden but not called directly.

\sa QueryResultIterator.binding(int)

Soprano.Node binding | ( | self, |
|  | int | offset
| ) |  |  |

Abstract method:
  This method is abstract and can be overridden but not called directly.

\sa QueryResultIterator.binding(int)

int bindingCount | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

\sa QueryResultIterator.bindingCount

QStringList bindingNames | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

\sa QueryResultIterator.bindingNames

bool boolValue | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

\sa QueryResultIterator.boolValue

close | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

Soprano.BindingSet current | ( |  | self ) |

The default implementation constructs the BindingSet using binding() and bindingNames()

\sa QueryResultIterator.current

Soprano.Statement currentStatement | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

\sa QueryResultIterator.currentStatement

bool isBinding | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

\sa QueryResultIterator.isBinding

bool isBool | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

\sa QueryResultIterator.isBool

bool isGraph | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

\sa QueryResultIterator.isGraph

bool next | ( |  | self ) |

Abstract method:
  This method is abstract and can be overridden but not called directly.

For boolean results implementations needs to always return false to avoid endless loops in client applications that omit to check the result type.

\sa QueryResultIterator.next