summaryrefslogtreecommitdiff
path: root/examples/python/query-sync.py
blob: cf8bfd6f667d6d40a0781b37820b6f1ef3d305c1 (plain)
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)