dump_rdf
- dump_rdf(key, *subkeys, name, obj, format='turtle', serialize_kwargs=None)[source]
Dump an RDF graph to a 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 (
str
) – The name of the file to openobj (
Graph
) – The object to dumpformat (
str
) – The format to dump inserialize_kwargs (
Optional
[Mapping
[str
,Any
]]) – Keyword arguments to through tordflib.Graph.serialize()
.