Package RDFClosure :: Package parsers :: Package n3p :: Module n3meta
[hide private]
[frames] | no frames]

Source Code for Module RDFClosure.parsers.n3p.n3meta

  1  #!/usr/bin/env python 
  2  """n3meta - For use with n3p.py.""" 
  3  # Automatically generated by pkltopy.py 
  4   
  5  import re 
  6   
  7  branches = {u'_:jcOJHCYs16': {u',': [u',', 
  8                            'http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
  9                            '_:jcOJHCYs16'], 
 10                     u'.': [], 
 11                     u'}': []}, 
 12   u'_:jcOJHCYs20': {u',': [u',', 
 13                            'http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
 14                            '_:jcOJHCYs20'], 
 15                     u'.': [], 
 16                     u'}': []}, 
 17   u'_:jcOJHCYs33': {u'.': [], 
 18                     u':': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
 19                            '_:jcOJHCYs16'], 
 20                     u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
 21                            '_:jcOJHCYs16'], 
 22                     u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
 23                            '_:jcOJHCYs16'], 
 24                     u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
 25                            '_:jcOJHCYs16'], 
 26                     u'}': []}, 
 27   u'_:jcOJHCYs36': {u'.': [], 
 28                     u':': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
 29                            '_:jcOJHCYs20'], 
 30                     u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
 31                            '_:jcOJHCYs20'], 
 32                     u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
 33                            '_:jcOJHCYs20'], 
 34                     u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol', 
 35                            '_:jcOJHCYs20'], 
 36                     u'}': []}, 
 37   u'_:jcOJHCYs44': {u'.': [], 
 38                     u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#barename', 
 39                            '_:jcOJHCYs9'], 
 40                     u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#barename', 
 41                            '_:jcOJHCYs9'], 
 42                     u'}': []}, 
 43   u'_:jcOJHCYs9': {u',': [u',', 
 44                           'http://www.w3.org/2000/10/swap/grammar/n3#barename', 
 45                           '_:jcOJHCYs9'], 
 46                    u'.': [], 
 47                    u'}': []}, 
 48   u'http://www.w3.org/2000/10/swap/grammar/n3#declaration': {u'@keywords': [u'@keywords', 
 49                                                                             '_:jcOJHCYs44'], 
 50                                                              u'@prefix': [u'@prefix', 
 51                                                                           'http://www.w3.org/2000/10/swap/grammar/n3#qname', 
 52                                                                           'http://www.w3.org/2000/10/swap/grammar/n3#explicituri']}, 
 53   u'http://www.w3.org/2000/10/swap/grammar/n3#document': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 54                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 55                                                           u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 56                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 57                                                           u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 58                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 59                                                           u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 60                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 61                                                           u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 62                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 63                                                           u':': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 64                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 65                                                           u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 66                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 67                                                           u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 68                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 69                                                           u'@EOFDUMMY': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 70                                                                          'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 71                                                           u'@forAll': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 72                                                                        'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 73                                                           u'@forSome': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 74                                                                         'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 75                                                           u'@keywords': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 76                                                                          'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 77                                                           u'@prefix': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 78                                                                        'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 79                                                           u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 80                                                                      'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 81                                                           u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 82                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 83                                                           u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 84                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 85                                                           u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 86                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof'], 
 87                                                           u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#statements_optional', 
 88                                                                  'http://www.w3.org/2000/10/swap/grammar/bnf#eof']}, 
 89   u'http://www.w3.org/2000/10/swap/grammar/n3#dtlang': {u'!': [], 
 90                                                         u'"': [], 
 91                                                         u'(': [], 
 92                                                         u')': [], 
 93                                                         u'+': [], 
 94                                                         u',': [], 
 95                                                         u'-': [], 
 96                                                         u'.': [], 
 97                                                         u'0': [], 
 98                                                         u':': [], 
 99                                                         u';': [], 
100                                                         u'<': [], 
101                                                         u'<=': [], 
102                                                         u'=': [], 
103                                                         u'=>': [], 
104                                                         u'?': [], 
105                                                         u'@': [u'@', 
106                                                                'http://www.w3.org/2000/10/swap/grammar/n3#langcode'], 
107                                                         u'@a': [], 
108                                                         u'@has': [], 
109                                                         u'@is': [], 
110                                                         u'@of': [], 
111                                                         u'@this': [], 
112                                                         u'[': [], 
113                                                         u']': [], 
114                                                         u'^': [], 
115                                                         u'^^': [u'^^', 
116                                                                 'http://www.w3.org/2000/10/swap/grammar/n3#symbol'], 
117                                                         u'_': [], 
118                                                         u'a': [], 
119                                                         u'{': [], 
120                                                         u'}': []}, 
121   u'http://www.w3.org/2000/10/swap/grammar/n3#existential': {u'@forSome': [u'@forSome', 
122                                                                            '_:jcOJHCYs36']}, 
123   u'http://www.w3.org/2000/10/swap/grammar/n3#formulacontent': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
124                                                                 u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
125                                                                 u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
126                                                                 u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
127                                                                 u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
128                                                                 u':': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
129                                                                 u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
130                                                                 u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
131                                                                 u'@forAll': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
132                                                                 u'@forSome': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
133                                                                 u'@keywords': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
134                                                                 u'@prefix': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
135                                                                 u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
136                                                                 u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
137                                                                 u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
138                                                                 u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
139                                                                 u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
140                                                                 u'}': []}, 
141   u'http://www.w3.org/2000/10/swap/grammar/n3#literal': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#string', 
142                                                                 'http://www.w3.org/2000/10/swap/grammar/n3#dtlang']}, 
143   u'http://www.w3.org/2000/10/swap/grammar/n3#node': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#literal'], 
144                                                       u'(': [u'(', 
145                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathlist', 
146                                                              u')'], 
147                                                       u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#numericliteral'], 
148                                                       u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#numericliteral'], 
149                                                       u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#numericliteral'], 
150                                                       u':': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol'], 
151                                                       u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol'], 
152                                                       u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#variable'], 
153                                                       u'@this': [u'@this'], 
154                                                       u'[': [u'[', 
155                                                              'http://www.w3.org/2000/10/swap/grammar/n3#propertylist', 
156                                                              u']'], 
157                                                       u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol'], 
158                                                       u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#symbol'], 
159                                                       u'{': [u'{', 
160                                                              'http://www.w3.org/2000/10/swap/grammar/n3#formulacontent', 
161                                                              u'}']}, 
162   u'http://www.w3.org/2000/10/swap/grammar/n3#object': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
163                                                         u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
164                                                         u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
165                                                         u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
166                                                         u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
167                                                         u':': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
168                                                         u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
169                                                         u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
170                                                         u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
171                                                         u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
172                                                         u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
173                                                         u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
174                                                         u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#path']}, 
175   u'http://www.w3.org/2000/10/swap/grammar/n3#objecttail': {u',': [u',', 
176                                                                    'http://www.w3.org/2000/10/swap/grammar/n3#object', 
177                                                                    'http://www.w3.org/2000/10/swap/grammar/n3#objecttail'], 
178                                                             u'.': [], 
179                                                             u';': [], 
180                                                             u']': [], 
181                                                             u'}': []}, 
182   u'http://www.w3.org/2000/10/swap/grammar/n3#path': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
183                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
184                                                       u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
185                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
186                                                       u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
187                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
188                                                       u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
189                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
190                                                       u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
191                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
192                                                       u':': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
193                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
194                                                       u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
195                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
196                                                       u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
197                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
198                                                       u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
199                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
200                                                       u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
201                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
202                                                       u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
203                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
204                                                       u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
205                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail'], 
206                                                       u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#node', 
207                                                              'http://www.w3.org/2000/10/swap/grammar/n3#pathtail']}, 
208   u'http://www.w3.org/2000/10/swap/grammar/n3#pathlist': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
209                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
210                                                           u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
211                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
212                                                           u')': [], 
213                                                           u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
214                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
215                                                           u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
216                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
217                                                           u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
218                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
219                                                           u':': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
220                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
221                                                           u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
222                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
223                                                           u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
224                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
225                                                           u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
226                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
227                                                           u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
228                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
229                                                           u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
230                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
231                                                           u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
232                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist'], 
233                                                           u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#path', 
234                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#pathlist']}, 
235   u'http://www.w3.org/2000/10/swap/grammar/n3#pathtail': {u'!': [u'!', 
236                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#path'], 
237                                                           u'"': [], 
238                                                           u'(': [], 
239                                                           u')': [], 
240                                                           u'+': [], 
241                                                           u',': [], 
242                                                           u'-': [], 
243                                                           u'.': [], 
244                                                           u'0': [], 
245                                                           u':': [], 
246                                                           u';': [], 
247                                                           u'<': [], 
248                                                           u'<=': [], 
249                                                           u'=': [], 
250                                                           u'=>': [], 
251                                                           u'?': [], 
252                                                           u'@a': [], 
253                                                           u'@has': [], 
254                                                           u'@is': [], 
255                                                           u'@of': [], 
256                                                           u'@this': [], 
257                                                           u'[': [], 
258                                                           u']': [], 
259                                                           u'^': [u'^', 
260                                                                  'http://www.w3.org/2000/10/swap/grammar/n3#path'], 
261                                                           u'_': [], 
262                                                           u'a': [], 
263                                                           u'{': [], 
264                                                           u'}': []}, 
265   u'http://www.w3.org/2000/10/swap/grammar/n3#propertylist': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
266                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
267                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
268                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
269                                                               u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
270                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
271                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
272                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
273                                                               u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
274                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
275                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
276                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
277                                                               u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
278                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
279                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
280                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
281                                                               u'.': [], 
282                                                               u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
283                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
284                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
285                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
286                                                               u':': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
287                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
288                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
289                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
290                                                               u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
291                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
292                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
293                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
294                                                               u'<=': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
295                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#object', 
296                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
297                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
298                                                               u'=': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
299                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
300                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
301                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
302                                                               u'=>': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
303                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#object', 
304                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
305                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
306                                                               u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
307                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
308                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
309                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
310                                                               u'@a': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
311                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#object', 
312                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
313                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
314                                                               u'@has': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
315                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#object', 
316                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
317                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
318                                                               u'@is': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
319                                                                        'http://www.w3.org/2000/10/swap/grammar/n3#object', 
320                                                                        'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
321                                                                        'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
322                                                               u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
323                                                                          'http://www.w3.org/2000/10/swap/grammar/n3#object', 
324                                                                          'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
325                                                                          'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
326                                                               u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
327                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
328                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
329                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
330                                                               u']': [], 
331                                                               u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
332                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
333                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
334                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
335                                                               u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
336                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
337                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
338                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
339                                                               u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#verb', 
340                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#object', 
341                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#objecttail', 
342                                                                      'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail'], 
343                                                               u'}': []}, 
344   u'http://www.w3.org/2000/10/swap/grammar/n3#propertylisttail': {u'.': [], 
345                                                                   u';': [u';', 
346                                                                          'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
347                                                                   u']': [], 
348                                                                   u'}': []}, 
349   u'http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
350                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
351                                                                  u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
352                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
353                                                                  u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
354                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
355                                                                  u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
356                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
357                                                                  u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
358                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
359                                                                  u':': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
360                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
361                                                                  u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
362                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
363                                                                  u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
364                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
365                                                                  u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
366                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
367                                                                  u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
368                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
369                                                                  u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
370                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
371                                                                  u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
372                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist'], 
373                                                                  u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#subject', 
374                                                                         'http://www.w3.org/2000/10/swap/grammar/n3#propertylist']}, 
375   u'http://www.w3.org/2000/10/swap/grammar/n3#statement': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
376                                                            u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
377                                                            u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
378                                                            u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
379                                                            u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
380                                                            u':': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
381                                                            u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
382                                                            u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
383                                                            u'@forAll': ['http://www.w3.org/2000/10/swap/grammar/n3#universal'], 
384                                                            u'@forSome': ['http://www.w3.org/2000/10/swap/grammar/n3#existential'], 
385                                                            u'@keywords': ['http://www.w3.org/2000/10/swap/grammar/n3#declaration'], 
386                                                            u'@prefix': ['http://www.w3.org/2000/10/swap/grammar/n3#declaration'], 
387                                                            u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
388                                                            u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
389                                                            u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
390                                                            u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement'], 
391                                                            u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#simpleStatement']}, 
392   u'http://www.w3.org/2000/10/swap/grammar/n3#statementlist': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
393                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
394                                                                u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
395                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
396                                                                u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
397                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
398                                                                u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
399                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
400                                                                u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
401                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
402                                                                u':': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
403                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
404                                                                u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
405                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
406                                                                u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
407                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
408                                                                u'@forAll': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
409                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
410                                                                u'@forSome': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
411                                                                              'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
412                                                                u'@keywords': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
413                                                                               'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
414                                                                u'@prefix': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
415                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
416                                                                u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
417                                                                           'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
418                                                                u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
419                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
420                                                                u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
421                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
422                                                                u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
423                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
424                                                                u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
425                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementtail'], 
426                                                                u'}': []}, 
427   u'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
428                                                                             u'.', 
429                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
430                                                                      u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
431                                                                             u'.', 
432                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
433                                                                      u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
434                                                                             u'.', 
435                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
436                                                                      u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
437                                                                             u'.', 
438                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
439                                                                      u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
440                                                                             u'.', 
441                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
442                                                                      u':': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
443                                                                             u'.', 
444                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
445                                                                      u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
446                                                                             u'.', 
447                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
448                                                                      u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
449                                                                             u'.', 
450                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
451                                                                      u'@EOFDUMMY': [], 
452                                                                      u'@forAll': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
453                                                                                   u'.', 
454                                                                                   'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
455                                                                      u'@forSome': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
456                                                                                    u'.', 
457                                                                                    'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
458                                                                      u'@keywords': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
459                                                                                     u'.', 
460                                                                                     'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
461                                                                      u'@prefix': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
462                                                                                   u'.', 
463                                                                                   'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
464                                                                      u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
465                                                                                 u'.', 
466                                                                                 'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
467                                                                      u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
468                                                                             u'.', 
469                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
470                                                                      u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
471                                                                             u'.', 
472                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
473                                                                      u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
474                                                                             u'.', 
475                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional'], 
476                                                                      u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#statement', 
477                                                                             u'.', 
478                                                                             'http://www.w3.org/2000/10/swap/grammar/n3#statements_optional']}, 
479   u'http://www.w3.org/2000/10/swap/grammar/n3#statementtail': {u'.': [u'.', 
480                                                                       'http://www.w3.org/2000/10/swap/grammar/n3#statementlist'], 
481                                                                u'}': []}, 
482   u'http://www.w3.org/2000/10/swap/grammar/n3#subject': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
483                                                          u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
484                                                          u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
485                                                          u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
486                                                          u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
487                                                          u':': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
488                                                          u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
489                                                          u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
490                                                          u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
491                                                          u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
492                                                          u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
493                                                          u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
494                                                          u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#path']}, 
495   u'http://www.w3.org/2000/10/swap/grammar/n3#symbol': {u':': ['http://www.w3.org/2000/10/swap/grammar/n3#qname'], 
496                                                         u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#explicituri'], 
497                                                         u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#qname'], 
498                                                         u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#qname']}, 
499   u'http://www.w3.org/2000/10/swap/grammar/n3#universal': {u'@forAll': [u'@forAll', 
500                                                                         '_:jcOJHCYs33']}, 
501   u'http://www.w3.org/2000/10/swap/grammar/n3#verb': {u'"': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
502                                                       u'(': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
503                                                       u'+': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
504                                                       u'-': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
505                                                       u'0': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
506                                                       u':': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
507                                                       u'<': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
508                                                       u'<=': [u'<='], 
509                                                       u'=': [u'='], 
510                                                       u'=>': [u'=>'], 
511                                                       u'?': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
512                                                       u'@a': [u'@a'], 
513                                                       u'@has': [u'@has', 
514                                                                 'http://www.w3.org/2000/10/swap/grammar/n3#path'], 
515                                                       u'@is': [u'@is', 
516                                                                'http://www.w3.org/2000/10/swap/grammar/n3#path', 
517                                                                u'@of'], 
518                                                       u'@this': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
519                                                       u'[': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
520                                                       u'_': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
521                                                       u'a': ['http://www.w3.org/2000/10/swap/grammar/n3#path'], 
522                                                       u'{': ['http://www.w3.org/2000/10/swap/grammar/n3#path']}} 
523  regexps = { 
524     u'http://www.w3.org/2000/10/swap/grammar/n3#barename': re.compile(u'[a-zA-Z_][a-zA-Z0-9_]*'), 
525     u'http://www.w3.org/2000/10/swap/grammar/n3#variable': re.compile(u'\\?[a-zA-Z_][a-zA-Z0-9_]*'), 
526     u'http://www.w3.org/2000/10/swap/grammar/n3#qname': re.compile(u'(([a-zA-Z_][a-zA-Z0-9_]*)?:)?([a-zA-Z_][a-zA-Z0-9_-]*)?'), 
527     u'http://www.w3.org/2000/10/swap/grammar/n3#string': re.compile(u'("""[^"\\\\]*(?:(?:\\\\.|"(?!""))[^"\\\\]*)*""")|("[^"\\\\]*(?:\\\\.[^"\\\\]*)*")'), 
528     u'http://www.w3.org/2000/10/swap/grammar/n3#explicituri': re.compile(u'<[^>]*>'), 
529     u'http://www.w3.org/2000/10/swap/grammar/n3#langcode': re.compile(u'[a-z]+(-[a-z0-9]+)*'), 
530     u'http://www.w3.org/2000/10/swap/grammar/n3#numericliteral': re.compile(u'[-+]?[0-9]+(\\.[0-9]+)?(e[-+]?[0-9]+)?'), 
531  } 
532   
533  if __name__=="__main__": 
534     print __doc__ 
535