Package rdflib :: Package syntax :: Package parsers :: Package n3p :: Module n3proc
[show private | hide private]
[frames | no frames]

Module rdflib.syntax.parsers.n3p.n3proc

n3proc - An N3 Processor using n3.n3
Author: Sean B. Palmer, inamidst.com
Licence: GPL 2; share and enjoy!
License: http://www.w3.org/Consortium/Legal/copyright-software
Documentation: http://inamidst.com/n3p/

usage:
   %prog [options] <URI>

Classes
N3Processor  
NTriplesSink  

Exceptions
ParseError  

Function Summary
  main(argv)
  parse(uri, options)
  quote(s)
  unquote(s, triplequoted, r_safe)
Unquote an N-Triples string.

Variable Summary
dict branches = {u'_:jcOJHCYs16': {u'}': [], u',': [u',', 'ht...
Namespace LOG = u'http://www.w3.org/2000/10/swap/log#'
Namespace N3R = u'http://www.w3.org/2000/10/swap/reify#'
Namespace OWL = u'http://www.w3.org/2002/07/owl#'
dict quot = {'"': '"', 'r': '\r', 't': '\t', '\\': '\\', 'n':...
SRE_Pattern r_hibyte = [- - --ÿ]
SRE_Pattern r_quot = \\([tnr"\\])
SRE_Pattern r_unilower = (?=\\u)([0-9a-f]{4})|(?=\\U)([0-9a-f]{8})
SRE_Pattern r_uniquot = \\u([0-9A-F]{4})|U([0-9A-F]{8})
Namespace RDF = u'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
dict regexps = {u'http://www.w3.org/2000/10/swap/grammar/n3#b...
str start = 'http://www.w3.org/2000/10/swap/grammar/n3#docum...
Namespace XSD = u'http://www.w3.org/2001/XMLSchema#'

Function Details

unquote(s, triplequoted=False, r_safe=<_sre.SRE_Pattern object at 0x91b4438>)

Unquote an N-Triples string. Derived from: http://inamidst.com/proj/rdf/ntriples.py

Variable Details

branches

Type:
dict
Value:
{u'_:jcOJHCYs16': {u',': [u',',
                          'http://www.w3.org/2000/10/swap/grammar/n3#s\
ymbol',
                          '_:jcOJHCYs16'],
                   u'.': [],
                   u'}': []},
 u'_:jcOJHCYs20': {u',': [u',',
                          'http://www.w3.org/2000/10/swap/grammar/n3#s\
...                                                                    

LOG

Type:
Namespace
Value:
u'http://www.w3.org/2000/10/swap/log#'                                 

N3R

Type:
Namespace
Value:
u'http://www.w3.org/2000/10/swap/reify#'                               

OWL

Type:
Namespace
Value:
u'http://www.w3.org/2002/07/owl#'                                      

quot

Type:
dict
Value:
{'"': '"', 'r': '\r', 't': '\t', '\\': '\\', 'n': '\n'}                

r_hibyte

Type:
SRE_Pattern
Value:
[----ÿ]                                                         

r_quot

Type:
SRE_Pattern
Value:
\\([tnr"\\])                                                           

r_unilower

Type:
SRE_Pattern
Value:
(?=\\u)([0-9a-f]{4})|(?=\\U)([0-9a-f]{8})                              

r_uniquot

Type:
SRE_Pattern
Value:
\\u([0-9A-F]{4})|U([0-9A-F]{8})                                        

RDF

Type:
Namespace
Value:
u'http://www.w3.org/1999/02/22-rdf-syntax-ns#'                         

regexps

Type:
dict
Value:
{u'http://www.w3.org/2000/10/swap/grammar/n3#barename': <_sre.SRE_Patt\
ern object at 0xb7b43800>,
 u'http://www.w3.org/2000/10/swap/grammar/n3#explicituri': <_sre.SRE_P\
attern object at 0xb7a26320>,
 u'http://www.w3.org/2000/10/swap/grammar/n3#langcode': <_sre.SRE_Patt\
ern object at 0xb7ade608>,
 u'http://www.w3.org/2000/10/swap/grammar/n3#numericliteral': <_sre.SR\
E_Pattern object at 0x91ac410>,
...                                                                    

start

Type:
str
Value:
'http://www.w3.org/2000/10/swap/grammar/n3#document'                   

XSD

Type:
Namespace
Value:
u'http://www.w3.org/2001/XMLSchema#'                                   

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