
DELETE { ?s ?p ?val . }
INSERT { ?s ?p ?uri . }
WHERE {
  VALUES ?p {
    <http://example.org/migrants/person#imageURL>
    <http://example.org/migrants/person#image_source>
    <http://example.org/migrants/person#Wikipedia>
    <http://example.org/migrants/person#Wikidata>
    <http://example.org/migrants/person#GND>
    <http://example.org/migrants/person#LCCN>
    <http://example.org/migrants/person#VIAF>
    <http://example.org/migrants/person#CERL>
    <http://example.org/migrants/person#ISNI>
    <http://example.org/migrants/person#SNAC>
    <http://example.org/migrants/location#wikipedia>
  }
  ?s ?p ?val .
  FILTER(STRSTARTS(STR(?val), "http"))
  BIND(IRI(STR(?val)) AS ?uri)
}
