我是Neo4j和Cypher的新手,可以在节点标签中使用特殊字符时使用一些简单的输入.有人可以澄清不允许的内容,并建议如何处理将带有特殊字符的数据库标题转换为Cypher友好标签.
I'm new to Neo4j and Cypher and could use some simple input on using special characters in node labels. Can someone clarify what's not allowed and suggest how to handle turning database headings with special characters into Cypher friendly labels.
IATI,一种人道主义报告标准使用连字符,而另一种称为HXL的标准则使用标签和加号.我想制作一个带有多个标签的节点,例如(:reporting-org:#org + reporting)为可以通过report-org或#org + reporting查询的报告组织制作一个节点,但我知道我做不到使用这些特殊字符.
IATI, one humanitarian reporting standard uses hyphens while another called HXL uses hashtags and plus signs. I'd like to make a node with multiple labels like (:reporting-org:#org+reporting) making a node for a reporting organization that can be queried via reporting-org or #org+reporting but I understand I can't use these special characters.
是这样吗?关于如何使标题为report-org和#org + reporting cypher友好的想法?
It this so? Any thoughts on how to make headings like reporting-org and #org+reporting cypher friendly?
推荐答案使用反引号转义包含特殊字符的标签应该可以工作,例如
Escaping labels containing special characters with backticks should work e.g.
`reporting-org`和`#org + reporting`
`reporting-org` and `#org+reporting`
更多推荐
Neo4j标签,如何处理特殊字符?
发布评论