Difference between revisions of "SVG"

From Creative Commons
Jump to: navigation, search
 
Line 13: Line 13:
  
 
== Examples ==
 
== Examples ==
 
=== Code ===
 
  
 
* Here is the code that is in [[Inkscape]]'s SVN repository for making the License and Metadata Dialogs possible. Please use them as examples for coding your own metadata and license selectors for use in SVG:
 
* Here is the code that is in [[Inkscape]]'s SVN repository for making the License and Metadata Dialogs possible. Please use them as examples for coding your own metadata and license selectors for use in SVG:
Line 22: Line 20:
 
** [http://svn.sourceforge.net/viewcvs.cgi/inkscape/inkscape/trunk/src/dialogs/rdf.h?view=log rdf.h]
 
** [http://svn.sourceforge.net/viewcvs.cgi/inkscape/inkscape/trunk/src/dialogs/rdf.h?view=log rdf.h]
 
* Here is the [http://openclipart.org/wiki/index.php/Metadata_Discussion discussion page at the Open Clip Art Library wiki] about SVG Metadata.
 
* Here is the [http://openclipart.org/wiki/index.php/Metadata_Discussion discussion page at the Open Clip Art Library wiki] about SVG Metadata.
 
=== Sample ===
 
 
This is how to include metadata inside of an SVG file using CC metadata, licensing and dublin core.
 
 
<pre>
 
<svg>
 
<metadata>
 
  <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: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>
 
  </rdf:RDF>
 
</metadata>
 
<!-- The rest of the image goes here -->
 
</svg>
 
</pre>
 

Latest revision as of 18:40, 4 March 2008

File Type Information
Supports embedding license URL: supports_license_url::yes
Supports embedding web statement: supports_web_statement::yes
Supports embedding more permissions: supports_more_permissions::yes
Metadata Location: [[Metadata location::{{{metadata_location}}}]] | (unknown) }}
Metadata Format: [[Metadata format::{{{metadata_format}}}]] | (unknown) }}


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.

Implementations

Examples