fixes to get cwm 1.2.1 to handle SPARQL queries

I've been working with cwm 1.2.1, running it under python 2.4 on
a Linux i386 (32-bit) system.  The original code as I downloaded it wouldn't
handle any SPARQL queries (the --sparql options) until I applied the
attached patches to the source.  It still doesn't handle DESCRIBE
queries, but it appears that is simply not implemented, not a bug.

The fix to "cwm" is pretty self-explanatory.

The other changes were to work around a fatal error -- I've never
worked with Python so it didn't make much sense, but might be an
incompatibilty in the regular expression implementation.

Hope this is of use,

        -- Larry Stone
           MIT Libraries

----------------


--- cwm.orig	2007-12-15 18:46:49.000000000 -0500
+++ cwm	2008-05-07 22:26:25.000000000 -0400
@@ -695,7 +695,7 @@
                 option_outputStyle = "-no"
 
             elif arg == '-sparqlResults':
-                from cwm_sparql import outputString, SPARQL_NS
+                from swap.cwm_sparql import outputString, SPARQL_NS
                 ns = _store.newSymbol(SPARQL_NS)
                 if not sparql_query_formula:
                     raise ValueError('No query')
--- swap/sparql/sparql_tokens_table.py.orig	2008-05-07 21:53:51.000000000 -0400
+++ swap/sparql/sparql_tokens_table.py	2008-05-08 00:24:27.000000000 -0400
@@ -87,7 +87,7 @@
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#INTEGER': re.compile(u'[0-9]+', re.I), 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_isURI': u'isURI', 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_OPTIONAL': u'OPTIONAL', 
-   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#VAR2': re.compile(u'\\$[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*', re.I), 
+   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#VAR2': re.compile(u'\\$[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*', re.I),
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#GT_MINUS': u'-', 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_DISTINCT': re.compile(u'DISTINCT', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_BASE': re.compile(u'BASE', re.I), 
@@ -100,7 +100,7 @@
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_PREFIX': re.compile(u'PREFIX', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#GT_GT': re.compile(u'>', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#GT_NOT': re.compile(u'!', re.I), 
-   u't_http://www.w3.org/2000/10/swap/grammar/sparql#BNODE_LABEL': u'_:[_A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*', 
+   u't_http://www.w3.org/2000/10/swap/grammar/sparql#BNODE_LABEL': u'_:[_A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*',
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#STRING_LITERAL2': re.compile(u'"(?:(?:[^"\\\\\\n\\r])|(?:(?:\\\\[^\\r\\n])))*"', re.I), 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_GRAPH': u'GRAPH', 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_DESCRIBE': u'DESCRIBE', 
@@ -113,7 +113,7 @@
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_ASK': u'ASK', 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_CONSTRUCT': re.compile(u'CONSTRUCT', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_DESCRIBE': re.compile(u'DESCRIBE', re.I), 
-   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#QNAME': re.compile(u'(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*)?:(?:[_A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*)?', re.I), 
+   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#QNAME': re.compile(u'(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*)?:(?:[_A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*)?', re.I),
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_true': u'true', 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#GT_RBRACKET': re.compile(u'\\]', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#GT_LBRACKET': re.compile(u'\\[', re.I), 
@@ -142,30 +142,30 @@
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#GT_LBRACKET': u'\\[', 
    u'c_http://www.w3.org/2000/10/swap/grammar/bnf#PASSED_TOKENS': re.compile(u'(?:(?:(?:\\t)|(?:(?:\\n)|(?:(?:\\r)|(?:(?:[ ])|(?:(?:\xa0)|(?:(?:[\u2000-\u200b])|(?:(?:\u202f)|(?:(?:\u205f)|(?:\u3000)))))))))+)|(?:#[^\\n]*\\n)', re.I), 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#FLOATING_POINT': u'(?:[0-9]+\\.[0-9]*(?:[eE][\\+-]?[0-9]+)?)|(?:(?:\\.[0-9]+(?:[eE][\\+-]?[0-9]+)?)|(?:[0-9]+(?:[eE][\\+-]?[0-9]+)))', 
-   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#BNODE_LABEL': re.compile(u'_:[_A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*', re.I), 
+   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#BNODE_LABEL': re.compile(u'_:[_A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*', re.I),
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_SELECT': u'SELECT', 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_PREFIX': u'PREFIX', 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_isLITERAL': re.compile(u'isLITERAL', re.I), 
-   u't_http://www.w3.org/2000/10/swap/grammar/sparql#QNAME': u'(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*)?:(?:[_A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*)?', 
+   u't_http://www.w3.org/2000/10/swap/grammar/sparql#QNAME': u'(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*)?:(?:[_A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*)?',
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_BOUND': re.compile(u'BOUND', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#CloseCurly': re.compile(u'\\}', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_UNION': re.compile(u'UNION', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#GT_COMMA': re.compile(u',', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_WHERE': re.compile(u'WHERE', re.I), 
-   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#QNAME_NS': re.compile(u'(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*)?:', re.I), 
+   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#QNAME_NS': re.compile(u'(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*)?:', re.I),
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#FLOATING_POINT': re.compile(u'(?:[0-9]+\\.[0-9]*(?:[eE][\\+-]?[0-9]+)?)|(?:(?:\\.[0-9]+(?:[eE][\\+-]?[0-9]+)?)|(?:[0-9]+(?:[eE][\\+-]?[0-9]+)))', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_ASK': re.compile(u'ASK', re.I), 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#GT_LPAREN': u'\\(', 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_ASC': re.compile(u'ASC', re.I), 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_REGEX': u'REGEX', 
-   u't_http://www.w3.org/2000/10/swap/grammar/sparql#VAR1': u'\\?[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*', 
-   u't_http://www.w3.org/2000/10/swap/grammar/sparql#VAR2': u'\\$[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*', 
+   u't_http://www.w3.org/2000/10/swap/grammar/sparql#VAR1': u'\\?[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*',
+   u't_http://www.w3.org/2000/10/swap/grammar/sparql#VAR2': u'\\$[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*',
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_ASC': u'ASC', 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#GT_LT': u'<', 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#GT_PLUS': u'\\+', 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_UNION': u'UNION', 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#GT_EQUAL': re.compile(u'=', re.I), 
-   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#VAR1': re.compile(u'\\?[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*', re.I), 
+   u'c_http://www.w3.org/2000/10/swap/grammar/sparql#VAR1': re.compile(u'\\?[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*', re.I),
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_FROM': re.compile(u'FROM', re.I), 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#GT_LE': u'<=', 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_OFFSET': re.compile(u'OFFSET', re.I), 
@@ -182,7 +182,7 @@
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#GT_DIVIDE': re.compile(u'/', re.I), 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#IT_DESC': re.compile(u'DESC', re.I), 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#IT_ORDER': u'ORDER', 
-   u't_http://www.w3.org/2000/10/swap/grammar/sparql#QNAME_NS': u'(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff]*)?:', 
+   u't_http://www.w3.org/2000/10/swap/grammar/sparql#QNAME_NS': u'(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd][_\\-\\.0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*)?:',
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#GT_RBRACKET': u'\\]', 
    u't_http://www.w3.org/2000/10/swap/grammar/sparql#GT_OR': u'\\|\\|', 
    u'c_http://www.w3.org/2000/10/swap/grammar/sparql#GT_LE': re.compile(u'<=', re.I), 

Received on Thursday, 29 May 2008 19:11:56 UTC