Unfortunately TinkerPop/Gremlin is schemaless and does not provide any tools for constraint enforcement at this time. It's a capability that I personally would very much like to see in gremlin, but at this time seems unlikely to arrive in the near future.