I could not find any information regarding path constraint in ShEx. Do you have any information in this regard, or whether or not it is possible to express it in ShEx?
Definition: For a triple (S,P,O), we want to find a path from S to O by traversing through a set of sub-properties Q. Assuming Q as {q1,q2,q3}, in order to satisfy the path constraint, we need to have the triples (S,q1,O),(O,q2,O1),(O1,q3,O) in our dataset. Q can have {1,*} members (sub-properties).