Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add support for SPARQL Update graph management language #170

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions quit/application.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse
import sys
import os
from quit.conf import Feature, QuitConfiguration
from quit.conf import Feature, QuitStoreConfiguration
from quit.exceptions import InvalidConfigurationError
import rdflib.plugins.sparql
from rdflib.plugins.sparql.algebra import SequencePath
Expand Down Expand Up @@ -98,11 +98,10 @@ def sequencePathCompareGt(self, other):
'quit.plugins.serializers.results.htmlresults', 'HTMLResultSerializer')

try:
config = QuitConfiguration(
config = QuitStoreConfiguration(
configfile=args.configfile,
targetdir=args.targetdir,
repository=args.repourl,
configmode=args.configmode,
upstream=args.repourl,
features=args.features,
namespace=args.namespace,
)
Expand All @@ -111,14 +110,9 @@ def sequencePathCompareGt(self, other):
sys.exit('Exiting quit')

# since repo is handled, we can add graphs to config
config.initgraphconfig()

logger.info('QuitStore successfully running.')
logger.info('Known graphs: ' + str(config.getgraphs()))
logger.info('Known files: ' + str(config.getfiles()))
logger.info('QuitStore Configuration initialized.')
logger.debug('Path of Gitrepo: ' + config.getRepoPath())
logger.debug('Config mode: ' + str(config.getConfigMode()))
logger.debug('All RDF files found in Gitepo:' + str(config.getgraphsfromdir()))

return {'config': config}

Expand Down
Loading