title: Get all data with specific property SPARQL
body: <p>I have simple RDF data set with following values: user, url, time and ip. I can list all the data using:  </p>
  
  <pre><code>SELECT DISTINCT * WHERE { ?s ?p ?o }
  </code></pre>
  
  <p>But now I need to list all the data with specific user. I would very much appreciate if the data from the query would be in the same format as the data from above query but it is not necessary.<br>
  I tried this and some modifications to this but none of it seems to work:</p>
  
  <pre><code>SELECT DISTINCT * WHERE { ?s ?p ?o. ?u foaf:user username. }
  </code></pre>
  
  <p>I am just starting to work with Jena and SPARQL and any help will be much appreciated. Thanks in advance.  </p>
  
  <p>EDIT: @AKSW <code>foaf:user</code> works because <code>foaf</code> is my own prefix I defined. I struggled with getting the queries working and had no clue what I was doing. This is something I hadn't clean up yet.<br>
  I ended up using query <code>SELECT DISTINCT * WHERE {?u foaf:name USER_NAME_LITERAL . ?u ?p ?o . }</code> which was the one you suggested, so thank you. If you post it as answer I will mark it as accepted.</p>