title: filter out certain properties from sparql query result
body: <p>I'm trying to filter out certain properties (e.g <code>dbpprop:</code> ones) from the result of a sparql query. I'm querying dbpedia sparql endoint.</p>
  
  <p>More precisely what I'd like to do is expressed by the following pseudo code :</p>
  
  <pre><code>quantity_of_interest, property, value, property_type = sparqlQuery(query)
  if property_type == rdf:Property:
      pass
  else:
      return quantity_of_interest, property, value
  </code></pre>
  
  <p>For now, I filter out the properties afterwards in some python code and I use the following sparql query : </p>
  
  <pre><code>SELECT DISTINCT ?qoi ?property ?value (bif:either(?type=rdf:Property, 0, 1) as ?filter_out) 
  WHERE { 
      ?qoi a foaf:Person. ?qoi ?property ?value. 
      OPTIONAL{?property rdf:type ?type }
  }
  </code></pre>
  
  <p>If <code>filter_out == 0</code> I discard the whole result. </p>
  
  <p>Is there a way I can directly make a sparql query which filters out the whole result whenever <code>?type == rdf:Property</code> ?         </p>