aboutsummaryrefslogtreecommitdiff
path: root/src/rdf.cc
diff options
context:
space:
mode:
authortradke <tradke@83718e91-0e4f-0410-abf4-91180603181f>2007-10-30 17:23:09 +0000
committertradke <tradke@83718e91-0e4f-0410-abf4-91180603181f>2007-10-30 17:23:09 +0000
commit3313bb4636910f044a229ebafd6fa7a735a4dda4 (patch)
tree3372b0c745bb63471e76b6f596b4a8fc4b089016 /src/rdf.cc
parent4aa4212b4c311d8fa88c2c12270e5c7500aaf913 (diff)
Added new integer parameter Formaline::metadata_lifetime to specify a lifetime
for announced metadata. Default is 100 hours. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@143 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/rdf.cc')
-rw-r--r--src/rdf.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rdf.cc b/src/rdf.cc
index 012358a..49d2ab3 100644
--- a/src/rdf.cc
+++ b/src/rdf.cc
@@ -471,7 +471,9 @@ namespace Formaline
databuf
<< (get_state() == initial ? "PUT" : "POST")
<< " /context/CactusSimulations/" << jobID;
-// if (get_state() != initial) databuf << "?action=update";
+ // set a metadata lifetime if requested by the user
+ // (Formaline::time_to_live is hours but the RDF service wants seconds)
+ if (metadata_lifetime) databuf << "?ttl=" << (metadata_lifetime * 3600);
databuf << " HTTP/1.0\r\n"
<< "Host: " << rdf_hostname[i] << "\r\n"
<< "Content-Type: application/rdf+xml\r\n"