The TRIPLE function does not allow for any arbitrary terms as arguments.
Instead, it throws when wrong term types are provided to wrong locations:
If the 3-tuple (subj, pred, obj) is an RDF triple (that is, subj is an IRI or blank node; pred is an IRI; and obj is an IRI, triple term, blank node or literal) the function returns a triple term with these three elements. Otherwise, the function raises an error.
Our implementation in Comunica was wrong, so @rubensworks asked me to make this issue here :)
The TRIPLE function does not allow for any arbitrary terms as arguments.
Instead, it throws when wrong term types are provided to wrong locations:
Our implementation in Comunica was wrong, so @rubensworks asked me to make this issue here :)