Sidecar File

From Creative Commons
Revision as of 18:15, 26 June 2007 by Jason Kivlighn (talk | contribs) (RDF Sample)
Jump to: navigation, search


This is a specification for companion file metadata. This takes the form of an associated RDF or XMP file that has metadata and licensing that is included along with a work.

Thus if you had a file such as the one referenced, barcode_ean13.svg, one would create a file barcode_ean13.rdf that would contain the following. The rdf:about reference in <Work /> tag is very important for linking both relative and absolute information to a file.

Similarly, if you want to use XMP for the companion file, this is acceptable as well. See the example.

RDF Sample

   <rdf:RDF
      xmlns="http://creativecommons.org/ns#"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   >
      <Work rdf:about="http://www.openclipart.org/incoming/2004/04/contents/barcode_ean13.svg">
         <dc:title>EAN-13 Bar Code</dc:title>
         <dc:description>A Bar Code: EAN-13.</dc:description>
         <dc:subject>barcode, bar code, bar, code, UPC, EAN, EAN-13, universal product code, universal, product, code, product code</dc:subject>
         <dc:publisher><Agent rdf:about="http://www.openclipart.org/"><dc:title>Open Clip Art Project</dc:title></Agent></dc:publisher>
         <dc:creator><Agent rdf:about="http://www.theworths.org/richard/"><dc:title>Richard D. Worth</dc:title></Agent></dc:creator>
         <dc:rights><Agent rdf:about="http://creativecommons.org/ns#"><dc:title>Public Domain</dc:title></Agent></dc:rights>
         <dc:date>2004-04-27</dc:date>
         <dc:format>image/svg+xml</dc:format>
         <dc:type>http://purl.org/dc/dcmitype/StillImage</dc:type>
         <license rdf:resource="http://creativecommons.org/ns#PublicDomain" />
      </Work>
      <License rdf:about="http://creativecommons.org/ns#PublicDomain">
         <permits rdf:resource="http://creativecommons.org/ns#Reproduction" />
         <permits rdf:resource="http://creativecommons.org/ns#Distribution" />
         <permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
      </License>
   </rdf:RDF>

NOTE: The above #Sample does not include all of the Dublin Core elements.

XMP Sample

<x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 <rdf:Description rdf:about=""
   xmlns:xapRights="http://ns.adobe.com/xap/1.0/rights/">
  <xapRights:Copyright>This work is licensed to the public under the Creative Commons Attribution-ShareAlike license http://creativecommons.org/licenses/by-sa/2.0/ verify at http://example.com/svg-metadata.html</xapRights:Copyright>
  <xapRights:WebStatement>http://example.com/svg-metadata.html</xapRights:WebStatement>
  <xapRights:Marked>True</xapRights:Marked>
 </rdf:Description>
 <rdf:Description rdf:about=""
   xmlns:cc="http://creativecommons.org/ns#">
  <cc:license>http://creativecommons.org/licenses/by-sa/2.0/</cc:license>
 </rdf:Description>
 <rdf:Description rdf:about=""
   xmlns:dc="http://purl.org/dc/elements/1.1/">
  <dc:creator>
   <rdf:Seq>
    <rdf:li>John Doe</rdf:li>
    <rdf:li>Jane Doe</rdf:li>
   </rdf:Seq>
  </dc:creator>
  <dc:title>The title</dc:title>
  <dc:description>A description</dc:description>
  <dc:date>2007-01-01</dc:date>
  <dc:format>image/svg+xml</dc:format>
 </rdf:Description>
</rdf:RDF>
</x:xmpmeta>

Developer Challenges

It is impractical to embed metadata in some file formats, and, it should be optional to store metadata outside of a file. So we need a specification for a "companion" metadata file that would define license and other metadata information. This could take

Implementations

  • Open Clip Art Library puts RDF metadata and licensning info into a package of clip art that is named with *.rdf.
  • Please add your implementation here :)

Examples

TODO

  • Please add your TODO here :)