[
https://issues.apache.org/jira/browse/JENA-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281242#comment-17281242
]
ASF subversion and git services commented on JENA-2039:
-------------------------------------------------------
Commit 3fc46ac26feb2c175d5d4f8f4a053d5790ed744b in jena's branch
refs/heads/main from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=3fc46ac ]
Merge pull request #916 from afs/iri-more
JENA-2039: Fix and tests (IRI handling), and more IRI cleanup (JENA-2031)
> URI parsing fails
> -----------------
>
> Key: JENA-2039
> URL: https://issues.apache.org/jira/browse/JENA-2039
> Project: Apache Jena
> Issue Type: Bug
> Components: RIOT
> Reporter: Florian Kleedorfer
> Priority: Critical
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Depending on 3.18.0-SNAPSHOT, some of my tests started to fail recently. We
> are using URIs of the form 'wm:/abcde' - note the single slash. These URIs,
> it seems, can no longer be parsed.
> Here is a minimal example:
> {noformat}
> @prefix msg: <https://w3id.org/won/message#> .
> <wm:/jq15ga3aacsxbvl9nngw> a msg:Message .
> {noformat}
> This is the exception I get:
> {noformat}
> Exception in thread "main" org.apache.jena.riot.RiotException: [line: 3, col:
> 1 ] Bad IRI: <wm:/jq15ga3aacsxbvl9nngw> : Not an RDF IRI:
> wm:/jq15ga3aacsxbvl9nngw
> at
> org.apache.jena.riot.system.ErrorHandlerFactory$ErrorHandlerStd.error(ErrorHandlerFactory.java:146)
> at
> org.apache.jena.riot.system.ParserProfileStd.internalMakeIRI(ParserProfileStd.java:101)
> at
> org.apache.jena.riot.system.ParserProfileStd.resolveIRI(ParserProfileStd.java:81)
> at
> org.apache.jena.riot.system.ParserProfileStd.createURI(ParserProfileStd.java:162)
> at
> org.apache.jena.riot.system.ParserProfileStd.create(ParserProfileStd.java:234)
> at
> org.apache.jena.riot.lang.LangTurtleBase.tokenAsNode(LangTurtleBase.java:582)
> at
> org.apache.jena.riot.lang.LangTurtleBase.node(LangTurtleBase.java:414)
> at
> org.apache.jena.riot.lang.LangTriG.oneNamedGraphBlock2(LangTriG.java:115)
> at
> org.apache.jena.riot.lang.LangTriG.oneTopLevelElement(LangTriG.java:49)
> at
> org.apache.jena.riot.lang.LangTurtleBase.runParser(LangTurtleBase.java:79)
> at org.apache.jena.riot.lang.LangBase.parse(LangBase.java:43)
> at
> org.apache.jena.riot.RDFParserRegistry$ReaderRIOTLang.read(RDFParserRegistry.java:185)
> at org.apache.jena.riot.RDFParser.read(RDFParser.java:356)
> at org.apache.jena.riot.RDFParser.parseNotUri(RDFParser.java:346)
> at org.apache.jena.riot.RDFParser.parse(RDFParser.java:292)
> at
> org.apache.jena.riot.RDFParserBuilder.parse(RDFParserBuilder.java:539)
> at
> org.apache.jena.riot.RDFDataMgr.parseFromInputStream(RDFDataMgr.java:901)
> at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:590)
> at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:568)
> at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:559)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)