SeMRA Source Registration
Register rdfsolve as a SeMRA source.
Importing this module (or calling register()) makes the key
"rdfsolve_instance" available in
semra.sources.SOURCE_RESOLVER. Once registered, the rdfsolve
instance-matcher mappings can be used as inputs to any SeMRA pipeline:
from semra.sources import SOURCE_RESOLVER import rdfsolve.semra_source # triggers registration mappings = SOURCE_RESOLVER.lookup(“rdfsolve_instance”)()
The returned mappings are read from the JSON-LD files in
docker/mappings/instance_matching/ (relative to the repository
root discovered via importlib.resources / CWD fallback).
- get_rdfsolve_instance_mappings(directory: str | None = None) list[Any][source]
Return rdfsolve instance-matcher mappings as semra Mappings.
Reads every
*.jsonldfile from directory (defaults todocker/mappings/instance_matching/), converts the edges viardfsolve.semra_converter.rdfsolve_edges_to_semra(), and returns the flat list ofsemra.Mappingobjects.- Parameters:
directory – Override the search directory (absolute path).
- Returns:
List of
semra.Mappingobjects.