code: public void convertToJsonld(InputStream in, OutputStream os)
  			throws IOException {
  		
  		File inputProcessedFile = preProcessFile(in);
  		LOG.info("OWl File processed successfully ");
  		
  		// print current time
  		SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
  		LOG.info("Conversion RDF to JSONLD started "
  				+ sdf.format(Calendar.getInstance().getTime()));
  
  		// create an empty model
  		Model modelJena = ModelFactory.createDefaultModel();
  		InputStream internalInputStream = new FileInputStream(inputProcessedFile);
  		// read the RDF/XML file
  		RDFDataMgr.read(modelJena, internalInputStream, Lang.RDFXML);
  		LOG.info("Read into Model finished " + sdf.format(Calendar.getInstance().getTime()));
  
  		try { //close quietly and delete the temp. input file
  			internalInputStream.close();
  			inputProcessedFile.delete();
  		} catch(Exception e) {}
  
  		RDFDataMgr.write(os, modelJena, Lang.JSONLD);
  		LOG.info("Conversion RDF to JSONLD finished " + sdf.format(Calendar.getInstance().getTime()));
  		LOG.info(" JSONLD file " + " is written successfully.");
  
  		try { //close, flush quietly
  			os.close();
  		} catch(Exception e) {}
  	}
docs: /*
  Convert inputstream in owl/rdf format to outputsream in jsonld format