IRI Resolver
IRI resolution - pure-library module (no Flask dependency).
Resolves IRIs against SPARQL endpoints to discover their rdf:type
and human-readable labels (rdfs:label, dc:title).
Uses SparqlHelper for all HTTP
communication instead of raw requests.
- resolve_iris(iris: list[str], endpoints: list[dict[str, Any]], timeout: int = 15) dict[str, Any][source]
Resolve IRIs against SPARQL endpoints to find their
rdf:type.- Parameters:
iris – List of IRI strings to look up.
endpoints – Each dict must have
endpoint(URL) and may havenameandgraph.timeout – Per-endpoint timeout in seconds.
- Returns:
{"resolved": {...}, "not_found": [...], "errors": [...]}- Return type: