ebremer commented on issue #1879:
URL: https://github.com/apache/jena/issues/1879#issuecomment-1561886244

   It was pulled from https://orcid.org/0000-0003-3039-2116 using Accept header 
"text/turtle" and then saved to file.  The ORCID people appear to be exporting 
it via Jena (4.4.0 I think) See: https://github.com/ORCID/ORCID-Source
   When I was reading this ttl file (with many others) back into a in-memory 
Model with RDFDataMgr the error was thrown.  To deal with it for now, I made a 
custom ErrorHandler and used the below (instead of RDFDataMgr):
   ```
                       ERR err = new ERR();
                       RDFParser parser = RDFParserBuilder.create()
                           .checking(true)
                           .strict(true)
                           .forceLang(Lang.TURTLE)
                           .source(fis)
                           .errorHandler(err)
                           .build();
   ```
   If ERR detects an error, I used it to trigger another method to check any 
Object URIs for that graph import for bad characters and swapped them for a 
corrected versions.  It's sufficient for now as I am just currently studying 
ORCIDs API for the moment.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to