[
https://issues.apache.org/jira/browse/JENA-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16457177#comment-16457177
]
ASF GitHub Bot commented on JENA-1535:
--------------------------------------
Github user kinow commented on a diff in the pull request:
https://github.com/apache/jena/pull/410#discussion_r184821458
--- Diff: jena-cmds/src/main/java/riotcmd/CmdLangParse.java ---
@@ -218,8 +218,14 @@ public ParseRecord parseFile(String filename) {
RDFParserBuilder builder = RDFParser.create();
if ( baseURI != null )
builder.base(baseURI);
- Lang lang = selectLang(null, null, RDFLanguages.NQUADS) ;
- builder.lang(lang);
+ if ( modLangParse.getLang() != null )
+ // Always use the command line specified synatx.
--- End diff --
s/synatx/syntax
> riot argument "--syntax" should be used as syntax, not as a hint.
> -----------------------------------------------------------------
>
> Key: JENA-1535
> URL: https://issues.apache.org/jira/browse/JENA-1535
> Project: Apache Jena
> Issue Type: Improvement
> Affects Versions: Jena 3.7.0
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Minor
>
> {{-\-syntax}} sets the parser builder language hint, which is used as a
> fallback; the file extension will be used, not the command line syntax. This
> is a regression introduced when {{RDFParserBuilder}} was incorporated.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)