code: public static RdfReader createDereferenceReader(String uri) {
          Collection<RdfReader> readers = new ArrayList<>();
          if (!IOUtils.isFile(uri)) {
              readers.add(new RdfDereferenceReader(uri));
              //readers.add(new RDFaReader(uri));
          } else {
              readers.add(new RdfStreamReader(uri));
              readers.add(RdfReaderFactory.createResourceReader(uri));
          }
  
          return new RdfFirstSuccessReader(readers);
      }
docs: Generates a Dereference reader. This can be either a remote url, a local file or a resource
  
  @param uri a uri that can be a remote (http) resource, a local file or a java resource object
  @return a RDFFirstSuccessReader that tries to resolve 1) remote 2) local 3) resources