aboutsummaryrefslogtreecommitdiff
path: root/trygvis/eda/cli/add_to_db.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-12-28 00:37:54 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2016-12-28 00:37:54 +0100
commitde8665b0b05db10c3257f9c645a09638a4732256 (patch)
tree2eb435330ad594eb2a001f075c28dfbe67eb8977 /trygvis/eda/cli/add_to_db.py
parent8af35183f1f25e2f9d1d111cac85a48622f22673 (diff)
downloadeda-rdf-de8665b0b05db10c3257f9c645a09638a4732256.tar.gz
eda-rdf-de8665b0b05db10c3257f9c645a09638a4732256.tar.bz2
eda-rdf-de8665b0b05db10c3257f9c645a09638a4732256.tar.xz
eda-rdf-de8665b0b05db10c3257f9c645a09638a4732256.zip
o Improving CLI output and setup.
o Adding 'init' command similar to git's init command. Only configurable item is the database to query. Removing the -d/--db argument to all commands as it's read from the configuration instead. o Adding support for querying a remove SPARQL endpoint.
Diffstat (limited to 'trygvis/eda/cli/add_to_db.py')
-rw-r--r--trygvis/eda/cli/add_to_db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/trygvis/eda/cli/add_to_db.py b/trygvis/eda/cli/add_to_db.py
index e3b07c1..84f8d74 100644
--- a/trygvis/eda/cli/add_to_db.py
+++ b/trygvis/eda/cli/add_to_db.py
@@ -1,7 +1,7 @@
import trygvis.eda.cli as cli
-def run(files, path, args):
+def run(files, args):
def load(g):
s = 0
for f in files:
@@ -15,4 +15,4 @@ def run(files, path, args):
cli.info("Done. Loaded %d tuples" % s)
- cli.with_database(path, load)
+ cli.with_database(load)