Paste number 19362: Checksum Approaches

Index of paste annotations: 1

Paste number 19362: Checksum Approaches
Pasted by: sbp
2 years, 8 months ago
#swhack
Paste contents:
Raw Source | XML | Display As
Context:

 * http://downlode.org/rdf/file-properties/ (by Earle Martin)
 * http://chatlogs.planetrdf.com/swig/2006-04-25.html#T18-01-57

Current approach:

  <fp:checksum>
    <fp:Checksum>
      <fp:generator>
        <wn:Algorithm rdf:about="http://en.wikipedia.org/wiki/MD5" />
      </fp:generator>
      <fp:checksumValue>e89760b5510974acbea8ff4c77a1a5c0</fp:checksumValue>
    </fp:Checksum>
  </fp:checksum>

Flat approach, suggested by theorbtwo on #swig:

   <fp:md5>e89760b5510974acbea8ff4c77a1a5c0</fp:md5>

Datatypes approach:

   <fp:checksum rdf:datatype="http://example.org/datatypes/md5"
                >e89760b5510974acbea8ff4c77a1a5c0</fp:checksum>

Interpretation properties approach:

   <fp:checksum rdf:type="Resource">
      <fp:md5>e89760b5510974acbea8ff4c77a1a5c0</fp:md5>
   </fp:checksum>

Note how the flat, datatypes, and interpretation approaches all incur significantly less overhead than the current approach; but as to which of them is preferable, it's difficult to say.

Annotations for this paste:

Annotation number 1: Correction
Pasted by: sbp
2 years, 8 months ago
Paste contents:
Raw Source | Display As
Nuts, make that:

   <fp:checksum rdf:parseType="Resource">
      <fp:md5>e89760b5510974acbea8ff4c77a1a5c0</fp:md5>
   </fp:checksum>

Colorize as:
Show Line Numbers
Index of paste annotations: 1

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.