Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About NaN and NoneType #73

Open
njmmatthieu opened this issue Dec 16, 2024 · 1 comment
Open

About NaN and NoneType #73

njmmatthieu opened this issue Dec 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@njmmatthieu
Copy link
Collaborator

OntoWeaver adapters tranform NaN into false (type boolean). So if we want to pass a column of type String for a property, the property will not appear for the corresponding nodes where there is NaN in the Graph DataBase but will appear for the other nodes where is not NaN.

In the same way, OntoWeaver adapters transform NoneType into String "'None'".

Perhaps it would be better if the properties appeared for all nodes with ‘NaN’ or ‘None’?

@mbaric758
Copy link
Collaborator

mbaric758 commented Dec 16, 2024

Hi @njmmatthieu , thanks for posting the issue.

Do you mean it would be more optimal if empty and NoneType / NaN values encountered in tables were still mapped with the properties added, or that none of these values should appear in the graph? Or the choice of inclusion / exclusion of these values should be left to the user?

Currently, the checking of the validity of extracted values is handled by the base.valid() function, and all NaN values and empty strings are returned as false and therefore not transformed into nodes. We should perhaps add the NoneType for validity checking, to avid the creation of nodes with meaningless values (which would then also solve the bug of the property addition to meaningless nodes)?

@mbaric758 mbaric758 added the bug Something isn't working label Dec 16, 2024
@mbaric758 mbaric758 self-assigned this Dec 16, 2024
@jdreo jdreo moved this to 🛠️ in progress in 💊 DECIDER Dec 16, 2024
@jdreo jdreo added this to the OntoWeaver 1.0 milestone Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🛠️ in progress
Development

No branches or pull requests

3 participants