Commands.Trivial Operations.Email

Problems Implementing

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)





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.


display modifiers: