Invalid value specified for the relationship endpoint. Specify 0 for none (while creating property restriction), or 4 for ...

Invalid value specified for the relationship endpoint. Specify 0 for none (while creating property restriction), or 4 for source (while creating relationship restriction), or 8 for target (while creating relationship restriction) or 2 for any endpoint (while creating relationship restriction).