def add_relationship(self, term1, relationship, term2):
        ''' Creates a relationship between 3 entities in database '''
        url = self.base_path + 'term/add-relationship'
        data = {'term1_id': term1['id'],
                'relationship_tid': relationship['id'],
                'term2_id': term2['id'],
                'term1_version': term1['version'],
                'relationship_term_version': relationship['version'],
                'term2_version': term2['version']}
        return self.post(url, data)
def add_relationship ( self , term1 , relationship , term2 ) : url = self . base_path + 'term/add-relationship' data = { 'term1_id' : term1 [ 'id' ] , 'relationship_tid' : relationship [ 'id' ] , 'term2_id' : term2 [ 'id' ] , 'term1_version' : term1 [ 'version' ] , 'relationship_term_version' : relationship [ 'version' ] , 'term2_version' : term2 [ 'version' ] } return self . post ( url , data )
Creates a relationship between 3 entities in database