contextgraph schema rename relationshipLabel

Rename a relationship label.

Use the contextgraph schema rename relationshipLabel command to rename a Context Graph model relationship label.

Usage

contextgraph schema rename relationshipLabel --m model --r relationshipLabel --nr newRelationshipLabel --s sourceEntityType --t targetEntityType --w waitForComplete
RequiredArgumentDescription
Yes--m modelSpecifies the name of the model whose relationship label you want to rename.
Yes--r relationshipLabelSpecifies the relationship label you want to rename.
Yes--nr newRelationshipLabelSpecifies the new relationship label name.
No--s sourceEntityTypeSpecifies the type of source entity.
No--t targetEntityTypeSpecifies the type of target entity.
No--w waitForCompleteSpecifies whether to wait for jobs to complete in a synchronous mode, where waitForComplete is one of the following:
true
Waits for jobs to complete.
false
Does not wait for jobs to complete. This is the default setting.

Example

This example renames the relationshipLabel Hired to Employed in a model called Staff.

contextgraph schema rename relationshipLabel --m Staff --r Hired --nr Employed