Package rdflib :: Package store :: Package FOPLRelationalModel :: Module QuadSlot
[show private | hide private]
[frames | no frames]

Module rdflib.store.FOPLRelationalModel.QuadSlot

Utility functions associated with RDF terms:

- normalizing (to 64 bit integers via half-md5-hashes)
- escaping literal's for SQL persistence

Classes
QuadSlot  

Function Summary
  dereferenceQuad(index, quad)
  EscapeQuotes(qstr)
Ported from Ft.Lib.DbUtil
  genQuadSlots(quads)
  normalizeValue(value, termType)

Variable Summary
NoneType Any = None                                                                  
int CONTEXT = 3                                                                     
int DATATYPE_INDEX = 4                                                                     
int LANGUAGE_INDEX = 5                                                                     
int OBJECT = 2                                                                     
list POSITION_LIST = [0, 1, 2, 3]
int PREDICATE = 1                                                                     
dict SlotPrefixes = {0: 'subject', 1: 'predicate', 2: 'object...
int SUBJECT = 0                                                                     

Function Details

EscapeQuotes(qstr)

Ported from Ft.Lib.DbUtil

Variable Details

Any

Type:
NoneType
Value:
None                                                                  

CONTEXT

Type:
int
Value:
3                                                                     

DATATYPE_INDEX

Type:
int
Value:
4                                                                     

LANGUAGE_INDEX

Type:
int
Value:
5                                                                     

OBJECT

Type:
int
Value:
2                                                                     

POSITION_LIST

Type:
list
Value:
[0, 1, 2, 3]                                                           

PREDICATE

Type:
int
Value:
1                                                                     

SlotPrefixes

Type:
dict
Value:
{0: 'subject',
 1: 'predicate',
 2: 'object',
 3: 'context',
 4: 'dataType',
 5: 'language'}                                                        

SUBJECT

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Mon Oct 23 14:11:23 2006 http://epydoc.sf.net