from typing import Dict
from typing import Set


def get_vars(triple: Dict[str, str]) -> Set[str]:
    """Get SPARQL variables in a triple pattern"""
    return set([v for k, v in triple.items() if v.startswith('?')])