@prefix : . @prefix log: . @prefix rdf: . @prefix rdfs: . @prefix exif: . @prefix dc: . @prefix str: . @prefix geo: . @prefix cyc: . @prefix dcterms: . { ?p exif:dateTime ?d . (?d "([0-9]+):") str:scrape ?year . (?d "[0-9]+:([0-9]+):") str:scrape ?month . (?d "[0-9]+:[0-9]+:([0-9]+) ") str:scrape ?day . (?d "[0-9]+:[0-9]+:[0-9]+ ([0-9]+):") str:scrape ?hour . (?d "[0-9]+:[0-9]+:[0-9]+ [0-9]+:([0-9]+):") str:scrape ?minute . (?d "[0-9]+:[0-9]+:[0-9]+ [0-9]+:[0-9]+:([0-9]+)") str:scrape ?second . ?dcdate is str:concatenation of ( ?year "-" ?month "-" ?day "T" ?hour ":" ?minute ":" ?second "Z") . } => { ?p dc:date ?dcdate } . #{ ?p dc:type . # ?p dc:date ?date . # ?q rdf:type . # ?q dc:date ?date . # ?q geo:lat ?lat . # ?q geo:long ?long . #} => { ?p dcterms:spatial [ cyc:near [ geo:lat ?lat; geo:long ?long ] ] . } .