Closed Robbie1977 closed 3 months ago
/opt/VFB_neo4j/src/uk/ac/ebi/vfb/neo4j/neo4j_tools.py:148: UserWarning: {'code': 'Neo.ClientError.Statement.SyntaxError', 'message': 'Invalid input \'x\': expected \'\\', \'\'\', \'"\', \'b\', \'f\', \'n\', \'r\', \'t\', UTF16 or UTF32 (line 1, column 229 (offset: 228))\n"MERGE (n:pub:Individual { iri: \'http://flybase.org/reports/FBrf0232773\' }) set n.short_form = \'FBrf0232773\' set n:Entity SET n.title = [\'Staccato/Unc-13-4 controls secretory lysosome-mediated lumen fusion during epithelial tube\xa0anastomosis.\'] SET n.miniref = [\'Caviglia et al., 2016, Nat. Cell Biol. 18(7): 727--739\'] SET n.year = [\'2016\'] SET n.pages = [\'727--739\'] SET n.volume = [\'18\'] SET n.label = "Caviglia et al., 2016, Nat. Cell Biol. 18(7): 727--739" SET n.self_xref = [\'FlyBase\'] "\n ^'}
unicodedata.normalize might fix but to avoid any unintended changes going for a simple replace for now: .replace(u'\xa0', u' ')
unicodedata.normalize
.replace(u'\xa0', u' ')
/opt/VFB_neo4j/src/uk/ac/ebi/vfb/neo4j/neo4j_tools.py:148: UserWarning: {'code': 'Neo.ClientError.Statement.SyntaxError', 'message': 'Invalid input \'x\': expected \'\\', \'\'\', \'"\', \'b\', \'f\', \'n\', \'r\', \'t\', UTF16 or UTF32 (line 1, column 229 (offset: 228))\n"MERGE (n:pub:Individual { iri: \'http://flybase.org/reports/FBrf0232773\' }) set n.short_form = \'FBrf0232773\' set n:Entity SET n.title = [\'Staccato/Unc-13-4 controls secretory lysosome-mediated lumen fusion during epithelial tube\xa0anastomosis.\'] SET n.miniref = [\'Caviglia et al., 2016, Nat. Cell Biol. 18(7): 727--739\'] SET n.year = [\'2016\'] SET n.pages = [\'727--739\'] SET n.volume = [\'18\'] SET n.label = "Caviglia et al., 2016, Nat. Cell Biol. 18(7): 727--739" SET n.self_xref = [\'FlyBase\'] "\n ^'}
unicodedata.normalize
might fix but to avoid any unintended changes going for a simple replace for now:.replace(u'\xa0', u' ')