lewismc commented on a change in pull request #144: ANY23-433 upgrade rdf4j to 
v3.0.0
URL: https://github.com/apache/any23/pull/144#discussion_r328212214
 
 

 ##########
 File path: 
core/src/main/java/org/apache/any23/extractor/rdf/BaseRDFExtractor.java
 ##########
 @@ -93,36 +90,15 @@ public void run(
     ) throws IOException, ExtractionException {
         try {
             final RDFParser parser = getParser(extractionContext, 
extractionResult);
-
-            RDFFormat format = parser.getRDFFormat();
-
-            if (format.hasFileExtension("jsonld") || 
format.hasMIMEType("application/ld+json")) {
-                in = new JsonCleaningInputStream(in);
-            }
-
             parser.parse(in, extractionContext.getDocumentIRI().stringValue());
         } catch (Exception ex) {
-            // ANY23-420: jsonld-java can sometimes throw 
IllegalArgumentException,
 
 Review comment:
   I like your retro-active move of this code down into 
```JSONLDExtractor.java```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to