Resource res=Resource.uriRef(urify(p.getId())); ProvenanceProcess rdfProcess; if (p.getValue() instanceof String) { rdfProcess = pcf.newProcess((String)p.getValue(),res); } else { logger.warn("how to serialise process value? " + p.getValue().toString()); rdfProcess = pcf.newProcess(p.getValue().toString(),res);