Difference between revisions of "SVG"

From Creative Commons
Jump to: navigation, search
Line 1: Line 1:
[[Category:Developer]]
+
{{Filetype
[[Category:filetype]]
+
|license_url=yes
[[Category:XML]]
+
|web_statement=yes
[[Category:example]]
+
|more_permissions=yes
[[Category:metadata]]
+
}}
[[Category:SVG]]
 
 
 
 
[http://www.w3.org/Graphics/SVG 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.
 
[http://www.w3.org/Graphics/SVG 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 ==
+
== Implementations ==
 
 
Develop software that embeds license and metadata into SVG files (XML-based). [[SVG]] (Scalable Vector Graphics) includes support for [http://www.w3.org/TR/smil20/metadata.html#edef-metadata 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 [http://www.w3.org/TR/SVG11/metadata.html RDF/XML metadata]. Read more about the motivation in this [http://lists.ibiblio.org/pipermail/cc-metadata/2003-October/000185.html cc-metadata] post.
 
 
 
 
 
=== Implementations ===
 
  
 
* [[Inkscape]], an open source drawing tool
 
* [[Inkscape]], an open source drawing tool
 
* [http://www.openclipart.org/ Open Clip Art Library], a public domain collection of user-submitted clip art
 
* [http://www.openclipart.org/ Open Clip Art Library], a public domain collection of user-submitted clip art
 
* [http://search.cpan.org/~bryce/SVG-Metadata-0.28/ SVG::Metadata] by Bryce Harrington is a PERL module for including metadata inside an SVG (used by [http://www.openclipart.org Open Clip Art Library].
 
* [http://search.cpan.org/~bryce/SVG-Metadata-0.28/ SVG::Metadata] by Bryce Harrington is a PERL module for including metadata inside an SVG (used by [http://www.openclipart.org Open Clip Art Library].
* Please add yours here :)
 
  
=== Examples ===
+
== Examples ==
  
 
=== Code ===
 
=== Code ===
Line 31: Line 23:
 
* 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 ====
+
=== Sample ===
  
 
This is how to include metadata inside of an SVG file using CC metadata, licensing and dublin core.
 
This is how to include metadata inside of an SVG file using CC metadata, licensing and dublin core.
Line 39: Line 31:
 
<metadata>
 
<metadata>
 
   <rdf:RDF
 
   <rdf:RDF
       xmlns="http://web.resource.org/cc/"
+
       xmlns="http://creativecommons.org/ns#"
 
       xmlns:dc="http://purl.org/dc/elements/1.1/"
 
       xmlns:dc="http://purl.org/dc/elements/1.1/"
 
       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 
       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
Line 49: Line 41:
 
         <dc:publisher><Agent rdf:about="http://www.openclipart.org/"><dc:title>Open Clip Art Project</dc:title></Agent></dc:publisher>
 
         <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: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:date>2004-04-27</dc:date>
 
         <dc:format>image/svg+xml</dc:format>
 
         <dc:format>image/svg+xml</dc:format>
Line 55: Line 46:
 
         <license rdf:resource="http://web.resource.org/cc/PublicDomain" />
 
         <license rdf:resource="http://web.resource.org/cc/PublicDomain" />
 
       </Work>
 
       </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>
 
   </rdf:RDF>
 
</metadata>
 
</metadata>
Line 65: Line 51:
 
</svg>
 
</svg>
 
</pre>
 
</pre>
 
{{Challenge_Enabled}}
 

Revision as of 17:39, 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

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://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>