Usually metadata in the form of RDF triples are stored within databases, called triplestores. However, in order to expose them through a web page in the RDFa format, you need a way to dynamically query the RDF database and the results should be returned as RDFa annotations inside HTML code. I could not locate tools / frameworks that ease such a task. Should this be done programmatically through PHP, ASP, etc.? Or is there an easier way?