convert http or uri into rdf:resource for -bash