[backend] add get_metadata and reindent sparql.