Skip to content

Commit

Permalink
Merge pull request #158 from KappaGi/main
Browse files Browse the repository at this point in the history
Restored jsonpath expression formation to that of 2.1.1 fix #132
  • Loading branch information
arenas-guerrero-julian committed Mar 21, 2023
2 parents 8eeda35 + 66dddc1 commit bdaa18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/morph_kgc/data_source/data_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _read_json(rml_rule, references):
jsonpath_expression = rml_rule['iterator'] + '.('
# add top level object of the references to reduce intermediate results (THIS IS NOT STRICTLY NECESSARY)
for reference in references:
jsonpath_expression += reference + ','
jsonpath_expression += reference.split('.')[0] + ','
jsonpath_expression = jsonpath_expression[:-1] + ')'

jsonpath_result = JSONPath(jsonpath_expression).parse(json_data)
Expand Down

0 comments on commit bdaa18f

Please sign in to comment.