SPARQL query using rdf:resource