Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-2097

UUID IRIs cause RiotException

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Jena 4.0.0
    • Jena 4.1.0
    • IRI, RIOT
    • None

    Description

      Report: users@ 2021-04-27.

      Model model = ModelFactory.createDefaultModel();
      String data = "<urn:uuid:4f115b8c-5300-4e4d-84f4-1a7593e5fd57> <
      http://ex.org/a> <http://ex.org/b> .";
      try (ByteArrayInputStream in = new
      ByteArrayInputStream(data.getBytes(StandardCharsets.UTF_8))) {
          RDFDataMgr.read(model, in, Lang.NTRIPLES);
      }
      

      Gives error:

      org.apache.jena.riot.RiotException: [line: 1, col: 1 ] Bad IRI: Not a valid
      UUID string: urn:uuid:4f115b8c-5300-4e4d-84f4-1a7593e5fd57 
      at org.apache.jena.riot.system.ErrorHandlerFactory$ErrorHandlerStd.error(ErrorHandlerFactory.java:146)
      ...
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andy Andy Seaborne
            andy Andy Seaborne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment