metadata: add an rdf::query::literal helper function