closurizer 0.7.2__py3-none-any.whl → 0.7.3__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.
closurizer/closurizer.py CHANGED
@@ -159,6 +159,7 @@ def add_closure(kg_archive: str,
159
159
 
160
160
  if not dry_run:
161
161
 
162
+ db.sql(edges_query)
162
163
 
163
164
  edge_closure_replacements = [
164
165
  f"""
@@ -175,14 +176,15 @@ def add_closure(kg_archive: str,
175
176
  copy (select * {edge_closure_replacements} from denormalized_edges) to '{edges_output_file}' (header, delimiter '\t')
176
177
  """
177
178
  print(edges_export_query)
178
- db.query(edges_export_query)
179
+ db.sql(edges_export_query)
179
180
 
181
+ db.sql(nodes_query)
180
182
  nodes_export_query = f"""
181
183
  -- write denormalized_nodes as tsv
182
184
  copy (select * from denormalized_nodes) to '{nodes_output_file}' (header, delimiter '\t')
183
185
  """
184
186
  print(nodes_export_query)
185
-
187
+ db.sql(nodes_export_query)
186
188
 
187
189
  # Clean up extracted node & edge files
188
190
  if os.path.exists(f"{node_file}"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: closurizer
3
- Version: 0.7.2
3
+ Version: 0.7.3
4
4
  Summary: Add closure expansion fields to kgx files following the Golr pattern
5
5
  Author: Kevin Schaper
6
6
  Author-email: kevin@tislab.org
@@ -0,0 +1,6 @@
1
+ closurizer/cli.py,sha256=xTFscsxGDnaKoTNhn1FefRPPeldI5tZvvp3DygNai7Y,2069
2
+ closurizer/closurizer.py,sha256=rzxML6GSzVAeKdK1hq51ehvfIQ9zLYAa8YPH-IdRlJQ,7582
3
+ closurizer-0.7.3.dist-info/METADATA,sha256=VSX_LhgP-_enQvhA4e2wsxLsOEoQfQc8lZr9eDUwaOY,661
4
+ closurizer-0.7.3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
5
+ closurizer-0.7.3.dist-info/entry_points.txt,sha256=MnAVu1lgP6DqDb3BZGNzVs2AnDMsp4sThi3ccWbONFo,50
6
+ closurizer-0.7.3.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- closurizer/cli.py,sha256=xTFscsxGDnaKoTNhn1FefRPPeldI5tZvvp3DygNai7Y,2069
2
- closurizer/closurizer.py,sha256=RpP4XrIMLwLfflgYtO8j0n6AWCRNnQKkNOHGjl4dQqg,7494
3
- closurizer-0.7.2.dist-info/METADATA,sha256=IDV6B4WPiu2EIJ-MPFTUwUIefAhgudbMiJx9rewfk2E,661
4
- closurizer-0.7.2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
5
- closurizer-0.7.2.dist-info/entry_points.txt,sha256=MnAVu1lgP6DqDb3BZGNzVs2AnDMsp4sThi3ccWbONFo,50
6
- closurizer-0.7.2.dist-info/RECORD,,