简体   繁体   中英

How do I list all labels in my neo4j database using the java api?

I'd like to list all labels in my neo4j database.

For example, in my site, I have 'songs' which I'd like to tag with labels such as 'jazz', 'classical', 'hiphop', or 'funk'. I can do this, but then I also want to let users know which tags already exist by returning all the labels (aka tags) in my database.

I could use nodes for tags instead, but I thought tagging would be a good use case for labels. Am I missing something?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM