Properties detail are missing from VertexLabel using JanusGraphManagement API. #4297
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can print the full schema via However, 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.
|
Beta Was this translation helpful? Give feedback.
You can print the full schema via
mgmt.printSchema()
. That should also display the property keys.However,
mgmt.getVertexLabel().keys([...])
,mgmt.getVertexLabel([...]).properties()
, andmgmt.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…