Skip to content

ontocast.tool.agg.match_models

Shared models for RDF graph matching and evaluation.

as_uri_ref(value)

Normalize a graph or match term to URIRef for rdflib-safe equality.

Source code in ontocast/tool/agg/match_models.py
def as_uri_ref(value: URIRef | str) -> URIRef:
    """Normalize a graph or match term to URIRef for rdflib-safe equality."""
    return coerce_uri_ref(value)