Commit 78ae85cc authored by lambdamusic's avatar lambdamusic

fix turtle parsing warning

parent e96a4fd2
......@@ -12,7 +12,7 @@ Summary of changes.
- requires install with [HTML] flag
- 'utils' and 'quickdocs' commands added to CLI
- CLI: all commands when called default to HELP
-
- fix bug for retrieving ontologies from online repos
## November 12, 2018: v1.9.6
......
......@@ -395,8 +395,10 @@ def _import_LOV(
"\n---------" + Style.RESET_ALL)
action_analyze([ontouri])
if click.confirm(
'=====\nDo you want to save to your local library?'):
'=====\nDo you want to save to your local library?'
):
action_import(ontouri)
return
except:
print("Error retrieving file. Import failed.")
continue
......@@ -444,8 +446,10 @@ def _import_PREFIXCC(keyword=""):
print(Fore.RED + "\n---------\n" + ontouri + "\n---------" +
Style.RESET_ALL)
action_analyze([ontouri])
if click.confirm('=====\nDo you want to save to your local library?'):
if click.confirm(
'=====\nDo you want to save to your local library?'):
action_import(ontouri)
return
except:
print("Error retrieving file. Import failed.")
continue
......
......@@ -41,7 +41,14 @@ class RDFLoader(object):
"""
SERIALIZATIONS = ['turtle', 'xml', 'n3', 'nt', 'json-ld', 'rdfa']
SERIALIZATIONS = [
'xml',
'n3',
'nt',
'json-ld',
'turtle',
'rdfa',
]
def __init__(self, rdfgraph=None, verbose=False):
super(RDFLoader, self).__init__()
......
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