pyLodStorage 0.1.2__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/PKG-INFO +1 -1
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/querymain.py +7 -2
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/PKG-INFO +1 -1
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/setup.py +1 -1
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/LICENSE +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/README.md +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/csv.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/entity.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/jsonpicklemixin.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/lod.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/plot.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/query.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/sample.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/schema.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/sql.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/storageconfig.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/uml.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/yamlablemixin.py +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/entry_points.txt +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.1.2 → pylodstorage-0.1.4}/setup.cfg +0 -0
|
@@ -3,7 +3,7 @@ Created on 2022-02-13
|
|
|
3
3
|
|
|
4
4
|
@author: wf
|
|
5
5
|
'''
|
|
6
|
-
__version__ = "0.1.
|
|
6
|
+
__version__ = "0.1.4"
|
|
7
7
|
__date__ = '2020-09-10'
|
|
8
8
|
__updated__ = '2022-02-13'
|
|
9
9
|
DEBUG = 0
|
|
@@ -39,7 +39,11 @@ class QueryMain:
|
|
|
39
39
|
command line activation with parsed args
|
|
40
40
|
'''
|
|
41
41
|
debug=args.debug
|
|
42
|
-
if args.
|
|
42
|
+
if args.list:
|
|
43
|
+
qm=QueryManager(lang=args.language,debug=debug,queriesPath=args.queriesPath)
|
|
44
|
+
for name,query in qm.queriesByName.items():
|
|
45
|
+
print(f"{name}:{query.title}")
|
|
46
|
+
elif args.queryName is not None:
|
|
43
47
|
if debug:
|
|
44
48
|
print(f"named query {args.queryName}:")
|
|
45
49
|
qm=QueryManager(lang=args.language,debug=debug,queriesPath=args.queriesPath)
|
|
@@ -99,6 +103,7 @@ USAGE
|
|
|
99
103
|
parser.add_argument("-d", "--debug", dest="debug", action="store_true", help="set debug [default: %(default)s]")
|
|
100
104
|
parser.add_argument('-e', '--endpoint', default="https://query.wikidata.org/sparql", help="SPARQL endpoint to use for queries")
|
|
101
105
|
parser.add_argument('-f','--format', type=Format, choices=list(Format))
|
|
106
|
+
parser.add_argument('-l','--list',help="show the list of available queries")
|
|
102
107
|
parser.add_argument('-qp', '--queriesPath',help="path to YAML file with query definitions")
|
|
103
108
|
parser.add_argument("-q", "--query",help="the query to run")
|
|
104
109
|
parser.add_argument("-qn","--queryName",help="run a named query")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|