Zeitgeist Project Website

Interpretation.DATA_CONTAINER does not return any results, why so?

Asked by benjamin on 2012-05-13

I am trying to get my mind around Zeitgeist, using the Python DBus API.

To get the latest accessed files and application is not so hard, here is what I do:

#! /usr/bin/env python

from zeitgeist.client import ZeitgeistDBusInterface
from zeitgeist.datamodel import Event, Interpretation, TimeRange, \
 StorageState, ResultType

zg = ZeitgeistDBusInterface()
events = zg.FindEvents(
 TimeRange.always(),
 [Event.new_for_values(interpretation=Interpretation.ACCESS_EVENT)],
 StorageState.Available, 3, ResultType.MostRecentEvents)

for e in events:
    event = Event(e)
    subjects = event.get_subjects()
    for s in subjects:
        print "subject", s.text, s.uri

However, I do not succeed in getting results from events other than with Interpretation.EVENT_INTERPRETATION and its subclasses. More specifically I would like to access Interpretation.DATA_CONTAINER and its subclass, but it never returns any result.

So am I doing something wrong in that case? Could you suggest anything?

Question information

Language:
English Edit question
Status:
Expired
For:
Zeitgeist Project Website Edit question
Assignee:
No assignee Edit question
Last query:
2012-05-13
Last reply:
2012-05-28
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.