def triple(subject, relation, obj):
    """Build a simple triple in PyParsing that has a ``subject relation object`` format."""
    return And([Group(subject)(SUBJECT), relation(RELATION), Group(obj)(OBJECT)])
Build a simple triple in PyParsing that has a ``subject relation object`` format.