diff options
Diffstat (limited to 'trygvis')
-rw-r--r-- | trygvis/eda/cli/__init__.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/trygvis/eda/cli/__init__.py b/trygvis/eda/cli/__init__.py index 69905cd..308e1bd 100644 --- a/trygvis/eda/cli/__init__.py +++ b/trygvis/eda/cli/__init__.py @@ -45,17 +45,12 @@ def with_database(tx): raise CliException("The database is corrupt: %s" % path) elif db_type == 'sparql': query_endpoint = config["db"]["url"] + update_endpoint = config["db"].get("update_url") - if not hasattr(config["db"], "update_url") is None: + if update_endpoint is None: g = sparqlstore.SPARQLStore() g.open(query_endpoint) else: - update_endpoint = config["db"]["update_url"] - # def my_bnode_ext(node): - # if isinstance(node, BNode): - # return '<bnode:b%s>' % node - # else: - # return sparqlstore._node_to_sparql(node) g = sparqlstore.SPARQLUpdateStore(autocommit=False) g.open((query_endpoint, update_endpoint)) else: |