Skip to content

Commit

Permalink
Fixed conflict of value types in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
eiglesias34 committed Jun 20, 2023
1 parent 5c37990 commit 49b91e7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ You can easily customize your own configurations from the set of features that S

## Version
```
4.7.1.6
4.7.1.7
```

## RML-Test Cases
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.7.1.6
4.7.1.7
8 changes: 4 additions & 4 deletions rdfizer/rdfizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4385,8 +4385,8 @@ def semantify_postgres(row, row_headers, triples_map, triples_map_list, output_f
data = cursor
hash_maker_array(cursor, triples_map_element, predicate_object_map.object_map)
jt = join_table[triples_map_element.triples_map_id + "_" + predicate_object_map.object_map.child[0]]
if row[row_headers.index(predicate_object_map.object_map.child[0])] != None and row[row_headers.index(predicate_object_map.object_map.child[0])] in jt:
object_list = jt[row[row_headers.index(predicate_object_map.object_map.child[0])]]
if row[row_headers.index(predicate_object_map.object_map.child[0])] != None and str(row[row_headers.index(predicate_object_map.object_map.child[0])]) in jt:
object_list = jt[str(row[row_headers.index(predicate_object_map.object_map.child[0])])]
object = None
else:
if predicate_object_map.object_map.parent != None:
Expand All @@ -4407,8 +4407,8 @@ def semantify_postgres(row, row_headers, triples_map, triples_map_list, output_f
cursor.execute(triples_map_element.query)
hash_maker_array(cursor, triples_map_element, predicate_object_map.object_map)
jt = join_table[triples_map_element.triples_map_id + "_" + predicate_object_map.object_map.child[0]]
if row[row_headers.index(predicate_object_map.object_map.child[0])] != None and row[row_headers.index(predicate_object_map.object_map.child[0])] in jt:
object_list = jt[row[row_headers.index(predicate_object_map.object_map.child[0])]]
if row[row_headers.index(predicate_object_map.object_map.child[0])] != None and str(row[row_headers.index(predicate_object_map.object_map.child[0])]) in jt:
object_list = str(jt[row[row_headers.index(predicate_object_map.object_map.child[0])]])
object = None
else:
try:
Expand Down
8 changes: 4 additions & 4 deletions rdfizer/rdfizer/semantify.py
Original file line number Diff line number Diff line change
Expand Up @@ -4385,8 +4385,8 @@ def semantify_postgres(row, row_headers, triples_map, triples_map_list, output_f
data = cursor
hash_maker_array(cursor, triples_map_element, predicate_object_map.object_map)
jt = join_table[triples_map_element.triples_map_id + "_" + predicate_object_map.object_map.child[0]]
if row[row_headers.index(predicate_object_map.object_map.child[0])] != None and row[row_headers.index(predicate_object_map.object_map.child[0])] in jt:
object_list = jt[row[row_headers.index(predicate_object_map.object_map.child[0])]]
if row[row_headers.index(predicate_object_map.object_map.child[0])] != None and str(row[row_headers.index(predicate_object_map.object_map.child[0])]) in jt:
object_list = jt[str(row[row_headers.index(predicate_object_map.object_map.child[0])])]
object = None
else:
if predicate_object_map.object_map.parent != None:
Expand All @@ -4407,8 +4407,8 @@ def semantify_postgres(row, row_headers, triples_map, triples_map_list, output_f
cursor.execute(triples_map_element.query)
hash_maker_array(cursor, triples_map_element, predicate_object_map.object_map)
jt = join_table[triples_map_element.triples_map_id + "_" + predicate_object_map.object_map.child[0]]
if row[row_headers.index(predicate_object_map.object_map.child[0])] != None and row[row_headers.index(predicate_object_map.object_map.child[0])] in jt:
object_list = jt[row[row_headers.index(predicate_object_map.object_map.child[0])]]
if row[row_headers.index(predicate_object_map.object_map.child[0])] != None and str(row[row_headers.index(predicate_object_map.object_map.child[0])]) in jt:
object_list = str(jt[row[row_headers.index(predicate_object_map.object_map.child[0])]])
object = None
else:
try:
Expand Down

0 comments on commit 49b91e7

Please sign in to comment.