def validate_file(download_url: str) -> bool:
if '<STR_LIT::>' in download_url:<EOL><INDENT>resp = requests.get(download_url)<EOL>if resp.ok:<EOL><INDENT>return compare_rdf(resp.text, download_url)<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>".format(resp.status_code, resp.reason))<EOL>return False<EOL><DEDENT><DEDENT>else:<EOL><INDENT>with open(download_url) as f:<EOL><INDENT>return compare_rdf(f.read(), download_url)<EOL><DEDENT><DEDENT>
Parse and validate the ShExC file in download_url
:param download_url: ShExC file
:return: True if success