Reverse Engineering of Temporal Queries Mediated by LTL Ontologies