You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When iterating over a list using JSON path, objects that happen to have an empty list as an attribute will not be matched.
(I am very not sure about how I define this issue in the above phrase sorry, but I tried to make an example as clear as possible.)
In my example, I'm iterating over a list of persons who may have a list of friends. Those friends may have nicknames.
If I try to create a triple of the form "<person_A> foaf:knows <person_A's_friend>". The triple will not be created if that person's friend doesn't have nicknames. To be precise, it will not work if it has an empty list as value of one of its attributes. Even though said attribute may not even be used in the mapping.
I am doing that example on the python library of morph-kgc.
This issue happens while using version 2.1.1, with that version my current example returns 1 triple instead of my expected 2.
I first had another issue using version 2.3.1, with that version my current example returns 0 triple.
But that second issue might just be issue 132.
The text was updated successfully, but these errors were encountered:
ID Sport Name
0 10 100.0 Venus Williams
1 20 NaN Demi Moore
Because of the missing values, pandas uses a NaN, and the integers are read as doubles. This is related to your issue because morph-kgc has a hack to fix this that prevents fixing this issue.
What Happens?
When iterating over a list using JSON path, objects that happen to have an empty list as an attribute will not be matched.
(I am very not sure about how I define this issue in the above phrase sorry, but I tried to make an example as clear as possible.)
In my example, I'm iterating over a list of persons who may have a list of friends. Those friends may have nicknames.
If I try to create a triple of the form "<person_A> foaf:knows <person_A's_friend>". The triple will not be created if that person's friend doesn't have nicknames. To be precise, it will not work if it has an empty list as value of one of its attributes. Even though said attribute may not even be used in the mapping.
I am doing that example on the python library of morph-kgc.
To Reproduce
data:
mapping:
python code:
results:
Expected results:
Environment:
This issue happens while using version 2.1.1, with that version my current example returns 1 triple instead of my expected 2.
I first had another issue using version 2.3.1, with that version my current example returns 0 triple.
But that second issue might just be issue 132.
The text was updated successfully, but these errors were encountered: