Abstracted functions for SPARQL path expressions