title: How can you change the data type (or some values) in a set of triples?
body: <p>Say that someone you know accidentally inserted some triples into an RDF database with a datatype of xsd:datetime instead of the proper xsd:dateTime. What's the simplest way to correct this?</p>
  
  <p>I know I can do something like this to find the bad data:</p>
  
  <pre><code>select * where {
    ?s ?p ?o.
    filter (datatype(?o)=xsd:datetime)
  }
  </code></pre>
  
  <p>And I could take those results, fix them up in a text editor, delete the bad ones and insert the good ones...  but I have to believe/hope there is an easier way.</p>