
Verify selected HTTP semantic IRIs in a Salmon Data Package
Source:R/semantic-iri-verification.R
verify_sdp_semantic_iris.RdCollects exact HTTP(S) identifiers from selected SDP semantic metadata, including manifest-bound reviewed SSSOM mappings. Candidate suggestions, arbitrary data URLs, and non-HTTP identifiers are excluded. GET requests follow redirects and stop after complete final response headers, with a 30-second timeout across connection and redirects. The final body is not retained or required for HTTP resolution. Only HTTP 408, 429, 5xx, and classified transient transport failures are retried, with at most three attempts per IRI. All IRIs are checked before any failure aborts.
Usage
verify_sdp_semantic_iris(
path,
report_path = file.path(path, "reproducibility", "provenance",
"semantic-iri-dereference.csv"),
requester = .ms_semantic_iri_request,
sleep_fn = Sys.sleep
)Arguments
- path
Existing Salmon Data Package directory.
- report_path
CSV output path. Defaults to
reproducibility/provenance/semantic-iri-dereference.csvinsidepath.- requester
GET function receiving one exact IRI and returning a list with integer
statusand characterfinal_url. Intended for offline tests.- sleep_fn
Delay function, receiving seconds. Intended for offline tests.
Value
Invisibly, a tibble with iri, status, final_url, error, and
attempts, one row for each unique exact HTTP semantic IRI. On failure,
the complete CSV is written before an aggregate error is raised.