Core data structure in the Zeitgeist framework. It is an optimized and convenient representation of an event.
This class is designed so that you can pass it directly over DBus using the Python DBus bindings. It will automagically be marshalled with the signature a(asaasay). See also the section on the event serialization format.
This class does integer based lookups everywhere and can wrap any conformant data structure without the need for marshalling back and forth between DBus wire format. These two properties makes it highly efficient and is recommended for use everywhere.
Return True if this event matches event_template. The matching is done where unset fields in the template is interpreted as wild cards. If the template has more than one subject, this event matches if at least one of the subjects on this event matches any single one of the subjects on the template.
Basically this method mimics the matching behaviour found in the FindEventIds() method on the Zeitgeist engine.
Create a new Event instance from a collection of keyword arguments.
| Parameters: |
|
|---|
Instead of setting the subjects argument one may use a more convenient approach for events that have exactly one Subject. Namely by using the subject_* keys - mapping directly to their counterparts in Subject.new_for_values():
| Parameters: |
|
|---|
Represents a subject of an Event. This class is both used to represent actual subjects, but also create subject templates to match other subjects against.
Applications should normally use the method new_for_values() to create new subjects.
Return True if this Subject matches subject_template. Empty fields in the template are treated as wildcards.
See also Event.matches_template()
Create a new Subject instance and set its properties according to the keyword arguments passed to this method.
| Parameters: |
|
|---|
In general terms the interpretation of an event or subject is an abstract description of “what happened” or “what is this”.
Each interpretation type is uniquely identified by a URI. This class provides a list of hard coded URI constants for programming convenience. In addition; each interpretation instance in this class has a display_name property, which is an internationalized string meant for end user display.
The interpretation types listed here are all subclasses of str and may be used anywhere a string would be used.
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Application
An item that is a launchable application. The item’s URI must point to the relevant .desktop file. (Display name: 'Applications')
http://www.semanticdesktop.org/ontologies/nfo/#Bookmark
A user defined bookmark. The same bookmark may only refer exectly one item. (Display name: 'Bookmarks')
https://zeitgeist-project.com/schema/1.0/core#BroadcastMessage
Small broadcasted message, like Twitter/Identica micro blogging (TBD in tracker). (Display name: 'Broadcasts')
https://zeitgeist-project.com/schema/1.0/core#CloseEvent
Event type triggered when an item is closed. (Display name: 'Closed')
http://www.semanticdesktop.org/ontologies/2007/01/19/nie/#comment
User provided comment. (Display name: 'Comments')
https://zeitgeist-project.com/schema/1.0/core#CreateEvent
Event type triggered when an item is created. (Display name: 'Created')
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/#Document
A document, presentation, spreadsheet, or other content centric item. (Display name: 'Documents')
http://www.semanticdesktop.org/ontologies/2007/03/22/nmo/#Email
An email is an email is an email. (Display name: 'Email')
https://zeitgeist-project.com/schema/1.0/core#ErrorEvent
Event type triggered when the user has encountered an error. (Display name: 'Errors')
http://www.tracker-project.org/temp/mfo#FeedMessage
Any syndicated item, RSS, Atom, or other. (Display name: 'Feeds')
https://zeitgeist-project.com/schema/1.0/core#FocusEvent
Event type triggered when the user has switched focus to a new item. (Display name: 'Focused')
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/#Image
A photography, painting, or other digital image. (Display name: 'Images')
http://www.semanticdesktop.org/ontologies/2007/03/22/nmo/#IMMessage
A message received from an instant messaging service. (Display name: 'Messages')
https://zeitgeist-project.com/schema/1.0/core#ModifyEvent
Event type triggered when an item is modified. (Display name: 'Modified')
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/#Audio
Digital music or other creative audio work. (Display name: 'Music')
https://zeitgeist-project.com/schema/1.0/core#OpenEvent
Event type triggered when an item is visited or opened. (Display name: 'Opened')
https://zeitgeist-project.com/schema/1.0/core#ReceiveEvent
Event type triggered when the user has received an item from a remote host. (Display name: 'Received')
https://zeitgeist-project.com/schema/1.0/core#SaveEvent
Event type triggered when an item is saved. (Display name: 'Saved')
https://zeitgeist-project.com/schema/1.0/core#SendEvent
Event type triggered when the user sends/emails an item or message to a remote host. (Display name: 'Send')
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/#ManifestationCode
Code in a compilable or interpreted programming language. (Display name: 'Manifestation Code')
http://www.semanticdesktop.org/ontologies/2007/08/15/nao#Tag
User provided tags. The same tag may refer multiple items. (Display name: 'Tags')
https://zeitgeist-project.com/schema/1.0/core#UnknownInterpretation
An entity with an unknown interpretation. (Display name: 'Unknown')
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/#Video
Any form of digital video, streaming and non-streaming alike. (Display name: 'Videos')
https://zeitgeist-project.com/schema/1.0/core#VisitEvent
Event type triggered when an item is visited or opened. (Display name: 'Visited')
https://zeitgeist-project.com/schema/1.0/core#WarnEvent
Event type triggered when the user is warned about something. (Display name: 'Warnings')
The manifestation type of an event or subject is an abstract classification of “how did this happen” or “how does this item exist”.
Each manifestation type is uniquely identified by a URI. This class provides a list of hard coded URI constants for programming convenience. In addition; each interpretation instance in this class has a display_name property, which is an internationalized string meant for end user display.
The manifestation types listed here are all subclasses of str and may be used anywhere a string would be used.
http://www.semanticdesktop.org/ontologies/nfo/#FileDataObject
An item stored on the local filesystem. (Display name: 'Files')
https://zeitgeist-project.com/schema/1.0/core#HeuristicActivity
An application has calculated via heuristics that some relationship is very probable. (Display name: 'Activities')
https://zeitgeist-project.com/schema/1.0/core#ScheduledActivity
An event that has been triggered by some long running task activated by the user. Fx. playing a song from a playlist. (Display name: 'Activities')
http://freedesktop.org/standards/xesam/1.0/core#SystemRessource
An item available through the host operating system, such as an installed application or manual page (TBD in tracker). (Display name: 'System Resources')
https://zeitgeist-project.com/schema/1.0/core#UnknownManifestation
An entity with an unknown manifestation. (Display name: 'Unknown')
https://zeitgeist-project.com/schema/1.0/core#UserActivity
An item that has been created solely on the basis of user actions and is not otherwise stored in some physical location. (Display name: 'Activities')
https://zeitgeist-project.com/schema/1.0/core#UserNotification
An item that has been send as a notification to the user. (Display name: 'Notifications')
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#WebHistory
An item that has been extracted from the user’s browsing history. (Display name: 'Web History')
A class that represents a time range with a beginning and an end. The timestamps used are integers representing milliseconds since the Epoch.
By design this class will be automatically transformed to the DBus type (xx).
An enumeration class used to define how query results should be returned from the Zeitgeist engine.
Enumeration class defining the possible values for the storage state of an event subject.
The StorageState enumeration can be used to control whether or not matched events must have their subjects available to the user. Fx. not including deleted files, files on unplugged USB drives, files available only when a network is available etc.