sparql query for generating template from rdf/skos