SVG

From Creative Commons
Revision as of 23:50, 1 May 2006 by Jon Phillips (talk | contribs) (Code)
Jump to: navigation, search


Scalable Vector Graphics (SVG) SVG is a language for describing two-dimensional graphics and graphical applications in XML. It supports placing metadata for the whole document and per object.

Developer Challenges

Develop software that embeds license and metadata into SVG files (XML-based). SVG (Scalable Vector Graphics) includes support for RDF/XML metadata. We need examples of including license metadata in SVG for the purposes of denoting that a file itself is published under a Creative Commons license or that individual components of the file are licensed. Even better if you can use dc:source to specify parent works. SVG has similar support for RDF/XML metadata. Read more about the motivation in this cc-metadata post.


Implementations

Examples

Code

Sample

This is how to include metadata inside of an SVG file using CC metadata, licensing and dublin core.

<svg>
<metadata>
   <rdf:RDF
      xmlns="http://web.resource.org/cc/"
      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://web.resource.org/cc/PublicDomain"><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://web.resource.org/cc/PublicDomain" />
      </Work>
      <License rdf:about="http://web.resource.org/cc/PublicDomain">
         <permits rdf:resource="http://web.resource.org/cc/Reproduction" />
         <permits rdf:resource="http://web.resource.org/cc/Distribution" />
         <permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
      </License>
   </rdf:RDF>
</metadata>
<!-- The rest of the image goes here -->
</svg>

Mockups

Please add your example, screenshot, mockup, etc here :)

Inkscape-0.44SVN-licenses.png

Inkscape's gtkmm-based license chooser

Inkscape-0.44SVN-metadata.png

Inkscape's gtkmm-based metadata chooser

TODO

  • Please help by adding you todo here :)