def get_obj_value(obj_value, obj_type):
    """Extract object value depending on its type."""
    if obj_type in ['Literal', 'literal']:
        return 'Literal'
    elif obj_type in ['BNode', 'bnode']:
        return 'BNode'
    return str(obj_value)