W3C home > Mailing lists > Public > www-svg@w3.org > February 2007

Re: MetaData SVG

From: Doug Schepers <doug.schepers@vectoreal.com>
Date: Tue, 27 Feb 2007 11:33:18 -0500
Message-ID: <45E45D4E.8040602@vectoreal.com>
To: Thibaud Elziere <thibaud@fotolia.com>
Cc: www-svg@w3.org
Hi, Thibaud-

Thibaud Elziere wrote:
> Fotolia (www.fotolia.com) will soon announce the launch of a vector 
> bank. The specificity of this vector bank is that only SVG format will 
> be accepted. 

Sounds great!

> We already accept images (JPG) and we use IPTC metadata to 
> embed information within images (title, keywords etc). We are looking 
> for the best way to do the same with SVG. Which data structure do you 
> think will be the best for SVG format ?

Well, first you should be aware that, as XML, SVG can contain its own 
metadata natively.  The 'title', 'desc', and 'metadata' elements can be 
children of (just about?) every element, including the root.  So you 
might have a document that looks like:

<svg ... >
   <title>Crops Growing Under the Sun</title>
   <desc>A drawing by Someguy, Jan 23, 2007</desc>
   <!-- some art -->
     <!-- some path elements -->
   <circle ... >
     <title>The Sun</title>

The only downside here is that the data are unstructured, so an author 
can put any info they want there, which might make it less than ideal 
for your purposes.

Thus, I think that RDF is probably your best choice.  There are RDF 
subformats for various uses, such as description, authoring info, and 
licensing.  Inkscape is a popular SVG editor, and it uses RDF for just 
those use cases.  I suspect that many people might contribute images 
drawn in Inkscape, as they have with the Open Clip Art Library, so it 
would be easy and natural to use a compatible format.  You can see how 
they handle it in their interface:

File > Document Metadata

I've attached a sample output file for you.

If you do go the RDF route, I'd suggest that you also provide your own 
interface for inserting metadata, something as simple as a Web form, so 
that you can get consistency across all your files, regardless of their 
provenance.  You might suggest or mandate particular items (like title, 
author, or license) for further compatibility.  Also, you could scan the 
file for existing metadata, and let them replace or supplement it, then 
insert the RDF directly into the file.


Research and Standards Engineer
6th Sense Analytics
mobile: 919.824.5482

(image/svg+xml attachment: metadata.svg)

Received on Tuesday, 27 February 2007 16:33:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:10 UTC