/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:29:22 2009
 */

#include "sipAPIsoprano.h"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 12 "sipsopranopart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 16 "sipsopranopart4.cpp"


extern "C" {static int slot_Soprano_LanguageTag_LookupFlags___bool__(PyObject *sipSelf);}
static int slot_Soprano_LanguageTag_LookupFlags___bool__(PyObject *sipSelf)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 34 "sipsopranopart4.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Soprano_LanguageTag_LookupFlags,&a0,&a0State))
        {
            bool sipRes = 0;

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 62 "sipsopranopart4.cpp"

            sipReleaseType(const_cast<Soprano::LanguageTag::LookupFlags *>(a0),sipType_Soprano_LanguageTag_LookupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,ne_slot,sipType_Soprano_LanguageTag_LookupFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Soprano_LanguageTag_LookupFlags,&a0,&a0State))
        {
            bool sipRes = 0;

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 94 "sipsopranopart4.cpp"

            sipReleaseType(const_cast<Soprano::LanguageTag::LookupFlags *>(a0),sipType_Soprano_LanguageTag_LookupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,eq_slot,sipType_Soprano_LanguageTag_LookupFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___invert__(PyObject *sipSelf);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___invert__(PyObject *sipSelf)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;


    {
        {
            Soprano::LanguageTag::LookupFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag::LookupFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_Soprano_LanguageTag_LookupFlags,&a0,&a0State,&a1))
        {
            Soprano::LanguageTag::LookupFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag::LookupFlags((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);

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

    return sipPySlotExtend(&sipModuleAPI_soprano,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;
        Soprano::LanguageTag::LookupFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_Soprano_LanguageTag_LookupFlags,&a0,&a0State,sipType_Soprano_LanguageTag_LookupFlags,&a1,&a1State))
        {
            Soprano::LanguageTag::LookupFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag::LookupFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);
            sipReleaseType(a1,sipType_Soprano_LanguageTag_LookupFlags,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_soprano,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;
        Soprano::LanguageTag::LookupFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_Soprano_LanguageTag_LookupFlags,&a0,&a0State,sipType_Soprano_LanguageTag_LookupFlags,&a1,&a1State))
        {
            Soprano::LanguageTag::LookupFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag::LookupFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);
            sipReleaseType(a1,sipType_Soprano_LanguageTag_LookupFlags,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_soprano,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___int__(PyObject *sipSelf);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___int__(PyObject *sipSelf)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Soprano_LanguageTag_LookupFlags,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::LanguageTag::LookupFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___ior__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_Soprano_LanguageTag_LookupFlags,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::LanguageTag::LookupFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___iand__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::LanguageTag::LookupFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_LanguageTag_LookupFlags(void *, const void*);}
static void assign_Soprano_LanguageTag_LookupFlags(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipDst) = *reinterpret_cast<const Soprano::LanguageTag::LookupFlags *>(sipSrc);
}


extern "C" {static void dealloc_Soprano_LanguageTag_LookupFlags(sipSimpleWrapper *);}
static void dealloc_Soprano_LanguageTag_LookupFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_LanguageTag_LookupFlags(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Soprano_LanguageTag_LookupFlags(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_LanguageTag_LookupFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = 0;

    if (!sipCpp)
    {
        const Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_Soprano_LanguageTag_LookupFlags,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag::LookupFlags(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<Soprano::LanguageTag::LookupFlags *>(a0),sipType_Soprano_LanguageTag_LookupFlags,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag::LookupFlags(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag::LookupFlags();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


extern "C" {static int convertTo_Soprano_LanguageTag_LookupFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_Soprano_LanguageTag_LookupFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Soprano::LanguageTag::LookupFlags **sipCppPtr = reinterpret_cast<Soprano::LanguageTag::LookupFlags **>(sipCppPtrV);

#line 276 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Soprano::LanguageTag::LookupFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlag)) ||
            sipCanConvertToType(sipPy, sipType_Soprano_LanguageTag_LookupFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlag)))
{
    *sipCppPtr = new Soprano::LanguageTag::LookupFlags(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipConvertToType(sipPy, sipType_Soprano_LanguageTag_LookupFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 465 "sipsopranopart4.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_LanguageTag_LookupFlags[] = {
    {(void *)slot_Soprano_LanguageTag_LookupFlags___bool__, bool_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___ne__, ne_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___eq__, eq_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___invert__, invert_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___and__, and_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___xor__, xor_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___or__, or_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___int__, int_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___ixor__, ixor_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___ior__, ior_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_LanguageTag_LookupFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__LanguageTag__LookupFlags,
        {0}
    },
    sipNameNr_LookupFlags,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {43, 255, 0},
    0,
    slots_Soprano_LanguageTag_LookupFlags,
    0, 0,
    0, 0,
    0, 0,
    init_Soprano_LanguageTag_LookupFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_LanguageTag_LookupFlags,
    release_Soprano_LanguageTag_LookupFlags,
    cast_Soprano_LanguageTag_LookupFlags,
    convertTo_Soprano_LanguageTag_LookupFlags,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_LanguageTag_LookupFlags,
    0,
    1,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 533 "sipsopranopart4.cpp"

#line 500 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 537 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 540 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 543 "sipsopranopart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 564 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 567 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 570 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 573 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 576 "sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 579 "sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 582 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 585 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 588 "sipsopranopart4.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 591 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 594 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 597 "sipsopranopart4.cpp"


extern "C" {static PyObject *meth_Soprano_LanguageTag_matches(PyObject *, PyObject *);}
static PyObject *meth_Soprano_LanguageTag_matches(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::LanguageTag * a0;
        Soprano::LanguageTag::MatchFilter a1 = Soprano::LanguageTag::MatchFilterBasic;
        Soprano::LanguageTag *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|E",&sipSelf,sipType_Soprano_LanguageTag,&sipCpp,sipType_Soprano_LanguageTag,&a0,sipType_Soprano_LanguageTag_MatchFilter,&a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->matches(*a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_LanguageTag,sipName_matches);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_LanguageTag_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_LanguageTag_isEmpty(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LanguageTag,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_LanguageTag,sipName_isEmpty);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_LanguageTag_isValid(PyObject *, PyObject *);}
static PyObject *meth_Soprano_LanguageTag_isValid(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LanguageTag,&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(sipArgsParsed,sipName_LanguageTag,sipName_isValid);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_LanguageTag_subTags(PyObject *, PyObject *);}
static PyObject *meth_Soprano_LanguageTag_subTags(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_LanguageTag,sipName_subTags);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_LanguageTag_toString(PyObject *, PyObject *);}
static PyObject *meth_Soprano_LanguageTag_toString(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LanguageTag,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_LanguageTag,sipName_toString);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_LanguageTag_toPrettyString(PyObject *, PyObject *);}
static PyObject *meth_Soprano_LanguageTag_toPrettyString(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LanguageTag,&sipCpp))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toPrettyString());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_LanguageTag,sipName_toPrettyString);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_LanguageTag_toLocale(PyObject *, PyObject *);}
static PyObject *meth_Soprano_LanguageTag_toLocale(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::LanguageTag *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LanguageTag,&sipCpp))
        {
            QLocale *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QLocale(sipCpp->toLocale());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_LanguageTag,sipName_toLocale);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_LanguageTag_lookup(PyObject *, PyObject *);}
static PyObject *meth_Soprano_LanguageTag_lookup(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QList<Soprano::LanguageTag> * a0;
        int a0State = 0;
        const QList<Soprano::LanguageTag> * a1;
        int a1State = 0;
        Soprano::LanguageTag::LookupFlags a2def = Soprano::LanguageTag::LookupFlagNone;
        Soprano::LanguageTag::LookupFlags * a2 = &a2def;
        int a2State = 0;
        Soprano::LanguageTag::MatchFilter a3 = Soprano::LanguageTag::MatchFilterBasic;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J1|J1E",sipType_QList_0200Soprano_LanguageTag,&a0,&a0State,sipType_QList_0200Soprano_LanguageTag,&a1,&a1State,sipType_Soprano_LanguageTag_LookupFlags,&a2,&a2State,sipType_Soprano_LanguageTag_MatchFilter,&a3))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::LanguageTag::lookup(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Soprano::LanguageTag> *>(a0),sipType_QList_0200Soprano_LanguageTag,a0State);
            sipReleaseType(const_cast<QList<Soprano::LanguageTag> *>(a1),sipType_QList_0200Soprano_LanguageTag,a1State);
            sipReleaseType(a2,sipType_Soprano_LanguageTag_LookupFlags,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QList<Soprano::LanguageTag> * a0;
        int a0State = 0;
        const Soprano::LanguageTag * a1;
        Soprano::LanguageTag::LookupFlags a2def = Soprano::LanguageTag::LookupFlagNone;
        Soprano::LanguageTag::LookupFlags * a2 = &a2def;
        int a2State = 0;
        Soprano::LanguageTag::MatchFilter a3 = Soprano::LanguageTag::MatchFilterBasic;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J9|J1E",sipType_QList_0200Soprano_LanguageTag,&a0,&a0State,sipType_Soprano_LanguageTag,&a1,sipType_Soprano_LanguageTag_LookupFlags,&a2,&a2State,sipType_Soprano_LanguageTag_MatchFilter,&a3))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::LanguageTag::lookup(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Soprano::LanguageTag> *>(a0),sipType_QList_0200Soprano_LanguageTag,a0State);
            sipReleaseType(a2,sipType_Soprano_LanguageTag_LookupFlags,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_LanguageTag,sipName_lookup);

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___ge__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LanguageTag * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LanguageTag,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::LanguageTag::operator>=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,ge_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___gt__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag___gt__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LanguageTag * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LanguageTag,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::LanguageTag::operator>(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,gt_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___le__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag___le__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LanguageTag * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LanguageTag,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::LanguageTag::operator<=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,le_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___lt__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LanguageTag * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LanguageTag,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::LanguageTag::operator<(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,lt_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LanguageTag * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LanguageTag,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::LanguageTag::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,ne_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LanguageTag___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LanguageTag * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LanguageTag,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::LanguageTag::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,eq_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_LanguageTag(void *, const void*);}
static void assign_Soprano_LanguageTag(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::LanguageTag *>(sipDst) = *reinterpret_cast<const Soprano::LanguageTag *>(sipSrc);
}


extern "C" {static void dealloc_Soprano_LanguageTag(sipSimpleWrapper *);}
static void dealloc_Soprano_LanguageTag(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_LanguageTag(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Soprano_LanguageTag(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_LanguageTag(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Soprano::LanguageTag *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Soprano::LanguageTag * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_LanguageTag,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
        }
    }

    if (!sipCpp)
    {
        const QLatin1String * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_QLatin1String,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

    if (!sipCpp)
    {
        const QLocale * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_QLocale,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        QLocale::Language a0;
        QLocale::Country a1 = QLocale::AnyCountry;

        if (sipParseArgs(sipArgsParsed,sipArgs,"E|E",sipType_QLocale_Language,&a0,sipType_QLocale_Country,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag(a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_LanguageTag[] = {
    {(void *)slot_Soprano_LanguageTag___ge__, ge_slot},
    {(void *)slot_Soprano_LanguageTag___gt__, gt_slot},
    {(void *)slot_Soprano_LanguageTag___le__, le_slot},
    {(void *)slot_Soprano_LanguageTag___lt__, lt_slot},
    {(void *)slot_Soprano_LanguageTag___ne__, ne_slot},
    {(void *)slot_Soprano_LanguageTag___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Soprano_LanguageTag[] = {
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_LanguageTag_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_LanguageTag_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lookup), meth_Soprano_LanguageTag_lookup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_matches), meth_Soprano_LanguageTag_matches, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subTags), meth_Soprano_LanguageTag_subTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toLocale), meth_Soprano_LanguageTag_toLocale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toPrettyString), meth_Soprano_LanguageTag_toPrettyString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Soprano_LanguageTag_toString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Soprano_LanguageTag[] = {
    {sipName_LookupFlagNoFallback, Soprano::LanguageTag::LookupFlagNoFallback, 44},
    {sipName_LookupFlagNone, Soprano::LanguageTag::LookupFlagNone, 44},
    {sipName_MatchFilterBasic, Soprano::LanguageTag::MatchFilterBasic, 46},
    {sipName_MatchFilterExtended, Soprano::LanguageTag::MatchFilterExtended, 46},
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_LanguageTag = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__LanguageTag,
        {0}
    },
    sipNameNr_LanguageTag,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    slots_Soprano_LanguageTag,
    8, methods_Soprano_LanguageTag,
    4, enummembers_Soprano_LanguageTag,
    0, 0,
    init_Soprano_LanguageTag,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_LanguageTag,
    release_Soprano_LanguageTag,
    cast_Soprano_LanguageTag,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_LanguageTag,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 1242 "sipsopranopart4.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/nodepattern.sip"
#include <soprano/nodepattern.h>
#line 1246 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1249 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 1252 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 1255 "sipsopranopart4.cpp"


extern "C" {static PyObject *meth_Soprano_Inference_StatementPattern_subjectPattern(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_StatementPattern_subjectPattern(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::StatementPattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_StatementPattern,&sipCpp))
        {
            Soprano::Inference::NodePattern *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::NodePattern(sipCpp->subjectPattern());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementPattern,sipName_subjectPattern);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_StatementPattern_predicatePattern(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_StatementPattern_predicatePattern(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::StatementPattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_StatementPattern,&sipCpp))
        {
            Soprano::Inference::NodePattern *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::NodePattern(sipCpp->predicatePattern());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementPattern,sipName_predicatePattern);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_StatementPattern_objectPattern(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_StatementPattern_objectPattern(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::StatementPattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_StatementPattern,&sipCpp))
        {
            Soprano::Inference::NodePattern *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::NodePattern(sipCpp->objectPattern());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementPattern,sipName_objectPattern);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_StatementPattern_match(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_StatementPattern_match(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Statement * a0;
        Soprano::Inference::StatementPattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_StatementPattern,&sipCpp,sipType_Soprano_Statement,&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(sipArgsParsed,sipName_StatementPattern,sipName_match);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_StatementPattern_createSparqlGraphPattern(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_StatementPattern_createSparqlGraphPattern(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::BindingSet * a0;
        Soprano::Inference::StatementPattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_StatementPattern,&sipCpp,sipType_Soprano_BindingSet,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->createSparqlGraphPattern(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementPattern,sipName_createSparqlGraphPattern);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Inference::StatementPattern *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_Inference_StatementPattern(void *, const void*);}
static void assign_Soprano_Inference_StatementPattern(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::Inference::StatementPattern *>(sipDst) = *reinterpret_cast<const Soprano::Inference::StatementPattern *>(sipSrc);
}


extern "C" {static void dealloc_Soprano_Inference_StatementPattern(sipSimpleWrapper *);}
static void dealloc_Soprano_Inference_StatementPattern(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Inference_StatementPattern(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Soprano_Inference_StatementPattern(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_Inference_StatementPattern(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Soprano::Inference::StatementPattern *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::StatementPattern();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Soprano::Inference::NodePattern * a0;
        const Soprano::Inference::NodePattern * a1;
        const Soprano::Inference::NodePattern * a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J9J9",sipType_Soprano_Inference_NodePattern,&a0,sipType_Soprano_Inference_NodePattern,&a1,sipType_Soprano_Inference_NodePattern,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::StatementPattern(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Soprano::Inference::StatementPattern * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Inference_StatementPattern,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::StatementPattern(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_Soprano_Inference_StatementPattern[] = {
    {SIP_MLNAME_CAST(sipName_createSparqlGraphPattern), meth_Soprano_Inference_StatementPattern_createSparqlGraphPattern, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Soprano_Inference_StatementPattern_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_objectPattern), meth_Soprano_Inference_StatementPattern_objectPattern, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_predicatePattern), meth_Soprano_Inference_StatementPattern_predicatePattern, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjectPattern), meth_Soprano_Inference_StatementPattern_subjectPattern, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Inference_StatementPattern = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__StatementPattern,
        {0}
    },
    sipNameNr_StatementPattern,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {35, 255, 0},
    0,
    0,
    5, methods_Soprano_Inference_StatementPattern,
    0, 0,
    0, 0,
    init_Soprano_Inference_StatementPattern,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_StatementPattern,
    release_Soprano_Inference_StatementPattern,
    cast_Soprano_Inference_StatementPattern,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Inference_StatementPattern,
    0,
    0,
    0
};


#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1537 "sipsopranopart4.cpp"


extern "C" {static PyObject *meth_Soprano_Vocabulary_SIL_context(PyObject *,PyObject *);}
static PyObject *meth_Soprano_Vocabulary_SIL_context(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::context());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_context);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_SIL_sourceStatement(PyObject *,PyObject *);}
static PyObject *meth_Soprano_Vocabulary_SIL_sourceStatement(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::sourceStatement());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_sourceStatement);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_SIL_InferenceGraph(PyObject *,PyObject *);}
static PyObject *meth_Soprano_Vocabulary_SIL_InferenceGraph(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::InferenceGraph());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_InferenceGraph);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_SIL_InferenceMetaData(PyObject *,PyObject *);}
static PyObject *meth_Soprano_Vocabulary_SIL_InferenceMetaData(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::InferenceMetaData());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_InferenceMetaData);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_SIL_silNamespace(PyObject *,PyObject *);}
static PyObject *meth_Soprano_Vocabulary_SIL_silNamespace(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::silNamespace());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_silNamespace);

    return NULL;
}


static PyMethodDef methods_Soprano_Vocabulary_SIL[] = {
    {SIP_MLNAME_CAST(sipName_InferenceGraph), meth_Soprano_Vocabulary_SIL_InferenceGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_InferenceMetaData), meth_Soprano_Vocabulary_SIL_InferenceMetaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_context), meth_Soprano_Vocabulary_SIL_context, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_silNamespace), meth_Soprano_Vocabulary_SIL_silNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sourceStatement), meth_Soprano_Vocabulary_SIL_sourceStatement, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Vocabulary_SIL = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Vocabulary__SIL,
        {0}
    },
    sipNameNr_SIL,
    -1,
    -1,
    {86, 255, 0},
    0,
    0,
    5, methods_Soprano_Vocabulary_SIL,
    0, 0,
    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, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};




pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Vocabulary = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Vocabulary,
        {0}
    },
    sipNameNr_Vocabulary,
    -1,
    -1,
    {10, 255, 0},
    0,
    0,
    0, 0,
    0, 0,
    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, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/nodepattern.sip"
#include <soprano/nodepattern.h>
#line 1769 "sipsopranopart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 1773 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1776 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 1779 "sipsopranopart4.cpp"


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_isVariable(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_isVariable(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_NodePattern,sipName_isVariable);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_resource(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_resource(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_NodePattern,sipName_resource);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_variableName(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_variableName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_NodePattern,sipName_variableName);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_match(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_match(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Node * a0;
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_NodePattern,sipName_match);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_NodePattern_createSparqlNodePattern(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_NodePattern_createSparqlNodePattern(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::BindingSet * a0;
        Soprano::Inference::NodePattern *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_NodePattern,sipName_createSparqlNodePattern);

    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 *, const void*);}
static void assign_Soprano_Inference_NodePattern(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::Inference::NodePattern *>(sipDst) = *reinterpret_cast<const Soprano::Inference::NodePattern *>(sipSrc);
}


extern "C" {static void dealloc_Soprano_Inference_NodePattern(sipSimpleWrapper *);}
static void dealloc_Soprano_Inference_NodePattern(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Inference_NodePattern(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Soprano_Inference_NodePattern(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_Inference_NodePattern(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Soprano::Inference::NodePattern *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::NodePattern();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Soprano::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::NodePattern(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        const Soprano::Inference::NodePattern * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Inference_NodePattern,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::NodePattern(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_Soprano_Inference_NodePattern[] = {
    {SIP_MLNAME_CAST(sipName_createSparqlNodePattern), meth_Soprano_Inference_NodePattern_createSparqlNodePattern, 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 pyqt4Type_soprano_Soprano_Inference_NodePattern = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__NodePattern,
        {0}
    },
    sipNameNr_NodePattern,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {35, 255, 0},
    0,
    0,
    5, methods_Soprano_Inference_NodePattern,
    0, 0,
    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,
    release_Soprano_Inference_NodePattern,
    cast_Soprano_Inference_NodePattern,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Inference_NodePattern,
    0,
    0,
    0
};


#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2092 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2095 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2098 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2101 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 2104 "sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 2107 "sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 2110 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 2113 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 2116 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 2119 "sipsopranopart4.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2122 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2125 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2128 "sipsopranopart4.cpp"


extern "C" {static PyObject *meth_Soprano_Inference_RuleSet_clear(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleSet_clear(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::RuleSet *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_RuleSet,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clear();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_RuleSet,sipName_clear);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_RuleSet_insert(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleSet_insert(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const Soprano::Inference::Rule * a1;
        Soprano::Inference::RuleSet *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J9",&sipSelf,sipType_Soprano_Inference_RuleSet,&sipCpp,sipType_QString,&a0,&a0State,sipType_Soprano_Inference_Rule,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->insert(*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(sipArgsParsed,sipName_RuleSet,sipName_insert);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_RuleSet_count(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleSet_count(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::RuleSet *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_RuleSet,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->count();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_RuleSet,sipName_count);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_RuleSet_at(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleSet_at(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        Soprano::Inference::RuleSet *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Soprano_Inference_RuleSet,&sipCpp,&a0))
        {
            Soprano::Inference::Rule *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::Rule(sipCpp->at(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_RuleSet,sipName_at);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_RuleSet_rule(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleSet_rule(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Inference_RuleSet,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Soprano::Inference::Rule *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::Rule(sipCpp->rule(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_RuleSet,sipName_rule);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_RuleSet_ruleNames(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleSet_ruleNames(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::RuleSet *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_RuleSet,sipName_ruleNames);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_RuleSet_allRules(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleSet_allRules(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::RuleSet *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_RuleSet,&sipCpp))
        {
            QList<Soprano::Inference::Rule> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Inference::Rule>(sipCpp->allRules());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Soprano_Inference_Rule,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_RuleSet,sipName_allRules);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_RuleSet_standardRuleSet(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleSet_standardRuleSet(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::StandardRuleSet a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"E",sipType_Soprano_Inference_StandardRuleSet,&a0))
        {
            Soprano::Inference::RuleSet *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::RuleSet(Soprano::Inference::RuleSet::standardRuleSet(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_RuleSet,sipName_standardRuleSet);

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_Inference_RuleSet___getitem__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_Inference_RuleSet___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Inference::RuleSet *sipCpp = reinterpret_cast<Soprano::Inference::RuleSet *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Inference_RuleSet));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Soprano::Inference::Rule *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::Rule((*sipCpp)[a0]);
            Py_END_ALLOW_THREADS

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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_QString,&a0,&a0State))
        {
            Soprano::Inference::Rule *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::Rule((*sipCpp)[*a0]);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_RuleSet,sipName___getitem__);

    return 0;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Inference::RuleSet *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_Inference_RuleSet(void *, const void*);}
static void assign_Soprano_Inference_RuleSet(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::Inference::RuleSet *>(sipDst) = *reinterpret_cast<const Soprano::Inference::RuleSet *>(sipSrc);
}


extern "C" {static void dealloc_Soprano_Inference_RuleSet(sipSimpleWrapper *);}
static void dealloc_Soprano_Inference_RuleSet(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Inference_RuleSet(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Soprano_Inference_RuleSet(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_Inference_RuleSet(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Soprano::Inference::RuleSet *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::RuleSet();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Soprano::Inference::RuleSet * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Inference_RuleSet,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::RuleSet(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_Inference_RuleSet[] = {
    {(void *)slot_Soprano_Inference_RuleSet___getitem__, getitem_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Soprano_Inference_RuleSet[] = {
    {SIP_MLNAME_CAST(sipName_allRules), meth_Soprano_Inference_RuleSet_allRules, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_at), meth_Soprano_Inference_RuleSet_at, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_Soprano_Inference_RuleSet_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_count), meth_Soprano_Inference_RuleSet_count, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insert), meth_Soprano_Inference_RuleSet_insert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rule), meth_Soprano_Inference_RuleSet_rule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ruleNames), meth_Soprano_Inference_RuleSet_ruleNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_standardRuleSet), meth_Soprano_Inference_RuleSet_standardRuleSet, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Inference_RuleSet = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__RuleSet,
        {0}
    },
    sipNameNr_RuleSet,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {35, 255, 0},
    0,
    slots_Soprano_Inference_RuleSet,
    8, methods_Soprano_Inference_RuleSet,
    0, 0,
    0, 0,
    init_Soprano_Inference_RuleSet,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_RuleSet,
    release_Soprano_Inference_RuleSet,
    cast_Soprano_Inference_RuleSet,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Inference_RuleSet,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferenceruleparser.sip"
#include <soprano/inferenceruleparser.h>
#line 2545 "sipsopranopart4.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2549 "sipsopranopart4.cpp"


extern "C" {static PyObject *meth_Soprano_Inference_RuleParser_parseFile(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleParser_parseFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->parseFile(*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(sipArgsParsed,sipName_RuleParser,sipName_parseFile);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_RuleParser_rules(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_RuleParser_rules(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::RuleParser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_RuleParser,&sipCpp))
        {
            Soprano::Inference::RuleSet *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::RuleSet(sipCpp->rules());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_RuleParser,sipName_rules);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Inference::RuleParser *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Inference_RuleParser(sipSimpleWrapper *);}
static void dealloc_Soprano_Inference_RuleParser(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Inference_RuleParser(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Soprano_Inference_RuleParser(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_Inference_RuleParser(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Soprano::Inference::RuleParser *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::RuleParser();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_Soprano_Inference_RuleParser[] = {
    {SIP_MLNAME_CAST(sipName_parseFile), meth_Soprano_Inference_RuleParser_parseFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rules), meth_Soprano_Inference_RuleParser_rules, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Inference_RuleParser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__RuleParser,
        {0}
    },
    sipNameNr_RuleParser,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {35, 255, 0},
    0,
    0,
    2, methods_Soprano_Inference_RuleParser,
    0, 0,
    0, 0,
    init_Soprano_Inference_RuleParser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_RuleParser,
    release_Soprano_Inference_RuleParser,
    cast_Soprano_Inference_RuleParser,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 2715 "sipsopranopart4.cpp"

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2737 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2740 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2743 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2746 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 2749 "sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 2752 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 2755 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 2758 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 2761 "sipsopranopart4.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2764 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2767 "sipsopranopart4.cpp"


extern "C" {static PyObject *meth_Soprano_Inference_Rule_preconditions(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_preconditions(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_Rule,&sipCpp))
        {
            QList<Soprano::Inference::StatementPattern> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Inference::StatementPattern>(sipCpp->preconditions());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Soprano_Inference_StatementPattern,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Rule,sipName_preconditions);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_Rule_addPrecondition(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_addPrecondition(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Inference::StatementPattern * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_Rule,&sipCpp,sipType_Soprano_Inference_StatementPattern,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addPrecondition(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Rule,sipName_addPrecondition);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_Rule_effect(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_effect(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_Rule,&sipCpp))
        {
            Soprano::Inference::StatementPattern *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::StatementPattern(sipCpp->effect());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Rule,sipName_effect);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_Rule_setEffect(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_setEffect(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Inference::StatementPattern * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_Rule,&sipCpp,sipType_Soprano_Inference_StatementPattern,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEffect(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Rule,sipName_setEffect);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_Rule_match(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_match(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Statement * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_Rule,&sipCpp,sipType_Soprano_Statement,&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(sipArgsParsed,sipName_Rule,sipName_match);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_Rule_bindToStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_bindToStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Statement * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_Rule,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->bindToStatement(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Rule,sipName_bindToStatement);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_Rule_boundToStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_boundToStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::Rule *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Rule,sipName_boundToStatement);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_Rule_createSparqlQuery(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_createSparqlQuery(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0 = 0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|b",&sipSelf,sipType_Soprano_Inference_Rule,&sipCpp,&a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->createSparqlQuery(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Rule,sipName_createSparqlQuery);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_Rule_bindEffect(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_bindEffect(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::BindingSet * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_Rule,&sipCpp,sipType_Soprano_BindingSet,&a0))
        {
            Soprano::Statement *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Statement(sipCpp->bindEffect(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Rule,sipName_bindEffect);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_Rule_bindPreconditions(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_Rule_bindPreconditions(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::BindingSet * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_Rule,&sipCpp,sipType_Soprano_BindingSet,&a0))
        {
            QList<Soprano::Statement> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Statement>(sipCpp->bindPreconditions(*a0));
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Soprano_Statement,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Rule,sipName_bindPreconditions);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Inference::Rule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_Inference_Rule(void *, const void*);}
static void assign_Soprano_Inference_Rule(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::Inference::Rule *>(sipDst) = *reinterpret_cast<const Soprano::Inference::Rule *>(sipSrc);
}


extern "C" {static void dealloc_Soprano_Inference_Rule(sipSimpleWrapper *);}
static void dealloc_Soprano_Inference_Rule(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Inference_Rule(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Soprano_Inference_Rule(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_Inference_Rule(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Soprano::Inference::Rule *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::Rule();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Soprano::Inference::Rule * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Inference_Rule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::Rule(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_Soprano_Inference_Rule[] = {
    {SIP_MLNAME_CAST(sipName_addPrecondition), meth_Soprano_Inference_Rule_addPrecondition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindEffect), meth_Soprano_Inference_Rule_bindEffect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindPreconditions), meth_Soprano_Inference_Rule_bindPreconditions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindToStatement), meth_Soprano_Inference_Rule_bindToStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_boundToStatement), meth_Soprano_Inference_Rule_boundToStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createSparqlQuery), meth_Soprano_Inference_Rule_createSparqlQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_effect), meth_Soprano_Inference_Rule_effect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Soprano_Inference_Rule_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preconditions), meth_Soprano_Inference_Rule_preconditions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEffect), meth_Soprano_Inference_Rule_setEffect, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Inference_Rule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__Rule,
        {0}
    },
    sipNameNr_Rule,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {35, 255, 0},
    0,
    0,
    10, methods_Soprano_Inference_Rule,
    0, 0,
    0, 0,
    init_Soprano_Inference_Rule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_Rule,
    release_Soprano_Inference_Rule,
    cast_Soprano_Inference_Rule,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Inference_Rule,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencemodel.sip"
#include <soprano/inferencemodel.h>
#line 3182 "sipsopranopart4.cpp"

#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 3186 "sipsopranopart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3207 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 3210 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 3213 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 3216 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 3219 "sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 3222 "sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 3225 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 3228 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 3231 "sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 3234 "sipsopranopart4.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 3237 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 3240 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3243 "sipsopranopart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3246 "sipsopranopart4.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3249 "sipsopranopart4.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3252 "sipsopranopart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3255 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3258 "sipsopranopart4.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 3289 "sipsopranopart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 3292 "sipsopranopart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3295 "sipsopranopart4.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3298 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3301 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 3304 "sipsopranopart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3307 "sipsopranopart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3310 "sipsopranopart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3313 "sipsopranopart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3316 "sipsopranopart4.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 3319 "sipsopranopart4.cpp"


class sipSoprano_Inference_InferenceModel : public Soprano::Inference::InferenceModel
{
public:
    sipSoprano_Inference_InferenceModel(Soprano::Model *);
    virtual ~sipSoprano_Inference_InferenceModel();

    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;
    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:
    void setParentModel(Soprano::Model *);
    Soprano::Model * parentModel() const;
    Soprano::Error::ErrorCode addStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeAllStatements(const Soprano::Statement&);
    Soprano::StatementIterator listStatements(const Soprano::Statement&) const;
    Soprano::NodeIterator listContexts() const;
    Soprano::QueryResultIterator executeQuery(const QString&,Soprano::Query::QueryLanguage,const QString&) 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_Inference_InferenceModel(const sipSoprano_Inference_InferenceModel &);
    sipSoprano_Inference_InferenceModel &operator = (const sipSoprano_Inference_InferenceModel &);

    char sipPyMethods[26];
};

sipSoprano_Inference_InferenceModel::sipSoprano_Inference_InferenceModel(Soprano::Model *a0): Soprano::Inference::InferenceModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Inference_InferenceModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Inference_InferenceModel);
}

int sipSoprano_Inference_InferenceModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Soprano::Inference::InferenceModel::qt_metacall(_c,_id,_a);

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

    return _id;
}

void *sipSoprano_Inference_InferenceModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Inference_InferenceModel,_clname)) ? this : Soprano::Inference::InferenceModel::qt_metacast(_clname);
}

void sipSoprano_Inference_InferenceModel::setParentModel(Soprano::Model *a0)
{
    extern void sipVH_soprano_22(sip_gilstate_t,PyObject *,Soprano::Model *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setParentModel);

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

    sipVH_soprano_22(sipGILState,meth,a0);
}

Soprano::Model * sipSoprano_Inference_InferenceModel::parentModel() const
{
    extern Soprano::Model * sipVH_soprano_21(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_21(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_addStatement);

    if (!meth)
        return Soprano::Inference::InferenceModel::addStatement(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_removeStatement);

    if (!meth)
        return Soprano::Inference::InferenceModel::removeStatement(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_removeAllStatements);

    if (!meth)
        return Soprano::Inference::InferenceModel::removeAllStatements(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

Soprano::StatementIterator sipSoprano_Inference_InferenceModel::listStatements(const Soprano::Statement& a0) const
{
    extern Soprano::StatementIterator sipVH_soprano_19(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_19(sipGILState,meth,a0);
}

Soprano::NodeIterator sipSoprano_Inference_InferenceModel::listContexts() const
{
    extern Soprano::NodeIterator sipVH_soprano_18(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_18(sipGILState,meth);
}

Soprano::QueryResultIterator sipSoprano_Inference_InferenceModel::executeQuery(const QString& a0,Soprano::Query::QueryLanguage a1,const QString& a2) const
{
    extern Soprano::QueryResultIterator sipVH_soprano_17(sip_gilstate_t,PyObject *,const QString&,Soprano::Query::QueryLanguage,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::executeQuery(a0,a1,a2);

    return sipVH_soprano_17(sipGILState,meth,a0,a1,a2);
}

bool sipSoprano_Inference_InferenceModel::containsStatement(const Soprano::Statement& a0) const
{
    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

bool sipSoprano_Inference_InferenceModel::containsAnyStatement(const Soprano::Statement& a0) const
{
    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

bool sipSoprano_Inference_InferenceModel::isEmpty() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_1)(sipModuleAPI_soprano_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

int sipSoprano_Inference_InferenceModel::statementCount() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_8)(sipModuleAPI_soprano_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

Soprano::Error::ErrorCode sipSoprano_Inference_InferenceModel::write(QTextStream& a0) const
{
    extern Soprano::Error::ErrorCode sipVH_soprano_16(sip_gilstate_t,PyObject *,QTextStream&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_16(sipGILState,meth,a0);
}

Soprano::Node sipSoprano_Inference_InferenceModel::createBlankNode()
{
    extern Soprano::Node sipVH_soprano_15(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_15(sipGILState,meth);
}

void sipSoprano_Inference_InferenceModel::parentStatementsAdded()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_5)(sipModuleAPI_soprano_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipSoprano_Inference_InferenceModel::parentStatementsRemoved()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_5)(sipModuleAPI_soprano_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

void sipSoprano_Inference_InferenceModel::parentStatementAdded(const Soprano::Statement& a0)
{
    extern void sipVH_soprano_20(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_soprano_20(sipGILState,meth,a0);
}

void sipSoprano_Inference_InferenceModel::parentStatementRemoved(const Soprano::Statement& a0)
{
    extern void sipVH_soprano_20(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_soprano_20(sipGILState,meth,a0);
}

bool sipSoprano_Inference_InferenceModel::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_13)(sipModuleAPI_soprano_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipSoprano_Inference_InferenceModel::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return ((sipVH_QtCore_21)(sipModuleAPI_soprano_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipSoprano_Inference_InferenceModel::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_3)(sipModuleAPI_soprano_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipSoprano_Inference_InferenceModel::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_20)(sipModuleAPI_soprano_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipSoprano_Inference_InferenceModel::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_19)(sipModuleAPI_soprano_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipSoprano_Inference_InferenceModel::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipSoprano_Inference_InferenceModel::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

Soprano::Error::Error sipSoprano_Inference_InferenceModel::lastError() const
{
    extern Soprano::Error::Error sipVH_soprano_26(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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

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

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

void sipSoprano_Inference_InferenceModel::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipSoprano_Inference_InferenceModel::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipSoprano_Inference_InferenceModel::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipSoprano_Inference_InferenceModel::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipSoprano_Inference_InferenceModel::sipProtectVirt_parentStatementsAdded(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementsAdded() : parentStatementsAdded());
}

void sipSoprano_Inference_InferenceModel::sipProtectVirt_parentStatementsRemoved(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementsRemoved() : parentStatementsRemoved());
}

void sipSoprano_Inference_InferenceModel::sipProtectVirt_parentStatementAdded(bool sipSelfWasArg,const Soprano::Statement& a0)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementAdded(a0) : parentStatementAdded(a0));
}

void sipSoprano_Inference_InferenceModel::sipProtectVirt_parentStatementRemoved(bool sipSelfWasArg,const Soprano::Statement& a0)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementRemoved(a0) : parentStatementRemoved(a0));
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_clearError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_clearError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_clearError);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_setError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_setError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|i",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_setError);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_receivers(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/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)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 4005 "sipsopranopart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_InferenceModel,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementsAdded(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementsAdded(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_parentStatementsAdded);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementsRemoved(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementsRemoved(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_parentStatementsRemoved);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementAdded(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementAdded(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_parentStatementAdded);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementRemoved(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementRemoved(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Inference_InferenceModel,&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(sipArgsParsed,sipName_InferenceModel,sipName_parentStatementRemoved);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_addStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_addStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Inference::InferenceModel::addStatement(*a0) : sipCpp->addStatement(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_InferenceModel,sipName_addStatement);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_removeStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_removeStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Inference::InferenceModel::removeStatement(*a0) : sipCpp->removeStatement(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_InferenceModel,sipName_removeStatement);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_removeAllStatements(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_removeAllStatements(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Inference::InferenceModel::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(sipArgsParsed,sipName_InferenceModel,sipName_removeAllStatements);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_addRule(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_addRule(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Inference::Rule * a0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp,sipType_Soprano_Inference_Rule,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addRule(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_InferenceModel,sipName_addRule);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_setRules(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_setRules(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QList<Soprano::Inference::Rule> * a0;
        int a0State = 0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp,sipType_QList_0200Soprano_Inference_Rule,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRules(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Soprano::Inference::Rule> *>(a0),sipType_QList_0200Soprano_Inference_Rule,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_InferenceModel,sipName_setRules);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_performInference(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_performInference(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->performInference();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_InferenceModel,sipName_performInference);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_clearInference(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_clearInference(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearInference();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_InferenceModel,sipName_clearInference);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_setCompressedSourceStatements(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_setCompressedSourceStatements(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCompressedSourceStatements(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_InferenceModel,sipName_setCompressedSourceStatements);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_setOptimizedQueriesEnabled(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_setOptimizedQueriesEnabled(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_Soprano_Inference_InferenceModel,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOptimizedQueriesEnabled(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_InferenceModel,sipName_setOptimizedQueriesEnabled);

    return NULL;
}


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

    if (targetType == sipType_Soprano_Inference_InferenceModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_FilterModel)->ctd_cast((Soprano::FilterModel *)(Soprano::Inference::InferenceModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Inference_InferenceModel *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Inference::InferenceModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Inference_InferenceModel(sipSimpleWrapper *);}
static void dealloc_Soprano_Inference_InferenceModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Inference_InferenceModel *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Inference_InferenceModel(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Soprano_Inference_InferenceModel(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_Inference_InferenceModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipSoprano_Inference_InferenceModel *sipCpp = 0;

    if (!sipCpp)
    {
        Soprano::Model * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_Soprano_Model,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Inference_InferenceModel(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Soprano_Inference_InferenceModel[] = {{33, 255, 1}};


static PyMethodDef methods_Soprano_Inference_InferenceModel[] = {
    {SIP_MLNAME_CAST(sipName_addRule), meth_Soprano_Inference_InferenceModel_addRule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_Inference_InferenceModel_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Inference_InferenceModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Inference_InferenceModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearInference), meth_Soprano_Inference_InferenceModel_clearInference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Inference_InferenceModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Inference_InferenceModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Inference_InferenceModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementAdded), meth_Soprano_Inference_InferenceModel_parentStatementAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementRemoved), meth_Soprano_Inference_InferenceModel_parentStatementRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsAdded), meth_Soprano_Inference_InferenceModel_parentStatementsAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsRemoved), meth_Soprano_Inference_InferenceModel_parentStatementsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_performInference), meth_Soprano_Inference_InferenceModel_performInference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Inference_InferenceModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_Inference_InferenceModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_Inference_InferenceModel_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCompressedSourceStatements), meth_Soprano_Inference_InferenceModel_setCompressedSourceStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Inference_InferenceModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOptimizedQueriesEnabled), meth_Soprano_Inference_InferenceModel_setOptimizedQueriesEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRules), meth_Soprano_Inference_InferenceModel_setRules, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Inference_InferenceModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Inference_InferenceModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__InferenceModel,
        {0}
    },
    sipNameNr_InferenceModel,
    -1,
    -1,
    {35, 255, 0},
    supers_Soprano_Inference_InferenceModel,
    0,
    21, methods_Soprano_Inference_InferenceModel,
    0, 0,
    0, 0,
    init_Soprano_Inference_InferenceModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_InferenceModel,
    release_Soprano_Inference_InferenceModel,
    cast_Soprano_Inference_InferenceModel,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Inference::InferenceModel::staticMetaObject,
    0,
    0
};
