def load_and_clean_rdf(location):
content = codecs.open(location, encoding='<STR_LIT:utf-8>').read()<EOL>content = strip_variable_text(content)<EOL>data = xmltodict.parse(content, dict_constructor=dict)<EOL>return sort_nested(data)<EOL>
Return plain Python nested data for the SPDX RDF file at location
suitable for comparison. The file content is cleaned from variable
parts such as dates, generated UUIDs and versions

NOTE: we use plain dicts to avoid ordering issues in XML. the SPDX
tool and lxml do not seem to return a consistent ordering that is
needed for tests.