title: How to include variable in SPARQL query using PHP
body: <p>I am creating a query form and let the user to enter the keyword from the form. Then the query form will bring to the next page where I carry the variable created in the query form to the next page. The excerpt code for the new page is as folows:</p>
  
  <pre><code>//received variable
  $abc1=$_POST['querykeyword'];
  
  $querystring = '
  Prefix try &lt;http://www.semanticweb.org/ontologies/2009/5/test.owl#&gt;
  SELECT ?name ?age
  WHERE
    {     ?url try:has-name ${"abc1"} ?name 
          ?url try:has-age ?age }'; 
  </code></pre>
  
  <p>However, it did not give the output. Can anybody help?</p>