qlever 0.5.5__py3-none-any.whl → 0.5.7__py3-none-any.whl
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.
Potentially problematic release.
This version of qlever might be problematic. Click here for more details.
- qlever/Qleverfiles/Qleverfile.ohm-planet +14 -14
- qlever/Qleverfiles/Qleverfile.osm-country +27 -21
- qlever/Qleverfiles/Qleverfile.wikimedia-commons +37 -0
- qlever/__main__.py +1476 -0
- qlever/commands/index.py +8 -5
- qlever/containerize.py +12 -0
- qlever/qleverfile.py +1 -1
- {qlever-0.5.5.dist-info → qlever-0.5.7.dist-info}/METADATA +1 -1
- {qlever-0.5.5.dist-info → qlever-0.5.7.dist-info}/RECORD +13 -11
- {qlever-0.5.5.dist-info → qlever-0.5.7.dist-info}/WHEEL +1 -1
- {qlever-0.5.5.dist-info → qlever-0.5.7.dist-info}/LICENSE +0 -0
- {qlever-0.5.5.dist-info → qlever-0.5.7.dist-info}/entry_points.txt +0 -0
- {qlever-0.5.5.dist-info → qlever-0.5.7.dist-info}/top_level.txt +0 -0
qlever/commands/index.py
CHANGED
|
@@ -119,11 +119,14 @@ class IndexCommand(QleverCommand):
|
|
|
119
119
|
# Remove already existing container.
|
|
120
120
|
if args.system in Containerize.supported_systems() \
|
|
121
121
|
and args.overwrite_existing:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
if Containerize.is_running(args.system, args.index_container):
|
|
123
|
+
log.info("Another index process is running, trying to stop it ...")
|
|
124
|
+
log.info("")
|
|
125
|
+
try:
|
|
126
|
+
run_command(f"{args.system} rm -f {args.index_container}")
|
|
127
|
+
except Exception as e:
|
|
128
|
+
log.error(f"Removing existing container failed: {e}")
|
|
129
|
+
return False
|
|
127
130
|
|
|
128
131
|
# Write settings.json file.
|
|
129
132
|
try:
|
qlever/containerize.py
CHANGED
|
@@ -9,6 +9,7 @@ import subprocess
|
|
|
9
9
|
from typing import Optional
|
|
10
10
|
|
|
11
11
|
from qlever.log import log
|
|
12
|
+
from qlever.util import run_command
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
class ContainerizeException(Exception):
|
|
@@ -78,6 +79,17 @@ class Containerize:
|
|
|
78
79
|
f" -c {shlex.quote(cmd)}")
|
|
79
80
|
return containerized_cmd
|
|
80
81
|
|
|
82
|
+
@staticmethod
|
|
83
|
+
def is_running(container_system: str, container_name: str) -> bool:
|
|
84
|
+
# Note: the `{{{{` and `}}}}` result in `{{` and `}}`, respectively.
|
|
85
|
+
containers = (
|
|
86
|
+
run_command(f"{container_system} ps --format=\"{{{{.Names}}}}\"",
|
|
87
|
+
return_output=True)
|
|
88
|
+
.strip()
|
|
89
|
+
.splitlines()
|
|
90
|
+
)
|
|
91
|
+
return container_name in containers
|
|
92
|
+
|
|
81
93
|
@staticmethod
|
|
82
94
|
def stop_and_remove_container(container_system: str,
|
|
83
95
|
container_name: str) -> bool:
|
qlever/qleverfile.py
CHANGED
|
@@ -106,7 +106,7 @@ class Qleverfile:
|
|
|
106
106
|
help="The binary for starting the server (this requires "
|
|
107
107
|
"that you have compiled QLever on your machine)")
|
|
108
108
|
server_args["host_name"] = arg(
|
|
109
|
-
"--host-name", type=str, default=f"
|
|
109
|
+
"--host-name", type=str, default=f"localhost",
|
|
110
110
|
help="The name of the host on which the server listens for "
|
|
111
111
|
"requests")
|
|
112
112
|
server_args["port"] = arg(
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
qlever/__init__.py,sha256=7VKA8tp5iHZQyTXhDOcxUbloZ7WyxDnkruq0iJOzQcE,1403
|
|
2
|
+
qlever/__main__.py,sha256=MqM37bEzQeJEGUXZvuLcilIvnObZiG2eTGIkfKGpdnw,62016
|
|
2
3
|
qlever/command.py,sha256=yOr0Uc8D8-AM7EjwDsVzbc3KNYjPH-FVOZhIHkqO588,2749
|
|
3
4
|
qlever/config.py,sha256=qYPy-MQ7BwGrvKSazQWhs0lnlOFqm-d47mpZhc3fptc,10254
|
|
4
|
-
qlever/containerize.py,sha256=
|
|
5
|
+
qlever/containerize.py,sha256=HRtC5jrRRpcBmdrXK2LsEAKiGVq2dWH1Oa2Ps2nvAsE,4643
|
|
5
6
|
qlever/log.py,sha256=2O_RvFymnu_dB10ErBTAOsI8bgjORfdD0tE3USH-siM,1315
|
|
6
7
|
qlever/qlever_main.py,sha256=tA_xqOs_FjvqlDIvKTprwuysfTwzsUjE7at26gRhCVA,2336
|
|
7
8
|
qlever/qlever_old.py,sha256=X-JxmepFKYeFgSLLp0TRDNqXSxDwIbc8_0Xstiems8c,62026
|
|
8
|
-
qlever/qleverfile.py,sha256=
|
|
9
|
+
qlever/qleverfile.py,sha256=D321zDnWi-ScCefbFGBydKKI7lzzr1CkohHW6KuwVw0,13106
|
|
9
10
|
qlever/util.py,sha256=20NQJquSk_mSqvlK4k0OrSBqWrxKs5SgVshm5ucus5o,7847
|
|
10
11
|
qlever/Qleverfiles/Qleverfile.dblp,sha256=Y6BqAG1GZg-OmEs0HM00yAQuY2TGnSzsOO1LLmGVn2Y,994
|
|
11
12
|
qlever/Qleverfiles/Qleverfile.dblp-plus,sha256=Dwd9pK1vPcelKfw6sA-IuyhbZ6yIxOh6_84JgPYnB9Q,1332
|
|
@@ -15,15 +16,16 @@ qlever/Qleverfiles/Qleverfile.dnb,sha256=43w_CVi00yf7FHdDvBtHHQR3yU1d-JCNnD_uxYZ
|
|
|
15
16
|
qlever/Qleverfiles/Qleverfile.fbeasy,sha256=jeztW4gFpWL_w1nCH5qGHeZyZv2lz_kG6f1G3r3DkJ4,974
|
|
16
17
|
qlever/Qleverfiles/Qleverfile.freebase,sha256=k6PqYrtHTBr0EydObm1Hg9QWyAAM9fXkdcjhReDg0fM,1035
|
|
17
18
|
qlever/Qleverfiles/Qleverfile.imdb,sha256=8F6tpEi0uXsMm6lofwjNkLq1X9IEUSoHK8YK_5YCf_g,1638
|
|
18
|
-
qlever/Qleverfiles/Qleverfile.ohm-planet,sha256=
|
|
19
|
+
qlever/Qleverfiles/Qleverfile.ohm-planet,sha256=yG6NgW6x6sGTzmCi1wEAkQ-i9goTj2u3PQxvCUwjExs,2122
|
|
19
20
|
qlever/Qleverfiles/Qleverfile.olympics,sha256=5w9BOFwEBhdSzPz-0LRxwhv-7Gj6xbF539HOXr3cqD0,1088
|
|
20
|
-
qlever/Qleverfiles/Qleverfile.osm-country,sha256=
|
|
21
|
+
qlever/Qleverfiles/Qleverfile.osm-country,sha256=Pb9o5H3b7wVlVRgdiPHWCvrnkIRS1YUhxOazbUmoKZE,1897
|
|
21
22
|
qlever/Qleverfiles/Qleverfile.osm-planet,sha256=2RilNix0fplN3GsNNyOu3GzmUss1Pq7586WKOFAQnSs,1400
|
|
22
23
|
qlever/Qleverfiles/Qleverfile.pubchem,sha256=YuDzWQmukSvL1opu7cf1KX9407_P21lmecYZ9cdbuvA,5611
|
|
23
24
|
qlever/Qleverfiles/Qleverfile.scientists,sha256=9eZ2c6P9a3E3VHa3RR7LdOQbF4k3oyyrn56Z3u4LZYs,1164
|
|
24
25
|
qlever/Qleverfiles/Qleverfile.uniprot,sha256=9kAKseomdUnIt7EAZge39g1MTuaLVaSW9JYLHzIMolM,2338
|
|
25
26
|
qlever/Qleverfiles/Qleverfile.vvz,sha256=ftdMj5dCC9jAlFtNt2WR7kP30w0itT_iYtj5HoUVyWU,931
|
|
26
27
|
qlever/Qleverfiles/Qleverfile.wikidata,sha256=vDkTY3mPSx2C8MvFWfB72zZoc4d-TMJSw3f_-FqnEqs,1275
|
|
28
|
+
qlever/Qleverfiles/Qleverfile.wikimedia-commons,sha256=5JJ1MIp6LoM-ROCDFFIRvLREepCF4i4PnjOT9AFihzQ,2247
|
|
27
29
|
qlever/Qleverfiles/Qleverfile.wikipathways,sha256=UFEVLrtOBiSQfibBN9xc2wDXrnWcnx5f8PY9khcE6bc,1983
|
|
28
30
|
qlever/Qleverfiles/Qleverfile.yago-4,sha256=GikYPqChCtbAyZOVqszmVUwgQxSePTcgM8xw2b_21e4,1849
|
|
29
31
|
qlever/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -32,7 +34,7 @@ qlever/commands/cache_stats.py,sha256=6JjueQstAqc8dNfgY8TP2EitFMxdUvCwrcyd7KUEb2
|
|
|
32
34
|
qlever/commands/clear_cache.py,sha256=AnE1MOoj1ZexxrRT8FGeBLlv8rtQIVV4DP8VBn5-X-s,2843
|
|
33
35
|
qlever/commands/example_queries.py,sha256=5-0ln5EkuDcQYPqKKAOcLaTIStMzFhkAogaNedfRc_I,15271
|
|
34
36
|
qlever/commands/get_data.py,sha256=f9kjZI3TKad6JHSuXWNkeoajmW8h0Sx8ShvjauDCtNo,1412
|
|
35
|
-
qlever/commands/index.py,sha256=
|
|
37
|
+
qlever/commands/index.py,sha256=TwL6o16KZON1hbD8UnXMw_tduLXWcy7D4o6tbsLt1OE,5888
|
|
36
38
|
qlever/commands/index_stats.py,sha256=_BiUNBhmbYd9RPxrlm4HF0oENO6JmqnRiAkwkyOdN4U,11722
|
|
37
39
|
qlever/commands/log.py,sha256=8Krt3MsTUDapYqVw1zUu5X15SF8mV97Uj0qKOWK8jXk,1861
|
|
38
40
|
qlever/commands/query.py,sha256=_IDH-M8gKL_f1i5wzu0X452pZSUD0_qXl6bPXC85wX0,2750
|
|
@@ -42,9 +44,9 @@ qlever/commands/status.py,sha256=5S6EdapZEwFKV9cQZtNYcZhMbAXAY-FP6ggjIhfX8ek,163
|
|
|
42
44
|
qlever/commands/stop.py,sha256=TZs4bxKHvujlZAU8BZmFjA5eXSZNAa6EeNzvPpEZsuI,4139
|
|
43
45
|
qlever/commands/ui.py,sha256=b7g7Mp6ZWevn8f1kwFr-WR4ZWMq42KEV4cGl2QS7M1E,2828
|
|
44
46
|
qlever/commands/warmup.py,sha256=WOZSxeV8U_F6pEEnAb6YybXLQMxZFTRJXs4BPHUhsmc,1030
|
|
45
|
-
qlever-0.5.
|
|
46
|
-
qlever-0.5.
|
|
47
|
-
qlever-0.5.
|
|
48
|
-
qlever-0.5.
|
|
49
|
-
qlever-0.5.
|
|
50
|
-
qlever-0.5.
|
|
47
|
+
qlever-0.5.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
48
|
+
qlever-0.5.7.dist-info/METADATA,sha256=4g8Lf7NVarNL99xbtFGOCRTPky--pHznE7WtwYgYjfk,4582
|
|
49
|
+
qlever-0.5.7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
50
|
+
qlever-0.5.7.dist-info/entry_points.txt,sha256=U_gbYYi0wwdsn884eb0XoOXfvhACOsxhlO330dZ9bi0,87
|
|
51
|
+
qlever-0.5.7.dist-info/top_level.txt,sha256=kd3zsYqiFd0--Czh5XTVkfEq6XR-XgRFW35X0v0GT-c,7
|
|
52
|
+
qlever-0.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|