Closed arenas-guerrero-julian closed 3 years ago
Hi,
What is the data type of the value that caused the problem? I added if a variable is different than str it will be converted into a string. Before, I was taking into consideration only int and floats for this conversion. Please test it out and tell me if it works.
Cannot tell, but my naive solution has been:
if re.search("^[\s|\t]*$", str(value)) is None:
value = urllib.parse.quote(str(value))
new_string = new_string[:start + offset_current_substitution] + value.strip() + new_string[ end + offset_current_substitution:]
offset_current_substitution = offset_current_substitution + len(value) - (end - start)
Ok, What I have added is that the SDM-RDFizer will apply the string conversion only when the value in question is not a string. Before I only took into consideration ints and floats. This is to avoid applying the conversion to a value that is already a string.
Hi!, I get the following error when materializing GTFS-Madrid-benchmark with MySQL:
I opened a very similar issue (#38) some months ago. Solution is the same (I have tested it). This problem is likely repeated in other parts of the source code.
Julián