Neo4j标签,如何处理特殊字符?

编程入门 行业动态 更新时间:2024-10-22 19:31:48
本文介绍了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标签,如何处理特殊字符?

本文发布于:2023-10-29 10:00:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1539403.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何处理   特殊字符   标签   Neo4j

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!