refactoring with Name.java for prov-rdf, prov-n, prov-json