load_rdf

load_rdf(key, *subkeys, name=None, parse_kwargs=None)[source]

Open an RDF file with rdflib.

Parameters:
  • key (str) – 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 (str) – A sequence of additional strings to join. If none are given, returns the directory for this module.

  • name (Optional[str]) – The name of the file to open

  • parse_kwargs (Optional[Mapping[str, Any]]) – Keyword arguments to pass through to pystow.utils.read_rdf() and transitively to rdflib.Graph.parse().

Return type:

Graph

Returns:

An RDF graph