Neo4j标签,如何处理特殊字符? [英] Neo4j labels, how to handle special characters?

查看:1317
本文介绍了Neo4j标签,如何处理特殊字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是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标签,如何处理特殊字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆