qanswer-sdk 0.1.0.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qanswer_sdk/__init__.py +1256 -0
- qanswer_sdk/api/__init__.py +63 -0
- qanswer_sdk/api/admin_api.py +7893 -0
- qanswer_sdk/api/ai_assistant_access_rights_api.py +5881 -0
- qanswer_sdk/api/ai_assistant_api.py +11047 -0
- qanswer_sdk/api/anthropic_compatible_api.py +311 -0
- qanswer_sdk/api/auto_complete_api.py +612 -0
- qanswer_sdk/api/bot_slack_api.py +1015 -0
- qanswer_sdk/api/branding_api.py +5733 -0
- qanswer_sdk/api/bulk_reindex_api.py +2029 -0
- qanswer_sdk/api/chatbot_api.py +1102 -0
- qanswer_sdk/api/connector_audio_api.py +3469 -0
- qanswer_sdk/api/connector_document_api.py +2685 -0
- qanswer_sdk/api/connector_e_consilium_api.py +333 -0
- qanswer_sdk/api/connector_e_consilium_search_index_api_api.py +1231 -0
- qanswer_sdk/api/connector_google_drive_api.py +2175 -0
- qanswer_sdk/api/connector_imapapi_api.py +1866 -0
- qanswer_sdk/api/connector_one_drive_api.py +1579 -0
- qanswer_sdk/api/connector_onenote_api.py +1596 -0
- qanswer_sdk/api/connector_pinecone_api.py +893 -0
- qanswer_sdk/api/connector_publication_office_api_api.py +1230 -0
- qanswer_sdk/api/connector_qn_a_api.py +1521 -0
- qanswer_sdk/api/connector_rdf_answer_api.py +1454 -0
- qanswer_sdk/api/connector_rdf_api.py +5090 -0
- qanswer_sdk/api/connector_sharepoint_api.py +3926 -0
- qanswer_sdk/api/connector_websearch_api.py +332 -0
- qanswer_sdk/api/connector_website_api.py +3108 -0
- qanswer_sdk/api/connector_x_wiki_api_api.py +1278 -0
- qanswer_sdk/api/connectors_api.py +6946 -0
- qanswer_sdk/api/connectors_data_api.py +5903 -0
- qanswer_sdk/api/conversation_logs_api.py +14228 -0
- qanswer_sdk/api/dataset_config_api.py +4016 -0
- qanswer_sdk/api/debug_api.py +278 -0
- qanswer_sdk/api/default_api.py +763 -0
- qanswer_sdk/api/frontend_config_api.py +270 -0
- qanswer_sdk/api/health_check_api_api.py +278 -0
- qanswer_sdk/api/mcp_api.py +10758 -0
- qanswer_sdk/api/metadata_api.py +1309 -0
- qanswer_sdk/api/notifications_api.py +1842 -0
- qanswer_sdk/api/o_auth2_api.py +648 -0
- qanswer_sdk/api/open_ai_compatible_api.py +1093 -0
- qanswer_sdk/api/payment_api.py +1854 -0
- qanswer_sdk/api/retention_policy_api.py +4404 -0
- qanswer_sdk/api/socket_api.py +4706 -0
- qanswer_sdk/api/speech_to_text_api.py +968 -0
- qanswer_sdk/api/task_ai_excel_api.py +3749 -0
- qanswer_sdk/api/task_chat_api.py +2079 -0
- qanswer_sdk/api/task_entity_linking_api.py +315 -0
- qanswer_sdk/api/task_rdf_linker_api.py +4407 -0
- qanswer_sdk/api/task_rdf_sparql_endpoint_api.py +3355 -0
- qanswer_sdk/api/task_rdf_text_linker_api.py +1513 -0
- qanswer_sdk/api/task_report_copilot_api.py +7355 -0
- qanswer_sdk/api/task_search_api.py +2142 -0
- qanswer_sdk/api/task_text2sparql_api.py +947 -0
- qanswer_sdk/api/task_text_classification_api.py +592 -0
- qanswer_sdk/api/tasks_api.py +26394 -0
- qanswer_sdk/api/tool_embedder_api.py +5532 -0
- qanswer_sdk/api/tool_llm_api.py +6364 -0
- qanswer_sdk/api/unit_organizations_api.py +8600 -0
- qanswer_sdk/api/unit_teams_api.py +4492 -0
- qanswer_sdk/api/unit_user_api.py +12759 -0
- qanswer_sdk/api_client.py +804 -0
- qanswer_sdk/api_response.py +21 -0
- qanswer_sdk/configuration.py +614 -0
- qanswer_sdk/exceptions.py +216 -0
- qanswer_sdk/models/__init__.py +562 -0
- qanswer_sdk/models/access_audio_spans_response_model.py +91 -0
- qanswer_sdk/models/access_pdf_payload_model.py +102 -0
- qanswer_sdk/models/access_type.py +42 -0
- qanswer_sdk/models/access_type_shared.py +38 -0
- qanswer_sdk/models/add_qn_a_request.py +103 -0
- qanswer_sdk/models/add_synonyms.py +93 -0
- qanswer_sdk/models/add_synonyms_resp.py +89 -0
- qanswer_sdk/models/admin_overall_stats_response.py +105 -0
- qanswer_sdk/models/admin_user_overall_stats.py +99 -0
- qanswer_sdk/models/advanced_o_auth2_mcp_authentication_config.py +95 -0
- qanswer_sdk/models/aggregate.py +93 -0
- qanswer_sdk/models/aggregation.py +110 -0
- qanswer_sdk/models/aggregation_type.py +41 -0
- qanswer_sdk/models/aggregations_group.py +102 -0
- qanswer_sdk/models/ai_assistant_clone_response.py +91 -0
- qanswer_sdk/models/ai_assistant_dto.py +113 -0
- qanswer_sdk/models/ai_assistant_filter_dto.py +113 -0
- qanswer_sdk/models/ai_assistant_list.py +101 -0
- qanswer_sdk/models/ai_assistant_share_response.py +93 -0
- qanswer_sdk/models/ai_assistant_shared_access.py +95 -0
- qanswer_sdk/models/ai_excel_entity_result.py +97 -0
- qanswer_sdk/models/ai_excel_entity_search_payload.py +95 -0
- qanswer_sdk/models/ai_excel_entity_search_response.py +103 -0
- qanswer_sdk/models/ai_excel_global_settings.py +95 -0
- qanswer_sdk/models/ai_excel_global_settings_request.py +95 -0
- qanswer_sdk/models/ai_excel_task_settings.py +119 -0
- qanswer_sdk/models/ai_excel_task_update.py +119 -0
- qanswer_sdk/models/ai_excel_template_create.py +119 -0
- qanswer_sdk/models/ai_excel_template_read.py +121 -0
- qanswer_sdk/models/ai_excel_template_settings_request.py +91 -0
- qanswer_sdk/models/ai_excel_template_update.py +125 -0
- qanswer_sdk/models/ai_excel_templates_search_request.py +104 -0
- qanswer_sdk/models/ai_excel_templates_search_response.py +101 -0
- qanswer_sdk/models/allowed_extension.py +53 -0
- qanswer_sdk/models/allowed_file_extensions.py +88 -0
- qanswer_sdk/models/api_key_header_type.py +39 -0
- qanswer_sdk/models/api_key_mcp_authentication_config.py +98 -0
- qanswer_sdk/models/applied_filter_type.py +37 -0
- qanswer_sdk/models/applied_metadata_filter.py +97 -0
- qanswer_sdk/models/apply_template_task_settings_to_slots_response.py +89 -0
- qanswer_sdk/models/assistant_category_color_definition.py +89 -0
- qanswer_sdk/models/assistant_category_color_item.py +89 -0
- qanswer_sdk/models/assistant_category_colors_update_payload.py +95 -0
- qanswer_sdk/models/assistant_category_count.py +91 -0
- qanswer_sdk/models/assistant_message_stop.py +93 -0
- qanswer_sdk/models/assistant_retention_response.py +97 -0
- qanswer_sdk/models/assistant_task.py +43 -0
- qanswer_sdk/models/assistant_template_with_tools_selection_dto.py +123 -0
- qanswer_sdk/models/audio_allowed_file_extensions.py +87 -0
- qanswer_sdk/models/audio_format.py +37 -0
- qanswer_sdk/models/audio_segment.py +95 -0
- qanswer_sdk/models/audio_segment_update_payload.py +97 -0
- qanswer_sdk/models/audio_segment_update_response.py +91 -0
- qanswer_sdk/models/audio_speaker_update_payload.py +99 -0
- qanswer_sdk/models/audio_speaker_update_response.py +91 -0
- qanswer_sdk/models/audio_transcription_list_response.py +101 -0
- qanswer_sdk/models/audio_transcription_mode.py +37 -0
- qanswer_sdk/models/audio_transcription_record.py +101 -0
- qanswer_sdk/models/audio_transcription_status.py +39 -0
- qanswer_sdk/models/audio_upload_response.py +91 -0
- qanswer_sdk/models/audio_word_segment.py +93 -0
- qanswer_sdk/models/audio_word_span_change.py +94 -0
- qanswer_sdk/models/audio_word_span_update_payload.py +104 -0
- qanswer_sdk/models/audio_word_span_update_response.py +91 -0
- qanswer_sdk/models/audio_word_update_payload.py +100 -0
- qanswer_sdk/models/audio_word_update_response.py +91 -0
- qanswer_sdk/models/auth_link_response.py +91 -0
- qanswer_sdk/models/auto_bot_description_request.py +89 -0
- qanswer_sdk/models/auto_bot_description_response.py +87 -0
- qanswer_sdk/models/available_aggregation.py +92 -0
- qanswer_sdk/models/available_connectors_response.py +92 -0
- qanswer_sdk/models/available_logs_visibility_policy.py +91 -0
- qanswer_sdk/models/available_space_quota_for_dataset.py +95 -0
- qanswer_sdk/models/available_storage_preference.py +91 -0
- qanswer_sdk/models/base_connectors_response.py +89 -0
- qanswer_sdk/models/base_conversation_response.py +89 -0
- qanswer_sdk/models/base_feedback_response.py +89 -0
- qanswer_sdk/models/bot_answer_length.py +38 -0
- qanswer_sdk/models/branding_app_title.py +87 -0
- qanswer_sdk/models/branding_system_message.py +87 -0
- qanswer_sdk/models/bulk_reindex_counts_by_type.py +89 -0
- qanswer_sdk/models/bulk_reindex_item_status.py +41 -0
- qanswer_sdk/models/bulk_reindex_job_detail_dto.py +103 -0
- qanswer_sdk/models/bulk_reindex_job_dto.py +125 -0
- qanswer_sdk/models/bulk_reindex_job_item_dto.py +113 -0
- qanswer_sdk/models/bulk_reindex_job_item_sort_by.py +40 -0
- qanswer_sdk/models/bulk_reindex_job_status.py +41 -0
- qanswer_sdk/models/bulk_reindex_jobs_list_response.py +97 -0
- qanswer_sdk/models/bulk_reindex_preview_counts.py +99 -0
- qanswer_sdk/models/bulk_reindex_preview_request.py +91 -0
- qanswer_sdk/models/bulk_reindex_preview_response.py +102 -0
- qanswer_sdk/models/bulk_reindex_skip_reason.py +40 -0
- qanswer_sdk/models/bulk_reindex_sort_order.py +37 -0
- qanswer_sdk/models/bulk_reindex_submit_request.py +94 -0
- qanswer_sdk/models/bulk_update_tool_selections_request.py +87 -0
- qanswer_sdk/models/capability_type.py +37 -0
- qanswer_sdk/models/cell.py +89 -0
- qanswer_sdk/models/change_password.py +89 -0
- qanswer_sdk/models/change_password_admin.py +89 -0
- qanswer_sdk/models/change_role.py +90 -0
- qanswer_sdk/models/chat_task_settings.py +141 -0
- qanswer_sdk/models/chat_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/chat_task_update.py +139 -0
- qanswer_sdk/models/chatbot_chat_payload.py +150 -0
- qanswer_sdk/models/chatbot_default_settings_response.py +95 -0
- qanswer_sdk/models/chatbot_llm_dto.py +120 -0
- qanswer_sdk/models/chatbot_response.py +143 -0
- qanswer_sdk/models/chatbot_setting_dto.py +99 -0
- qanswer_sdk/models/chatbot_setting_request.py +91 -0
- qanswer_sdk/models/class_info.py +89 -0
- qanswer_sdk/models/config.py +228 -0
- qanswer_sdk/models/config1.py +138 -0
- qanswer_sdk/models/connector_config_list_response.py +99 -0
- qanswer_sdk/models/connector_config_model.py +96 -0
- qanswer_sdk/models/connector_config_patch_payload.py +93 -0
- qanswer_sdk/models/connector_config_response.py +95 -0
- qanswer_sdk/models/connector_config_sync_response.py +93 -0
- qanswer_sdk/models/connector_config_type.py +37 -0
- qanswer_sdk/models/connector_model.py +114 -0
- qanswer_sdk/models/connector_type.py +51 -0
- qanswer_sdk/models/connector_type_dto.py +92 -0
- qanswer_sdk/models/connector_type_list_dto.py +95 -0
- qanswer_sdk/models/content_item.py +106 -0
- qanswer_sdk/models/content_item_type.py +39 -0
- qanswer_sdk/models/conversation_aggregations_request.py +107 -0
- qanswer_sdk/models/conversation_message.py +230 -0
- qanswer_sdk/models/conversation_message_error_key.py +52 -0
- qanswer_sdk/models/conversation_message_search_result.py +112 -0
- qanswer_sdk/models/conversation_model.py +144 -0
- qanswer_sdk/models/conversation_overall_stats.py +97 -0
- qanswer_sdk/models/conversation_overall_stats_response.py +95 -0
- qanswer_sdk/models/conversation_retention_response.py +91 -0
- qanswer_sdk/models/conversation_statistics.py +95 -0
- qanswer_sdk/models/conversation_update.py +93 -0
- qanswer_sdk/models/conversation_users_stats.py +99 -0
- qanswer_sdk/models/conversation_users_stats_response.py +99 -0
- qanswer_sdk/models/coordinates.py +89 -0
- qanswer_sdk/models/cost_summary_dto.py +99 -0
- qanswer_sdk/models/create_connector_request.py +95 -0
- qanswer_sdk/models/create_connector_response.py +95 -0
- qanswer_sdk/models/create_imap_connector_request.py +105 -0
- qanswer_sdk/models/create_pinecone_connector_request.py +97 -0
- qanswer_sdk/models/create_sharepoint_connector_from_certificate_request.py +105 -0
- qanswer_sdk/models/create_sharepoint_connector_request.py +103 -0
- qanswer_sdk/models/create_x_wiki_connector_request.py +103 -0
- qanswer_sdk/models/credits_info_dto.py +95 -0
- qanswer_sdk/models/credits_info_global_dto.py +97 -0
- qanswer_sdk/models/currency.py +38 -0
- qanswer_sdk/models/data.py +211 -0
- qanswer_sdk/models/data_filling_mode.py +39 -0
- qanswer_sdk/models/data_storage_preference.py +38 -0
- qanswer_sdk/models/dataset_config_request.py +138 -0
- qanswer_sdk/models/dataset_default_values_model.py +129 -0
- qanswer_sdk/models/dataset_detail.py +128 -0
- qanswer_sdk/models/dataset_detail_kg.py +88 -0
- qanswer_sdk/models/dataset_schema.py +193 -0
- qanswer_sdk/models/dataset_type.py +38 -0
- qanswer_sdk/models/dataset_update_object.py +185 -0
- qanswer_sdk/models/dataset_users_response.py +87 -0
- qanswer_sdk/models/default_prompt.py +100 -0
- qanswer_sdk/models/delete_connector_model.py +90 -0
- qanswer_sdk/models/delete_connector_request.py +99 -0
- qanswer_sdk/models/delete_connectors_response.py +89 -0
- qanswer_sdk/models/delete_files_status_response.py +91 -0
- qanswer_sdk/models/delete_index.py +91 -0
- qanswer_sdk/models/delete_index_resp.py +89 -0
- qanswer_sdk/models/delete_qn_a_pair_request.py +95 -0
- qanswer_sdk/models/delete_qn_a_pair_response.py +89 -0
- qanswer_sdk/models/delete_synonym.py +93 -0
- qanswer_sdk/models/delete_synonym_resp.py +89 -0
- qanswer_sdk/models/delete_synonyms.py +91 -0
- qanswer_sdk/models/diarization_queue_status.py +99 -0
- qanswer_sdk/models/document_content_response.py +91 -0
- qanswer_sdk/models/document_content_update_model.py +99 -0
- qanswer_sdk/models/document_file_delete_by_connector_model.py +101 -0
- qanswer_sdk/models/document_file_delete_by_id_model.py +91 -0
- qanswer_sdk/models/document_parsing_task_settings.py +124 -0
- qanswer_sdk/models/document_parsing_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/document_parsing_task_update.py +121 -0
- qanswer_sdk/models/document_status_group.py +39 -0
- qanswer_sdk/models/document_status_response.py +89 -0
- qanswer_sdk/models/dummy_error.py +89 -0
- qanswer_sdk/models/duplicate_ai_excel_template_request.py +97 -0
- qanswer_sdk/models/duplicate_ai_excel_template_response.py +87 -0
- qanswer_sdk/models/duplicate_report_template_payload.py +97 -0
- qanswer_sdk/models/duplicate_report_template_response.py +87 -0
- qanswer_sdk/models/e_consilium_connector_config.py +108 -0
- qanswer_sdk/models/e_consilium_search_index_search_response.py +113 -0
- qanswer_sdk/models/econsilium_file_metadata.py +105 -0
- qanswer_sdk/models/econsilium_search_index_add_payload.py +107 -0
- qanswer_sdk/models/econsilium_search_index_additional_fields.py +103 -0
- qanswer_sdk/models/effective_retention_dto.py +95 -0
- qanswer_sdk/models/email_folder.py +91 -0
- qanswer_sdk/models/email_request.py +87 -0
- qanswer_sdk/models/embedder_cost_filter.py +112 -0
- qanswer_sdk/models/embedder_cost_list.py +101 -0
- qanswer_sdk/models/embedder_create_dto.py +143 -0
- qanswer_sdk/models/embedder_detailed_dto.py +163 -0
- qanswer_sdk/models/embedder_dto.py +103 -0
- qanswer_sdk/models/embedder_list_dto.py +101 -0
- qanswer_sdk/models/embedder_ref.py +95 -0
- qanswer_sdk/models/embedder_update_dto.py +135 -0
- qanswer_sdk/models/embedding_endpoint_import_failure.py +89 -0
- qanswer_sdk/models/embedding_endpoint_import_response.py +99 -0
- qanswer_sdk/models/embedding_endpoint_modality.py +37 -0
- qanswer_sdk/models/embedding_endpoint_validation_response.py +90 -0
- qanswer_sdk/models/embedding_provider.py +44 -0
- qanswer_sdk/models/enable_enhanced_context_payload.py +91 -0
- qanswer_sdk/models/enable_enhanced_context_response.py +87 -0
- qanswer_sdk/models/endpoint_status.py +38 -0
- qanswer_sdk/models/entity_description_dto.py +93 -0
- qanswer_sdk/models/entity_linking_payload.py +97 -0
- qanswer_sdk/models/entity_linking_response.py +97 -0
- qanswer_sdk/models/entity_model_in_linking.py +95 -0
- qanswer_sdk/models/es_meta_data.py +92 -0
- qanswer_sdk/models/es_meta_data_value.py +87 -0
- qanswer_sdk/models/evaluate_feedback_response.py +109 -0
- qanswer_sdk/models/evaluate_single_feedback_response.py +97 -0
- qanswer_sdk/models/extra_body.py +91 -0
- qanswer_sdk/models/extract_hyper_links_payload.py +100 -0
- qanswer_sdk/models/extract_robot_links_payload.py +88 -0
- qanswer_sdk/models/extract_robot_links_response.py +88 -0
- qanswer_sdk/models/extraction_strategy.py +38 -0
- qanswer_sdk/models/fact.py +96 -0
- qanswer_sdk/models/feedback_evaluation_history_entries_response.py +101 -0
- qanswer_sdk/models/feedback_evaluation_history_entry_model.py +105 -0
- qanswer_sdk/models/feedback_model.py +132 -0
- qanswer_sdk/models/feedback_response.py +95 -0
- qanswer_sdk/models/feedback_update.py +105 -0
- qanswer_sdk/models/file_acl_principal.py +99 -0
- qanswer_sdk/models/file_acl_response.py +101 -0
- qanswer_sdk/models/file_es_meta_data.py +116 -0
- qanswer_sdk/models/file_failure_reason.py +49 -0
- qanswer_sdk/models/file_folder_model.py +117 -0
- qanswer_sdk/models/file_model.py +124 -0
- qanswer_sdk/models/file_status.py +43 -0
- qanswer_sdk/models/file_type.py +37 -0
- qanswer_sdk/models/file_upload_payload.py +107 -0
- qanswer_sdk/models/files_by_connector_model.py +89 -0
- qanswer_sdk/models/g_drive_connector_info.py +96 -0
- qanswer_sdk/models/g_drive_download_by_ids.py +89 -0
- qanswer_sdk/models/g_drive_download_request.py +103 -0
- qanswer_sdk/models/g_drive_refresh_request.py +91 -0
- qanswer_sdk/models/generation_params.py +89 -0
- qanswer_sdk/models/get_connector_by_id_response.py +91 -0
- qanswer_sdk/models/get_conversation_response.py +95 -0
- qanswer_sdk/models/global_config_dto.py +155 -0
- qanswer_sdk/models/google_drive_connector_config.py +110 -0
- qanswer_sdk/models/guardrail_endpoint.py +112 -0
- qanswer_sdk/models/guardrail_mode.py +38 -0
- qanswer_sdk/models/highlight_audio_payload_model.py +100 -0
- qanswer_sdk/models/http_validation_error.py +95 -0
- qanswer_sdk/models/iframe_strategy.py +38 -0
- qanswer_sdk/models/image_url_detail.py +38 -0
- qanswer_sdk/models/imap_add_payload.py +105 -0
- qanswer_sdk/models/imap_additional_fields.py +101 -0
- qanswer_sdk/models/imap_file_metadata.py +108 -0
- qanswer_sdk/models/imap_search_response.py +113 -0
- qanswer_sdk/models/index_config.py +89 -0
- qanswer_sdk/models/install_response.py +89 -0
- qanswer_sdk/models/interface_origin.py +47 -0
- qanswer_sdk/models/ip2_geo_response.py +91 -0
- qanswer_sdk/models/is_enabled_response.py +87 -0
- qanswer_sdk/models/jwt_authentication_response.py +93 -0
- qanswer_sdk/models/label.py +89 -0
- qanswer_sdk/models/labeled_node.py +89 -0
- qanswer_sdk/models/language.py +38 -0
- qanswer_sdk/models/last_updated_template_conversation_id_response.py +87 -0
- qanswer_sdk/models/link.py +99 -0
- qanswer_sdk/models/link_extraction_response.py +97 -0
- qanswer_sdk/models/link_result_paginated.py +97 -0
- qanswer_sdk/models/linked_entity_model_in_linking.py +99 -0
- qanswer_sdk/models/linker.py +103 -0
- qanswer_sdk/models/linking_result.py +95 -0
- qanswer_sdk/models/links.py +99 -0
- qanswer_sdk/models/list_connectors_response.py +95 -0
- qanswer_sdk/models/list_conversation_response.py +105 -0
- qanswer_sdk/models/list_feedback_response.py +105 -0
- qanswer_sdk/models/list_files_connector_response.py +107 -0
- qanswer_sdk/models/list_socket_events.py +88 -0
- qanswer_sdk/models/list_synonyms_model.py +95 -0
- qanswer_sdk/models/llm_context_ranges.py +93 -0
- qanswer_sdk/models/llm_cost_filter.py +112 -0
- qanswer_sdk/models/llm_cost_list.py +101 -0
- qanswer_sdk/models/llm_create_dto.py +177 -0
- qanswer_sdk/models/llm_detailed_dto.py +198 -0
- qanswer_sdk/models/llm_dto.py +120 -0
- qanswer_sdk/models/llm_endpoint.py +179 -0
- qanswer_sdk/models/llm_endpoint_default_prompts.py +93 -0
- qanswer_sdk/models/llm_endpoint_import_failure.py +89 -0
- qanswer_sdk/models/llm_endpoint_import_response.py +99 -0
- qanswer_sdk/models/llm_endpoint_modality.py +37 -0
- qanswer_sdk/models/llm_endpoint_provider.py +44 -0
- qanswer_sdk/models/llm_endpoint_read.py +179 -0
- qanswer_sdk/models/llm_endpoint_validation_response.py +90 -0
- qanswer_sdk/models/llm_health_response.py +89 -0
- qanswer_sdk/models/llm_list_detailed_dto.py +101 -0
- qanswer_sdk/models/llm_list_dto.py +101 -0
- qanswer_sdk/models/llm_update_dto.py +174 -0
- qanswer_sdk/models/location_details.py +97 -0
- qanswer_sdk/models/log_stats_request.py +100 -0
- qanswer_sdk/models/login_request.py +89 -0
- qanswer_sdk/models/logs_visibility_policy.py +38 -0
- qanswer_sdk/models/logs_visibility_policy_payload.py +92 -0
- qanswer_sdk/models/logs_visibility_policy_response.py +92 -0
- qanswer_sdk/models/mcp_auth_field_definition.py +98 -0
- qanswer_sdk/models/mcp_auth_field_type.py +37 -0
- qanswer_sdk/models/mcp_authentication_type.py +39 -0
- qanswer_sdk/models/mcp_connection.py +108 -0
- qanswer_sdk/models/mcp_connection_create.py +100 -0
- qanswer_sdk/models/mcp_server.py +146 -0
- qanswer_sdk/models/mcp_server_create.py +116 -0
- qanswer_sdk/models/mcp_server_type.py +37 -0
- qanswer_sdk/models/mcp_server_update.py +114 -0
- qanswer_sdk/models/mcp_tool_dto.py +131 -0
- qanswer_sdk/models/mcp_tool_info.py +95 -0
- qanswer_sdk/models/mcp_tool_selection_source.py +37 -0
- qanswer_sdk/models/mcp_tool_sync_action.py +39 -0
- qanswer_sdk/models/mcp_tool_sync_diff.py +94 -0
- qanswer_sdk/models/mcp_tool_sync_preview.py +95 -0
- qanswer_sdk/models/mcp_tool_update.py +91 -0
- qanswer_sdk/models/mcp_transport.py +37 -0
- qanswer_sdk/models/mcp_visibility.py +38 -0
- qanswer_sdk/models/mcpo_auth2_authorize_body.py +105 -0
- qanswer_sdk/models/mcpo_auth2_initiating_origin.py +42 -0
- qanswer_sdk/models/message_role.py +38 -0
- qanswer_sdk/models/messages_stats_per_day_response.py +99 -0
- qanswer_sdk/models/microsoft_connector_config.py +110 -0
- qanswer_sdk/models/modify_connector_request.py +98 -0
- qanswer_sdk/models/modify_file_display_name_request.py +97 -0
- qanswer_sdk/models/notification_dto.py +114 -0
- qanswer_sdk/models/notification_filter.py +107 -0
- qanswer_sdk/models/notification_list_dto.py +101 -0
- qanswer_sdk/models/notification_payload_add_to_org_dto.py +87 -0
- qanswer_sdk/models/notification_payload_add_to_team_dto.py +89 -0
- qanswer_sdk/models/notification_payload_ai_assistant_shared_dto.py +100 -0
- qanswer_sdk/models/notification_payload_conversation_shared_dto.py +96 -0
- qanswer_sdk/models/notification_payload_human_takeover_requested_dto.py +89 -0
- qanswer_sdk/models/notification_payload_quota_reaching_dto.py +91 -0
- qanswer_sdk/models/notification_read_dto.py +89 -0
- qanswer_sdk/models/notification_type.py +44 -0
- qanswer_sdk/models/o_auth_redirect_response.py +89 -0
- qanswer_sdk/models/o_auth_service_dto.py +89 -0
- qanswer_sdk/models/one_drive_download_by_ids.py +89 -0
- qanswer_sdk/models/one_drive_download_request.py +103 -0
- qanswer_sdk/models/one_note_download_by_ids.py +91 -0
- qanswer_sdk/models/one_note_download_request.py +103 -0
- qanswer_sdk/models/org_llm_detailed_dto.py +105 -0
- qanswer_sdk/models/org_llm_features_dto.py +89 -0
- qanswer_sdk/models/org_role.py +37 -0
- qanswer_sdk/models/org_user_profile_dto.py +210 -0
- qanswer_sdk/models/org_user_profile_list_dto.py +101 -0
- qanswer_sdk/models/organization_admin_dto.py +97 -0
- qanswer_sdk/models/organization_creation_dto.py +91 -0
- qanswer_sdk/models/organization_dto.py +93 -0
- qanswer_sdk/models/organization_list_dto.py +101 -0
- qanswer_sdk/models/organization_user_dto.py +101 -0
- qanswer_sdk/models/organization_user_list_dto.py +101 -0
- qanswer_sdk/models/paginated_report_templates.py +101 -0
- qanswer_sdk/models/password.py +89 -0
- qanswer_sdk/models/pinecone_index_model.py +91 -0
- qanswer_sdk/models/plan_dto.py +108 -0
- qanswer_sdk/models/predicted_class.py +89 -0
- qanswer_sdk/models/prepare_synonyms_upload_resp.py +99 -0
- qanswer_sdk/models/prepared_synonym_group.py +87 -0
- qanswer_sdk/models/pricing_plan.py +51 -0
- qanswer_sdk/models/pricing_type.py +38 -0
- qanswer_sdk/models/prompt_type.py +49 -0
- qanswer_sdk/models/provider.py +87 -0
- qanswer_sdk/models/publication_add_payload.py +105 -0
- qanswer_sdk/models/publication_file_metadata.py +105 -0
- qanswer_sdk/models/publication_office_additional_fields.py +111 -0
- qanswer_sdk/models/publication_office_connector_config.py +112 -0
- qanswer_sdk/models/publication_search_index_search_response.py +113 -0
- qanswer_sdk/models/qa_context.py +129 -0
- qanswer_sdk/models/qa_context_display_type.py +44 -0
- qanswer_sdk/models/qa_contexts.py +106 -0
- qanswer_sdk/models/qa_table.py +100 -0
- qanswer_sdk/models/qn_a_pair_model.py +103 -0
- qanswer_sdk/models/qn_a_pair_response.py +95 -0
- qanswer_sdk/models/rag_payload.py +185 -0
- qanswer_sdk/models/rag_response.py +147 -0
- qanswer_sdk/models/rdf_entity_linker_response.py +99 -0
- qanswer_sdk/models/rdf_linked_entity.py +97 -0
- qanswer_sdk/models/reasoning_effort.py +39 -0
- qanswer_sdk/models/reference_model.py +99 -0
- qanswer_sdk/models/refresh_frequency.py +39 -0
- qanswer_sdk/models/refresh_token_request.py +87 -0
- qanswer_sdk/models/refresh_website_connector_links_payload.py +96 -0
- qanswer_sdk/models/refresh_website_connector_payload.py +94 -0
- qanswer_sdk/models/register_pinecone_connector_request.py +95 -0
- qanswer_sdk/models/report_copilot_generation_from_slots_ack.py +91 -0
- qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +95 -0
- qanswer_sdk/models/report_copilot_refinement_payload.py +106 -0
- qanswer_sdk/models/report_copilot_refinement_response.py +87 -0
- qanswer_sdk/models/report_copilot_slot_feedback_update.py +95 -0
- qanswer_sdk/models/report_copilot_slot_feedback_update_response.py +95 -0
- qanswer_sdk/models/report_copilot_slot_task_settings.py +121 -0
- qanswer_sdk/models/report_copilot_slot_task_settings_update.py +121 -0
- qanswer_sdk/models/report_copilot_task_settings.py +119 -0
- qanswer_sdk/models/report_copilot_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/report_copilot_task_update.py +119 -0
- qanswer_sdk/models/report_template.py +155 -0
- qanswer_sdk/models/report_template_create_payload.py +132 -0
- qanswer_sdk/models/report_template_image_upload_response.py +87 -0
- qanswer_sdk/models/report_template_simplified.py +116 -0
- qanswer_sdk/models/report_template_simplified_payload.py +91 -0
- qanswer_sdk/models/report_template_task_settings_update_payload.py +91 -0
- qanswer_sdk/models/report_template_update_payload.py +136 -0
- qanswer_sdk/models/report_templates_search_payload.py +106 -0
- qanswer_sdk/models/reset_password.py +87 -0
- qanswer_sdk/models/response_audit_model.py +99 -0
- qanswer_sdk/models/response_audit_stats_response.py +101 -0
- qanswer_sdk/models/response_get_dummy_union_connector_config_model_api_connectors_config_dummy_models_union_get.py +228 -0
- qanswer_sdk/models/retention_policy_dto.py +106 -0
- qanswer_sdk/models/retention_policy_update.py +101 -0
- qanswer_sdk/models/retention_preview_response.py +92 -0
- qanswer_sdk/models/retention_run_progress_event.py +98 -0
- qanswer_sdk/models/retention_run_status_response.py +91 -0
- qanswer_sdk/models/retention_scope_type.py +38 -0
- qanswer_sdk/models/retention_sweep_result.py +89 -0
- qanswer_sdk/models/retention_unit.py +38 -0
- qanswer_sdk/models/retreive_all_synonyms_resp.py +99 -0
- qanswer_sdk/models/retry_params.py +89 -0
- qanswer_sdk/models/return_type.py +38 -0
- qanswer_sdk/models/role.py +90 -0
- qanswer_sdk/models/role_name.py +37 -0
- qanswer_sdk/models/scrolling_strategy.py +37 -0
- qanswer_sdk/models/search_conversation_messages_response.py +105 -0
- qanswer_sdk/models/search_document_response.py +107 -0
- qanswer_sdk/models/search_index_payload.py +114 -0
- qanswer_sdk/models/search_metadata_filter.py +94 -0
- qanswer_sdk/models/search_payload.py +150 -0
- qanswer_sdk/models/search_response.py +120 -0
- qanswer_sdk/models/search_synonyms_resp.py +91 -0
- qanswer_sdk/models/search_task_settings.py +135 -0
- qanswer_sdk/models/search_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/search_task_update.py +133 -0
- qanswer_sdk/models/sender_type.py +38 -0
- qanswer_sdk/models/serve_pdf200_response.py +87 -0
- qanswer_sdk/models/share_point_connector_settings.py +99 -0
- qanswer_sdk/models/share_point_download_by_ids.py +99 -0
- qanswer_sdk/models/share_point_download_request.py +103 -0
- qanswer_sdk/models/shared_by.py +38 -0
- qanswer_sdk/models/shared_entity_type.py +38 -0
- qanswer_sdk/models/shared_organization_access_dto.py +116 -0
- qanswer_sdk/models/shared_team_access_dto.py +116 -0
- qanswer_sdk/models/shared_user.py +90 -0
- qanswer_sdk/models/sign_out_request.py +87 -0
- qanswer_sdk/models/sign_up_request.py +99 -0
- qanswer_sdk/models/slot.py +153 -0
- qanswer_sdk/models/slot_history_entry.py +119 -0
- qanswer_sdk/models/slot_in_prompt.py +91 -0
- qanswer_sdk/models/slot_info_with_latest_version.py +95 -0
- qanswer_sdk/models/slot_update.py +133 -0
- qanswer_sdk/models/socker_join_user.py +91 -0
- qanswer_sdk/models/socket_audio_transcription_status.py +102 -0
- qanswer_sdk/models/socket_conversation_message.py +245 -0
- qanswer_sdk/models/socket_dataset_reindexing_status.py +97 -0
- qanswer_sdk/models/socket_events_q_answer.py +55 -0
- qanswer_sdk/models/socket_feedback_evaluation_progress.py +108 -0
- qanswer_sdk/models/socket_file_metadata.py +194 -0
- qanswer_sdk/models/socket_file_status_batch.py +103 -0
- qanswer_sdk/models/socket_file_status_item.py +99 -0
- qanswer_sdk/models/socket_join_conversation.py +97 -0
- qanswer_sdk/models/socket_join_dataset.py +93 -0
- qanswer_sdk/models/socket_message_status.py +40 -0
- qanswer_sdk/models/socket_notification.py +109 -0
- qanswer_sdk/models/socket_report_continuation_response.py +100 -0
- qanswer_sdk/models/socket_report_copilot_generation_from_slots_response.py +116 -0
- qanswer_sdk/models/socket_report_copilot_generation_from_template_response.py +116 -0
- qanswer_sdk/models/socket_report_copilot_refinement_response.py +102 -0
- qanswer_sdk/models/socket_speech2_text_response.py +122 -0
- qanswer_sdk/models/socket_stop_conversation.py +97 -0
- qanswer_sdk/models/source.py +125 -0
- qanswer_sdk/models/source_metadata.py +109 -0
- qanswer_sdk/models/speech2_text_response.py +110 -0
- qanswer_sdk/models/stat_per_date.py +89 -0
- qanswer_sdk/models/status_response.py +89 -0
- qanswer_sdk/models/storage_active_status.py +37 -0
- qanswer_sdk/models/subscription_response.py +92 -0
- qanswer_sdk/models/subscription_status.py +39 -0
- qanswer_sdk/models/suggested_replies.py +87 -0
- qanswer_sdk/models/suggestion_list_response.py +87 -0
- qanswer_sdk/models/summa_server.py +101 -0
- qanswer_sdk/models/task_category.py +61 -0
- qanswer_sdk/models/task_name.py +43 -0
- qanswer_sdk/models/team_admin_dto.py +95 -0
- qanswer_sdk/models/team_creation_dto.py +89 -0
- qanswer_sdk/models/team_dto.py +93 -0
- qanswer_sdk/models/team_list_dto.py +101 -0
- qanswer_sdk/models/team_list_dto_teams_inner.py +149 -0
- qanswer_sdk/models/team_role.py +37 -0
- qanswer_sdk/models/team_with_count_dto.py +95 -0
- qanswer_sdk/models/teams_bot_auth_type.py +38 -0
- qanswer_sdk/models/teams_bot_registration_dto.py +107 -0
- qanswer_sdk/models/teams_bot_registration_upsert_dto.py +105 -0
- qanswer_sdk/models/template_clip_structure.py +114 -0
- qanswer_sdk/models/template_toggle_request.py +93 -0
- qanswer_sdk/models/terms_bucket.py +107 -0
- qanswer_sdk/models/test_imap_connection_payload.py +95 -0
- qanswer_sdk/models/text2_sparql_payload.py +187 -0
- qanswer_sdk/models/text2_sparql_task_settings.py +119 -0
- qanswer_sdk/models/text2_sparql_task_settings_update_payload.py +95 -0
- qanswer_sdk/models/text2_sparql_task_update.py +119 -0
- qanswer_sdk/models/text_classification_payload.py +99 -0
- qanswer_sdk/models/text_classification_response.py +87 -0
- qanswer_sdk/models/text_classification_v2_payload.py +99 -0
- qanswer_sdk/models/text_classification_v2_response.py +95 -0
- qanswer_sdk/models/thinking_block.py +91 -0
- qanswer_sdk/models/tool_selection.py +89 -0
- qanswer_sdk/models/total_stat.py +96 -0
- qanswer_sdk/models/ui_mappings.py +141 -0
- qanswer_sdk/models/update_file_es_meta_data.py +116 -0
- qanswer_sdk/models/update_metadata_model.py +97 -0
- qanswer_sdk/models/update_qn_a_pair_request.py +101 -0
- qanswer_sdk/models/update_qn_a_pair_response.py +89 -0
- qanswer_sdk/models/update_synonyms.py +95 -0
- qanswer_sdk/models/update_synonyms_resp.py +89 -0
- qanswer_sdk/models/upload_metadata.py +115 -0
- qanswer_sdk/models/user_credits_config_dto.py +99 -0
- qanswer_sdk/models/user_credits_dto.py +106 -0
- qanswer_sdk/models/user_dataset_api_key_dto.py +120 -0
- qanswer_sdk/models/user_dataset_mcp_tool_selection_dto.py +100 -0
- qanswer_sdk/models/user_dto.py +91 -0
- qanswer_sdk/models/user_identity_availability.py +87 -0
- qanswer_sdk/models/user_info_dto.py +95 -0
- qanswer_sdk/models/user_list_dto.py +101 -0
- qanswer_sdk/models/user_log_dto.py +102 -0
- qanswer_sdk/models/user_logs_list_dto.py +97 -0
- qanswer_sdk/models/user_mcp_tool_selection_dto.py +107 -0
- qanswer_sdk/models/user_oauth_token_dto.py +96 -0
- qanswer_sdk/models/user_profile_dto.py +199 -0
- qanswer_sdk/models/user_profile_list_dto.py +101 -0
- qanswer_sdk/models/user_team_dto.py +94 -0
- qanswer_sdk/models/validation_error.py +108 -0
- qanswer_sdk/models/validation_error_loc_inner.py +138 -0
- qanswer_sdk/models/warn_visibility.py +40 -0
- qanswer_sdk/models/websearch_connector_config.py +102 -0
- qanswer_sdk/models/websearch_scraping_site.py +91 -0
- qanswer_sdk/models/website_add_payload.py +102 -0
- qanswer_sdk/models/website_connector_config.py +102 -0
- qanswer_sdk/models/website_connector_settings.py +123 -0
- qanswer_sdk/models/widget_configs.py +109 -0
- qanswer_sdk/models/x_wiki_add_request.py +97 -0
- qanswer_sdk/models/x_wiki_download_by_ids.py +89 -0
- qanswer_sdk/py.typed +0 -0
- qanswer_sdk/rest.py +258 -0
- qanswer_sdk-0.1.0.dev0.dist-info/METADATA +252 -0
- qanswer_sdk-0.1.0.dev0.dist-info/RECORD +618 -0
- qanswer_sdk-0.1.0.dev0.dist-info/WHEEL +5 -0
- qanswer_sdk-0.1.0.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1513 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
free-text-client
|
|
5
|
+
|
|
6
|
+
QAnswer 2.0 API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
20
|
+
from typing import List, Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from qanswer_sdk.models.entity_model_in_linking import EntityModelInLinking
|
|
23
|
+
from qanswer_sdk.models.rdf_entity_linker_response import RdfEntityLinkerResponse
|
|
24
|
+
|
|
25
|
+
from qanswer_sdk.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from qanswer_sdk.api_response import ApiResponse
|
|
27
|
+
from qanswer_sdk.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class TaskRDFTextLinkerApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def rdf_entity_and_relation_linker(
|
|
45
|
+
self,
|
|
46
|
+
text: StrictStr,
|
|
47
|
+
language: StrictStr,
|
|
48
|
+
dataset: StrictStr,
|
|
49
|
+
username: StrictStr,
|
|
50
|
+
size: Optional[StrictInt] = None,
|
|
51
|
+
exact: Optional[StrictBool] = None,
|
|
52
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
53
|
+
_request_timeout: Union[
|
|
54
|
+
None,
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Tuple[
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
59
|
+
]
|
|
60
|
+
] = None,
|
|
61
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_content_type: Optional[StrictStr] = None,
|
|
63
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
64
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
65
|
+
) -> RdfEntityLinkerResponse:
|
|
66
|
+
"""Link all entities and relations in a text
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
:param text: (required)
|
|
70
|
+
:type text: str
|
|
71
|
+
:param language: (required)
|
|
72
|
+
:type language: str
|
|
73
|
+
:param dataset: (required)
|
|
74
|
+
:type dataset: str
|
|
75
|
+
:param username: (required)
|
|
76
|
+
:type username: str
|
|
77
|
+
:param size:
|
|
78
|
+
:type size: int
|
|
79
|
+
:param exact:
|
|
80
|
+
:type exact: bool
|
|
81
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
82
|
+
:type q_answer_api_key: str
|
|
83
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
84
|
+
number provided, it will be total request
|
|
85
|
+
timeout. It can also be a pair (tuple) of
|
|
86
|
+
(connection, read) timeouts.
|
|
87
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
88
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
89
|
+
request; this effectively ignores the
|
|
90
|
+
authentication in the spec for a single request.
|
|
91
|
+
:type _request_auth: dict, optional
|
|
92
|
+
:param _content_type: force content-type for the request.
|
|
93
|
+
:type _content_type: str, Optional
|
|
94
|
+
:param _headers: set to override the headers for a single
|
|
95
|
+
request; this effectively ignores the headers
|
|
96
|
+
in the spec for a single request.
|
|
97
|
+
:type _headers: dict, optional
|
|
98
|
+
:param _host_index: set to override the host_index for a single
|
|
99
|
+
request; this effectively ignores the host_index
|
|
100
|
+
in the spec for a single request.
|
|
101
|
+
:type _host_index: int, optional
|
|
102
|
+
:return: Returns the result object.
|
|
103
|
+
""" # noqa: E501
|
|
104
|
+
|
|
105
|
+
_param = self._rdf_entity_and_relation_linker_serialize(
|
|
106
|
+
text=text,
|
|
107
|
+
language=language,
|
|
108
|
+
dataset=dataset,
|
|
109
|
+
username=username,
|
|
110
|
+
size=size,
|
|
111
|
+
exact=exact,
|
|
112
|
+
q_answer_api_key=q_answer_api_key,
|
|
113
|
+
_request_auth=_request_auth,
|
|
114
|
+
_content_type=_content_type,
|
|
115
|
+
_headers=_headers,
|
|
116
|
+
_host_index=_host_index
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
120
|
+
'200': "RdfEntityLinkerResponse",
|
|
121
|
+
'422': "HTTPValidationError",
|
|
122
|
+
}
|
|
123
|
+
response_data = self.api_client.call_api(
|
|
124
|
+
*_param,
|
|
125
|
+
_request_timeout=_request_timeout
|
|
126
|
+
)
|
|
127
|
+
response_data.read()
|
|
128
|
+
return self.api_client.response_deserialize(
|
|
129
|
+
response_data=response_data,
|
|
130
|
+
response_types_map=_response_types_map,
|
|
131
|
+
).data
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
@validate_call
|
|
135
|
+
def rdf_entity_and_relation_linker_with_http_info(
|
|
136
|
+
self,
|
|
137
|
+
text: StrictStr,
|
|
138
|
+
language: StrictStr,
|
|
139
|
+
dataset: StrictStr,
|
|
140
|
+
username: StrictStr,
|
|
141
|
+
size: Optional[StrictInt] = None,
|
|
142
|
+
exact: Optional[StrictBool] = None,
|
|
143
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
144
|
+
_request_timeout: Union[
|
|
145
|
+
None,
|
|
146
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
147
|
+
Tuple[
|
|
148
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
149
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
150
|
+
]
|
|
151
|
+
] = None,
|
|
152
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
153
|
+
_content_type: Optional[StrictStr] = None,
|
|
154
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
155
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
156
|
+
) -> ApiResponse[RdfEntityLinkerResponse]:
|
|
157
|
+
"""Link all entities and relations in a text
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param text: (required)
|
|
161
|
+
:type text: str
|
|
162
|
+
:param language: (required)
|
|
163
|
+
:type language: str
|
|
164
|
+
:param dataset: (required)
|
|
165
|
+
:type dataset: str
|
|
166
|
+
:param username: (required)
|
|
167
|
+
:type username: str
|
|
168
|
+
:param size:
|
|
169
|
+
:type size: int
|
|
170
|
+
:param exact:
|
|
171
|
+
:type exact: bool
|
|
172
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
173
|
+
:type q_answer_api_key: str
|
|
174
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
175
|
+
number provided, it will be total request
|
|
176
|
+
timeout. It can also be a pair (tuple) of
|
|
177
|
+
(connection, read) timeouts.
|
|
178
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
179
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
180
|
+
request; this effectively ignores the
|
|
181
|
+
authentication in the spec for a single request.
|
|
182
|
+
:type _request_auth: dict, optional
|
|
183
|
+
:param _content_type: force content-type for the request.
|
|
184
|
+
:type _content_type: str, Optional
|
|
185
|
+
:param _headers: set to override the headers for a single
|
|
186
|
+
request; this effectively ignores the headers
|
|
187
|
+
in the spec for a single request.
|
|
188
|
+
:type _headers: dict, optional
|
|
189
|
+
:param _host_index: set to override the host_index for a single
|
|
190
|
+
request; this effectively ignores the host_index
|
|
191
|
+
in the spec for a single request.
|
|
192
|
+
:type _host_index: int, optional
|
|
193
|
+
:return: Returns the result object.
|
|
194
|
+
""" # noqa: E501
|
|
195
|
+
|
|
196
|
+
_param = self._rdf_entity_and_relation_linker_serialize(
|
|
197
|
+
text=text,
|
|
198
|
+
language=language,
|
|
199
|
+
dataset=dataset,
|
|
200
|
+
username=username,
|
|
201
|
+
size=size,
|
|
202
|
+
exact=exact,
|
|
203
|
+
q_answer_api_key=q_answer_api_key,
|
|
204
|
+
_request_auth=_request_auth,
|
|
205
|
+
_content_type=_content_type,
|
|
206
|
+
_headers=_headers,
|
|
207
|
+
_host_index=_host_index
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
211
|
+
'200': "RdfEntityLinkerResponse",
|
|
212
|
+
'422': "HTTPValidationError",
|
|
213
|
+
}
|
|
214
|
+
response_data = self.api_client.call_api(
|
|
215
|
+
*_param,
|
|
216
|
+
_request_timeout=_request_timeout
|
|
217
|
+
)
|
|
218
|
+
response_data.read()
|
|
219
|
+
return self.api_client.response_deserialize(
|
|
220
|
+
response_data=response_data,
|
|
221
|
+
response_types_map=_response_types_map,
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
@validate_call
|
|
226
|
+
def rdf_entity_and_relation_linker_without_preload_content(
|
|
227
|
+
self,
|
|
228
|
+
text: StrictStr,
|
|
229
|
+
language: StrictStr,
|
|
230
|
+
dataset: StrictStr,
|
|
231
|
+
username: StrictStr,
|
|
232
|
+
size: Optional[StrictInt] = None,
|
|
233
|
+
exact: Optional[StrictBool] = None,
|
|
234
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
235
|
+
_request_timeout: Union[
|
|
236
|
+
None,
|
|
237
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
238
|
+
Tuple[
|
|
239
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
240
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
241
|
+
]
|
|
242
|
+
] = None,
|
|
243
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
244
|
+
_content_type: Optional[StrictStr] = None,
|
|
245
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
246
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
247
|
+
) -> RESTResponseType:
|
|
248
|
+
"""Link all entities and relations in a text
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
:param text: (required)
|
|
252
|
+
:type text: str
|
|
253
|
+
:param language: (required)
|
|
254
|
+
:type language: str
|
|
255
|
+
:param dataset: (required)
|
|
256
|
+
:type dataset: str
|
|
257
|
+
:param username: (required)
|
|
258
|
+
:type username: str
|
|
259
|
+
:param size:
|
|
260
|
+
:type size: int
|
|
261
|
+
:param exact:
|
|
262
|
+
:type exact: bool
|
|
263
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
264
|
+
:type q_answer_api_key: str
|
|
265
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
266
|
+
number provided, it will be total request
|
|
267
|
+
timeout. It can also be a pair (tuple) of
|
|
268
|
+
(connection, read) timeouts.
|
|
269
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
270
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
271
|
+
request; this effectively ignores the
|
|
272
|
+
authentication in the spec for a single request.
|
|
273
|
+
:type _request_auth: dict, optional
|
|
274
|
+
:param _content_type: force content-type for the request.
|
|
275
|
+
:type _content_type: str, Optional
|
|
276
|
+
:param _headers: set to override the headers for a single
|
|
277
|
+
request; this effectively ignores the headers
|
|
278
|
+
in the spec for a single request.
|
|
279
|
+
:type _headers: dict, optional
|
|
280
|
+
:param _host_index: set to override the host_index for a single
|
|
281
|
+
request; this effectively ignores the host_index
|
|
282
|
+
in the spec for a single request.
|
|
283
|
+
:type _host_index: int, optional
|
|
284
|
+
:return: Returns the result object.
|
|
285
|
+
""" # noqa: E501
|
|
286
|
+
|
|
287
|
+
_param = self._rdf_entity_and_relation_linker_serialize(
|
|
288
|
+
text=text,
|
|
289
|
+
language=language,
|
|
290
|
+
dataset=dataset,
|
|
291
|
+
username=username,
|
|
292
|
+
size=size,
|
|
293
|
+
exact=exact,
|
|
294
|
+
q_answer_api_key=q_answer_api_key,
|
|
295
|
+
_request_auth=_request_auth,
|
|
296
|
+
_content_type=_content_type,
|
|
297
|
+
_headers=_headers,
|
|
298
|
+
_host_index=_host_index
|
|
299
|
+
)
|
|
300
|
+
|
|
301
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
302
|
+
'200': "RdfEntityLinkerResponse",
|
|
303
|
+
'422': "HTTPValidationError",
|
|
304
|
+
}
|
|
305
|
+
response_data = self.api_client.call_api(
|
|
306
|
+
*_param,
|
|
307
|
+
_request_timeout=_request_timeout
|
|
308
|
+
)
|
|
309
|
+
return response_data.response
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
def _rdf_entity_and_relation_linker_serialize(
|
|
313
|
+
self,
|
|
314
|
+
text,
|
|
315
|
+
language,
|
|
316
|
+
dataset,
|
|
317
|
+
username,
|
|
318
|
+
size,
|
|
319
|
+
exact,
|
|
320
|
+
q_answer_api_key,
|
|
321
|
+
_request_auth,
|
|
322
|
+
_content_type,
|
|
323
|
+
_headers,
|
|
324
|
+
_host_index,
|
|
325
|
+
) -> RequestSerialized:
|
|
326
|
+
|
|
327
|
+
_host = None
|
|
328
|
+
|
|
329
|
+
_collection_formats: Dict[str, str] = {
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
_path_params: Dict[str, str] = {}
|
|
333
|
+
_query_params: List[Tuple[str, str]] = []
|
|
334
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
335
|
+
_form_params: List[Tuple[str, str]] = []
|
|
336
|
+
_files: Dict[
|
|
337
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
338
|
+
] = {}
|
|
339
|
+
_body_params: Optional[bytes] = None
|
|
340
|
+
|
|
341
|
+
# process the path parameters
|
|
342
|
+
# process the query parameters
|
|
343
|
+
if text is not None:
|
|
344
|
+
|
|
345
|
+
_query_params.append(('text', text))
|
|
346
|
+
|
|
347
|
+
if language is not None:
|
|
348
|
+
|
|
349
|
+
_query_params.append(('language', language))
|
|
350
|
+
|
|
351
|
+
if dataset is not None:
|
|
352
|
+
|
|
353
|
+
_query_params.append(('dataset', dataset))
|
|
354
|
+
|
|
355
|
+
if username is not None:
|
|
356
|
+
|
|
357
|
+
_query_params.append(('username', username))
|
|
358
|
+
|
|
359
|
+
if size is not None:
|
|
360
|
+
|
|
361
|
+
_query_params.append(('size', size))
|
|
362
|
+
|
|
363
|
+
if exact is not None:
|
|
364
|
+
|
|
365
|
+
_query_params.append(('exact', exact))
|
|
366
|
+
|
|
367
|
+
# process the header parameters
|
|
368
|
+
if q_answer_api_key is not None:
|
|
369
|
+
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
|
370
|
+
# process the form parameters
|
|
371
|
+
# process the body parameter
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
# set the HTTP header `Accept`
|
|
375
|
+
if 'Accept' not in _header_params:
|
|
376
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
377
|
+
[
|
|
378
|
+
'application/json'
|
|
379
|
+
]
|
|
380
|
+
)
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
# authentication setting
|
|
384
|
+
_auth_settings: List[str] = [
|
|
385
|
+
'QAnswer-Api-Key',
|
|
386
|
+
'Bearer token'
|
|
387
|
+
]
|
|
388
|
+
|
|
389
|
+
return self.api_client.param_serialize(
|
|
390
|
+
method='GET',
|
|
391
|
+
resource_path='/api/tasks/rdf/text-linker/entity-and-relation-linker',
|
|
392
|
+
path_params=_path_params,
|
|
393
|
+
query_params=_query_params,
|
|
394
|
+
header_params=_header_params,
|
|
395
|
+
body=_body_params,
|
|
396
|
+
post_params=_form_params,
|
|
397
|
+
files=_files,
|
|
398
|
+
auth_settings=_auth_settings,
|
|
399
|
+
collection_formats=_collection_formats,
|
|
400
|
+
_host=_host,
|
|
401
|
+
_request_auth=_request_auth
|
|
402
|
+
)
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
@validate_call
|
|
408
|
+
def rdf_entity_linker(
|
|
409
|
+
self,
|
|
410
|
+
text: StrictStr,
|
|
411
|
+
language: StrictStr,
|
|
412
|
+
dataset: StrictStr,
|
|
413
|
+
username: StrictStr,
|
|
414
|
+
size: Optional[StrictInt] = None,
|
|
415
|
+
exact: Optional[StrictBool] = None,
|
|
416
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
417
|
+
_request_timeout: Union[
|
|
418
|
+
None,
|
|
419
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
420
|
+
Tuple[
|
|
421
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
422
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
423
|
+
]
|
|
424
|
+
] = None,
|
|
425
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
426
|
+
_content_type: Optional[StrictStr] = None,
|
|
427
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
428
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
429
|
+
) -> RdfEntityLinkerResponse:
|
|
430
|
+
"""Link all entities in a text
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
:param text: (required)
|
|
434
|
+
:type text: str
|
|
435
|
+
:param language: (required)
|
|
436
|
+
:type language: str
|
|
437
|
+
:param dataset: (required)
|
|
438
|
+
:type dataset: str
|
|
439
|
+
:param username: (required)
|
|
440
|
+
:type username: str
|
|
441
|
+
:param size:
|
|
442
|
+
:type size: int
|
|
443
|
+
:param exact:
|
|
444
|
+
:type exact: bool
|
|
445
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
446
|
+
:type q_answer_api_key: str
|
|
447
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
448
|
+
number provided, it will be total request
|
|
449
|
+
timeout. It can also be a pair (tuple) of
|
|
450
|
+
(connection, read) timeouts.
|
|
451
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
452
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
453
|
+
request; this effectively ignores the
|
|
454
|
+
authentication in the spec for a single request.
|
|
455
|
+
:type _request_auth: dict, optional
|
|
456
|
+
:param _content_type: force content-type for the request.
|
|
457
|
+
:type _content_type: str, Optional
|
|
458
|
+
:param _headers: set to override the headers for a single
|
|
459
|
+
request; this effectively ignores the headers
|
|
460
|
+
in the spec for a single request.
|
|
461
|
+
:type _headers: dict, optional
|
|
462
|
+
:param _host_index: set to override the host_index for a single
|
|
463
|
+
request; this effectively ignores the host_index
|
|
464
|
+
in the spec for a single request.
|
|
465
|
+
:type _host_index: int, optional
|
|
466
|
+
:return: Returns the result object.
|
|
467
|
+
""" # noqa: E501
|
|
468
|
+
|
|
469
|
+
_param = self._rdf_entity_linker_serialize(
|
|
470
|
+
text=text,
|
|
471
|
+
language=language,
|
|
472
|
+
dataset=dataset,
|
|
473
|
+
username=username,
|
|
474
|
+
size=size,
|
|
475
|
+
exact=exact,
|
|
476
|
+
q_answer_api_key=q_answer_api_key,
|
|
477
|
+
_request_auth=_request_auth,
|
|
478
|
+
_content_type=_content_type,
|
|
479
|
+
_headers=_headers,
|
|
480
|
+
_host_index=_host_index
|
|
481
|
+
)
|
|
482
|
+
|
|
483
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
484
|
+
'200': "RdfEntityLinkerResponse",
|
|
485
|
+
'422': "HTTPValidationError",
|
|
486
|
+
}
|
|
487
|
+
response_data = self.api_client.call_api(
|
|
488
|
+
*_param,
|
|
489
|
+
_request_timeout=_request_timeout
|
|
490
|
+
)
|
|
491
|
+
response_data.read()
|
|
492
|
+
return self.api_client.response_deserialize(
|
|
493
|
+
response_data=response_data,
|
|
494
|
+
response_types_map=_response_types_map,
|
|
495
|
+
).data
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
@validate_call
|
|
499
|
+
def rdf_entity_linker_with_http_info(
|
|
500
|
+
self,
|
|
501
|
+
text: StrictStr,
|
|
502
|
+
language: StrictStr,
|
|
503
|
+
dataset: StrictStr,
|
|
504
|
+
username: StrictStr,
|
|
505
|
+
size: Optional[StrictInt] = None,
|
|
506
|
+
exact: Optional[StrictBool] = None,
|
|
507
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
508
|
+
_request_timeout: Union[
|
|
509
|
+
None,
|
|
510
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
511
|
+
Tuple[
|
|
512
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
513
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
514
|
+
]
|
|
515
|
+
] = None,
|
|
516
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
517
|
+
_content_type: Optional[StrictStr] = None,
|
|
518
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
519
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
520
|
+
) -> ApiResponse[RdfEntityLinkerResponse]:
|
|
521
|
+
"""Link all entities in a text
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
:param text: (required)
|
|
525
|
+
:type text: str
|
|
526
|
+
:param language: (required)
|
|
527
|
+
:type language: str
|
|
528
|
+
:param dataset: (required)
|
|
529
|
+
:type dataset: str
|
|
530
|
+
:param username: (required)
|
|
531
|
+
:type username: str
|
|
532
|
+
:param size:
|
|
533
|
+
:type size: int
|
|
534
|
+
:param exact:
|
|
535
|
+
:type exact: bool
|
|
536
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
537
|
+
:type q_answer_api_key: str
|
|
538
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
539
|
+
number provided, it will be total request
|
|
540
|
+
timeout. It can also be a pair (tuple) of
|
|
541
|
+
(connection, read) timeouts.
|
|
542
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
543
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
544
|
+
request; this effectively ignores the
|
|
545
|
+
authentication in the spec for a single request.
|
|
546
|
+
:type _request_auth: dict, optional
|
|
547
|
+
:param _content_type: force content-type for the request.
|
|
548
|
+
:type _content_type: str, Optional
|
|
549
|
+
:param _headers: set to override the headers for a single
|
|
550
|
+
request; this effectively ignores the headers
|
|
551
|
+
in the spec for a single request.
|
|
552
|
+
:type _headers: dict, optional
|
|
553
|
+
:param _host_index: set to override the host_index for a single
|
|
554
|
+
request; this effectively ignores the host_index
|
|
555
|
+
in the spec for a single request.
|
|
556
|
+
:type _host_index: int, optional
|
|
557
|
+
:return: Returns the result object.
|
|
558
|
+
""" # noqa: E501
|
|
559
|
+
|
|
560
|
+
_param = self._rdf_entity_linker_serialize(
|
|
561
|
+
text=text,
|
|
562
|
+
language=language,
|
|
563
|
+
dataset=dataset,
|
|
564
|
+
username=username,
|
|
565
|
+
size=size,
|
|
566
|
+
exact=exact,
|
|
567
|
+
q_answer_api_key=q_answer_api_key,
|
|
568
|
+
_request_auth=_request_auth,
|
|
569
|
+
_content_type=_content_type,
|
|
570
|
+
_headers=_headers,
|
|
571
|
+
_host_index=_host_index
|
|
572
|
+
)
|
|
573
|
+
|
|
574
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
575
|
+
'200': "RdfEntityLinkerResponse",
|
|
576
|
+
'422': "HTTPValidationError",
|
|
577
|
+
}
|
|
578
|
+
response_data = self.api_client.call_api(
|
|
579
|
+
*_param,
|
|
580
|
+
_request_timeout=_request_timeout
|
|
581
|
+
)
|
|
582
|
+
response_data.read()
|
|
583
|
+
return self.api_client.response_deserialize(
|
|
584
|
+
response_data=response_data,
|
|
585
|
+
response_types_map=_response_types_map,
|
|
586
|
+
)
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
@validate_call
|
|
590
|
+
def rdf_entity_linker_without_preload_content(
|
|
591
|
+
self,
|
|
592
|
+
text: StrictStr,
|
|
593
|
+
language: StrictStr,
|
|
594
|
+
dataset: StrictStr,
|
|
595
|
+
username: StrictStr,
|
|
596
|
+
size: Optional[StrictInt] = None,
|
|
597
|
+
exact: Optional[StrictBool] = None,
|
|
598
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
599
|
+
_request_timeout: Union[
|
|
600
|
+
None,
|
|
601
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
602
|
+
Tuple[
|
|
603
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
604
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
605
|
+
]
|
|
606
|
+
] = None,
|
|
607
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
608
|
+
_content_type: Optional[StrictStr] = None,
|
|
609
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
610
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
611
|
+
) -> RESTResponseType:
|
|
612
|
+
"""Link all entities in a text
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
:param text: (required)
|
|
616
|
+
:type text: str
|
|
617
|
+
:param language: (required)
|
|
618
|
+
:type language: str
|
|
619
|
+
:param dataset: (required)
|
|
620
|
+
:type dataset: str
|
|
621
|
+
:param username: (required)
|
|
622
|
+
:type username: str
|
|
623
|
+
:param size:
|
|
624
|
+
:type size: int
|
|
625
|
+
:param exact:
|
|
626
|
+
:type exact: bool
|
|
627
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
628
|
+
:type q_answer_api_key: str
|
|
629
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
630
|
+
number provided, it will be total request
|
|
631
|
+
timeout. It can also be a pair (tuple) of
|
|
632
|
+
(connection, read) timeouts.
|
|
633
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
634
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
635
|
+
request; this effectively ignores the
|
|
636
|
+
authentication in the spec for a single request.
|
|
637
|
+
:type _request_auth: dict, optional
|
|
638
|
+
:param _content_type: force content-type for the request.
|
|
639
|
+
:type _content_type: str, Optional
|
|
640
|
+
:param _headers: set to override the headers for a single
|
|
641
|
+
request; this effectively ignores the headers
|
|
642
|
+
in the spec for a single request.
|
|
643
|
+
:type _headers: dict, optional
|
|
644
|
+
:param _host_index: set to override the host_index for a single
|
|
645
|
+
request; this effectively ignores the host_index
|
|
646
|
+
in the spec for a single request.
|
|
647
|
+
:type _host_index: int, optional
|
|
648
|
+
:return: Returns the result object.
|
|
649
|
+
""" # noqa: E501
|
|
650
|
+
|
|
651
|
+
_param = self._rdf_entity_linker_serialize(
|
|
652
|
+
text=text,
|
|
653
|
+
language=language,
|
|
654
|
+
dataset=dataset,
|
|
655
|
+
username=username,
|
|
656
|
+
size=size,
|
|
657
|
+
exact=exact,
|
|
658
|
+
q_answer_api_key=q_answer_api_key,
|
|
659
|
+
_request_auth=_request_auth,
|
|
660
|
+
_content_type=_content_type,
|
|
661
|
+
_headers=_headers,
|
|
662
|
+
_host_index=_host_index
|
|
663
|
+
)
|
|
664
|
+
|
|
665
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
666
|
+
'200': "RdfEntityLinkerResponse",
|
|
667
|
+
'422': "HTTPValidationError",
|
|
668
|
+
}
|
|
669
|
+
response_data = self.api_client.call_api(
|
|
670
|
+
*_param,
|
|
671
|
+
_request_timeout=_request_timeout
|
|
672
|
+
)
|
|
673
|
+
return response_data.response
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
def _rdf_entity_linker_serialize(
|
|
677
|
+
self,
|
|
678
|
+
text,
|
|
679
|
+
language,
|
|
680
|
+
dataset,
|
|
681
|
+
username,
|
|
682
|
+
size,
|
|
683
|
+
exact,
|
|
684
|
+
q_answer_api_key,
|
|
685
|
+
_request_auth,
|
|
686
|
+
_content_type,
|
|
687
|
+
_headers,
|
|
688
|
+
_host_index,
|
|
689
|
+
) -> RequestSerialized:
|
|
690
|
+
|
|
691
|
+
_host = None
|
|
692
|
+
|
|
693
|
+
_collection_formats: Dict[str, str] = {
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
_path_params: Dict[str, str] = {}
|
|
697
|
+
_query_params: List[Tuple[str, str]] = []
|
|
698
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
699
|
+
_form_params: List[Tuple[str, str]] = []
|
|
700
|
+
_files: Dict[
|
|
701
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
702
|
+
] = {}
|
|
703
|
+
_body_params: Optional[bytes] = None
|
|
704
|
+
|
|
705
|
+
# process the path parameters
|
|
706
|
+
# process the query parameters
|
|
707
|
+
if text is not None:
|
|
708
|
+
|
|
709
|
+
_query_params.append(('text', text))
|
|
710
|
+
|
|
711
|
+
if language is not None:
|
|
712
|
+
|
|
713
|
+
_query_params.append(('language', language))
|
|
714
|
+
|
|
715
|
+
if dataset is not None:
|
|
716
|
+
|
|
717
|
+
_query_params.append(('dataset', dataset))
|
|
718
|
+
|
|
719
|
+
if username is not None:
|
|
720
|
+
|
|
721
|
+
_query_params.append(('username', username))
|
|
722
|
+
|
|
723
|
+
if size is not None:
|
|
724
|
+
|
|
725
|
+
_query_params.append(('size', size))
|
|
726
|
+
|
|
727
|
+
if exact is not None:
|
|
728
|
+
|
|
729
|
+
_query_params.append(('exact', exact))
|
|
730
|
+
|
|
731
|
+
# process the header parameters
|
|
732
|
+
if q_answer_api_key is not None:
|
|
733
|
+
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
|
734
|
+
# process the form parameters
|
|
735
|
+
# process the body parameter
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
# set the HTTP header `Accept`
|
|
739
|
+
if 'Accept' not in _header_params:
|
|
740
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
741
|
+
[
|
|
742
|
+
'application/json'
|
|
743
|
+
]
|
|
744
|
+
)
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
# authentication setting
|
|
748
|
+
_auth_settings: List[str] = [
|
|
749
|
+
'QAnswer-Api-Key',
|
|
750
|
+
'Bearer token'
|
|
751
|
+
]
|
|
752
|
+
|
|
753
|
+
return self.api_client.param_serialize(
|
|
754
|
+
method='GET',
|
|
755
|
+
resource_path='/api/tasks/rdf/text-linker/entity-linker',
|
|
756
|
+
path_params=_path_params,
|
|
757
|
+
query_params=_query_params,
|
|
758
|
+
header_params=_header_params,
|
|
759
|
+
body=_body_params,
|
|
760
|
+
post_params=_form_params,
|
|
761
|
+
files=_files,
|
|
762
|
+
auth_settings=_auth_settings,
|
|
763
|
+
collection_formats=_collection_formats,
|
|
764
|
+
_host=_host,
|
|
765
|
+
_request_auth=_request_auth
|
|
766
|
+
)
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
@validate_call
|
|
772
|
+
def rdf_relation_linker(
|
|
773
|
+
self,
|
|
774
|
+
text: StrictStr,
|
|
775
|
+
language: StrictStr,
|
|
776
|
+
dataset: StrictStr,
|
|
777
|
+
username: StrictStr,
|
|
778
|
+
size: Optional[StrictInt] = None,
|
|
779
|
+
exact: Optional[StrictBool] = None,
|
|
780
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
781
|
+
_request_timeout: Union[
|
|
782
|
+
None,
|
|
783
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
784
|
+
Tuple[
|
|
785
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
786
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
787
|
+
]
|
|
788
|
+
] = None,
|
|
789
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
790
|
+
_content_type: Optional[StrictStr] = None,
|
|
791
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
792
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
793
|
+
) -> RdfEntityLinkerResponse:
|
|
794
|
+
"""Link all relations in a text
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
:param text: (required)
|
|
798
|
+
:type text: str
|
|
799
|
+
:param language: (required)
|
|
800
|
+
:type language: str
|
|
801
|
+
:param dataset: (required)
|
|
802
|
+
:type dataset: str
|
|
803
|
+
:param username: (required)
|
|
804
|
+
:type username: str
|
|
805
|
+
:param size:
|
|
806
|
+
:type size: int
|
|
807
|
+
:param exact:
|
|
808
|
+
:type exact: bool
|
|
809
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
810
|
+
:type q_answer_api_key: str
|
|
811
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
812
|
+
number provided, it will be total request
|
|
813
|
+
timeout. It can also be a pair (tuple) of
|
|
814
|
+
(connection, read) timeouts.
|
|
815
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
816
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
817
|
+
request; this effectively ignores the
|
|
818
|
+
authentication in the spec for a single request.
|
|
819
|
+
:type _request_auth: dict, optional
|
|
820
|
+
:param _content_type: force content-type for the request.
|
|
821
|
+
:type _content_type: str, Optional
|
|
822
|
+
:param _headers: set to override the headers for a single
|
|
823
|
+
request; this effectively ignores the headers
|
|
824
|
+
in the spec for a single request.
|
|
825
|
+
:type _headers: dict, optional
|
|
826
|
+
:param _host_index: set to override the host_index for a single
|
|
827
|
+
request; this effectively ignores the host_index
|
|
828
|
+
in the spec for a single request.
|
|
829
|
+
:type _host_index: int, optional
|
|
830
|
+
:return: Returns the result object.
|
|
831
|
+
""" # noqa: E501
|
|
832
|
+
|
|
833
|
+
_param = self._rdf_relation_linker_serialize(
|
|
834
|
+
text=text,
|
|
835
|
+
language=language,
|
|
836
|
+
dataset=dataset,
|
|
837
|
+
username=username,
|
|
838
|
+
size=size,
|
|
839
|
+
exact=exact,
|
|
840
|
+
q_answer_api_key=q_answer_api_key,
|
|
841
|
+
_request_auth=_request_auth,
|
|
842
|
+
_content_type=_content_type,
|
|
843
|
+
_headers=_headers,
|
|
844
|
+
_host_index=_host_index
|
|
845
|
+
)
|
|
846
|
+
|
|
847
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
848
|
+
'200': "RdfEntityLinkerResponse",
|
|
849
|
+
'422': "HTTPValidationError",
|
|
850
|
+
}
|
|
851
|
+
response_data = self.api_client.call_api(
|
|
852
|
+
*_param,
|
|
853
|
+
_request_timeout=_request_timeout
|
|
854
|
+
)
|
|
855
|
+
response_data.read()
|
|
856
|
+
return self.api_client.response_deserialize(
|
|
857
|
+
response_data=response_data,
|
|
858
|
+
response_types_map=_response_types_map,
|
|
859
|
+
).data
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
@validate_call
|
|
863
|
+
def rdf_relation_linker_with_http_info(
|
|
864
|
+
self,
|
|
865
|
+
text: StrictStr,
|
|
866
|
+
language: StrictStr,
|
|
867
|
+
dataset: StrictStr,
|
|
868
|
+
username: StrictStr,
|
|
869
|
+
size: Optional[StrictInt] = None,
|
|
870
|
+
exact: Optional[StrictBool] = None,
|
|
871
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
872
|
+
_request_timeout: Union[
|
|
873
|
+
None,
|
|
874
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
875
|
+
Tuple[
|
|
876
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
877
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
878
|
+
]
|
|
879
|
+
] = None,
|
|
880
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
881
|
+
_content_type: Optional[StrictStr] = None,
|
|
882
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
883
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
884
|
+
) -> ApiResponse[RdfEntityLinkerResponse]:
|
|
885
|
+
"""Link all relations in a text
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
:param text: (required)
|
|
889
|
+
:type text: str
|
|
890
|
+
:param language: (required)
|
|
891
|
+
:type language: str
|
|
892
|
+
:param dataset: (required)
|
|
893
|
+
:type dataset: str
|
|
894
|
+
:param username: (required)
|
|
895
|
+
:type username: str
|
|
896
|
+
:param size:
|
|
897
|
+
:type size: int
|
|
898
|
+
:param exact:
|
|
899
|
+
:type exact: bool
|
|
900
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
901
|
+
:type q_answer_api_key: str
|
|
902
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
903
|
+
number provided, it will be total request
|
|
904
|
+
timeout. It can also be a pair (tuple) of
|
|
905
|
+
(connection, read) timeouts.
|
|
906
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
907
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
908
|
+
request; this effectively ignores the
|
|
909
|
+
authentication in the spec for a single request.
|
|
910
|
+
:type _request_auth: dict, optional
|
|
911
|
+
:param _content_type: force content-type for the request.
|
|
912
|
+
:type _content_type: str, Optional
|
|
913
|
+
:param _headers: set to override the headers for a single
|
|
914
|
+
request; this effectively ignores the headers
|
|
915
|
+
in the spec for a single request.
|
|
916
|
+
:type _headers: dict, optional
|
|
917
|
+
:param _host_index: set to override the host_index for a single
|
|
918
|
+
request; this effectively ignores the host_index
|
|
919
|
+
in the spec for a single request.
|
|
920
|
+
:type _host_index: int, optional
|
|
921
|
+
:return: Returns the result object.
|
|
922
|
+
""" # noqa: E501
|
|
923
|
+
|
|
924
|
+
_param = self._rdf_relation_linker_serialize(
|
|
925
|
+
text=text,
|
|
926
|
+
language=language,
|
|
927
|
+
dataset=dataset,
|
|
928
|
+
username=username,
|
|
929
|
+
size=size,
|
|
930
|
+
exact=exact,
|
|
931
|
+
q_answer_api_key=q_answer_api_key,
|
|
932
|
+
_request_auth=_request_auth,
|
|
933
|
+
_content_type=_content_type,
|
|
934
|
+
_headers=_headers,
|
|
935
|
+
_host_index=_host_index
|
|
936
|
+
)
|
|
937
|
+
|
|
938
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
939
|
+
'200': "RdfEntityLinkerResponse",
|
|
940
|
+
'422': "HTTPValidationError",
|
|
941
|
+
}
|
|
942
|
+
response_data = self.api_client.call_api(
|
|
943
|
+
*_param,
|
|
944
|
+
_request_timeout=_request_timeout
|
|
945
|
+
)
|
|
946
|
+
response_data.read()
|
|
947
|
+
return self.api_client.response_deserialize(
|
|
948
|
+
response_data=response_data,
|
|
949
|
+
response_types_map=_response_types_map,
|
|
950
|
+
)
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
@validate_call
|
|
954
|
+
def rdf_relation_linker_without_preload_content(
|
|
955
|
+
self,
|
|
956
|
+
text: StrictStr,
|
|
957
|
+
language: StrictStr,
|
|
958
|
+
dataset: StrictStr,
|
|
959
|
+
username: StrictStr,
|
|
960
|
+
size: Optional[StrictInt] = None,
|
|
961
|
+
exact: Optional[StrictBool] = None,
|
|
962
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
963
|
+
_request_timeout: Union[
|
|
964
|
+
None,
|
|
965
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
966
|
+
Tuple[
|
|
967
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
968
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
969
|
+
]
|
|
970
|
+
] = None,
|
|
971
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
972
|
+
_content_type: Optional[StrictStr] = None,
|
|
973
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
974
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
975
|
+
) -> RESTResponseType:
|
|
976
|
+
"""Link all relations in a text
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
:param text: (required)
|
|
980
|
+
:type text: str
|
|
981
|
+
:param language: (required)
|
|
982
|
+
:type language: str
|
|
983
|
+
:param dataset: (required)
|
|
984
|
+
:type dataset: str
|
|
985
|
+
:param username: (required)
|
|
986
|
+
:type username: str
|
|
987
|
+
:param size:
|
|
988
|
+
:type size: int
|
|
989
|
+
:param exact:
|
|
990
|
+
:type exact: bool
|
|
991
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
992
|
+
:type q_answer_api_key: str
|
|
993
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
994
|
+
number provided, it will be total request
|
|
995
|
+
timeout. It can also be a pair (tuple) of
|
|
996
|
+
(connection, read) timeouts.
|
|
997
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
998
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
999
|
+
request; this effectively ignores the
|
|
1000
|
+
authentication in the spec for a single request.
|
|
1001
|
+
:type _request_auth: dict, optional
|
|
1002
|
+
:param _content_type: force content-type for the request.
|
|
1003
|
+
:type _content_type: str, Optional
|
|
1004
|
+
:param _headers: set to override the headers for a single
|
|
1005
|
+
request; this effectively ignores the headers
|
|
1006
|
+
in the spec for a single request.
|
|
1007
|
+
:type _headers: dict, optional
|
|
1008
|
+
:param _host_index: set to override the host_index for a single
|
|
1009
|
+
request; this effectively ignores the host_index
|
|
1010
|
+
in the spec for a single request.
|
|
1011
|
+
:type _host_index: int, optional
|
|
1012
|
+
:return: Returns the result object.
|
|
1013
|
+
""" # noqa: E501
|
|
1014
|
+
|
|
1015
|
+
_param = self._rdf_relation_linker_serialize(
|
|
1016
|
+
text=text,
|
|
1017
|
+
language=language,
|
|
1018
|
+
dataset=dataset,
|
|
1019
|
+
username=username,
|
|
1020
|
+
size=size,
|
|
1021
|
+
exact=exact,
|
|
1022
|
+
q_answer_api_key=q_answer_api_key,
|
|
1023
|
+
_request_auth=_request_auth,
|
|
1024
|
+
_content_type=_content_type,
|
|
1025
|
+
_headers=_headers,
|
|
1026
|
+
_host_index=_host_index
|
|
1027
|
+
)
|
|
1028
|
+
|
|
1029
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1030
|
+
'200': "RdfEntityLinkerResponse",
|
|
1031
|
+
'422': "HTTPValidationError",
|
|
1032
|
+
}
|
|
1033
|
+
response_data = self.api_client.call_api(
|
|
1034
|
+
*_param,
|
|
1035
|
+
_request_timeout=_request_timeout
|
|
1036
|
+
)
|
|
1037
|
+
return response_data.response
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
def _rdf_relation_linker_serialize(
|
|
1041
|
+
self,
|
|
1042
|
+
text,
|
|
1043
|
+
language,
|
|
1044
|
+
dataset,
|
|
1045
|
+
username,
|
|
1046
|
+
size,
|
|
1047
|
+
exact,
|
|
1048
|
+
q_answer_api_key,
|
|
1049
|
+
_request_auth,
|
|
1050
|
+
_content_type,
|
|
1051
|
+
_headers,
|
|
1052
|
+
_host_index,
|
|
1053
|
+
) -> RequestSerialized:
|
|
1054
|
+
|
|
1055
|
+
_host = None
|
|
1056
|
+
|
|
1057
|
+
_collection_formats: Dict[str, str] = {
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
_path_params: Dict[str, str] = {}
|
|
1061
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1062
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1063
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1064
|
+
_files: Dict[
|
|
1065
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1066
|
+
] = {}
|
|
1067
|
+
_body_params: Optional[bytes] = None
|
|
1068
|
+
|
|
1069
|
+
# process the path parameters
|
|
1070
|
+
# process the query parameters
|
|
1071
|
+
if text is not None:
|
|
1072
|
+
|
|
1073
|
+
_query_params.append(('text', text))
|
|
1074
|
+
|
|
1075
|
+
if language is not None:
|
|
1076
|
+
|
|
1077
|
+
_query_params.append(('language', language))
|
|
1078
|
+
|
|
1079
|
+
if dataset is not None:
|
|
1080
|
+
|
|
1081
|
+
_query_params.append(('dataset', dataset))
|
|
1082
|
+
|
|
1083
|
+
if username is not None:
|
|
1084
|
+
|
|
1085
|
+
_query_params.append(('username', username))
|
|
1086
|
+
|
|
1087
|
+
if size is not None:
|
|
1088
|
+
|
|
1089
|
+
_query_params.append(('size', size))
|
|
1090
|
+
|
|
1091
|
+
if exact is not None:
|
|
1092
|
+
|
|
1093
|
+
_query_params.append(('exact', exact))
|
|
1094
|
+
|
|
1095
|
+
# process the header parameters
|
|
1096
|
+
if q_answer_api_key is not None:
|
|
1097
|
+
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
|
1098
|
+
# process the form parameters
|
|
1099
|
+
# process the body parameter
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
# set the HTTP header `Accept`
|
|
1103
|
+
if 'Accept' not in _header_params:
|
|
1104
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1105
|
+
[
|
|
1106
|
+
'application/json'
|
|
1107
|
+
]
|
|
1108
|
+
)
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
# authentication setting
|
|
1112
|
+
_auth_settings: List[str] = [
|
|
1113
|
+
'QAnswer-Api-Key',
|
|
1114
|
+
'Bearer token'
|
|
1115
|
+
]
|
|
1116
|
+
|
|
1117
|
+
return self.api_client.param_serialize(
|
|
1118
|
+
method='GET',
|
|
1119
|
+
resource_path='/api/tasks/rdf/text-linker/relation-linker',
|
|
1120
|
+
path_params=_path_params,
|
|
1121
|
+
query_params=_query_params,
|
|
1122
|
+
header_params=_header_params,
|
|
1123
|
+
body=_body_params,
|
|
1124
|
+
post_params=_form_params,
|
|
1125
|
+
files=_files,
|
|
1126
|
+
auth_settings=_auth_settings,
|
|
1127
|
+
collection_formats=_collection_formats,
|
|
1128
|
+
_host=_host,
|
|
1129
|
+
_request_auth=_request_auth
|
|
1130
|
+
)
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
@validate_call
|
|
1136
|
+
def rdf_text_link(
|
|
1137
|
+
self,
|
|
1138
|
+
text: StrictStr,
|
|
1139
|
+
language: StrictStr,
|
|
1140
|
+
username: StrictStr,
|
|
1141
|
+
dataset: StrictStr,
|
|
1142
|
+
size: Optional[StrictInt] = None,
|
|
1143
|
+
exact: Optional[StrictBool] = None,
|
|
1144
|
+
is_property: Optional[StrictBool] = None,
|
|
1145
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
1146
|
+
_request_timeout: Union[
|
|
1147
|
+
None,
|
|
1148
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1149
|
+
Tuple[
|
|
1150
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1151
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1152
|
+
]
|
|
1153
|
+
] = None,
|
|
1154
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1155
|
+
_content_type: Optional[StrictStr] = None,
|
|
1156
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1157
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1158
|
+
) -> List[EntityModelInLinking]:
|
|
1159
|
+
"""See for a text which are all possible options
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
:param text: (required)
|
|
1163
|
+
:type text: str
|
|
1164
|
+
:param language: (required)
|
|
1165
|
+
:type language: str
|
|
1166
|
+
:param username: (required)
|
|
1167
|
+
:type username: str
|
|
1168
|
+
:param dataset: (required)
|
|
1169
|
+
:type dataset: str
|
|
1170
|
+
:param size:
|
|
1171
|
+
:type size: int
|
|
1172
|
+
:param exact:
|
|
1173
|
+
:type exact: bool
|
|
1174
|
+
:param is_property:
|
|
1175
|
+
:type is_property: bool
|
|
1176
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
1177
|
+
:type q_answer_api_key: str
|
|
1178
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1179
|
+
number provided, it will be total request
|
|
1180
|
+
timeout. It can also be a pair (tuple) of
|
|
1181
|
+
(connection, read) timeouts.
|
|
1182
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1183
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1184
|
+
request; this effectively ignores the
|
|
1185
|
+
authentication in the spec for a single request.
|
|
1186
|
+
:type _request_auth: dict, optional
|
|
1187
|
+
:param _content_type: force content-type for the request.
|
|
1188
|
+
:type _content_type: str, Optional
|
|
1189
|
+
:param _headers: set to override the headers for a single
|
|
1190
|
+
request; this effectively ignores the headers
|
|
1191
|
+
in the spec for a single request.
|
|
1192
|
+
:type _headers: dict, optional
|
|
1193
|
+
:param _host_index: set to override the host_index for a single
|
|
1194
|
+
request; this effectively ignores the host_index
|
|
1195
|
+
in the spec for a single request.
|
|
1196
|
+
:type _host_index: int, optional
|
|
1197
|
+
:return: Returns the result object.
|
|
1198
|
+
""" # noqa: E501
|
|
1199
|
+
|
|
1200
|
+
_param = self._rdf_text_link_serialize(
|
|
1201
|
+
text=text,
|
|
1202
|
+
language=language,
|
|
1203
|
+
username=username,
|
|
1204
|
+
dataset=dataset,
|
|
1205
|
+
size=size,
|
|
1206
|
+
exact=exact,
|
|
1207
|
+
is_property=is_property,
|
|
1208
|
+
q_answer_api_key=q_answer_api_key,
|
|
1209
|
+
_request_auth=_request_auth,
|
|
1210
|
+
_content_type=_content_type,
|
|
1211
|
+
_headers=_headers,
|
|
1212
|
+
_host_index=_host_index
|
|
1213
|
+
)
|
|
1214
|
+
|
|
1215
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1216
|
+
'200': "List[EntityModelInLinking]",
|
|
1217
|
+
'422': "HTTPValidationError",
|
|
1218
|
+
}
|
|
1219
|
+
response_data = self.api_client.call_api(
|
|
1220
|
+
*_param,
|
|
1221
|
+
_request_timeout=_request_timeout
|
|
1222
|
+
)
|
|
1223
|
+
response_data.read()
|
|
1224
|
+
return self.api_client.response_deserialize(
|
|
1225
|
+
response_data=response_data,
|
|
1226
|
+
response_types_map=_response_types_map,
|
|
1227
|
+
).data
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
@validate_call
|
|
1231
|
+
def rdf_text_link_with_http_info(
|
|
1232
|
+
self,
|
|
1233
|
+
text: StrictStr,
|
|
1234
|
+
language: StrictStr,
|
|
1235
|
+
username: StrictStr,
|
|
1236
|
+
dataset: StrictStr,
|
|
1237
|
+
size: Optional[StrictInt] = None,
|
|
1238
|
+
exact: Optional[StrictBool] = None,
|
|
1239
|
+
is_property: Optional[StrictBool] = None,
|
|
1240
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
1241
|
+
_request_timeout: Union[
|
|
1242
|
+
None,
|
|
1243
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1244
|
+
Tuple[
|
|
1245
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1246
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1247
|
+
]
|
|
1248
|
+
] = None,
|
|
1249
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1250
|
+
_content_type: Optional[StrictStr] = None,
|
|
1251
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1252
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1253
|
+
) -> ApiResponse[List[EntityModelInLinking]]:
|
|
1254
|
+
"""See for a text which are all possible options
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
:param text: (required)
|
|
1258
|
+
:type text: str
|
|
1259
|
+
:param language: (required)
|
|
1260
|
+
:type language: str
|
|
1261
|
+
:param username: (required)
|
|
1262
|
+
:type username: str
|
|
1263
|
+
:param dataset: (required)
|
|
1264
|
+
:type dataset: str
|
|
1265
|
+
:param size:
|
|
1266
|
+
:type size: int
|
|
1267
|
+
:param exact:
|
|
1268
|
+
:type exact: bool
|
|
1269
|
+
:param is_property:
|
|
1270
|
+
:type is_property: bool
|
|
1271
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
1272
|
+
:type q_answer_api_key: str
|
|
1273
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1274
|
+
number provided, it will be total request
|
|
1275
|
+
timeout. It can also be a pair (tuple) of
|
|
1276
|
+
(connection, read) timeouts.
|
|
1277
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1278
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1279
|
+
request; this effectively ignores the
|
|
1280
|
+
authentication in the spec for a single request.
|
|
1281
|
+
:type _request_auth: dict, optional
|
|
1282
|
+
:param _content_type: force content-type for the request.
|
|
1283
|
+
:type _content_type: str, Optional
|
|
1284
|
+
:param _headers: set to override the headers for a single
|
|
1285
|
+
request; this effectively ignores the headers
|
|
1286
|
+
in the spec for a single request.
|
|
1287
|
+
:type _headers: dict, optional
|
|
1288
|
+
:param _host_index: set to override the host_index for a single
|
|
1289
|
+
request; this effectively ignores the host_index
|
|
1290
|
+
in the spec for a single request.
|
|
1291
|
+
:type _host_index: int, optional
|
|
1292
|
+
:return: Returns the result object.
|
|
1293
|
+
""" # noqa: E501
|
|
1294
|
+
|
|
1295
|
+
_param = self._rdf_text_link_serialize(
|
|
1296
|
+
text=text,
|
|
1297
|
+
language=language,
|
|
1298
|
+
username=username,
|
|
1299
|
+
dataset=dataset,
|
|
1300
|
+
size=size,
|
|
1301
|
+
exact=exact,
|
|
1302
|
+
is_property=is_property,
|
|
1303
|
+
q_answer_api_key=q_answer_api_key,
|
|
1304
|
+
_request_auth=_request_auth,
|
|
1305
|
+
_content_type=_content_type,
|
|
1306
|
+
_headers=_headers,
|
|
1307
|
+
_host_index=_host_index
|
|
1308
|
+
)
|
|
1309
|
+
|
|
1310
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1311
|
+
'200': "List[EntityModelInLinking]",
|
|
1312
|
+
'422': "HTTPValidationError",
|
|
1313
|
+
}
|
|
1314
|
+
response_data = self.api_client.call_api(
|
|
1315
|
+
*_param,
|
|
1316
|
+
_request_timeout=_request_timeout
|
|
1317
|
+
)
|
|
1318
|
+
response_data.read()
|
|
1319
|
+
return self.api_client.response_deserialize(
|
|
1320
|
+
response_data=response_data,
|
|
1321
|
+
response_types_map=_response_types_map,
|
|
1322
|
+
)
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
@validate_call
|
|
1326
|
+
def rdf_text_link_without_preload_content(
|
|
1327
|
+
self,
|
|
1328
|
+
text: StrictStr,
|
|
1329
|
+
language: StrictStr,
|
|
1330
|
+
username: StrictStr,
|
|
1331
|
+
dataset: StrictStr,
|
|
1332
|
+
size: Optional[StrictInt] = None,
|
|
1333
|
+
exact: Optional[StrictBool] = None,
|
|
1334
|
+
is_property: Optional[StrictBool] = None,
|
|
1335
|
+
q_answer_api_key: Annotated[Optional[StrictStr], Field(description="Optional QAnswer API key")] = None,
|
|
1336
|
+
_request_timeout: Union[
|
|
1337
|
+
None,
|
|
1338
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1339
|
+
Tuple[
|
|
1340
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1341
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1342
|
+
]
|
|
1343
|
+
] = None,
|
|
1344
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1345
|
+
_content_type: Optional[StrictStr] = None,
|
|
1346
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1347
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1348
|
+
) -> RESTResponseType:
|
|
1349
|
+
"""See for a text which are all possible options
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
:param text: (required)
|
|
1353
|
+
:type text: str
|
|
1354
|
+
:param language: (required)
|
|
1355
|
+
:type language: str
|
|
1356
|
+
:param username: (required)
|
|
1357
|
+
:type username: str
|
|
1358
|
+
:param dataset: (required)
|
|
1359
|
+
:type dataset: str
|
|
1360
|
+
:param size:
|
|
1361
|
+
:type size: int
|
|
1362
|
+
:param exact:
|
|
1363
|
+
:type exact: bool
|
|
1364
|
+
:param is_property:
|
|
1365
|
+
:type is_property: bool
|
|
1366
|
+
:param q_answer_api_key: Optional QAnswer API key
|
|
1367
|
+
:type q_answer_api_key: str
|
|
1368
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1369
|
+
number provided, it will be total request
|
|
1370
|
+
timeout. It can also be a pair (tuple) of
|
|
1371
|
+
(connection, read) timeouts.
|
|
1372
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1373
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1374
|
+
request; this effectively ignores the
|
|
1375
|
+
authentication in the spec for a single request.
|
|
1376
|
+
:type _request_auth: dict, optional
|
|
1377
|
+
:param _content_type: force content-type for the request.
|
|
1378
|
+
:type _content_type: str, Optional
|
|
1379
|
+
:param _headers: set to override the headers for a single
|
|
1380
|
+
request; this effectively ignores the headers
|
|
1381
|
+
in the spec for a single request.
|
|
1382
|
+
:type _headers: dict, optional
|
|
1383
|
+
:param _host_index: set to override the host_index for a single
|
|
1384
|
+
request; this effectively ignores the host_index
|
|
1385
|
+
in the spec for a single request.
|
|
1386
|
+
:type _host_index: int, optional
|
|
1387
|
+
:return: Returns the result object.
|
|
1388
|
+
""" # noqa: E501
|
|
1389
|
+
|
|
1390
|
+
_param = self._rdf_text_link_serialize(
|
|
1391
|
+
text=text,
|
|
1392
|
+
language=language,
|
|
1393
|
+
username=username,
|
|
1394
|
+
dataset=dataset,
|
|
1395
|
+
size=size,
|
|
1396
|
+
exact=exact,
|
|
1397
|
+
is_property=is_property,
|
|
1398
|
+
q_answer_api_key=q_answer_api_key,
|
|
1399
|
+
_request_auth=_request_auth,
|
|
1400
|
+
_content_type=_content_type,
|
|
1401
|
+
_headers=_headers,
|
|
1402
|
+
_host_index=_host_index
|
|
1403
|
+
)
|
|
1404
|
+
|
|
1405
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1406
|
+
'200': "List[EntityModelInLinking]",
|
|
1407
|
+
'422': "HTTPValidationError",
|
|
1408
|
+
}
|
|
1409
|
+
response_data = self.api_client.call_api(
|
|
1410
|
+
*_param,
|
|
1411
|
+
_request_timeout=_request_timeout
|
|
1412
|
+
)
|
|
1413
|
+
return response_data.response
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
def _rdf_text_link_serialize(
|
|
1417
|
+
self,
|
|
1418
|
+
text,
|
|
1419
|
+
language,
|
|
1420
|
+
username,
|
|
1421
|
+
dataset,
|
|
1422
|
+
size,
|
|
1423
|
+
exact,
|
|
1424
|
+
is_property,
|
|
1425
|
+
q_answer_api_key,
|
|
1426
|
+
_request_auth,
|
|
1427
|
+
_content_type,
|
|
1428
|
+
_headers,
|
|
1429
|
+
_host_index,
|
|
1430
|
+
) -> RequestSerialized:
|
|
1431
|
+
|
|
1432
|
+
_host = None
|
|
1433
|
+
|
|
1434
|
+
_collection_formats: Dict[str, str] = {
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
_path_params: Dict[str, str] = {}
|
|
1438
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1439
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1440
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1441
|
+
_files: Dict[
|
|
1442
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1443
|
+
] = {}
|
|
1444
|
+
_body_params: Optional[bytes] = None
|
|
1445
|
+
|
|
1446
|
+
# process the path parameters
|
|
1447
|
+
# process the query parameters
|
|
1448
|
+
if text is not None:
|
|
1449
|
+
|
|
1450
|
+
_query_params.append(('text', text))
|
|
1451
|
+
|
|
1452
|
+
if language is not None:
|
|
1453
|
+
|
|
1454
|
+
_query_params.append(('language', language))
|
|
1455
|
+
|
|
1456
|
+
if username is not None:
|
|
1457
|
+
|
|
1458
|
+
_query_params.append(('username', username))
|
|
1459
|
+
|
|
1460
|
+
if dataset is not None:
|
|
1461
|
+
|
|
1462
|
+
_query_params.append(('dataset', dataset))
|
|
1463
|
+
|
|
1464
|
+
if size is not None:
|
|
1465
|
+
|
|
1466
|
+
_query_params.append(('size', size))
|
|
1467
|
+
|
|
1468
|
+
if exact is not None:
|
|
1469
|
+
|
|
1470
|
+
_query_params.append(('exact', exact))
|
|
1471
|
+
|
|
1472
|
+
if is_property is not None:
|
|
1473
|
+
|
|
1474
|
+
_query_params.append(('isProperty', is_property))
|
|
1475
|
+
|
|
1476
|
+
# process the header parameters
|
|
1477
|
+
if q_answer_api_key is not None:
|
|
1478
|
+
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
|
1479
|
+
# process the form parameters
|
|
1480
|
+
# process the body parameter
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
# set the HTTP header `Accept`
|
|
1484
|
+
if 'Accept' not in _header_params:
|
|
1485
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1486
|
+
[
|
|
1487
|
+
'application/json'
|
|
1488
|
+
]
|
|
1489
|
+
)
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
# authentication setting
|
|
1493
|
+
_auth_settings: List[str] = [
|
|
1494
|
+
'QAnswer-Api-Key',
|
|
1495
|
+
'Bearer token'
|
|
1496
|
+
]
|
|
1497
|
+
|
|
1498
|
+
return self.api_client.param_serialize(
|
|
1499
|
+
method='GET',
|
|
1500
|
+
resource_path='/api/tasks/rdf/text-linker/link',
|
|
1501
|
+
path_params=_path_params,
|
|
1502
|
+
query_params=_query_params,
|
|
1503
|
+
header_params=_header_params,
|
|
1504
|
+
body=_body_params,
|
|
1505
|
+
post_params=_form_params,
|
|
1506
|
+
files=_files,
|
|
1507
|
+
auth_settings=_auth_settings,
|
|
1508
|
+
collection_formats=_collection_formats,
|
|
1509
|
+
_host=_host,
|
|
1510
|
+
_request_auth=_request_auth
|
|
1511
|
+
)
|
|
1512
|
+
|
|
1513
|
+
|