refactored `rdfCollectionToList`