Skip to content
Discussion options

You must be logged in to vote

You can print the full schema via mgmt.printSchema(). That should also display the property keys.

However, mgmt.getVertexLabel().keys([...]), mgmt.getVertexLabel([...]).properties(), and mgmt.getVertexLabel([...]).mappedProperties() don't show any properties, because JanusGraph defines property keys globally and not per vertex label.
You can get all property keys via mgmt.printPropertyKeys().

If you want to only allow certain property keys on certain labels, then you can use schema constraints. These are not enabled by default so you have to enable them yourself.
If you use schema constraints, then you can actually find the allowed property keys for a given vertex label via mgmt.getVertex…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by porunov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants