Creating SPARQL query templates