Package Pyblio :: Package External :: Module WOK :: Class WOK
[hide private]
[frames] | no frames]

Class WOK

source code

object --+    
         |    
 IExternal --+
             |
            WOK

I represent a query session on the Web of Knowledge.

The session is connected to a database whose schema is 'org.pybliographer/wok/...'.

Instance Methods [hide private]
 
__init__(self, db)
Create a new external query interface.
source code
 
_query(self, **args) source code
 
_done(self, data)
Called in any case to mark the end of a pending request to the WOK server.
source code
 
count(self, query)
Ask WOK for the number of results of a given query.
source code
 
search(self, query, maxhits=500)
Start a query on the WOK, and fill in the database with the matches.
source code
 
cancel(self)
Cancel a running query.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  schema = 'org.pybliographer/wok/0.1'
  baseURL = 'http://estipub.isiknowledge.com/esti/cgi'
  MAX_PER_BATCH = 100
  log = logging.getLogger('pyblio.external.wok')
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, db)
(Constructor)

source code 
Create a new external query interface.

Args:
  db: Pyblio.Store.Database

Overrides: IExternal.__init__
(inherited documentation)

count(self, query)

source code 
Ask WOK for the number of results of a given query.
Overrides: IExternal.count

search(self, query, maxhits=500)

source code 
Start a query on the WOK, and fill in the database with the matches.
Parameters:
  • query (unicode string) - the query, in Web of Science format
Returns:
a deferred that will fire when the query is finished.
Overrides: IExternal.search

cancel(self)

source code 
Cancel a running query. The database is not reverted to its original state.
Overrides: IExternal.cancel