def get_dbpedia_uri(term, lang):
    """
    Get the corresponding DBpedia URI from a wikipedia term (taking in account the language of the term)
    """

    DBPEDIA_RESOURCE_URI = u'dbpedia.org/resource/'
    if lang == 'en':
        return u'http://%s%s' % (DBPEDIA_RESOURCE_URI, term)
    else:
        return u'http://%s.%s%s' % (lang, DBPEDIA_RESOURCE_URI, term)