/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:42:44 2011
 */

#include "sipAPIsoprano.h"


#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 13 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_value(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_value(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::value());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_value, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_type(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_type(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::type());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_type, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_subject(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_subject(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::subject());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_subject, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_rest(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_rest(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::rest());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_rest, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_predicate(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_predicate(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::predicate());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_predicate, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_object(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_object(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::object());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_object, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_nil(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_nil(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::nil());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_nil, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_first(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_first(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::first());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_first, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_XMLLiteral(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_XMLLiteral(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::XMLLiteral());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_XMLLiteral, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_Statement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_Statement(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::Statement());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Statement, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_Seq(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_Seq(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::Seq());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Seq, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_Property(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_Property(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::Property());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Property, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_List(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_List(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::List());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_List, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_Bag(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_Bag(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::Bag());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Bag, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_Alt(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_Alt(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::Alt());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Alt, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDF_rdfNamespace(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDF_rdfNamespace(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDF::rdfNamespace());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_rdfNamespace, NULL);

    return NULL;
}


static PyMethodDef methods_Soprano_Vocabulary_RDF[] = {
    {SIP_MLNAME_CAST(sipName_Alt), meth_Soprano_Vocabulary_RDF_Alt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Bag), meth_Soprano_Vocabulary_RDF_Bag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_List), meth_Soprano_Vocabulary_RDF_List, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Property), meth_Soprano_Vocabulary_RDF_Property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Seq), meth_Soprano_Vocabulary_RDF_Seq, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Statement), meth_Soprano_Vocabulary_RDF_Statement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_XMLLiteral), meth_Soprano_Vocabulary_RDF_XMLLiteral, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_first), meth_Soprano_Vocabulary_RDF_first, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nil), meth_Soprano_Vocabulary_RDF_nil, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_object), meth_Soprano_Vocabulary_RDF_object, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_predicate), meth_Soprano_Vocabulary_RDF_predicate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rdfNamespace), meth_Soprano_Vocabulary_RDF_rdfNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rest), meth_Soprano_Vocabulary_RDF_rest, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subject), meth_Soprano_Vocabulary_RDF_subject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Soprano_Vocabulary_RDF_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_Soprano_Vocabulary_RDF_value, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Vocabulary_RDF = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Vocabulary__RDF,
        {0}
    },
    {
        sipNameNr_RDF,
        {85, 255, 0},
        16, methods_Soprano_Vocabulary_RDF,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 489 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 492 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 495 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 498 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 501 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


class sipSoprano_QueryResultIteratorBackend : public Soprano::QueryResultIteratorBackend
{
public:
    sipSoprano_QueryResultIteratorBackend();
    sipSoprano_QueryResultIteratorBackend(const Soprano::QueryResultIteratorBackend&);
    virtual ~sipSoprano_QueryResultIteratorBackend();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool next();
    Soprano::BindingSet current() const;
    Soprano::Statement currentStatement() const;
    Soprano::Node binding(const QString&) const;
    Soprano::Node binding(int) const;
    int bindingCount() const;
    QStringList bindingNames() const;
    bool isGraph() const;
    bool isBinding() const;
    bool isBool() const;
    bool boolValue() const;
    void close();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSoprano_QueryResultIteratorBackend(const sipSoprano_QueryResultIteratorBackend &);
    sipSoprano_QueryResultIteratorBackend &operator = (const sipSoprano_QueryResultIteratorBackend &);

    char sipPyMethods[12];
};

sipSoprano_QueryResultIteratorBackend::sipSoprano_QueryResultIteratorBackend(): Soprano::QueryResultIteratorBackend(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_QueryResultIteratorBackend::sipSoprano_QueryResultIteratorBackend(const Soprano::QueryResultIteratorBackend& a0): Soprano::QueryResultIteratorBackend(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_QueryResultIteratorBackend::~sipSoprano_QueryResultIteratorBackend()
{
    sipCommonDtor(sipPySelf);
}

bool sipSoprano_QueryResultIteratorBackend::next()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_QueryResultIteratorBackend,sipName_next);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

Soprano::BindingSet sipSoprano_QueryResultIteratorBackend::current() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_current);

    if (!sipMeth)
        return Soprano::QueryResultIteratorBackend::current();

    extern Soprano::BindingSet sipVH_soprano_9(sip_gilstate_t,PyObject *);

    return sipVH_soprano_9(sipGILState,sipMeth);
}

Soprano::Statement sipSoprano_QueryResultIteratorBackend::currentStatement() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_currentStatement);

    if (!sipMeth)
        return Soprano::Statement();

    extern Soprano::Statement sipVH_soprano_8(sip_gilstate_t,PyObject *);

    return sipVH_soprano_8(sipGILState,sipMeth);
}

Soprano::Node sipSoprano_QueryResultIteratorBackend::binding(const QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_binding);

    if (!sipMeth)
        return Soprano::Node();

    extern Soprano::Node sipVH_soprano_7(sip_gilstate_t,PyObject *,const QString&);

    return sipVH_soprano_7(sipGILState,sipMeth,a0);
}

Soprano::Node sipSoprano_QueryResultIteratorBackend::binding(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_binding);

    if (!sipMeth)
        return Soprano::Node();

    extern Soprano::Node sipVH_soprano_6(sip_gilstate_t,PyObject *,int);

    return sipVH_soprano_6(sipGILState,sipMeth,a0);
}

int sipSoprano_QueryResultIteratorBackend::bindingCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_bindingCount);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_soprano_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

QStringList sipSoprano_QueryResultIteratorBackend::bindingNames() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_bindingNames);

    if (!sipMeth)
        return QStringList();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_soprano_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

bool sipSoprano_QueryResultIteratorBackend::isGraph() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_isGraph);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipSoprano_QueryResultIteratorBackend::isBinding() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_isBinding);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipSoprano_QueryResultIteratorBackend::isBool() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_isBool);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipSoprano_QueryResultIteratorBackend::boolValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_boolValue);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

void sipSoprano_QueryResultIteratorBackend::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_QueryResultIteratorBackend,sipName_close);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_soprano_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_next(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_next(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_next);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->next();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_next, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_current(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_current(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            Soprano::BindingSet *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BindingSet((sipSelfWasArg ? sipCpp->Soprano::QueryResultIteratorBackend::current() : sipCpp->current()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_BindingSet,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_current, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_currentStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_currentStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            Soprano::Statement *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_currentStatement);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Statement(sipCpp->currentStatement());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_Statement,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_currentStatement, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_binding(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_binding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QString * a0;
        int a0State = 0;
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Soprano::Node *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_binding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->binding(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_Soprano_Node,NULL);
        }
    }

    {
        int a0;
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp, &a0))
        {
            Soprano::Node *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_binding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->binding(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_binding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_bindingCount(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_bindingCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_bindingCount);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bindingCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_bindingCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_bindingNames(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_bindingNames(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            QStringList *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_bindingNames);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->bindingNames());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_bindingNames, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_isGraph(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_isGraph(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_isGraph);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isGraph();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_isGraph, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_isBinding(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_isBinding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_isBinding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBinding();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_isBinding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_isBool(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_isBool(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_isBool);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_isBool, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_boolValue(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_boolValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_boolValue);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->boolValue();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_boolValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_close(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_QueryResultIteratorBackend, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_close);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->close();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryResultIteratorBackend, sipName_close, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_QueryResultIteratorBackend(void *, const sipTypeDef *);}
static void *cast_Soprano_QueryResultIteratorBackend(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Soprano_QueryResultIteratorBackend)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_QueryResultIteratorBackend(void *, int);}
static void release_Soprano_QueryResultIteratorBackend(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_QueryResultIteratorBackend *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::QueryResultIteratorBackend *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_QueryResultIteratorBackend(sipSimpleWrapper *);}
static void dealloc_Soprano_QueryResultIteratorBackend(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_QueryResultIteratorBackend *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_QueryResultIteratorBackend(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Soprano_QueryResultIteratorBackend(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_QueryResultIteratorBackend(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_QueryResultIteratorBackend *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_QueryResultIteratorBackend();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::QueryResultIteratorBackend * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Soprano_QueryResultIteratorBackend, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_QueryResultIteratorBackend(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Soprano_QueryResultIteratorBackend[] = {
    {SIP_MLNAME_CAST(sipName_binding), meth_Soprano_QueryResultIteratorBackend_binding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindingCount), meth_Soprano_QueryResultIteratorBackend_bindingCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindingNames), meth_Soprano_QueryResultIteratorBackend_bindingNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_boolValue), meth_Soprano_QueryResultIteratorBackend_boolValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Soprano_QueryResultIteratorBackend_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_QueryResultIteratorBackend_current, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentStatement), meth_Soprano_QueryResultIteratorBackend_currentStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBinding), meth_Soprano_QueryResultIteratorBackend_isBinding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBool), meth_Soprano_QueryResultIteratorBackend_isBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isGraph), meth_Soprano_QueryResultIteratorBackend_isGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_QueryResultIteratorBackend_next, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_QueryResultIteratorBackend = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__QueryResultIteratorBackend,
        {0}
    },
    {
        sipNameNr_QueryResultIteratorBackend,
        {11, 255, 0},
        11, methods_Soprano_QueryResultIteratorBackend,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Soprano_QueryResultIteratorBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_QueryResultIteratorBackend,
    0,
    0,
    0,
    release_Soprano_QueryResultIteratorBackend,
    cast_Soprano_QueryResultIteratorBackend,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 202 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 1270 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 1274 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


extern "C" {static void assign_QList_0111Soprano_Serializer(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0111Soprano_Serializer(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<const Soprano::Serializer *> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<const Soprano::Serializer *> *>(sipSrc);
}


extern "C" {static void *array_QList_0111Soprano_Serializer(SIP_SSIZE_T);}
static void *array_QList_0111Soprano_Serializer(SIP_SSIZE_T sipNrElem)
{
    return new QList<const Soprano::Serializer *>[sipNrElem];
}


extern "C" {static void *copy_QList_0111Soprano_Serializer(const void *, SIP_SSIZE_T);}
static void *copy_QList_0111Soprano_Serializer(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<const Soprano::Serializer *>(reinterpret_cast<const QList<const Soprano::Serializer *> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0111Soprano_Serializer(void *, int);}
static void release_QList_0111Soprano_Serializer(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<const Soprano::Serializer *> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QList_0111Soprano_Serializer(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0111Soprano_Serializer(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<const Soprano::Serializer *> **sipCppPtr = reinterpret_cast<QList<const Soprano::Serializer *> **>(sipCppPtrV);

#line 231 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;

        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
            if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Serializer, SIP_NOT_NONE))
                return 0;

        return 1;
    }

    QList<const Soprano::Serializer*> *ql = new QList<const Soprano::Serializer*>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        int state;
        const Soprano::Serializer*t = reinterpret_cast<const Soprano::Serializer*>(sipConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Serializer, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseInstance(const_cast<Soprano::Serializer*>(t), sipClass_Soprano_Serializer, state);

            delete ql;
            return 0;
        }
        ql->append(t);

        sipReleaseInstance(const_cast<Soprano::Serializer*>(t), sipClass_Soprano_Serializer, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1350 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0111Soprano_Serializer(void *, PyObject *);}
static PyObject *convertFrom_QList_0111Soprano_Serializer(void *sipCppV,PyObject *sipTransferObj)
{
   QList<const Soprano::Serializer *> *sipCpp = reinterpret_cast<QList<const Soprano::Serializer *> *>(sipCppV);

#line 206 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Serializer* t = const_cast<Soprano::Serializer*>(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromInstance(t, sipClass_Soprano_Serializer, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1382 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
}


sipMappedTypeDef sipTypeDef_soprano_QList_0111Soprano_Serializer = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1452,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0111Soprano_Serializer,
    array_QList_0111Soprano_Serializer,
    copy_QList_0111Soprano_Serializer,
    release_QList_0111Soprano_Serializer,
    convertTo_QList_0111Soprano_Serializer,
    convertFrom_QList_0111Soprano_Serializer
};

#line 131 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 1413 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 1417 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


extern "C" {static void assign_QList_0111Soprano_Parser(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0111Soprano_Parser(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<const Soprano::Parser *> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<const Soprano::Parser *> *>(sipSrc);
}


extern "C" {static void *array_QList_0111Soprano_Parser(SIP_SSIZE_T);}
static void *array_QList_0111Soprano_Parser(SIP_SSIZE_T sipNrElem)
{
    return new QList<const Soprano::Parser *>[sipNrElem];
}


extern "C" {static void *copy_QList_0111Soprano_Parser(const void *, SIP_SSIZE_T);}
static void *copy_QList_0111Soprano_Parser(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<const Soprano::Parser *>(reinterpret_cast<const QList<const Soprano::Parser *> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0111Soprano_Parser(void *, int);}
static void release_QList_0111Soprano_Parser(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<const Soprano::Parser *> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QList_0111Soprano_Parser(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0111Soprano_Parser(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<const Soprano::Parser *> **sipCppPtr = reinterpret_cast<QList<const Soprano::Parser *> **>(sipCppPtrV);

#line 160 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;

        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
            if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Parser, SIP_NOT_NONE))
                return 0;

        return 1;
    }

    QList<const Soprano::Parser*> *ql = new QList<const Soprano::Parser*>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        int state;
        const Soprano::Parser*t = reinterpret_cast<const Soprano::Parser*>(sipConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Parser, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseInstance(const_cast<Soprano::Parser*>(t), sipClass_Soprano_Parser, state);

            delete ql;
            return 0;
        }
        ql->append(t);

        sipReleaseInstance(const_cast<Soprano::Parser*>(t), sipClass_Soprano_Parser, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1493 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0111Soprano_Parser(void *, PyObject *);}
static PyObject *convertFrom_QList_0111Soprano_Parser(void *sipCppV,PyObject *sipTransferObj)
{
   QList<const Soprano::Parser *> *sipCpp = reinterpret_cast<QList<const Soprano::Parser *> *>(sipCppV);

#line 135 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Parser* t = const_cast<Soprano::Parser*>(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromInstance(t, sipClass_Soprano_Parser, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1525 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
}


sipMappedTypeDef sipTypeDef_soprano_QList_0111Soprano_Parser = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2662,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0111Soprano_Parser,
    array_QList_0111Soprano_Parser,
    copy_QList_0111Soprano_Parser,
    release_QList_0111Soprano_Parser,
    convertTo_QList_0111Soprano_Parser,
    convertFrom_QList_0111Soprano_Parser
};

#line 60 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 1556 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 1560 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


extern "C" {static void assign_QList_0111Soprano_Backend(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0111Soprano_Backend(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<const Soprano::Backend *> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<const Soprano::Backend *> *>(sipSrc);
}


extern "C" {static void *array_QList_0111Soprano_Backend(SIP_SSIZE_T);}
static void *array_QList_0111Soprano_Backend(SIP_SSIZE_T sipNrElem)
{
    return new QList<const Soprano::Backend *>[sipNrElem];
}


extern "C" {static void *copy_QList_0111Soprano_Backend(const void *, SIP_SSIZE_T);}
static void *copy_QList_0111Soprano_Backend(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<const Soprano::Backend *>(reinterpret_cast<const QList<const Soprano::Backend *> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0111Soprano_Backend(void *, int);}
static void release_QList_0111Soprano_Backend(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<const Soprano::Backend *> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QList_0111Soprano_Backend(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0111Soprano_Backend(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<const Soprano::Backend *> **sipCppPtr = reinterpret_cast<QList<const Soprano::Backend *> **>(sipCppPtrV);

#line 89 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;

        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
            if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Backend, SIP_NOT_NONE))
                return 0;

        return 1;
    }

    QList<const Soprano::Backend*> *ql = new QList<const Soprano::Backend*>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        int state;
        const Soprano::Backend*t = reinterpret_cast<const Soprano::Backend*>(sipConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Backend, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseInstance(const_cast<Soprano::Backend*>(t), sipClass_Soprano_Backend, state);

            delete ql;
            return 0;
        }
        ql->append(t);

        sipReleaseInstance(const_cast<Soprano::Backend*>(t), sipClass_Soprano_Backend, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1636 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0111Soprano_Backend(void *, PyObject *);}
static PyObject *convertFrom_QList_0111Soprano_Backend(void *sipCppV,PyObject *sipTransferObj)
{
   QList<const Soprano::Backend *> *sipCpp = reinterpret_cast<QList<const Soprano::Backend *> *>(sipCppV);

#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Backend* t = const_cast<Soprano::Backend*>(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromInstance(t, sipClass_Soprano_Backend, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1668 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
}


sipMappedTypeDef sipTypeDef_soprano_QList_0111Soprano_Backend = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2413,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0111Soprano_Backend,
    array_QList_0111Soprano_Backend,
    copy_QList_0111Soprano_Backend,
    release_QList_0111Soprano_Backend,
    convertTo_QList_0111Soprano_Backend,
    convertFrom_QList_0111Soprano_Backend
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
#include <soprano/pluginmanager.h>
#line 1699 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1703 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 1706 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1709 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 1712 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 1715 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 202 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 1718 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 131 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 1721 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 60 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 1724 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1727 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1730 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1733 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1736 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1739 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1742 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1745 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1748 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1751 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1754 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1757 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1760 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


extern "C" {static PyObject *meth_Soprano_PluginManager_setPluginSearchPath(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_setPluginSearchPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList * a0;
        int a0State = 0;
        bool a1 = 1;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|b", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_QStringList,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPluginSearchPath(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_setPluginSearchPath, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_discoverBackendByName(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_discoverBackendByName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            const Soprano::Backend *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->discoverBackendByName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(const_cast<Soprano::Backend *>(sipRes),sipType_Soprano_Backend,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_discoverBackendByName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_discoverBackendByFeatures(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_discoverBackendByFeatures(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::BackendFeatures * a0;
        int a0State = 0;
        const QStringList& a1def = QStringList();
        const QStringList * a1 = &a1def;
        int a1State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_Soprano_BackendFeatures, &a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            const Soprano::Backend *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->discoverBackendByFeatures(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            return sipConvertFromType(const_cast<Soprano::Backend *>(sipRes),sipType_Soprano_Backend,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_discoverBackendByFeatures, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_allBackends(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_allBackends(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_PluginManager, &sipCpp))
        {
            QList<const Soprano::Backend *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<const Soprano::Backend *>(sipCpp->allBackends());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0111Soprano_Backend,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_allBackends, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_discoverParserByName(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_discoverParserByName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            const Soprano::Parser *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->discoverParserByName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(const_cast<Soprano::Parser *>(sipRes),sipType_Soprano_Parser,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_discoverParserByName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_discoverParserForSerialization(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_discoverParserForSerialization(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::RdfSerialization a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|J1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_Soprano_RdfSerialization, &a0, sipType_QString,&a1, &a1State))
        {
            const Soprano::Parser *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->discoverParserForSerialization(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromType(const_cast<Soprano::Parser *>(sipRes),sipType_Soprano_Parser,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_discoverParserForSerialization, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_allParsers(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_allParsers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_PluginManager, &sipCpp))
        {
            QList<const Soprano::Parser *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<const Soprano::Parser *>(sipCpp->allParsers());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0111Soprano_Parser,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_allParsers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_discoverSerializerByName(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_discoverSerializerByName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            const Soprano::Serializer *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->discoverSerializerByName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(const_cast<Soprano::Serializer *>(sipRes),sipType_Soprano_Serializer,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_discoverSerializerByName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_discoverSerializerForSerialization(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_discoverSerializerForSerialization(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::RdfSerialization a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|J1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_Soprano_RdfSerialization, &a0, sipType_QString,&a1, &a1State))
        {
            const Soprano::Serializer *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->discoverSerializerForSerialization(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromType(const_cast<Soprano::Serializer *>(sipRes),sipType_Soprano_Serializer,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_discoverSerializerForSerialization, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_allSerializers(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_allSerializers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_PluginManager, &sipCpp))
        {
            QList<const Soprano::Serializer *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<const Soprano::Serializer *>(sipCpp->allSerializers());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0111Soprano_Serializer,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_allSerializers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_instance(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_instance(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Soprano::PluginManager *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::PluginManager::instance();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_Soprano_PluginManager,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_instance, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_loadCustomPlugin(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_loadCustomPlugin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->loadCustomPlugin(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_loadCustomPlugin, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_loadCustomBackend(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_loadCustomBackend(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            const Soprano::Backend *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->loadCustomBackend(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(const_cast<Soprano::Backend *>(sipRes),sipType_Soprano_Backend,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_loadCustomBackend, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_loadCustomParser(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_loadCustomParser(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            const Soprano::Parser *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->loadCustomParser(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(const_cast<Soprano::Parser *>(sipRes),sipType_Soprano_Parser,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_loadCustomParser, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_PluginManager_loadCustomSerializer(PyObject *, PyObject *);}
static PyObject *meth_Soprano_PluginManager_loadCustomSerializer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_PluginManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            const Soprano::Serializer *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->loadCustomSerializer(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(const_cast<Soprano::Serializer *>(sipRes),sipType_Soprano_Serializer,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PluginManager, sipName_loadCustomSerializer, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_PluginManager(void *, const sipTypeDef *);}
static void *cast_Soprano_PluginManager(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Soprano_PluginManager)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(Soprano::PluginManager *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_PluginManager(void *, int);}
static void release_Soprano_PluginManager(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Soprano::PluginManager *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_PluginManager(sipSimpleWrapper *);}
static void dealloc_Soprano_PluginManager(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_PluginManager(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_PluginManager[] = {{134, 0, 1}};


static PyMethodDef methods_Soprano_PluginManager[] = {
    {SIP_MLNAME_CAST(sipName_allBackends), meth_Soprano_PluginManager_allBackends, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allParsers), meth_Soprano_PluginManager_allParsers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allSerializers), meth_Soprano_PluginManager_allSerializers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverBackendByFeatures), meth_Soprano_PluginManager_discoverBackendByFeatures, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverBackendByName), meth_Soprano_PluginManager_discoverBackendByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverParserByName), meth_Soprano_PluginManager_discoverParserByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverParserForSerialization), meth_Soprano_PluginManager_discoverParserForSerialization, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverSerializerByName), meth_Soprano_PluginManager_discoverSerializerByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverSerializerForSerialization), meth_Soprano_PluginManager_discoverSerializerForSerialization, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_instance), meth_Soprano_PluginManager_instance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadCustomBackend), meth_Soprano_PluginManager_loadCustomBackend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadCustomParser), meth_Soprano_PluginManager_loadCustomParser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadCustomPlugin), meth_Soprano_PluginManager_loadCustomPlugin, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadCustomSerializer), meth_Soprano_PluginManager_loadCustomSerializer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginSearchPath), meth_Soprano_PluginManager_setPluginSearchPath, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_PluginManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__PluginManager,
        {0}
    },
    {
        sipNameNr_PluginManager,
        {11, 255, 0},
        15, methods_Soprano_PluginManager,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_PluginManager,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_PluginManager,
    0,
    0,
    0,
    release_Soprano_PluginManager,
    cast_Soprano_PluginManager,
    0,
    0,
    0
},
    &Soprano::PluginManager::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 2320 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2324 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 2327 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 2330 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2333 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2336 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2339 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


class sipSoprano_Parser : public Soprano::Parser
{
public:
    sipSoprano_Parser(const QString&);
    sipSoprano_Parser(const Soprano::Parser&);
    virtual ~sipSoprano_Parser();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::RdfSerializations supportedSerializations() const;
    QStringList supportedUserSerializations() const;
    Soprano::StatementIterator parseFile(const QString&,const QUrl&,Soprano::RdfSerialization,const QString&) const;
    Soprano::StatementIterator parseString(const QString&,const QUrl&,Soprano::RdfSerialization,const QString&) const;
    Soprano::StatementIterator parseStream(QTextStream&,const QUrl&,Soprano::RdfSerialization,const QString&) const;
    bool isAvailable() const;
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSoprano_Parser(const sipSoprano_Parser &);
    sipSoprano_Parser &operator = (const sipSoprano_Parser &);

    char sipPyMethods[7];
};

sipSoprano_Parser::sipSoprano_Parser(const QString& a0): Soprano::Parser(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_Parser::sipSoprano_Parser(const Soprano::Parser& a0): Soprano::Parser(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_Parser::~sipSoprano_Parser()
{
    sipCommonDtor(sipPySelf);
}

Soprano::RdfSerializations sipSoprano_Parser::supportedSerializations() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_Parser,sipName_supportedSerializations);

    if (!sipMeth)
        return Soprano::RdfSerializations();

    extern Soprano::RdfSerializations sipVH_soprano_5(sip_gilstate_t,PyObject *);

    return sipVH_soprano_5(sipGILState,sipMeth);
}

QStringList sipSoprano_Parser::supportedUserSerializations() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_supportedUserSerializations);

    if (!sipMeth)
        return Soprano::Parser::supportedUserSerializations();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_soprano_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

Soprano::StatementIterator sipSoprano_Parser::parseFile(const QString& a0,const QUrl& a1,Soprano::RdfSerialization a2,const QString& a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_parseFile);

    if (!sipMeth)
        return Soprano::Parser::parseFile(a0,a1,a2,a3);

    extern Soprano::StatementIterator sipVH_soprano_11(sip_gilstate_t,PyObject *,const QString&,const QUrl&,Soprano::RdfSerialization,const QString&);

    return sipVH_soprano_11(sipGILState,sipMeth,a0,a1,a2,a3);
}

Soprano::StatementIterator sipSoprano_Parser::parseString(const QString& a0,const QUrl& a1,Soprano::RdfSerialization a2,const QString& a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_parseString);

    if (!sipMeth)
        return Soprano::Parser::parseString(a0,a1,a2,a3);

    extern Soprano::StatementIterator sipVH_soprano_11(sip_gilstate_t,PyObject *,const QString&,const QUrl&,Soprano::RdfSerialization,const QString&);

    return sipVH_soprano_11(sipGILState,sipMeth,a0,a1,a2,a3);
}

Soprano::StatementIterator sipSoprano_Parser::parseStream(QTextStream& a0,const QUrl& a1,Soprano::RdfSerialization a2,const QString& a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_Parser,sipName_parseStream);

    if (!sipMeth)
        return Soprano::StatementIterator();

    extern Soprano::StatementIterator sipVH_soprano_10(sip_gilstate_t,PyObject *,QTextStream&,const QUrl&,Soprano::RdfSerialization,const QString&);

    return sipVH_soprano_10(sipGILState,sipMeth,a0,a1,a2,a3);
}

bool sipSoprano_Parser::isAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_isAvailable);

    if (!sipMeth)
        return Soprano::Plugin::isAvailable();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

Soprano::Error::Error sipSoprano_Parser::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_lastError);

    if (!sipMeth)
        return Soprano::Error::ErrorCache::lastError();

    extern Soprano::Error::Error sipVH_soprano_20(sip_gilstate_t,PyObject *);

    return sipVH_soprano_20(sipGILState,sipMeth);
}

void sipSoprano_Parser::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

void sipSoprano_Parser::sipProtect_setError(const Soprano::Error::Error& a0) const
{
    Soprano::Error::ErrorCache::setError(a0);
}

void sipSoprano_Parser::sipProtect_setError(const QString& a0,int a1) const
{
    Soprano::Error::ErrorCache::setError(a0,a1);
}


extern "C" {static PyObject *meth_Soprano_Parser_clearError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Parser_clearError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipSoprano_Parser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Parser, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Parser, sipName_clearError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Parser_setError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Parser_setError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Soprano::Error::Error * a0;
        sipSoprano_Parser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Parser, &sipCpp, sipType_Soprano_Error_Error, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        int a1 = Soprano::Error::ErrorUnknown;
        sipSoprano_Parser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Parser, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Parser, sipName_setError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Parser_supportedSerializations(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Parser_supportedSerializations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::Parser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Parser, &sipCpp))
        {
            Soprano::RdfSerializations *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Parser, sipName_supportedSerializations);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::RdfSerializations(sipCpp->supportedSerializations());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_RdfSerializations,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Parser, sipName_supportedSerializations, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Parser_supportedUserSerializations(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Parser_supportedUserSerializations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Parser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Parser, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Soprano::Parser::supportedUserSerializations() : sipCpp->supportedUserSerializations()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Parser, sipName_supportedUserSerializations, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Parser_supportsSerialization(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Parser_supportsSerialization(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::RdfSerialization a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Soprano::Parser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|J1", &sipSelf, sipType_Soprano_Parser, &sipCpp, sipType_Soprano_RdfSerialization, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportsSerialization(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Parser, sipName_supportsSerialization, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Parser_parseFile(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Parser_parseFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Soprano::RdfSerialization a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;
        Soprano::Parser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9E|J1", &sipSelf, sipType_Soprano_Parser, &sipCpp, sipType_QString,&a0, &a0State, sipType_QUrl, &a1, sipType_Soprano_RdfSerialization, &a2, sipType_QString,&a3, &a3State))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator((sipSelfWasArg ? sipCpp->Soprano::Parser::parseFile(*a0,*a1,a2,*a3) : sipCpp->parseFile(*a0,*a1,a2,*a3)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipConvertFromNewType(sipRes,sipType_Soprano_StatementIterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Parser, sipName_parseFile, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Parser_parseString(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Parser_parseString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Soprano::RdfSerialization a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;
        Soprano::Parser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9E|J1", &sipSelf, sipType_Soprano_Parser, &sipCpp, sipType_QString,&a0, &a0State, sipType_QUrl, &a1, sipType_Soprano_RdfSerialization, &a2, sipType_QString,&a3, &a3State))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator((sipSelfWasArg ? sipCpp->Soprano::Parser::parseString(*a0,*a1,a2,*a3) : sipCpp->parseString(*a0,*a1,a2,*a3)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipConvertFromNewType(sipRes,sipType_Soprano_StatementIterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Parser, sipName_parseString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Parser_parseStream(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Parser_parseStream(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QTextStream * a0;
        const QUrl * a1;
        Soprano::RdfSerialization a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;
        Soprano::Parser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9E|J1", &sipSelf, sipType_Soprano_Parser, &sipCpp, sipType_QTextStream, &a0, sipType_QUrl, &a1, sipType_Soprano_RdfSerialization, &a2, sipType_QString,&a3, &a3State))
        {
            Soprano::StatementIterator *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Parser, sipName_parseStream);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator(sipCpp->parseStream(*a0,*a1,a2,*a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipConvertFromNewType(sipRes,sipType_Soprano_StatementIterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Parser, sipName_parseStream, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_Parser(void *, const sipTypeDef *);}
static void *cast_Soprano_Parser(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Soprano_Parser)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Plugin)->ctd_cast((Soprano::Plugin *)(Soprano::Parser *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Error_ErrorCache)->ctd_cast((Soprano::Error::ErrorCache *)(Soprano::Parser *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_Parser(void *, int);}
static void release_Soprano_Parser(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Parser *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Parser *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Parser(sipSimpleWrapper *);}
static void dealloc_Soprano_Parser(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Parser *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Parser(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Soprano_Parser(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Parser(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_Parser *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Parser(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Parser * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Soprano_Parser, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Parser(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_Parser[] = {{57, 255, 0}, {30, 255, 1}};


static PyMethodDef methods_Soprano_Parser[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Parser_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseFile), meth_Soprano_Parser_parseFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseStream), meth_Soprano_Parser_parseStream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseString), meth_Soprano_Parser_parseString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Parser_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedSerializations), meth_Soprano_Parser_supportedSerializations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedUserSerializations), meth_Soprano_Parser_supportedUserSerializations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportsSerialization), meth_Soprano_Parser_supportsSerialization, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Parser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Parser,
        {0}
    },
    {
        sipNameNr_Parser,
        {11, 255, 0},
        8, methods_Soprano_Parser,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Parser,
    0,
    init_Soprano_Parser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Parser,
    0,
    0,
    0,
    release_Soprano_Parser,
    cast_Soprano_Parser,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2953 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_versionInfo(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_versionInfo(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::versionInfo());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_versionInfo, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_unionOf(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_unionOf(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::unionOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_unionOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_someValuesFrom(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_someValuesFrom(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::someValuesFrom());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_someValuesFrom, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_sameAs(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_sameAs(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::sameAs());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_sameAs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_priorVersion(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_priorVersion(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::priorVersion());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_priorVersion, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_oneOf(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_oneOf(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::oneOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_oneOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_onProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_onProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::onProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_onProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_minCardinality(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_minCardinality(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::minCardinality());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_minCardinality, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_maxCardinality(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_maxCardinality(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::maxCardinality());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_maxCardinality, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_inverseOf(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_inverseOf(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::inverseOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_inverseOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_intersectionOf(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_intersectionOf(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::intersectionOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_intersectionOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_incompatibleWith(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_incompatibleWith(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::incompatibleWith());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_incompatibleWith, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_imports(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_imports(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::imports());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_imports, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_hasValue(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_hasValue(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::hasValue());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_hasValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_equivalentProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_equivalentProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::equivalentProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_equivalentProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_equivalentClass(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_equivalentClass(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::equivalentClass());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_equivalentClass, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_distinctMembers(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_distinctMembers(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::distinctMembers());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_distinctMembers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_disjointWith(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_disjointWith(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::disjointWith());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_disjointWith, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_differentFrom(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_differentFrom(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::differentFrom());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_differentFrom, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_complementOf(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_complementOf(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::complementOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_complementOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_cardinality(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_cardinality(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::cardinality());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_cardinality, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_backwardCompatibleWith(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_backwardCompatibleWith(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::backwardCompatibleWith());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_backwardCompatibleWith, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_allValuesFrom(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_allValuesFrom(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::allValuesFrom());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_allValuesFrom, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_TransitiveProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_TransitiveProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::TransitiveProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_TransitiveProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_Thing(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_Thing(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::Thing());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Thing, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_SymmetricProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_SymmetricProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::SymmetricProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_SymmetricProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_Restriction(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_Restriction(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::Restriction());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Restriction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_OntologyProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_OntologyProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::OntologyProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_OntologyProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_Ontology(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_Ontology(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::Ontology());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Ontology, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_ObjectProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_ObjectProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::ObjectProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_ObjectProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_Nothing(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_Nothing(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::Nothing());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Nothing, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_InverseFunctionalProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_InverseFunctionalProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::InverseFunctionalProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_InverseFunctionalProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_FunctionalProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_FunctionalProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::FunctionalProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_FunctionalProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_DeprecatedProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_DeprecatedProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::DeprecatedProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_DeprecatedProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_DeprecatedClass(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_DeprecatedClass(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::DeprecatedClass());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_DeprecatedClass, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_DatatypeProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_DatatypeProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::DatatypeProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_DatatypeProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_DataRange(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_DataRange(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::DataRange());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_DataRange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_Class(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_Class(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::Class());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Class, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_AnnotationProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_AnnotationProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::AnnotationProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_AnnotationProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_AllDifferent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_AllDifferent(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::AllDifferent());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_AllDifferent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_OWL_owlNamespace(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_OWL_owlNamespace(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::OWL::owlNamespace());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_owlNamespace, NULL);

    return NULL;
}


static PyMethodDef methods_Soprano_Vocabulary_OWL[] = {
    {SIP_MLNAME_CAST(sipName_AllDifferent), meth_Soprano_Vocabulary_OWL_AllDifferent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_AnnotationProperty), meth_Soprano_Vocabulary_OWL_AnnotationProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Class), meth_Soprano_Vocabulary_OWL_Class, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_DataRange), meth_Soprano_Vocabulary_OWL_DataRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_DatatypeProperty), meth_Soprano_Vocabulary_OWL_DatatypeProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_DeprecatedClass), meth_Soprano_Vocabulary_OWL_DeprecatedClass, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_DeprecatedProperty), meth_Soprano_Vocabulary_OWL_DeprecatedProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_FunctionalProperty), meth_Soprano_Vocabulary_OWL_FunctionalProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_InverseFunctionalProperty), meth_Soprano_Vocabulary_OWL_InverseFunctionalProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Nothing), meth_Soprano_Vocabulary_OWL_Nothing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ObjectProperty), meth_Soprano_Vocabulary_OWL_ObjectProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Ontology), meth_Soprano_Vocabulary_OWL_Ontology, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_OntologyProperty), meth_Soprano_Vocabulary_OWL_OntologyProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Restriction), meth_Soprano_Vocabulary_OWL_Restriction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_SymmetricProperty), meth_Soprano_Vocabulary_OWL_SymmetricProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Thing), meth_Soprano_Vocabulary_OWL_Thing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_TransitiveProperty), meth_Soprano_Vocabulary_OWL_TransitiveProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allValuesFrom), meth_Soprano_Vocabulary_OWL_allValuesFrom, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_backwardCompatibleWith), meth_Soprano_Vocabulary_OWL_backwardCompatibleWith, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cardinality), meth_Soprano_Vocabulary_OWL_cardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_complementOf), meth_Soprano_Vocabulary_OWL_complementOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_differentFrom), meth_Soprano_Vocabulary_OWL_differentFrom, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disjointWith), meth_Soprano_Vocabulary_OWL_disjointWith, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_distinctMembers), meth_Soprano_Vocabulary_OWL_distinctMembers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_equivalentClass), meth_Soprano_Vocabulary_OWL_equivalentClass, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_equivalentProperty), meth_Soprano_Vocabulary_OWL_equivalentProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasValue), meth_Soprano_Vocabulary_OWL_hasValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_imports), meth_Soprano_Vocabulary_OWL_imports, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_incompatibleWith), meth_Soprano_Vocabulary_OWL_incompatibleWith, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_intersectionOf), meth_Soprano_Vocabulary_OWL_intersectionOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inverseOf), meth_Soprano_Vocabulary_OWL_inverseOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxCardinality), meth_Soprano_Vocabulary_OWL_maxCardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_minCardinality), meth_Soprano_Vocabulary_OWL_minCardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_onProperty), meth_Soprano_Vocabulary_OWL_onProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_oneOf), meth_Soprano_Vocabulary_OWL_oneOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_owlNamespace), meth_Soprano_Vocabulary_OWL_owlNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_priorVersion), meth_Soprano_Vocabulary_OWL_priorVersion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sameAs), meth_Soprano_Vocabulary_OWL_sameAs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_someValuesFrom), meth_Soprano_Vocabulary_OWL_someValuesFrom, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unionOf), meth_Soprano_Vocabulary_OWL_unionOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_versionInfo), meth_Soprano_Vocabulary_OWL_versionInfo, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Vocabulary_OWL = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Vocabulary__OWL,
        {0}
    },
    {
        sipNameNr_OWL,
        {85, 255, 0},
        41, methods_Soprano_Vocabulary_OWL,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nrlmodel.sip"
#include <soprano/nrlmodel.h>
#line 4078 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 4082 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 4085 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 4088 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4091 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 4094 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4097 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 4100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 4103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 4106 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 4109 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 4112 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4115 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4118 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4121 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4124 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4133 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4139 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4145 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4148 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4151 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 4154 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


class sipSoprano_NRLModel : public Soprano::NRLModel
{
public:
    sipSoprano_NRLModel();
    sipSoprano_NRLModel(Soprano::Model *);
    virtual ~sipSoprano_NRLModel();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_parentStatementsAdded(bool);
    void sipProtectVirt_parentStatementsRemoved(bool);
    void sipProtectVirt_parentStatementAdded(bool,const Soprano::Statement&);
    void sipProtectVirt_parentStatementRemoved(bool,const Soprano::Statement&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::QueryResultIterator executeQuery(const QString&,Soprano::Query::QueryLanguage,const QString&) const;
    Soprano::Error::ErrorCode removeAllStatements(const Soprano::Statement&);
    void setParentModel(Soprano::Model *);
    Soprano::Model * parentModel() const;
    Soprano::Error::ErrorCode addStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeStatement(const Soprano::Statement&);
    Soprano::StatementIterator listStatements(const Soprano::Statement&) const;
    Soprano::NodeIterator listContexts() const;
    bool containsStatement(const Soprano::Statement&) const;
    bool containsAnyStatement(const Soprano::Statement&) const;
    bool isEmpty() const;
    int statementCount() const;
    Soprano::Error::ErrorCode write(QTextStream&) const;
    Soprano::Node createBlankNode();
    void parentStatementsAdded();
    void parentStatementsRemoved();
    void parentStatementAdded(const Soprano::Statement&);
    void parentStatementRemoved(const Soprano::Statement&);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSoprano_NRLModel(const sipSoprano_NRLModel &);
    sipSoprano_NRLModel &operator = (const sipSoprano_NRLModel &);

    char sipPyMethods[26];
};

sipSoprano_NRLModel::sipSoprano_NRLModel(): Soprano::NRLModel(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_NRLModel::sipSoprano_NRLModel(Soprano::Model *a0): Soprano::NRLModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_NRLModel::~sipSoprano_NRLModel()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipSoprano_NRLModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_NRLModel);
}

int sipSoprano_NRLModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Soprano::NRLModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_soprano_qt_metacall(sipPySelf,sipType_Soprano_NRLModel,_c,_id,_a);

    return _id;
}

void *sipSoprano_NRLModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_NRLModel,_clname)) ? this : Soprano::NRLModel::qt_metacast(_clname);
}

Soprano::QueryResultIterator sipSoprano_NRLModel::executeQuery(const QString& a0,Soprano::Query::QueryLanguage a1,const QString& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_executeQuery);

    if (!sipMeth)
        return Soprano::NRLModel::executeQuery(a0,a1,a2);

    extern Soprano::QueryResultIterator sipVH_soprano_12(sip_gilstate_t,PyObject *,const QString&,Soprano::Query::QueryLanguage,const QString&);

    return sipVH_soprano_12(sipGILState,sipMeth,a0,a1,a2);
}

Soprano::Error::ErrorCode sipSoprano_NRLModel::removeAllStatements(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_removeAllStatements);

    if (!sipMeth)
        return Soprano::NRLModel::removeAllStatements(a0);

    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

void sipSoprano_NRLModel::setParentModel(Soprano::Model *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setParentModel);

    if (!sipMeth)
    {
        Soprano::FilterModel::setParentModel(a0);
        return;
    }

    extern void sipVH_soprano_19(sip_gilstate_t,PyObject *,Soprano::Model *);

    sipVH_soprano_19(sipGILState,sipMeth,a0);
}

Soprano::Model * sipSoprano_NRLModel::parentModel() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_parentModel);

    if (!sipMeth)
        return Soprano::FilterModel::parentModel();

    extern Soprano::Model * sipVH_soprano_18(sip_gilstate_t,PyObject *);

    return sipVH_soprano_18(sipGILState,sipMeth);
}

Soprano::Error::ErrorCode sipSoprano_NRLModel::addStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_addStatement);

    if (!sipMeth)
        return Soprano::FilterModel::addStatement(a0);

    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::Error::ErrorCode sipSoprano_NRLModel::removeStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_removeStatement);

    if (!sipMeth)
        return Soprano::FilterModel::removeStatement(a0);

    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::StatementIterator sipSoprano_NRLModel::listStatements(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_listStatements);

    if (!sipMeth)
        return Soprano::FilterModel::listStatements(a0);

    extern Soprano::StatementIterator sipVH_soprano_16(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_16(sipGILState,sipMeth,a0);
}

Soprano::NodeIterator sipSoprano_NRLModel::listContexts() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_listContexts);

    if (!sipMeth)
        return Soprano::FilterModel::listContexts();

    extern Soprano::NodeIterator sipVH_soprano_15(sip_gilstate_t,PyObject *);

    return sipVH_soprano_15(sipGILState,sipMeth);
}

bool sipSoprano_NRLModel::containsStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_containsStatement);

    if (!sipMeth)
        return Soprano::FilterModel::containsStatement(a0);

    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

bool sipSoprano_NRLModel::containsAnyStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_containsAnyStatement);

    if (!sipMeth)
        return Soprano::FilterModel::containsAnyStatement(a0);

    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

bool sipSoprano_NRLModel::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_isEmpty);

    if (!sipMeth)
        return Soprano::FilterModel::isEmpty();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

int sipSoprano_NRLModel::statementCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_statementCount);

    if (!sipMeth)
        return Soprano::FilterModel::statementCount();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_soprano_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

Soprano::Error::ErrorCode sipSoprano_NRLModel::write(QTextStream& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_write);

    if (!sipMeth)
        return Soprano::FilterModel::write(a0);

    extern Soprano::Error::ErrorCode sipVH_soprano_14(sip_gilstate_t,PyObject *,QTextStream&);

    return sipVH_soprano_14(sipGILState,sipMeth,a0);
}

Soprano::Node sipSoprano_NRLModel::createBlankNode()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_createBlankNode);

    if (!sipMeth)
        return Soprano::FilterModel::createBlankNode();

    extern Soprano::Node sipVH_soprano_13(sip_gilstate_t,PyObject *);

    return sipVH_soprano_13(sipGILState,sipMeth);
}

void sipSoprano_NRLModel::parentStatementsAdded()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_parentStatementsAdded);

    if (!sipMeth)
    {
        Soprano::FilterModel::parentStatementsAdded();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_soprano_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipSoprano_NRLModel::parentStatementsRemoved()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_parentStatementsRemoved);

    if (!sipMeth)
    {
        Soprano::FilterModel::parentStatementsRemoved();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_soprano_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipSoprano_NRLModel::parentStatementAdded(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_parentStatementAdded);

    if (!sipMeth)
    {
        Soprano::FilterModel::parentStatementAdded(a0);
        return;
    }

    extern void sipVH_soprano_17(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sipVH_soprano_17(sipGILState,sipMeth,a0);
}

void sipSoprano_NRLModel::parentStatementRemoved(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_parentStatementRemoved);

    if (!sipMeth)
    {
        Soprano::FilterModel::parentStatementRemoved(a0);
        return;
    }

    extern void sipVH_soprano_17(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sipVH_soprano_17(sipGILState,sipMeth,a0);
}

bool sipSoprano_NRLModel::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QObject::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_soprano_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipSoprano_NRLModel::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QObject::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipSoprano_NRLModel::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QObject::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_soprano_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipSoprano_NRLModel::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QObject::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_soprano_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipSoprano_NRLModel::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QObject::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_soprano_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipSoprano_NRLModel::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QObject::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_soprano_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipSoprano_NRLModel::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_soprano_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

Soprano::Error::Error sipSoprano_NRLModel::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,NULL,sipName_lastError);

    if (!sipMeth)
        return Soprano::Error::ErrorCache::lastError();

    extern Soprano::Error::Error sipVH_soprano_20(sip_gilstate_t,PyObject *);

    return sipVH_soprano_20(sipGILState,sipMeth);
}

void sipSoprano_NRLModel::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

void sipSoprano_NRLModel::sipProtect_setError(const Soprano::Error::Error& a0) const
{
    Soprano::Error::ErrorCache::setError(a0);
}

void sipSoprano_NRLModel::sipProtect_setError(const QString& a0,int a1) const
{
    Soprano::Error::ErrorCache::setError(a0,a1);
}

QObject * sipSoprano_NRLModel::sipProtect_sender() const
{
    return QObject::sender();
}

int sipSoprano_NRLModel::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipSoprano_NRLModel::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipSoprano_NRLModel::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipSoprano_NRLModel::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipSoprano_NRLModel::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipSoprano_NRLModel::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipSoprano_NRLModel::sipProtectVirt_parentStatementsAdded(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementsAdded() : parentStatementsAdded());
}

void sipSoprano_NRLModel::sipProtectVirt_parentStatementsRemoved(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementsRemoved() : parentStatementsRemoved());
}

void sipSoprano_NRLModel::sipProtectVirt_parentStatementAdded(bool sipSelfWasArg,const Soprano::Statement& a0)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementAdded(a0) : parentStatementAdded(a0));
}

void sipSoprano_NRLModel::sipProtectVirt_parentStatementRemoved(bool sipSelfWasArg,const Soprano::Statement& a0)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementRemoved(a0) : parentStatementRemoved(a0));
}


extern "C" {static PyObject *meth_Soprano_NRLModel_clearError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_clearError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_NRLModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_clearError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_setError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_setError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Soprano::Error::Error * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_Soprano_Error_Error, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        int a1 = Soprano::Error::ErrorUnknown;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_setError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_sender(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_NRLModel, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 4852 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_receivers(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_receivers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        char * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 4894 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_parentStatementsAdded(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_parentStatementsAdded(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_NRLModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementsAdded(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_parentStatementsAdded, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_parentStatementsRemoved(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_parentStatementsRemoved(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_NRLModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementsRemoved(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_parentStatementsRemoved, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_parentStatementAdded(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_parentStatementAdded(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementAdded(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_parentStatementAdded, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_parentStatementRemoved(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_parentStatementRemoved(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementRemoved(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_parentStatementRemoved, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_setIgnoreContext(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_setIgnoreContext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIgnoreContext(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_setIgnoreContext, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_ignoreContext(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_ignoreContext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_NRLModel, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->ignoreContext();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_ignoreContext, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_addNrlStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_addNrlStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Soprano::Statement * a0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addNrlStatement(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_addNrlStatement, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_createGraph(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_createGraph(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl * a0;
        QUrl * a1 = 0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|J8", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_QUrl, &a0, sipType_QUrl, &a1))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->createGraph(*a0,a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_createGraph, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_removeGraph(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_removeGraph(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl * a0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_QUrl, &a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeGraph(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_removeGraph, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_setEnableQueryPrefixExpansion(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_setEnableQueryPrefixExpansion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEnableQueryPrefixExpansion(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_setEnableQueryPrefixExpansion, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_queryPrefixExpansionEnabled(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_queryPrefixExpansionEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_NRLModel, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryPrefixExpansionEnabled();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_queryPrefixExpansionEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_queryPrefixes(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_queryPrefixes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_NRLModel, &sipCpp))
        {
            QHash<QString,QUrl> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QString,QUrl>(sipCpp->queryPrefixes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHash_0100QString_0100QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_queryPrefixes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_executeQuery(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_executeQuery(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        Soprano::Query::QueryLanguage a1;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E|J1", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_QString,&a0, &a0State, sipType_Soprano_Query_QueryLanguage, &a1, sipType_QString,&a2, &a2State))
        {
            Soprano::QueryResultIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::QueryResultIterator((sipSelfWasArg ? sipCpp->Soprano::NRLModel::executeQuery(*a0,a1,*a2) : sipCpp->executeQuery(*a0,a1,*a2)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipConvertFromNewType(sipRes,sipType_Soprano_QueryResultIterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_executeQuery, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_NRLModel_removeAllStatements(PyObject *, PyObject *);}
static PyObject *meth_Soprano_NRLModel_removeAllStatements(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_NRLModel, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::NRLModel::removeAllStatements(*a0) : sipCpp->removeAllStatements(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NRLModel, sipName_removeAllStatements, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_NRLModel(void *, const sipTypeDef *);}
static void *cast_Soprano_NRLModel(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Soprano_NRLModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_FilterModel)->ctd_cast((Soprano::FilterModel *)(Soprano::NRLModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_NRLModel(void *, int);}
static void release_Soprano_NRLModel(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_NRLModel *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::NRLModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_NRLModel(sipSimpleWrapper *);}
static void dealloc_Soprano_NRLModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_NRLModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_NRLModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Soprano_NRLModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_NRLModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_NRLModel *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_NRLModel();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Soprano::Model * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_Soprano_Model, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_NRLModel(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_NRLModel[] = {{34, 255, 1}};


static PyMethodDef methods_Soprano_NRLModel[] = {
    {SIP_MLNAME_CAST(sipName_addNrlStatement), meth_Soprano_NRLModel_addNrlStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_NRLModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_NRLModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_NRLModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createGraph), meth_Soprano_NRLModel_createGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_NRLModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_NRLModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQuery), meth_Soprano_NRLModel_executeQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ignoreContext), meth_Soprano_NRLModel_ignoreContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementAdded), meth_Soprano_NRLModel_parentStatementAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementRemoved), meth_Soprano_NRLModel_parentStatementRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsAdded), meth_Soprano_NRLModel_parentStatementsAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsRemoved), meth_Soprano_NRLModel_parentStatementsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryPrefixExpansionEnabled), meth_Soprano_NRLModel_queryPrefixExpansionEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryPrefixes), meth_Soprano_NRLModel_queryPrefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_NRLModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_NRLModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeGraph), meth_Soprano_NRLModel_removeGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Soprano_NRLModel_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEnableQueryPrefixExpansion), meth_Soprano_NRLModel_setEnableQueryPrefixExpansion, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_NRLModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIgnoreContext), meth_Soprano_NRLModel_setIgnoreContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_NRLModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_NRLModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__NRLModel,
        {0}
    },
    {
        sipNameNr_NRLModel,
        {11, 255, 0},
        23, methods_Soprano_NRLModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_NRLModel,
    0,
    init_Soprano_NRLModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_NRLModel,
    0,
    0,
    0,
    release_Soprano_NRLModel,
    cast_Soprano_NRLModel,
    0,
    0,
    0
},
    &Soprano::NRLModel::staticMetaObject,
    0,
    0
};


#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5607 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_DiscardableInstanceBase(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_DiscardableInstanceBase(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::DiscardableInstanceBase());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_DiscardableInstanceBase, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_viewOn(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_viewOn(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::viewOn());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_viewOn, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_updatable(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_updatable(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::updatable());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_updatable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_superGraphOf(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_superGraphOf(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::superGraphOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_superGraphOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_subGraphOf(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_subGraphOf(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::subGraphOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_subGraphOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_semanticsDefinedBy(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_semanticsDefinedBy(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::semanticsDefinedBy());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_semanticsDefinedBy, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_ruleLanguage(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_ruleLanguage(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::ruleLanguage());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_ruleLanguage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_rule(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_rule(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::rule());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_rule, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_realizes(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_realizes(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::realizes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_realizes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_minCardinality(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_minCardinality(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::minCardinality());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_minCardinality, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_maxCardinality(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_maxCardinality(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::maxCardinality());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_maxCardinality, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_inverseProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_inverseProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::inverseProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_inverseProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_imports(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_imports(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::imports());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_imports, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_hasSpecification(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_hasSpecification(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::hasSpecification());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_hasSpecification, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_hasSemantics(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_hasSemantics(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::hasSemantics());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_hasSemantics, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_graphMetadataFor(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_graphMetadataFor(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::graphMetadataFor());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_graphMetadataFor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_externalRealizer(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_externalRealizer(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::externalRealizer());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_externalRealizer, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_equivalentGraph(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_equivalentGraph(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::equivalentGraph());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_equivalentGraph, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_coreGraphMetadataFor(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_coreGraphMetadataFor(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::coreGraphMetadataFor());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_coreGraphMetadataFor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_cardinality(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_cardinality(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::cardinality());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_cardinality, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_ViewSpecification(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_ViewSpecification(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::ViewSpecification());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_ViewSpecification, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_TransitiveProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_TransitiveProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::TransitiveProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_TransitiveProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_SymmetricProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_SymmetricProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::SymmetricProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_SymmetricProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_Semantics(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_Semantics(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::Semantics());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Semantics, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_Schema(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_Schema(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::Schema());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Schema, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_RuleViewSpecification(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_RuleViewSpecification(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::RuleViewSpecification());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_RuleViewSpecification, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_ReflexiveProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_ReflexiveProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::ReflexiveProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_ReflexiveProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_Ontology(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_Ontology(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::Ontology());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Ontology, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_KnowledgeBase(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_KnowledgeBase(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::KnowledgeBase());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_KnowledgeBase, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_InverseFunctionalProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_InverseFunctionalProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::InverseFunctionalProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_InverseFunctionalProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_InstanceBase(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_InstanceBase(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::InstanceBase());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_InstanceBase, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_GraphView(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_GraphView(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::GraphView());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_GraphView, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_GraphMetadata(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_GraphMetadata(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::GraphMetadata());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_GraphMetadata, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_Graph(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_Graph(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::Graph());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Graph, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_FunctionalProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_FunctionalProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::FunctionalProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_FunctionalProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_ExternalViewSpecification(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_ExternalViewSpecification(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::ExternalViewSpecification());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_ExternalViewSpecification, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_DocumentGraph(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_DocumentGraph(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::DocumentGraph());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_DocumentGraph, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_DefaultGraph(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_DefaultGraph(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::DefaultGraph());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_DefaultGraph, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_Data(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_Data(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::Data());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Data, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_Configuration(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_Configuration(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::Configuration());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Configuration, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_AsymmetricProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_AsymmetricProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::AsymmetricProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_AsymmetricProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_NRL_nrlNamespace(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_NRL_nrlNamespace(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NRL::nrlNamespace());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_nrlNamespace, NULL);

    return NULL;
}


static PyMethodDef methods_Soprano_Vocabulary_NRL[] = {
    {SIP_MLNAME_CAST(sipName_AsymmetricProperty), meth_Soprano_Vocabulary_NRL_AsymmetricProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Configuration), meth_Soprano_Vocabulary_NRL_Configuration, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Data), meth_Soprano_Vocabulary_NRL_Data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_DefaultGraph), meth_Soprano_Vocabulary_NRL_DefaultGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_DiscardableInstanceBase), meth_Soprano_Vocabulary_NRL_DiscardableInstanceBase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_DocumentGraph), meth_Soprano_Vocabulary_NRL_DocumentGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ExternalViewSpecification), meth_Soprano_Vocabulary_NRL_ExternalViewSpecification, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_FunctionalProperty), meth_Soprano_Vocabulary_NRL_FunctionalProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Graph), meth_Soprano_Vocabulary_NRL_Graph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_GraphMetadata), meth_Soprano_Vocabulary_NRL_GraphMetadata, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_GraphView), meth_Soprano_Vocabulary_NRL_GraphView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_InstanceBase), meth_Soprano_Vocabulary_NRL_InstanceBase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_InverseFunctionalProperty), meth_Soprano_Vocabulary_NRL_InverseFunctionalProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_KnowledgeBase), meth_Soprano_Vocabulary_NRL_KnowledgeBase, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Ontology), meth_Soprano_Vocabulary_NRL_Ontology, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ReflexiveProperty), meth_Soprano_Vocabulary_NRL_ReflexiveProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_RuleViewSpecification), meth_Soprano_Vocabulary_NRL_RuleViewSpecification, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Schema), meth_Soprano_Vocabulary_NRL_Schema, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Semantics), meth_Soprano_Vocabulary_NRL_Semantics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_SymmetricProperty), meth_Soprano_Vocabulary_NRL_SymmetricProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_TransitiveProperty), meth_Soprano_Vocabulary_NRL_TransitiveProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ViewSpecification), meth_Soprano_Vocabulary_NRL_ViewSpecification, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cardinality), meth_Soprano_Vocabulary_NRL_cardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_coreGraphMetadataFor), meth_Soprano_Vocabulary_NRL_coreGraphMetadataFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_equivalentGraph), meth_Soprano_Vocabulary_NRL_equivalentGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_externalRealizer), meth_Soprano_Vocabulary_NRL_externalRealizer, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_graphMetadataFor), meth_Soprano_Vocabulary_NRL_graphMetadataFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSemantics), meth_Soprano_Vocabulary_NRL_hasSemantics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSpecification), meth_Soprano_Vocabulary_NRL_hasSpecification, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_imports), meth_Soprano_Vocabulary_NRL_imports, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inverseProperty), meth_Soprano_Vocabulary_NRL_inverseProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxCardinality), meth_Soprano_Vocabulary_NRL_maxCardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_minCardinality), meth_Soprano_Vocabulary_NRL_minCardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nrlNamespace), meth_Soprano_Vocabulary_NRL_nrlNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_realizes), meth_Soprano_Vocabulary_NRL_realizes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rule), meth_Soprano_Vocabulary_NRL_rule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ruleLanguage), meth_Soprano_Vocabulary_NRL_ruleLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_semanticsDefinedBy), meth_Soprano_Vocabulary_NRL_semanticsDefinedBy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subGraphOf), meth_Soprano_Vocabulary_NRL_subGraphOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_superGraphOf), meth_Soprano_Vocabulary_NRL_superGraphOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updatable), meth_Soprano_Vocabulary_NRL_updatable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_viewOn), meth_Soprano_Vocabulary_NRL_viewOn, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Vocabulary_NRL = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Vocabulary__NRL,
        {0}
    },
    {
        sipNameNr_NRL,
        {85, 255, 0},
        42, methods_Soprano_Vocabulary_NRL,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodepattern.sip"
#include <soprano/nodepattern.h>
#line 6758 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 6762 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6765 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 6768 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart2.cpp"


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_isVariable(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_isVariable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_NodePattern, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isVariable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodePattern, sipName_isVariable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_resource(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_resource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_NodePattern, &sipCpp))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->resource());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodePattern, sipName_resource, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_variableName(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_variableName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_NodePattern, &sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->variableName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodePattern, sipName_variableName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_match(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_match(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Soprano::Node * a0;
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_NodePattern, &sipCpp, sipType_Soprano_Node, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->match(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodePattern, sipName_match, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_createSparqlNodePattern(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_createSparqlNodePattern(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Soprano::BindingSet * a0;
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_NodePattern, &sipCpp, sipType_Soprano_BindingSet, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->createSparqlNodePattern(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodePattern, sipName_createSparqlNodePattern, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_isValid(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_NodePattern, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodePattern, sipName_isValid, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_Inference_NodePattern(void *, const sipTypeDef *);}
static void *cast_Soprano_Inference_NodePattern(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Soprano_Inference_NodePattern)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_Inference_NodePattern(void *, int);}
static void release_Soprano_Inference_NodePattern(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Soprano::Inference::NodePattern *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_Inference_NodePattern(void *, SIP_SSIZE_T, const void *);}
static void assign_Soprano_Inference_NodePattern(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Soprano::Inference::NodePattern *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Soprano::Inference::NodePattern *>(sipSrc);
}


extern "C" {static void *array_Soprano_Inference_NodePattern(SIP_SSIZE_T);}
static void *array_Soprano_Inference_NodePattern(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::Inference::NodePattern[sipNrElem];
}


extern "C" {static void *copy_Soprano_Inference_NodePattern(const void *, SIP_SSIZE_T);}
static void *copy_Soprano_Inference_NodePattern(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Soprano::Inference::NodePattern(reinterpret_cast<const Soprano::Inference::NodePattern *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Soprano_Inference_NodePattern(sipSimpleWrapper *);}
static void dealloc_Soprano_Inference_NodePattern(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Inference_NodePattern(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_Soprano_Inference_NodePattern(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Inference_NodePattern(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Soprano::Inference::NodePattern *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::NodePattern();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Soprano::Node * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Soprano_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::NodePattern(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::NodePattern(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const Soprano::Inference::NodePattern * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Soprano_Inference_NodePattern, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::NodePattern(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Soprano_Inference_NodePattern[] = {
    {SIP_MLNAME_CAST(sipName_createSparqlNodePattern), meth_Soprano_Inference_NodePattern_createSparqlNodePattern, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_Inference_NodePattern_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isVariable), meth_Soprano_Inference_NodePattern_isVariable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Soprano_Inference_NodePattern_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resource), meth_Soprano_Inference_NodePattern_resource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variableName), meth_Soprano_Inference_NodePattern_variableName, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Inference_NodePattern = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__NodePattern,
        {0}
    },
    {
        sipNameNr_NodePattern,
        {36, 255, 0},
        6, methods_Soprano_Inference_NodePattern,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Soprano_Inference_NodePattern,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_NodePattern,
    assign_Soprano_Inference_NodePattern,
    array_Soprano_Inference_NodePattern,
    copy_Soprano_Inference_NodePattern,
    release_Soprano_Inference_NodePattern,
    cast_Soprano_Inference_NodePattern,
    0,
    0,
    0
},
    0,
    0,
    0
};
