private Set < Label > scopeTypeLabelsImplicitPlayers ( GraqlCompute query ) { return scopeTypes ( query ) . filter ( Concept :: isRelationType ) . map ( Concept :: asRelationType ) . filter ( RelationType :: isImplicit ) . flatMap ( RelationType :: roles ) . flatMap ( Role :: players ) . map ( SchemaConcept :: label ) . collect ( toSet ( ) ) ; }
Helper method to get the label IDs of role players in a relation