the operation that should be type checked
the type we want to test against
OptionalsubType: SubTypethe potential subtype we want to test against - when provided and not matching, we do not fall back to just checking the type.
a boolean indicating whether the type and subtype are equal to the expected type and subtype. Only checking the subtype when a string is provided.
Type guard that checks if an operation is of a certain type and subType known by Comunica. In case the type and subtype matches one known by Comunica, the type guard will conclude the operation contains all member Comunica expects from this operation-type and subtype.