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/db0de752 Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/db0de752 Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/db0de752 Branch: refs/heads/develop Commit: db0de752c17e7333c06029252872c13d5f1f4d1c Parents: afdc86a Author: Jakob Frank <[email protected]> Authored: Wed Apr 3 15:29:35 2013 +0200 Committer: Sergio Fernández <[email protected]> Committed: Mon Apr 8 18:11:09 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/db0de752/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 b490fb8..fb8b482 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; } {
