/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function executeGetLocation(sfWebRequest $request) { $ressource = $request->getParameter('ressource'); { $query = "SELECT ?location WHERE {{ <" . $ressource . "> <http://dbpedia.org/ontology/locationCity> ?location }}"; $searchUrl = 'http://dbpedia.org/sparql?' . '&format=json'; } }