BASE PREFIX schema: PREFIX gcs: PREFIX dcterms: CONSTRUCT { ?_subject dcterms:title "Olney Church"; gcs:image ?image. ?image a schema:ImageObject; schema:name ?imageName; schema:description ?altText; schema:caption ?caption; schema:contentUrl ?image; schema:creator ?creator. ?creator a schema:Person; schema:name ?creatorName. } WHERE { BIND( AS ?image) BIND("Olney church photo" AS ?altText) GRAPH { ?image schema:name ?imageName. OPTIONAL { ?image schema:creator ?creator. } OPTIONAL { ?image schema:creditText ?creditText. } } OPTIONAL { FILTER(BOUND(?creator)) GRAPH { ?creator schema:name ?creatorName. } } BIND(IF(BOUND(?creatorName), CONCAT("Photo: ", ?creatorName), ?creditText) AS ?caption) }