CQLUtils
index
/home/cheshire/cheshire/cheshire/python/CQLParser/CQLUtils.py

CQL utility functions and subclasses

 
Modules
            
PyZ3950.asn1
PyZ3950.oids
types
PyZ3950.z3950
 
Classes
            
CQLParser.Boolean(CQLParser.ModifiableObject)
CBoolean
CQLParser.Index(CQLParser.PrefixedObject)
CIndex
CQLParser.ModifierClause
CModifierClause
CQLParser.ModifierType(CQLParser.PrefixedObject)
CModifierType
CQLParser.Relation(CQLParser.PrefixedObject, CQLParser.ModifiableObject)
CRelation
CQLParser.SearchClause(CQLParser.PrefixableObject)
CSearchClause
CQLParser.Term
CTerm
CQLParser.Triple(CQLParser.PrefixableObject)
CTriple
ZCQLConfig
 
class CBoolean(CQLParser.Boolean)
       
  
Method resolution order:
CBoolean
CQLParser.Boolean
CQLParser.ModifiableObject

Methods defined here:
toRPN(self, top)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'CQLUtils'

Methods inherited from CQLParser.Boolean:
__init__(self, bool, mods=[])
resolvePrefix(self, name)
toCQL(self)
toXCQL(self, depth=0)
Create XCQL representation of object

Data and non-method functions inherited from CQLParser.Boolean:
parent = None
value = ''

Methods inherited from CQLParser.ModifiableObject:
__getitem__(self, k)

Data and non-method functions inherited from CQLParser.ModifiableObject:
modifiers = []
 
class CIndex(CQLParser.Index)
       
  
Method resolution order:
CIndex
CQLParser.Index
CQLParser.PrefixedObject

Methods defined here:
toRPN(self, top)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'CQLUtils'

Methods inherited from CQLParser.Index:
toCQL(self)
toXCQL(self, depth=0)

Methods inherited from CQLParser.PrefixedObject:
__init__(self, val)
__str__(self)
resolvePrefix(self)
splitValue(self)

Data and non-method functions inherited from CQLParser.PrefixedObject:
parent = None
prefix = ''
prefixURI = ''
value = ''
 
class CModifierClause(CQLParser.ModifierClause)
       
   Data and non-method functions defined here:
__doc__ = None
__module__ = 'CQLUtils'

Methods inherited from CQLParser.ModifierClause:
__init__(self, type, comp='', val='')
__str__(self)
toCQL(self)
toXCQL(self, depth=0)

Data and non-method functions inherited from CQLParser.ModifierClause:
comparison = ''
type = None
value = ''
 
class CModifierType(CQLParser.ModifierType)
       
  
Method resolution order:
CModifierType
CQLParser.ModifierType
CQLParser.PrefixedObject

Data and non-method functions defined here:
__doc__ = None
__module__ = 'CQLUtils'

Methods inherited from CQLParser.PrefixedObject:
__init__(self, val)
__str__(self)
resolvePrefix(self)
splitValue(self)

Data and non-method functions inherited from CQLParser.PrefixedObject:
parent = None
prefix = ''
prefixURI = ''
value = ''
 
class CRelation(CQLParser.Relation)
       
  
Method resolution order:
CRelation
CQLParser.Relation
CQLParser.PrefixedObject
CQLParser.ModifiableObject

Methods defined here:
toRPN(self, top)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'CQLUtils'

Methods inherited from CQLParser.Relation:
__init__(self, rel, mods=[])
toCQL(self)
toXCQL(self, depth=0)
Create XCQL representation of object

Methods inherited from CQLParser.PrefixedObject:
__str__(self)
resolvePrefix(self)
splitValue(self)

Data and non-method functions inherited from CQLParser.PrefixedObject:
parent = None
prefix = ''
prefixURI = ''
value = ''

Methods inherited from CQLParser.ModifiableObject:
__getitem__(self, k)

Data and non-method functions inherited from CQLParser.ModifiableObject:
modifiers = []
 
class CSearchClause(CQLParser.SearchClause)
       
  
Method resolution order:
CSearchClause
CQLParser.SearchClause
CQLParser.PrefixableObject

Methods defined here:
convertMetachars(self, t)
Convert SRW meta characters in to Cheshire's meta characters
toRPN(self, top=None)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'CQLUtils'

Methods inherited from CQLParser.SearchClause:
__init__(self, ind, rel, t)
getResultSetId(self)
toCQL(self)
toXCQL(self, depth=0)
Produce XCQL version of the object

Data and non-method functions inherited from CQLParser.SearchClause:
index = None
relation = None
term = None

Methods inherited from CQLParser.PrefixableObject:
addPrefix(self, name, identifier)
resolvePrefix(self, name)

Data and non-method functions inherited from CQLParser.PrefixableObject:
config = None
parent = None
prefixes = {}
 
class CTerm(CQLParser.Term)
       
   Methods defined here:
toRPN(self, top)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'CQLUtils'

Methods inherited from CQLParser.Term:
__init__(self, v)
__str__(self)
toXCQL(self, depth=0)

Data and non-method functions inherited from CQLParser.Term:
value = ''
 
class CTriple(CQLParser.Triple)
       
  
Method resolution order:
CTriple
CQLParser.Triple
CQLParser.PrefixableObject

Methods defined here:
toRPN(self, top=None)
rpnRpnOp

Data and non-method functions defined here:
__doc__ = None
__module__ = 'CQLUtils'

Methods inherited from CQLParser.Triple:
getResultSetId(self, top=None)
toCQL(self)
toXCQL(self, depth=0)
Create the XCQL representation of the object

Data and non-method functions inherited from CQLParser.Triple:
boolean = None
leftOperand = None
rightOperand = None

Methods inherited from CQLParser.PrefixableObject:
__init__(self)
addPrefix(self, name, identifier)
resolvePrefix(self, name)

Data and non-method functions inherited from CQLParser.PrefixableObject:
config = None
parent = None
prefixes = {}
 
class ZCQLConfig
       
   Methods defined here:
__init__(self)

Data and non-method functions defined here:
BIB1 = {'abstract': 62, 'any': 1016, 'anywhere': 1035, 'author': 1003, 'author_personal': 1004, 'concept_text': 1014, 'conference_name': 3, 'corporate_name': 2, 'date': 30, 'date_acquisition': 32, ...}
CQL = {'anywhere': 1016, 'serverChoice': 1016}
DC = {'author': 1003, 'creator': 1003, 'date': 30, 'description': 62, 'editor': 1020, 'format': 1034, 'language': 54, 'publisher': 1018, 'resourceIdentifier': 12, 'resourceType': 1031, ...}
UTIL = {'all': 11, 'anywhere': 12, 'control_number': 4, 'cost': 5, 'database_schema': 7, 'rank': 9, 'record_agent': 2, 'record_date': 1, 'record_language': 3, 'record_syntax': 6, ...}
XD1 = {'coverage': 12, 'date': 5, 'description': 4, 'format': 7, 'identifier': 8, 'langauge': 10, 'name': 3, 'relation': 11, 'rights': 13, 'source': 9, ...}
__doc__ = None
__module__ = 'CQLUtils'
 
Functions
            
StringIO(...)
StringIO([s]) -- Return a StringIO-like stream for reading or writing
 
Data
             __file__ = './CQLUtils.pyc'
__name__ = 'CQLUtils'
booleans = ['and', 'or', 'not', 'prox']
errorOnDuplicatePrefix = 0
errorOnEmptyTerm = 0
errorOnQuotedIdentifier = 0
fullResultSetNameCheck = 1
modifierSeparator = '/'
order = ['=', '>', '>=', '<', '<=', '<>']
reservedPrefixes = {'cql': 'http://www.loc.gov/zing/cql/contextSets/cql/v1.1/', 'srw': 'http://www.loc.gov/zing/cql/srw-indexes/v1.0/'}
serverChoiceIndex = 'cql.serverchoice'
serverChoiceRelation = 'scr'
zConfig = <CQLUtils.ZCQLConfig instance>