Hi all,
I have had a really weird error when providing the yaml
file to the converter, and it truly took me some time to find out the reason.
The error looked as follows:
ValueError: The arguments list has not the same number of opening and closing brackets: "MPs.city")_birt
And I knew it was coming from one of the following lines in the yaml
file:
IF_NOT_EMPTY(NODE("City", "Location"), "BirthPlace_City") city_birth:
+ name = MPs.BirthPlace_City
IF_NOT_EMPTY(IF_REL_NOT_EXISTS(RELATION(person, "BORN_IN", city_birth)), "BirthPlace_City"):
but I could not understand the reason. I was suspecting the wrappers, and their order, might be causing the issue, but I could not find a pattern. Then, I finally realize it was all a conflict with
IF_NOT_EMPTY(NODE("City", "Location"), "city") city:
+ name = EXTR_CITY(MPs.city)
It seems it all boils down to some conflict in naming between city
and city_birth
, because now the following is working:
IF_NOT_EMPTY(NODE("City", "Location"), "BirthPlace_City") birth_city:
+ name = MPs.BirthPlace_City
IF_NOT_EMPTY(IF_REL_NOT_EXISTS(RELATION(person, "BORN_IN", birth_city)), "BirthPlace_City"):
Therefore, I believe this is a bug that needs to be solved, as it should not be happening, and it took way a lot of time to find out.
Thank you so much!