def create_query_string(graph_name: str, keyword: str):
    """
    This methods generates the query string for the keyword-search in put.

    :param graph_name: graph to be queried, default is "default graph",
        like "<http://localhost:3030/60d5c79a7d2c38ee678e87a8/60d5c79d7d2c38ee678e87a9>"
    :param keyword: keywords to search for or when search-bool is false the query itself
    :returns: the query
    """
    if graph_name == '' or graph_name is None:
        graph_name = '?g'
    query = """ SELECT ?subject ?predicate ?object
                WHERE {
                    GRAPH """ + graph_name + """ {
                        ?subject ?predicate ?object .
                        FILTER (
                            regex(str(?subject), '""" + keyword + """') ||
                            regex(str(?predicate), '""" + keyword + """') ||
                            regex(str(?object),  '""" + keyword + """'))
                    }
                } """
    return query