Package rdfalchemy :: Module Literal'
[hide private]
[frames] | no frames]

Module Literal'

source code

Literal.py

Created by Philip Cooper on 2008-02-09. Copyright (c) 2008 Openvest. All rights reserved.

Classes [hide private]
  rebindingLogFilter
Functions [hide private]
 
_strToDateTime(s)
parse a string and return a datetime object.
source code
Variables [hide private]
  XSD = rdflib.URIRef('http://www.w3.org/2001/XMLSchema#')
  _PythonToXSD = {<type 'bool'>: (None, rdflib.URIRef('http://ww...
  _log = <logging.Logger instance at 0x1221260>
  date_parser = re.compile(r'(?x)^(?P<year>\d{4})(?:-(?P<month>\...
  h = <logging.StreamHandler instance at 0x13660f8>
Variables Details [hide private]

_PythonToXSD

Value:
{<type 'bool'>: (None,
                 rdflib.URIRef('http://www.w3.org/2001/XMLSchema#boole\
an')),
 <type 'float'>: (None,
                  rdflib.URIRef('http://www.w3.org/2001/XMLSchema#floa\
t')),
 <type 'int'>: (None,
                rdflib.URIRef('http://www.w3.org/2001/XMLSchema#int'))\
...

date_parser

Value:
re.compile(r'(?x)^(?P<year>\d{4})(?:-(?P<month>\d{1,2})(?:-(?P<day>\d{\
1,2})(?:[T ](?P<hour>\d{1,2}):(?P<minute>\d{1,2})(?::(?P<second>\d{1,2\
})(?P<dec_second>\.\d+)?)?(?:Z|(?:(?P<tz_sign>[\+-])(?P<tz_hour>\d{1,2\
}):?(?P<tz_min>\d{2})))?)?)?)?$')