def get_attributes(aspect, id):
    """Return the attributes pointing to a given ID in a given aspect."""
    attributes = {}
    for entry in aspect:
        if entry['po'] == id:
            attributes[entry['n']] = entry['v']
    return attributes