Skip to content

Commit

Permalink
working on provenance db config
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Sep 10, 2023
1 parent d618abf commit 5ef9239
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion duck/db.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from rdflib import Graph, URIRef
from rdflib.plugins.sparql import prepareQuery
# from pywps import configuration

# Provide the path to the SQLite database in the local folder
DB_URL = "sqlite:////var/lib/pywps/db/provenance.sqlite"
# DB_URL = "sqlite:////var/lib/pywps/db/provenance.sqlite"
DB_URL = "sqlite:////tmp/provenance.sqlite"
# DB_URL = configuration.get_config_value('provenance', 'db_url')


class GraphDB(object):
Expand Down
3 changes: 3 additions & 0 deletions duck/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ cleantempdir = false
level = INFO
file = duck.log
format = %(asctime)s] [%(levelname)s] line=%(lineno)s module=%(module)s %(message)s

[provenance]
db_url = sqlite:////tmp/provenance.sqlite

0 comments on commit 5ef9239

Please sign in to comment.