Skip to content

8 integrate sparql endpoint for metadata extraction - #10

Merged
shashankmc merged 28 commits into
mainfrom
8-integrate-sparql-endpoint-for-metadata-extraction
May 27, 2026
Merged

8 integrate sparql endpoint for metadata extraction#10
shashankmc merged 28 commits into
mainfrom
8-integrate-sparql-endpoint-for-metadata-extraction

Conversation

@shashankmc

Copy link
Copy Markdown
Member

No description provided.

shashankmc and others added 27 commits March 26, 2026 22:32
Co-authored-by: Copilot <copilot@github.com>
…SE_DELAY_SECONDS

Exponential backoff (1s, 2s) in extract_data_from_xml before retrying
Fixed logging levels: exhausted retries → WARNING, unexpected exceptions → ERROR/WARNING
Extracted _fetch_metadata_for_ecli_list() + _api_fetch() to replace ~80 lines duplicated verbatim in _process_single_source and _process_all_files_in_directory
Removed unused batch_size parameter from all three function signatures
multi_threading is now functional: wired through to _api_fetch, which chooses between thread pool and sequential execution
All failure paths return None (not False) — consistent with get_rechtspraak(); return type updated to Optional[pd.DataFrame]
… mock_api_response; ensure_data_directories centralised here
…n_entry, check_api, _num_of_available_docs, get_exe_time, read_csv, save_csv, error paths of get_rechtspraak
…TTP errors), process_metadata_fields, get_data_from_api, fetch_eclis_via_sqlite, and get_rechtspraak_metadata input validation
…lite and test_fetch_eclis_via_sqlite_with_full_columns merged into one parametrized test; smoke tests strengthened with real assertions; stale is False assertions updated to is None

Co-authored-by: Copilot <copilot@github.com>
…scriptions for get_rechtspraak_metadata and fetch_eclis_via_sqlite functions
@shashankmc shashankmc linked an issue May 27, 2026 that may be closed by this pull request
@shashankmc shashankmc closed this May 27, 2026
@shashankmc shashankmc reopened this May 27, 2026
@shashankmc
shashankmc merged commit 94c2d12 into main May 27, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate sparql endpoint for metadata extraction

1 participant