query-sync.py 250 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/usr/bin/env python
import gi
from gi.repository import Tracker

conn = Tracker.SparqlConnection.get (None)
cursor = conn.query ("SELECT ?u WHERE { ?u a nie:InformationElement. }", None)

while (cursor.next (None)):
    print cursor.get_string (0)