Generate a safe SPARQL variable name from a property path
Property name or path
Depth level for uniqueness
Safe variable name without the ? prefix
Generate a safe SPARQL variable name from a property path