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

#include "sipAPInepomuk.h"

#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 12 "sipnepomukpart2.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 16 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 22 "sipnepomukpart2.cpp"
#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 37 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 40 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 43 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 46 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 49 "sipnepomukpart2.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 52 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 55 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 58 "sipnepomukpart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/thing.sip"
#include <nepomuk/thing.h>
#line 61 "sipnepomukpart2.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 92 "sipnepomukpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 95 "sipnepomukpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 98 "sipnepomukpart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 101 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 104 "sipnepomukpart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 107 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 110 "sipnepomukpart2.cpp"


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            Nepomuk::ResourceManager *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->manager();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->resourceUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->resourceType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            QList<QUrl> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QUrl>(sipCpp->types());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QList<QUrl> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QList_0200QUrl,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTypes(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<QUrl> *>(a0),sipType_QList_0200QUrl,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QUrl,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addType(*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_Resource,sipName_addType);

    return NULL;
}


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

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QUrl,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasType(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QUrl,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasProperty(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasProperty(*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_Resource,sipName_hasProperty);

    return NULL;
}


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

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QUrl,&a0))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(sipCpp->property(*a0));
            Py_END_ALLOW_THREADS

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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(sipCpp->property(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QUrl * a0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QUrl,&a0,sipType_Nepomuk_Variant,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QString,&a0,&a0State,sipType_Nepomuk_Variant,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*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_Resource,sipName_setProperty);

    return NULL;
}


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

    {
        const QUrl * a0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QUrl,&a0,sipType_Nepomuk_Variant,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addProperty(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QUrl * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QUrl,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeProperty(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QUrl * a0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QUrl,&a0,sipType_Nepomuk_Variant,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeProperty(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeProperty(*a0);
            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_Resource,sipName_removeProperty);

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exists();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            Nepomuk::Thing *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Thing(sipCpp->pimoThing());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDescription(*a0);
            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_Resource,sipName_setDescription);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::descriptionUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIdentifiers(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addIdentifier(*a0);
            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_Resource,sipName_addIdentifier);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::identifierUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAltLabels(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addAltLabel(*a0);
            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_Resource,sipName_addAltLabel);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::altLabelUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->annotations());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QList_0200Nepomuk_Resource,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAnnotations(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0200Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_Nepomuk_Resource,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addAnnotation(*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_Resource,sipName_addAnnotation);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::annotationUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            QList<Nepomuk::Tag> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Tag>(sipCpp->tags());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Nepomuk::Tag> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QList_0200Nepomuk_Tag,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTags(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Nepomuk::Tag> *>(a0),sipType_QList_0200Nepomuk_Tag,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Tag * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_Nepomuk_Tag,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addTag(*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_Resource,sipName_addTag);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::tagUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->topics());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QList_0200Nepomuk_Resource,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTopics(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0200Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_Nepomuk_Resource,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addTopic(*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_Resource,sipName_addTopic);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::topicUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->isTopicOfs());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QList_0200Nepomuk_Resource,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIsTopicOfs(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0200Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_Nepomuk_Resource,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addIsTopicOf(*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_Resource,sipName_addIsTopicOf);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::isTopicOfUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->isRelateds());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QList_0200Nepomuk_Resource,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIsRelateds(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0200Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_Nepomuk_Resource,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addIsRelated(*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_Resource,sipName_addIsRelated);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::isRelatedUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLabel(*a0);
            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_Resource,sipName_setLabel);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::labelUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->rating();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        quint32 a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bu",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRating(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_Resource,sipName_setRating);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::ratingUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSymbols(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Resource,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addSymbol(*a0);
            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_Resource,sipName_addSymbol);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::symbolUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->annotationOf());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Resource,&sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->isRelatedOf());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipArgsParsed,sipArgs,""))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(Nepomuk::Resource::allResources());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Resource___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Nepomuk_Resource___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Resource *sipCpp = reinterpret_cast<Nepomuk::Resource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Resource));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Nepomuk::Resource * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Nepomuk::Resource::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_nepomuk,ne_slot,sipType_Nepomuk_Resource,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Resource___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Nepomuk_Resource___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Resource *sipCpp = reinterpret_cast<Nepomuk::Resource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Resource));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Nepomuk::Resource * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Resource::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_nepomuk,eq_slot,sipType_Nepomuk_Resource,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Resource *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Resource(void *, const void*);}
static void assign_Nepomuk_Resource(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Nepomuk::Resource *>(sipDst) = *reinterpret_cast<const Nepomuk::Resource *>(sipSrc);
}


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


extern "C" {static void *init_Nepomuk_Resource(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Nepomuk_Resource(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Nepomuk::Resource *sipCpp = 0;

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

    if (!sipCpp)
    {
        Nepomuk::ResourceManager * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_Nepomuk_ResourceManager,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Resource(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Nepomuk::Resource * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Nepomuk_Resource,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Resource(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QUrl& a1def = QUrl();
        const QUrl * a1 = &a1def;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1|J9",sipType_QString,&a0,&a0State,sipType_QUrl,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Resource(*a0,*a1);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J9J8",sipType_QString,&a0,&a0State,sipType_QUrl,&a1,sipType_Nepomuk_ResourceManager,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Resource(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Resource(*a0,*a1);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const QUrl * a0;
        const QUrl& a1def = QUrl();
        const QUrl * a1 = &a1def;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|J9",sipType_QUrl,&a0,sipType_QUrl,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Resource(*a0,*a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QUrl * a0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J9J8",sipType_QUrl,&a0,sipType_QUrl,&a1,sipType_Nepomuk_ResourceManager,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Resource(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Resource[] = {
    {(void *)slot_Nepomuk_Resource___ne__, ne_slot},
    {(void *)slot_Nepomuk_Resource___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Nepomuk_Resource[] = {
    {SIP_MLNAME_CAST(sipName_addAltLabel), meth_Nepomuk_Resource_addAltLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addAnnotation), meth_Nepomuk_Resource_addAnnotation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIdentifier), meth_Nepomuk_Resource_addIdentifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIsRelated), meth_Nepomuk_Resource_addIsRelated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIsTopicOf), meth_Nepomuk_Resource_addIsTopicOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addProperty), meth_Nepomuk_Resource_addProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addSymbol), meth_Nepomuk_Resource_addSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTag), meth_Nepomuk_Resource_addTag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTopic), meth_Nepomuk_Resource_addTopic, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addType), meth_Nepomuk_Resource_addType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allResources), meth_Nepomuk_Resource_allResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_altLabelUri), meth_Nepomuk_Resource_altLabelUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_altLabels), meth_Nepomuk_Resource_altLabels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationOf), meth_Nepomuk_Resource_annotationOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationUri), meth_Nepomuk_Resource_annotationUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotations), meth_Nepomuk_Resource_annotations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_className), meth_Nepomuk_Resource_className, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_Nepomuk_Resource_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_descriptionUri), meth_Nepomuk_Resource_descriptionUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exists), meth_Nepomuk_Resource_exists, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericDescription), meth_Nepomuk_Resource_genericDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericIcon), meth_Nepomuk_Resource_genericIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericLabel), meth_Nepomuk_Resource_genericLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasProperty), meth_Nepomuk_Resource_hasProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasType), meth_Nepomuk_Resource_hasType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifierUri), meth_Nepomuk_Resource_identifierUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifiers), meth_Nepomuk_Resource_identifiers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelatedOf), meth_Nepomuk_Resource_isRelatedOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelatedUri), meth_Nepomuk_Resource_isRelatedUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelateds), meth_Nepomuk_Resource_isRelateds, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTopicOfUri), meth_Nepomuk_Resource_isTopicOfUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTopicOfs), meth_Nepomuk_Resource_isTopicOfs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Resource_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_label), meth_Nepomuk_Resource_label, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_labelUri), meth_Nepomuk_Resource_labelUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_manager), meth_Nepomuk_Resource_manager, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pimoThing), meth_Nepomuk_Resource_pimoThing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Nepomuk_Resource_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rating), meth_Nepomuk_Resource_rating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ratingUri), meth_Nepomuk_Resource_ratingUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_Nepomuk_Resource_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeProperty), meth_Nepomuk_Resource_removeProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceType), meth_Nepomuk_Resource_resourceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceUri), meth_Nepomuk_Resource_resourceUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAltLabels), meth_Nepomuk_Resource_setAltLabels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAnnotations), meth_Nepomuk_Resource_setAnnotations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDescription), meth_Nepomuk_Resource_setDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIdentifiers), meth_Nepomuk_Resource_setIdentifiers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIsRelateds), meth_Nepomuk_Resource_setIsRelateds, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIsTopicOfs), meth_Nepomuk_Resource_setIsTopicOfs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLabel), meth_Nepomuk_Resource_setLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_Nepomuk_Resource_setProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRating), meth_Nepomuk_Resource_setRating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSymbols), meth_Nepomuk_Resource_setSymbols, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTags), meth_Nepomuk_Resource_setTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTopics), meth_Nepomuk_Resource_setTopics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTypes), meth_Nepomuk_Resource_setTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_symbolUri), meth_Nepomuk_Resource_symbolUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_symbols), meth_Nepomuk_Resource_symbols, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagUri), meth_Nepomuk_Resource_tagUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tags), meth_Nepomuk_Resource_tags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_topicUri), meth_Nepomuk_Resource_topicUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_topics), meth_Nepomuk_Resource_topics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Nepomuk_Resource_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_types), meth_Nepomuk_Resource_types, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uri), meth_Nepomuk_Resource_uri, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_nepomuk_Nepomuk_Resource = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Resource,
        {0}
    },
    sipNameNr_Resource,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {4, 255, 0},
    0,
    slots_Nepomuk_Resource,
    66, methods_Nepomuk_Resource,
    0, 0,
    0, 0,
    init_Nepomuk_Resource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Resource,
    release_Nepomuk_Resource,
    cast_Nepomuk_Resource,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Nepomuk_Resource,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 2381 "sipnepomukpart2.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2385 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 2388 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/literal.sip"
#include <nepomuk/literal.h>
#line 2391 "sipnepomukpart2.cpp"
#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 2406 "sipnepomukpart2.cpp"
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 2409 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 2412 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2415 "sipnepomukpart2.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2418 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 2421 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 2424 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 2427 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2430 "sipnepomukpart2.cpp"


class sipNepomuk_Types_Property : public Nepomuk::Types::Property
{
public:
    sipNepomuk_Types_Property();
    sipNepomuk_Types_Property(const QUrl&);
    sipNepomuk_Types_Property(const Nepomuk::Types::Property&);
    ~sipNepomuk_Types_Property();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipNepomuk_Types_Property(const sipNepomuk_Types_Property &);
    sipNepomuk_Types_Property &operator = (const sipNepomuk_Types_Property &);
};

sipNepomuk_Types_Property::sipNepomuk_Types_Property(): Nepomuk::Types::Property(), sipPySelf(0)
{
}

sipNepomuk_Types_Property::sipNepomuk_Types_Property(const QUrl& a0): Nepomuk::Types::Property(a0), sipPySelf(0)
{
}

sipNepomuk_Types_Property::sipNepomuk_Types_Property(const Nepomuk::Types::Property& a0): Nepomuk::Types::Property(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Types::Property *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Types_Property,&sipCpp))
        {
            QList<Nepomuk::Types::Property> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->parentProperties());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Types_Property,&sipCpp))
        {
            QList<Nepomuk::Types::Property> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->subProperties());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Types_Property,&sipCpp))
        {
            Nepomuk::Types::Property *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->inverseProperty());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Types_Property,&sipCpp))
        {
            Nepomuk::Types::Class *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Class(sipCpp->range());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Types_Property,&sipCpp))
        {
            Nepomuk::Types::Literal *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Literal(sipCpp->literalRangeType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Types_Property,&sipCpp))
        {
            Nepomuk::Types::Class *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Class(sipCpp->domain());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cardinality();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->minCardinality();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maxCardinality();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Types::Property * a0;
        Nepomuk::Types::Property *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Types_Property,&sipCpp,sipType_Nepomuk_Types_Property,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isParentOf(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Types::Property * a0;
        Nepomuk::Types::Property *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Nepomuk_Types_Property,&sipCpp,sipType_Nepomuk_Types_Property,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSubPropertyOf(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Types_Property)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Types_Entity)->ctd_cast((Nepomuk::Types::Entity *)(Nepomuk::Types::Property *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Types_Property *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Types::Property *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Types_Property(void *, const void*);}
static void assign_Nepomuk_Types_Property(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Nepomuk::Types::Property *>(sipDst) = *reinterpret_cast<const Nepomuk::Types::Property *>(sipSrc);
}


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

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


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

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

    if (!sipCpp)
    {
        const QUrl * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_QUrl,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Types_Property(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Nepomuk::Types::Property * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Nepomuk_Types_Property,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Types_Property(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Nepomuk_Types_Property[] = {
    {SIP_MLNAME_CAST(sipName_cardinality), meth_Nepomuk_Types_Property_cardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_domain), meth_Nepomuk_Types_Property_domain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inverseProperty), meth_Nepomuk_Types_Property_inverseProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isParentOf), meth_Nepomuk_Types_Property_isParentOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSubPropertyOf), meth_Nepomuk_Types_Property_isSubPropertyOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_literalRangeType), meth_Nepomuk_Types_Property_literalRangeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxCardinality), meth_Nepomuk_Types_Property_maxCardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_minCardinality), meth_Nepomuk_Types_Property_minCardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentProperties), meth_Nepomuk_Types_Property_parentProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_range), meth_Nepomuk_Types_Property_range, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subProperties), meth_Nepomuk_Types_Property_subProperties, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_nepomuk_Nepomuk_Types_Property = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Types__Property,
        {0}
    },
    sipNameNr_Property,
    -1,
    -1,
    {13, 255, 0},
    supers_Nepomuk_Types_Property,
    0,
    11, methods_Nepomuk_Types_Property,
    0, 0,
    0, 0,
    init_Nepomuk_Types_Property,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Types_Property,
    release_Nepomuk_Types_Property,
    cast_Nepomuk_Types_Property,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Nepomuk_Types_Property,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/ontology.sip"
#include <nepomuk/ontology.h>
#line 2935 "sipnepomukpart2.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2939 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 2942 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2945 "sipnepomukpart2.cpp"
#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 2960 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 2963 "sipnepomukpart2.cpp"
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 2966 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 2969 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2972 "sipnepomukpart2.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2975 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 2978 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 2981 "sipnepomukpart2.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 2984 "sipnepomukpart2.cpp"


class sipNepomuk_Types_Ontology : public Nepomuk::Types::Ontology
{
public:
    sipNepomuk_Types_Ontology();
    sipNepomuk_Types_Ontology(const QUrl&);
    sipNepomuk_Types_Ontology(const Nepomuk::Types::Ontology&);
    ~sipNepomuk_Types_Ontology();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipNepomuk_Types_Ontology(const sipNepomuk_Types_Ontology &);
    sipNepomuk_Types_Ontology &operator = (const sipNepomuk_Types_Ontology &);
};

sipNepomuk_Types_Ontology::sipNepomuk_Types_Ontology(): Nepomuk::Types::Ontology(), sipPySelf(0)
{
}

sipNepomuk_Types_Ontology::sipNepomuk_Types_Ontology(const QUrl& a0): Nepomuk::Types::Ontology(a0), sipPySelf(0)
{
}

sipNepomuk_Types_Ontology::sipNepomuk_Types_Ontology(const Nepomuk::Types::Ontology& a0): Nepomuk::Types::Ontology(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Types::Ontology *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Types_Ontology,&sipCpp))
        {
            QList<Nepomuk::Types::Class> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Class>(sipCpp->allClasses());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Types::Ontology *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Types_Ontology,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Nepomuk::Types::Class *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Class(sipCpp->findClassByName(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Nepomuk::Types::Ontology *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_Nepomuk_Types_Ontology,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            Nepomuk::Types::Class *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Class(sipCpp->findClassByLabel(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Ontology *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Nepomuk_Types_Ontology,&sipCpp))
        {
            QList<Nepomuk::Types::Property> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->allProperties());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Types::Ontology *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_Types_Ontology,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Nepomuk::Types::Property *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->findPropertyByName(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Nepomuk::Types::Ontology *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_Nepomuk_Types_Ontology,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            Nepomuk::Types::Property *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->findPropertyByLabel(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Types_Ontology)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Types_Entity)->ctd_cast((Nepomuk::Types::Entity *)(Nepomuk::Types::Ontology *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Types_Ontology *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Types::Ontology *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Types_Ontology(void *, const void*);}
static void assign_Nepomuk_Types_Ontology(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Nepomuk::Types::Ontology *>(sipDst) = *reinterpret_cast<const Nepomuk::Types::Ontology *>(sipSrc);
}


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

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


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

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

    if (!sipCpp)
    {
        const QUrl * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_QUrl,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Types_Ontology(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Nepomuk::Types::Ontology * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Nepomuk_Types_Ontology,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Types_Ontology(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Nepomuk_Types_Ontology[] = {
    {SIP_MLNAME_CAST(sipName_allClasses), meth_Nepomuk_Types_Ontology_allClasses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allProperties), meth_Nepomuk_Types_Ontology_allProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findClassByLabel), meth_Nepomuk_Types_Ontology_findClassByLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findClassByName), meth_Nepomuk_Types_Ontology_findClassByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findPropertyByLabel), meth_Nepomuk_Types_Ontology_findPropertyByLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findPropertyByName), meth_Nepomuk_Types_Ontology_findPropertyByName, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_nepomuk_Nepomuk_Types_Ontology = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Types__Ontology,
        {0}
    },
    sipNameNr_Ontology,
    -1,
    -1,
    {13, 255, 0},
    supers_Nepomuk_Types_Ontology,
    0,
    6, methods_Nepomuk_Types_Ontology,
    0, 0,
    0, 0,
    init_Nepomuk_Types_Ontology,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Types_Ontology,
    release_Nepomuk_Types_Ontology,
    cast_Nepomuk_Types_Ontology,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Nepomuk_Types_Ontology,
    0,
    0,
    0
};
