cycles through the class definiton and returns all properties

def get_properties(cls_def):
    """ cycles through the class definiton and returns all properties """
    # pdb.set_trace()
    prop_list = {prop: value for prop, value in cls_def.items() \
                 if 'rdf_Property' in value.get('rdf_type', "") or \
                 value.get('rdfs_domain')}

    return prop_list