Skip to content

IRI in search working#78

Merged
cmutel merged 6 commits intocauldron:mainfrom
vstarlinger:main
Oct 14, 2025
Merged

IRI in search working#78
cmutel merged 6 commits intocauldron:mainfrom
vstarlinger:main

Conversation

@vstarlinger
Copy link
Contributor

This fixes #65

Search requests using IRIs will now default to use the graph_service to directly redirect to the correct concept or scheme. In case the IRI is not found in either the Concept or ConceptSchemes then it falls back to using the search on the full IRI string.

Uses

def _is_iri(query: str) -> bool:
    """Check if query string is a valid HTTP/HTTPS IRI."""
    try:
        parsed = rfc3987.parse(query.strip(), rule="IRI")
        return parsed.get("scheme") in ("http", "https")
    except ValueError:
        return False

to check if the query is a valid IRI

@cmutel cmutel merged commit 29aa870 into cauldron:main Oct 14, 2025
2 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.

Search bar should support quick access via IRI

3 participants