def KGQA_answer(): question = request.args.get('name') target_array = get_target_array(str(question)) if len(target_array) == 1: json_data = query(str(target_array[0])) elif len(target_array) == 0: json_data = query(question) else: json_data = get_KGQA_answer(target_array) return jsonify(json_data)
def search_name(): method = request.args.get('method') name = request.args.get('name') json_data = query(str(name), method) return jsonify(json_data)
def search_name(): name = request.args.get('name') json_data = query(str(name)) return jsonify(json_data)