summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2013-06-05 19:41:42 +0200
committerChristoph Helma <helma@in-silico.ch>2013-06-05 19:41:42 +0200
commit183ccb509592f4a9cf0c473c5a3ebcd957f7bb70 (patch)
treeccf40c09d2831684da2e79badf56f667a8adabf1 /lib/opentox.rb
parentb0bd56e80eedde63c9e679acb7bf5b522e7b7988 (diff)
rdf serialisation of modified objects fixed. DC.modified removed.
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
index ac174f3..8817798 100644
--- a/lib/opentox.rb
+++ b/lib/opentox.rb
@@ -109,7 +109,7 @@ module OpenTox
def put wait=true, mime_type="text/plain"
bad_request_error "Mime type #{mime_type} is not supported. Please use 'text/plain' (default) or 'application/rdf+xml'." unless mime_type == "text/plain" or mime_type == "application/rdf+xml"
@metadata[RDF::OT.created_at] = DateTime.now unless URI.accessible? @uri, @subjectid
- @metadata[RDF::DC.modified] = DateTime.now
+ #@metadata[RDF::DC.modified] = DateTime.now
case mime_type
when 'text/plain'
body = self.to_ntriples
@@ -131,7 +131,7 @@ module OpenTox
end
def create_rdf
- @rdf = RDF::Graph.new if @rdf.empty? or URI.task?(@uri)
+ @rdf = RDF::Graph.new #if @rdf.empty? or URI.task?(@uri)
@metadata[RDF.type] ||= eval("RDF::OT."+self.class.to_s.split('::').last)
@metadata[RDF::DC.date] ||= DateTime.now
@metadata.each do |predicate,values|