load_rdf
- load_rdf(key: str, *subkeys: str, name: str | None = None, parse_kwargs: Mapping[str, Any] | None = None) rdflib.Graph[source]
Open an RDF file with
rdflib.- Parameters:
key – The name of the module. No funny characters. The envvar <key>_HOME where key is uppercased is checked first before using the default home directory.
subkeys – A sequence of additional strings to join. If none are given, returns the directory for this module.
name – The name of the file to open
parse_kwargs – Keyword arguments to pass through to
pystow.utils.read_rdf()and transitively tordflib.Graph.parse().
- Returns:
An RDF graph