enh: fix qualified role generation to use BNode appropriately.