see: https://github.com/BlueBrain/nexus-forge/blob/master/kgforge/core/commons/sparql_query_builder.py#L423