# In this query a search for the BODY content is run on the IMAP server. # The "bodyfilter" property has been created to prefilter bodies on server # side, while "body" will contain the full message body. Note that the # first search done on IMAP server is just a normal substring search, # while the second one is a full working regular expression run over the # downloaded messages PREFIX xsd: prefix email: select * where { ?x email:subject ?subject . ?x email:bodyfilter "http://en.wikipedia.org/wiki/Semantic_Wiki" . ?x email:body ?body . FILTER regex(?body, "http://en.wikipedia.org/wiki/Semantic_Wiki[\\s]", "i") . }