VirtualFlyBrain / VFB_neo4j

A python package for writing schema-compliant content to VFB neo4J DBs
Apache License 2.0
0 stars 1 forks source link

Non breakable space encoding issue #289

Closed Robbie1977 closed 3 months ago

Robbie1977 commented 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' ')