tetherless-world / nanomine-graph

the visualization web app for nanomine project
MIT License
1 stars 4 forks source link

rdflib.Literal being fed a string and forced to cast to a double #10

Open tlprotzman opened 5 years ago

tlprotzman commented 5 years ago

When ingesting tables the assumption is made that the data is of type double, however in the file https://github.com/tetherless-world/nanomine-graph/blob/rheometer_tests/tests/xml/L199_S1_Duncan_2010.xml the dependent variable is specified as a range, e.g. 0-199, as though it is bins of a histogram. While it is ingesting this and labeling it as an XSD:Double, it clearly isn't and I wouldn't be surprised to see this lead to issue down the road in the visualization of data.

This particular table is tested by https://github.com/tetherless-world/nanomine-graph/blob/rheometer_tests/tests/test_L199_S1_Duncan_2010.py, and the casting of the range to a double is also shown in this file.