added diameter into SPARQL queries