NIHVIVO-1290 Code change for rdf export feature
This commit is contained in:
parent
593ce19e13
commit
13c1808d38
1 changed files with 9 additions and 0 deletions
|
@ -141,6 +141,15 @@ public class JenaExportController extends BaseEditController {
|
||||||
}
|
}
|
||||||
|
|
||||||
response.setContentType( mime );
|
response.setContentType( mime );
|
||||||
|
if(mime.equals("application/rdf+xml"))
|
||||||
|
response.setHeader("content-disposition", "attachment; filename=" + "export.rdf");
|
||||||
|
else if(mime.equals("text/n3"))
|
||||||
|
response.setHeader("content-disposition", "attachment; filename=" + "export.n3");
|
||||||
|
else if(mime.equals("text/plain"))
|
||||||
|
response.setHeader("content-disposition", "attachment; filename=" + "export.txt");
|
||||||
|
else if(mime.equals("application/x-turtle"))
|
||||||
|
response.setHeader("content-disposition", "attachment; filename=" + "export.ttl");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
OutputStream outStream = response.getOutputStream();
|
OutputStream outStream = response.getOutputStream();
|
||||||
if ( formatParam.startsWith("RDF/XML") ) {
|
if ( formatParam.startsWith("RDF/XML") ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue