def ttl_parser(input_ttl_file):
    """Function which takes a ttl file as input and returns list of terms and list of corresponding annotations"""
    ttl_file = input_ttl_file  # Input

    # Lists to keep the terms and annotations
    terms_list = []
    annotations_list = []

    with open(ttl_file, 'r') as temp_f:  # Loop the data lines

        lines = temp_f.readlines()  # Read the lines

        for line_number in range(len(lines)):
            line = lines[line_number]  # Reads one line
            gtfs_finder = line[0:5]  # Pick the first 5 characters of the line
            if gtfs_finder == "gtfs:":  # Checks to see if the firs 5 chars of the current line is equal to "gtfs:"
                line_elements = line.split()
                gtfs_term = line_elements[0]  # To extract the term (left side)
                term = gtfs_term[5:]  # To drop the first 5 characters to extract just the term.
                annotation = line_elements[2]  # To extract the annotation (right side)
                terms_list.append(term)  # Add the term into the terms list
                annotations_list.append(annotation)  # Add the annotation into the annotations list

    temp_f.close()  # Close file

    return terms_list, annotations_list