neo4j / neo4j-browser

Neo4j Browser is the general purpose user interface for working with Neo4j. Query, visualize, administrate and monitor the database.
https://neo4j.com
GNU General Public License v3.0
689 stars 347 forks source link

How can graph nodes display names instead of URIs when importing ontologies #1541

Closed Joker723 closed 3 years ago

Joker723 commented 3 years ago

Description

I am a green hand,I imported an ontology written with Protege, and the node displayed uri after the import, which I felt was very inconvenient. I want the node to display the name of the class I defined in the ontology instead of the URI.
Thank you in advance for your help

Reproduce Steps。

I simply used the n10s.rdf.import.fetch() import

Expected Behavior

Current Behavior

image It seems inconvenient, doesn't it? I want the node to display the name instead of the URI

Joker723 commented 3 years ago

I use Neo4j for version 4.3.4

OskarDamkjaer commented 3 years ago

If you click the label name in the visualization frame (circled in blue in my screenshot), you can pick what caption you like in the bottom of the frame (circle in red). CleanShot 2021-09-30 at 19 23 05@2x

Joker723 commented 3 years ago

如果您单击可视化框架中的标签名称(在我的屏幕截图中以蓝色圈出),您可以在框架底部(红色圆圈)中选择您喜欢的标题。 CleanShot 2021-09-30 at 19 23 05@2x

First of all thank you for your answer. image image Maybe I'm expressing the problem, but I want the following picture to show the words (which I've marked with a red box) on the node instead of showing http://.. .I read the handbook, it seems to be about handleVocabUris, but I didn't understand it.
image I want the nodes to look like this. image I hope you understand what I'm saying.thanks!

Joker723 commented 3 years ago

如果您单击可视化框架中的标签名称(在我的屏幕截图中以蓝色圈出),您可以在框架底部(红色圆圈)中选择您喜欢的标题。 CleanShot 2021-09-30 at 19 23 05@2x

First of all thank you for your answer. image image Maybe I'm expressing the problem, but I want the following picture to show the words (which I've marked with a red box) on the node instead of showing http://.. .I read the handbook, it seems to be about handleVocabUris, but I didn't understand it. image I want the nodes to look like this. image I hope you understand what I'm saying.thanks!

However, when I click on the property, it does change.I don't know why. image image But it seems not I want, all in all, I want is a node on the content is to remove the prefix at http://www.cse.cqu.edu.cn/ontologies/govse

OskarDamkjaer commented 3 years ago

Ah okay I understand. We don't plan to support removing a prefix on a caption sadly, but you can add the part you want as a caption as a separate property and use that!

Joker723 commented 3 years ago

Ah okay I understand. We don't plan to support removing a prefix on a caption sadly, but you can add the part you want as a caption as a separate property and use that! Thank you very much for your answer. The node display is not a URI, as shown in the figure below. Why? Is it because of ontology? I said I was a freshman, so maybe that was a stupid question.
image