use of ai.grakn.graql.internal.reasoner.atom.predicate.Predicate in project grakn by graknlabs.
the class RelationshipAtom method toString.
@Override
public String toString() {
String typeString = getSchemaConcept() != null ? getSchemaConcept().getLabel().getValue() : "{" + inferPossibleTypes(new QueryAnswer()).stream().map(rt -> rt.getLabel().getValue()).collect(Collectors.joining(", ")) + "}";
String relationString = (isUserDefined() ? getVarName() + " " : "") + typeString + (isDirect() ? "!" : "") + getRelationPlayers().toString();
return relationString + getPredicates(Predicate.class).map(Predicate::toString).collect(Collectors.joining(""));
}
Aggregations