def __extend_uri(self, short):
        """
        Extend a prefixed uri with the help of a specific dictionary of prefixes
        :param short: Prefixed uri to be extended
        :return:
        """
        if short == 'a':
            return RDF.type
        for prefix in sorted(self.__prefixes, key=lambda x: len(x), reverse=True):
            if short.startswith(prefix):
                return URIRef(short.replace(prefix + ':', self.__prefixes[prefix]))
        return short
def __extend_uri(self, short):
        """
        Extend a prefixed uri with the help of a specific dictionary of prefixes
        :param short: Prefixed uri to be extended
        :return:
        """
        if short == 'a':
            return RDF.type
        for prefix in sorted(self.__prefixes, key=lambda x: len(x), reverse=True):
            if short.startswith(prefix):
                return URIRef(short.replace(prefix + ':', self.__prefixes[prefix]))
        return short
def __extend_uri ( self , short ) : if short == 'a' : return RDF . type for prefix in sorted ( self . __prefixes , key = lambda x : len ( x ) , reverse = True ) : if short . startswith ( prefix ) : return URIRef ( short . replace ( prefix + ':' , self . __prefixes [ prefix ] ) ) return short
Extend a prefixed uri with the help of a specific dictionary of prefixes
        :param short: Prefixed uri to be extended
        :return:
Extend a prefixed uri with the help of a specific dictionary of prefixes : param short : Prefixed uri to be extended : return :