closurizer 0.7.0__tar.gz → 0.7.1__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.
@@ -8,10 +8,14 @@ def edge_columns(field: str, include_closure_fields: bool =True):
|
|
8
8
|
column_text = f"""
|
9
9
|
{field}.name as {field}_label,
|
10
10
|
{field}.category as {field}_category,
|
11
|
-
{field}.namespace as {field}_namespace,
|
12
|
-
list_aggregate({field}_closure.closure, 'string_agg', '|') as {field}_closure,
|
13
|
-
list_aggregate({field}_closure_label.closure_label,'string_agg', '|') as {field}_closure_label,
|
11
|
+
{field}.namespace as {field}_namespace,
|
14
12
|
"""
|
13
|
+
if include_closure_fields:
|
14
|
+
column_text += f"""
|
15
|
+
{field}_closure.closure as {field}_closure,
|
16
|
+
{field}_closure_label.closure_label as {field}_closure_label,
|
17
|
+
"""
|
18
|
+
|
15
19
|
if field in ['subject', 'object']:
|
16
20
|
column_text += f"""
|
17
21
|
{field}.in_taxon as {field}_taxon,
|
File without changes
|