I've completed writing some code for processing collections of SVG files to validate their metadata (title, author, license). The code is packaged and released to CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.01/
It includes the following:
SVG::Metadata - A module for parsing and accessing an SVG's metadata, including title, author, license, and keywords.
svg_validate - A script for scanning through a collection of SVG files and extracting ones with valid metadata. It also automatically generates png's for each (using inkscape) and metadata text files.
Bryce
The second release of SVG::Metadata is now available on CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.02/
Changes include addition of cmdline arguments and POD documentation for svg_validate, and a README.
Bryce
On Sat, 12 Jun 2004, Bryce Harrington wrote:
I've completed writing some code for processing collections of SVG files to validate their metadata (title, author, license). The code is packaged and released to CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.01/
It includes the following:
SVG::Metadata - A module for parsing and accessing an SVG's metadata, including title, author, license, and keywords.
svg_validate - A script for scanning through a collection of SVG files and extracting ones with valid metadata. It also automatically generates png's for each (using inkscape) and metadata text files.
Bryce
The third release of SVG::Metadata is now available on CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.03/
The change for this release was provided by Kees Cook and includes switching from XML::Simple to XML::Twig, which provides better handling of namespaced XML.
The effect of this change is that the validator will accept a wider variety of RDF metadata. :-)
Bryce
On Sun, 13 Jun 2004, Bryce Harrington wrote:
The second release of SVG::Metadata is now available on CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.02/
Changes include addition of cmdline arguments and POD documentation for svg_validate, and a README.
Bryce
On Sat, 12 Jun 2004, Bryce Harrington wrote:
I've completed writing some code for processing collections of SVG files to validate their metadata (title, author, license). The code is packaged and released to CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.01/
It includes the following:
SVG::Metadata - A module for parsing and accessing an SVG's metadata, including title, author, license, and keywords.
svg_validate - A script for scanning through a collection of SVG files and extracting ones with valid metadata. It also automatically generates png's for each (using inkscape) and metadata text files.
Bryce
THe fourth release of SVG::Metadata is now available on CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.04/
The only change for this release was the addition of a new routine 'to_rdf()' to generate the RDF for the file.
Bryce
On Tue, 15 Jun 2004, Bryce Harrington wrote:
The third release of SVG::Metadata is now available on CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.03/
The change for this release was provided by Kees Cook and includes switching from XML::Simple to XML::Twig, which provides better handling of namespaced XML.
The effect of this change is that the validator will accept a wider variety of RDF metadata. :-)
Bryce
On Sun, 13 Jun 2004, Bryce Harrington wrote:
The second release of SVG::Metadata is now available on CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.02/
Changes include addition of cmdline arguments and POD documentation for svg_validate, and a README.
Bryce
On Sat, 12 Jun 2004, Bryce Harrington wrote:
I've completed writing some code for processing collections of SVG files to validate their metadata (title, author, license). The code is packaged and released to CPAN:
http://search.cpan.org/~bryce/SVG-Metadata-0.01/
It includes the following:
SVG::Metadata - A module for parsing and accessing an SVG's metadata, including title, author, license, and keywords.
svg_validate - A script for scanning through a collection of SVG files and extracting ones with valid metadata. It also automatically generates png's for each (using inkscape) and metadata text files.
Bryce
Since adding metadata to your SVG files is cumbersome, especially when you have a lot of files, I've written a script 'svg_annotate' to perform this work.
This script is now included within SVG::Metadata, and takes advantage of its data structure.
You can download it from CPAN, here:
http://search.cpan.org/~bryce/SVG-Metadata-0.05/
The README has instructions for installing it. Briefly:
$ perl Makefile.PL $ make $ su # make install
You will probably also need to install XML::Twig. You can also get this from CPAN and install it the same way as above:
http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/XML-Twig-3.15.tar.gz
Then, to use svg_annotate to add metadata to all files under directory 'my_art':
$ svg_annotate -a "My Name" my_art/
This will add metadata to any files that don't already have it, including setting the license to Public Domain and the title to "My Name - <filename>". (You can override this if you want; see the manual page for svg_annotate on CPAN).
Let me know if you run into issues.
Bryce
participants (1)
-
Bryce Harrington