# filename: ex255.rq BASE CONSTRUCT {?s ?p ?testURI.} WHERE { ?s ?p ?o . BIND( IF(isURI(?o), ?o, URI(ENCODE_FOR_URI(str(?o))) ) AS ?testURI ) }