# This is the first example of a SPARQL query over an IMAP server. # We will just ask for the classic "subject-sender-date" list of messages, # ordered by date (descending) PREFIX xsd: prefix email: select ?subject ?from ?date where { ?x email:server "server1" . ?x email:from ?from . ?x email:subject ?subject . ?x email:subject "semantic" . ?x email:date ?date . } ORDER BY DESC(?date)