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); ?>