What operations?
One type of complex query:
mark all emails from mom green
this matches:
mark all emails from mom green => mark all %emails% %color%
emails from mom => %emails% from %people%
emails => all stored emails
mom => person in contact list
green => the color green
- storage of settings:
- always put emails from mom at the top
- inserting data from a data source (plugin that pulls data from pop3)
- manipulation of properties
- mark all emails from mom green
- need to find all data the matches emails from mom and mark them as green
- this tends to be the operation:
- query for data x
- perform operation on this data (add/remove/change 1+ properties)
What Operators?
static data () : returns a single Subject, Property, or Value
the color green: "green" type %color%, property, value
partial query () : returns a hard-coded incomplete SPARQL query
emails =>
PREFIX email: <http://simile.mit.edu/2005/06/ontologies/email#>
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 .
?email dc:date ?date
}
ORDER BY DESC(?date)
%emails% from %people% =>
WHERE
{ ?email email:from ?from .
?from rdfs:label ?%people%
}
%people% =>