You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/07/11 17:05:51 UTC
[jira] [Commented] (MARMOTTA-270) RDFPath grammar for URI is too
restrictive
[ https://issues.apache.org/jira/browse/MARMOTTA-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13705898#comment-13705898 ]
ASF subversion and git services commented on MARMOTTA-270:
----------------------------------------------------------
Commit 839c83096d43f05d882a575cb78f99d0e0d8d6d6 in branch refs/heads/develop from [~wastl]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-marmotta.git;h=839c830 ]
less restrictive URI syntax in LDPath parser (fixes MARMOTTA-270)
> 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