<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2001/sw/DataAccess/rf1/result">
  <head>
    <variable name="slabel"/>
    <variable name="slink"/>
    <variable name="stype"/>
    <variable name="ptype"/>
    <variable name="olabel"/>
    <variable name="olink"/>
    <variable name="otype"/>
    <variable name="oid"/>
  </head>
  <results>
    <result>
      <slabel>image-09</slabel>
      <slink uri="http://www.wasab.dk/morten/2005/04/photos/sparqling-days/1/image-09.html"/>
      <stype uri="http://xmlns.com/foaf/0.1/Image"/>
      <ptype uri="http://xmlns.com/foaf/0.1/depicts"/>
      <olabel>Graham Klyne</olabel>
      <olink uri="http://www.ninebynine.org/"/>
      <otype uri="http://xmlns.com/foaf/0.1/Person"/>
      <oid uri="http://www.ninebynine.org/"/>
    </result>
  </results>
</sparql>


<!-- executing query
 PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?slabel ?slink ?stype ?ptype ?olabel ?olink ?otype
WHERE
(?img ?ptype ?person)
(?img dc:title ?slabel)
(?img rdf:type ?stype)  
(?img foaf:page ?slink)
(?person foaf:name ?olabel)
(?person rdf:type ?otype)
(?person foaf:homepage ?olink)
AND ?ptype == foaf:depicts
&& ?stype == foaf:Image
&& ?otype == foaf:Person
 -->

<!-- transformed by XSLT at  -->

