from wo import WO 


client = WO('http://webobservatory.soton.ac.uk', '55590b16a7f6527a06ebe96d', 'e4b72c8cb25d32ba', 'jiadi.yao@gmail.com','qwer1234' )


client.login()
#client.query('52e19220bef627683c79c3a6','SELECT * WHERE {  ?subject rdf:type ?class} LIMIT 10')

opt = {'collection':"abuse_entries_2014_12", 'query':'{}', 'limit':10,'skip':0}
#client.query('54eb0a1d590ea23530f24644', opt)

def callback(data,socket):
        print 'data'+data
        print 'socket:'+socket
client.openStream('54eb13d7590ea23530f24645','logs',callback)




@@ -151,25 +151,94 @@
  )%0A%0A
-%0Aclient.login()%0A#
+##login after the client creation%0Aclient.login()%0A%0A##demo of the query using a string:%0A
 clie
@@ -330,16 +330,38 @@
 T 10')%0A%0A
+##query using a dict:%0A
 opt = %7B'
@@ -432,17 +432,16 @@
 kip':0%7D%0A
-#
 client.q
@@ -479,16 +479,68 @@
 , opt)%0A%0A
+##would not work due to server certificate issues:%0A#
 def call
@@ -558,16 +558,17 @@
 ocket):%0A
+#
         
@@ -585,16 +585,17 @@
 a'+data%0A
+#
         
@@ -617,16 +617,17 @@
 +socket%0A
+#
 client.o

Update example.py