Commit 33bf3bbc authored by Marko Kuder's avatar Marko Kuder

do not mistake pcaxis for text/html

parent d979689d
......@@ -117,9 +117,12 @@ def sniff_file_format(filepath, log):
format_ = {'format': 'TTL'}
elif format_['format'] == 'HTML':
# maybe it has RDFa in it
with open(filepath) as f:
buf = f.read(100000)
# might really be PCAXIS
if is_pcaxis(buf, log):
format_ = {'format': 'PCAXIS'}
# maybe it has RDFa in it
if has_rdfa(buf, log):
format_ = {'format': 'RDFa'}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment