<?xml version="1.0"?>
<fragment>
  <pattern expression='union|UNION'>
    <token>UNION</token>
  </pattern>  
  <pattern expression='\*'>
    <token>ASTERISK</token>
  </pattern>  
  <pattern expression='base|BASE'>
    <token>BASE</token>
  </pattern>
  <pattern expression='prefix|PREFIX'>
    <token>PREFIX</token>
  </pattern>
  <pattern expression='select|SELECT'>
    <token>SELECT</token>
  </pattern>
  <pattern expression='distinct|DISTINCT'>
    <token>DISTINCT</token>
  </pattern>
  <pattern expression='from|FROM'>
    <token>FROM</token>
  </pattern>
  <pattern expression='named|NAMED'>
    <token>NAMED</token>
  </pattern>
  <pattern expression='optional|OPTIONAL'>
    <token>OPTIONAL</token>
  </pattern>
  <pattern expression='filter|FILTER'>
    <token>FILTER</token>
  </pattern>
  <pattern expression='graph|GRAPH'>
    <token>GRAPH</token>
  </pattern>
  <pattern expression='where|WHERE'>
    <token>WHERE</token>
  </pattern>
  <pattern expression='order|ORDER'>
    <token>ORDER</token>
  </pattern>
  <pattern expression='by|BY'>
    <token>BY</token>
  </pattern>
  <pattern expression='asc|ASC'>
    <token>ASC</token>
  </pattern>
  <pattern expression='ASK'>
    <token>ASK</token>
  </pattern>  
  <pattern expression='CONSTRUCT'>
    <token>CONSTRUCT</token>
  </pattern>      
  <pattern expression='DESCRIBE'>
    <token>DESCRIBE</token>
  </pattern>          
  <pattern expression='desc|DESC'>
    <token>DESC</token>
  </pattern>
  <pattern expression='limit|LIMIT'>
    <token>LIMIT</token>
  </pattern>
  <pattern expression='offset|OFFSET'>
    <token>OFFSET</token>
  </pattern>
  <pattern expression='str|STR'>
    <token>STR</token>
  </pattern>
  <pattern expression='lang|LANG'>
    <token>LANG</token>
  </pattern>
  <pattern expression='langMatches|LANGMATCHES'>
    <token>LANGMATCHES</token>
  </pattern>
  <pattern expression='datatype|DATATYPE'>
    <token>DATATYPE</token>
  </pattern>
  <pattern expression='isIRI'>
    <token>isIRI</token>
  </pattern>
  <pattern expression='isUri|isURI'>
    <token>isURI</token>
  </pattern>
  <pattern expression='isBlank|isBLANK'>
    <token>isBLANK</token>
  </pattern>
  <pattern expression='isLiteral|isLITERAL'>
    <token>isLITERAL</token>
  </pattern>
  <pattern expression='bound|BOUND'>
    <token>BOUND</token>
  </pattern>
  <pattern expression='regex|REGEX'>
    <token>REGEX</token>
  </pattern>
  <pattern expression='true'>
     <token>TRUE</token>
  </pattern>
  <pattern expression='false'>
    <token>FALSE</token>
  </pattern>
  <pattern expression='a'>
    <token>A</token>
  </pattern>  
  <pattern expression='-'>
    <token>MINUS</token>
  </pattern>
  <pattern expression='\+'>
    <token>PLUS</token>  
  </pattern>
  <pattern expression='&amp;&amp;'>
    <token>DOUBLE_AMPERSAND</token>
  </pattern>  
  <pattern expression='\|\|'>
    <token>DOUBLE_PIPE</token>
  </pattern>  
  <pattern expression='!'>
    <token>BANG</token>
  </pattern>  
  <pattern expression='\^\^'>
    <token>DOUBLE_HAT</token>
  </pattern>  
  <pattern expression=','>
    <token>COMMA</token>
  </pattern>  
  <pattern expression='\:'>
    <token>COLON</token>
  </pattern>      
  <pattern expression= '\?'>
    <token>QUESTION_MARK</token>
  </pattern>  
  <pattern expression='\$'>
    <token>DOLLAR</token>
  </pattern>
  <pattern expression='"/"'>
    <token>FORWARDSLASH</token>
  </pattern>  
  <pattern expression='\('>
    <token>LEFT_PAREN</token>
  </pattern>
  <pattern expression='\)'>
    <token>RIGHT_PAREN</token>
  </pattern>
  <pattern expression='\['>
    <token>LEFT_SQUARE</token>
  </pattern>
  <pattern expression='\]'>
    <token>RIGHT_SQUARE</token>
  </pattern> 
  <pattern expression="=">
    <token>EQUALITY_OP</token>
  </pattern>
  <pattern expression="!=">
    <token>NOT_EQUAL</token>
  </pattern>
  <pattern expression="&lt;">
    <token>LESS_THAN</token>
  </pattern>
  <pattern expression=">">
    <token>GREATER_THAN</token>
  </pattern>
  <pattern expression="&lt;=">
    <token>LESS_THAN_EQUAL</token>
  </pattern>
  <pattern expression=">=">
    <token>GREATER_THAN_EQUAL</token>
  </pattern>  
  <pattern expression=';'>
    <token>SEMICOLON</token>
  </pattern>
  <pattern expression='\{'>
    <token>LEFT_CURLY</token>
  </pattern>
  <pattern expression='\}'>
    <token>RIGHT_CURLY</token>
  </pattern>
  <pattern expression='\.'>
    <token>DOT</token>
  </pattern>
</fragment>