MARMOTTA-186: updated parser to accept '.' in curies

Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/29b22583
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/29b22583
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/29b22583

Branch: refs/heads/develop
Commit: 29b22583c9dde3a2d45082a87583f495c311a55a
Parents: 62ed603
Author: Jakob Frank <[email protected]>
Authored: Wed Apr 3 15:29:35 2013 +0200
Committer: Jakob Frank <[email protected]>
Committed: Wed Apr 3 15:29:35 2013 +0200

----------------------------------------------------------------------
 .../javacc/at/newmedialab/ldpath/parser/rdfpath.jj |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/29b22583/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
----------------------------------------------------------------------
diff --git 
a/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
 
b/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
index dc5d308..c91a6a9 100644
--- 
a/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
+++ 
b/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
@@ -388,13 +388,13 @@ TOKEN : /* OPERATORS */
 TOKEN :
 {
     < URI: ["a"-"z","A"-"Z"](["a"-"z","A"-"Z","0"-"9","+","-","."])* "://"  
(["a"-"z","A"-"Z","0"-"9",";","/","?",":","@","&","=","+","$",".","-","_","!","~","*","'","%"])+
 ("#" 
(["a"-"z","A"-"Z","0"-"9",";","/","?",":","@","&","=","+","$",".","-","_","!","~","*","'","%"])*)?
 | "#" 
(["a"-"z","A"-"Z","0"-"9",";","/","?",":","@","&","=","+","$",".","-","_","!","~","*","'","%"])+>
 |
-    < IDENTIFIER: 
["a"-"z","A"-"Z","0"-"9","_"](["a"-"z","A"-"Z","0"-"9","_","'","-"])* > |
+    < IDENTIFIER: 
["a"-"z","A"-"Z","0"-"9","_"](["a"-"z","A"-"Z","0"-"9","_","'","-", "."])* > |
     < #URICHAR: 
["a"-"z","A"-"Z","0"-"9",";","/","?",":","@","&","=","+","$",".","-","_","!","~","*","'","%"]
 >
 }
 
 Map<String, String> Namespaces() :
 {
-    HashMap<String, String> ns = new HashMap<String, String>();
+    Map<String, String> ns = new HashMap<String, String>();
     Entry<String, String> namespace = null;
 }
 {

Reply via email to