From 9edcf1e11e3dea94fb71a5fa02794265a71856e9 Mon Sep 17 00:00:00 2001 From: Joaquin Vanschoren Date: Fri, 16 Aug 2019 22:45:16 +0200 Subject: [PATCH] force download of RDF files --- openml_OS/views/rdf_main.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openml_OS/views/rdf_main.php b/openml_OS/views/rdf_main.php index a5b86cede..26ca72f3a 100644 --- a/openml_OS/views/rdf_main.php +++ b/openml_OS/views/rdf_main.php @@ -20,5 +20,9 @@ $getParams['id'] = $info[array_search('t',$info)+1]; } $command = 'cd ' . $rdfize_path . '&& ./rdfize.sh ' . $getParams['type'] . ' ' . $getParams['id']; + + $filename = 'OpenML_' . $getParams['type'] . '_' . $getParams['id'] . '.rdf'; + header('Content-Disposition: attachment; filename="'.$filename.'"'); + echo shell_exec($command); ?>