def get_ont_query(predicate):
    """Return an ontology query based on the linking predicate."""
    ont_query = """
        SELECT ?sub ?res WHERE {
            ?sub <""" + predicate + """> ?res .
        }
    """
    return ont_query