All Email (not from me):
PREFIX email: <http://simile.mit.edu/2005/06/ontologies/email#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?name ?from ?subject ?date
WHERE
{ ?email email:subject ?subject .
?email email:from ?from .
?from rdfs:label ?name .
FILTER (!regex(?name, "zach dwiel", "i")) .
?email dc:date ?date }
ORDER BY DESC(?date)
Emails, not from me, with subject containing dinner
PREFIX email: <http://simile.mit.edu/2005/06/ontologies/email#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?name ?from ?subject ?date
WHERE
{ ?email email:subject ?subject .
?email email:from ?from .
?from rdfs:label ?name .
FILTER (!regex(?name, "zach dwiel", "i")) .
?email dc:date ?date .
FILTER regex(?subject, "dinner", "i") }
ORDER BY DESC(?date)
- all email
- email (context)
- emails
- show emails
- show new emails
- new emails
- all emails
- %emails% from %people%
- [emails] from [person with an email address]
- [emails] from people at Wash U
- [emails] from biology department at IU
- %emails% from %date range%
- [emails] from yesterday
- %emails% since %date%
- %emails% subject %text%
- [emails] subject dinner
- %emails% subject exactly %text%
- [emails] subject exactly dinner (matches above 2)
- forward %emails% to %people% => %action%
- %emails% with %filetype%
- when I say exactly I [don't] mean case sensitive
- when I say exactly I [don't] mean [uppercase | lowercase] matters
- show is pretty much an implied action... How should it be built in?
- show unread emails
- show new emails
- %tag% %objects%
- unread [emails]
- new [emails]
- high priority [emails]
- blue [emails]
Q: the way I am using tags here is very similar to properties. How are they the same/different?
Q: Does a more complex match tend to be the best choice?
Q: How much can the use of quotes help? You don't want to rely on them, but in some circumstances they are necessary even when communicating to people.
- tag emails with the subject [freecycle-stl] with freecycle
- tag %objects% with %text%
- tag %objects%(%objects% with the subject %phrase%) with %text%
- delete email coming from Joe in 20 mins
- %action%(delete %objects(%with from% coming from %people%)) in %time%
- emails from family are high priority
- show high priority emails at the top
- forward all of my emails from Bob to Joe at the end of each week
- tell me when I get an email from Bob or Joe
- this uses some kind of forward context. The what is implied with the rest of the sentence.
display modifiers:
- [sort | order | group | nil] by [date | newest | oldest | time | subject | body ]
- [show | put | display] at [the] [top | bottom]
- [show | display | nil] 20 emails [at [a time | once] | [a | per | nil] page]
- [show | hide] [everyone | everything | all | anything]
- [show | hide] ? [column]
- [show | hide] fn(?) [column]
- show sender's url
- show sender's picture
- show sender's business's website
- always %modifier%
- never %modifier% (can be mapped to an always)
- [mark | show | display | change] emails from Mom [[[to] have] a] %color% background
- a lighter green