You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Chris Beer (JIRA)" <ji...@apache.org> on 2013/07/09 20:09:49 UTC
[jira] [Created] (MARMOTTA-270) RDFPath grammar for URI is too
restrictive
Chris Beer created MARMOTTA-270:
-----------------------------------
Summary: RDFPath grammar for URI is too restrictive
Key: MARMOTTA-270
URL: https://issues.apache.org/jira/browse/MARMOTTA-270
Project: Marmotta
Issue Type: Bug
Components: LDPath
Affects Versions: 3.0-incubating
Reporter: Chris Beer
Assignee: Jakob Frank
The RDFPath grammar in LDPath is too restrictive, and only validates URIs containing "://":
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",";","/","?",":","@","&","=","+","$",".","-","_","!","~","*","'","%"])+> |
[https://github.com/apache/incubator-marmotta/blob/master/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj#L390]
So, a program like:
@prefix fedora : <http://fedora.info/fedora-system:def/internal#> ;
is valid, but a program containing:
@prefix fedora : <info:fedora/fedora-system:def/internal#> ;
fails with the exception:
Caused by: org.apache.marmotta.ldpath.parser.ParseException: Encountered " "@prefix" "@prefix "" at line 1, column 1. Was expecting: <EOF>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira