Rdfpic is a program to attach RDF metadata to an image. Only the jpeg format is currently supported. A Java 1.2 runtime environment is required.
See the COPYRIGHT file for copyright information.
java -jar rdfpic.jar [files...]
All command line parameters are interpreted to be files that the user wishes to edit. Files can also be loaded from the GUI. One file from the file list can be active - changes made to the (RDF) data are made to this file only. Rdfpic supports local files as well of files over HTTP. Of course, to attach any meta data you need to have permission to do an HTTP 1.1 PUT to the image's location.
The GUI can be split into three sections. The top, which contains the menu bar and the tool bar, the right bottom, which contains the image, and the left bottom, where the data is entered.
Rdfpic is built around the concept of an rdf "schema". Each schema has a number of attributes who's values can be set. For instance, a schema "rendering" could include a "Renderer used" field. Each of these schema's has a tab in the left bottom section of the Rdfpic interface. On startup, two schema's, "DC" (Dublin Core), and "Technical" are loaded. Each of the attributes of a schema has a row in the tab pane. The row has three columns: the field name (a tooltip gives an explanation), a checkbox, and a place to actually enter the string. By default, all properties are reset whenever the active image changes. If the checkbox is checked, however, that property becomes "persistent"; its value is not reset. A history of the previous values entered is available: they are stored in the combobox which you edit.
The toolbar allows you to "apply" the changes to the rdf, skip to the next/previous image (changes are not applied), and select a language (or type in any value). The rdf is marked as stored in this language.
There are three menus. The Rdf menu let's you load a new schema or toggle an existing one, ex- and import rdf to or from a (text) file, and quit. A schema that deactivated (toggled off) is neither displayed in the editor nor added to the image. The image menu offers the "apply", "next", "previous" functions as the tool bar does, as well as jumping to an arbitrary image in the list. "Extract Raw Data" copies the data embedding the the jpeg comment byte for byte to a file; conversely "Insert Raw Data" inserts any file's data into the image file. "Load New Image" adds an image's URL to the file list. The "?" menu displays a little about box.
(This is only of interest to those that want to load other schemas). Rdfpic does *not* support RDF-Schema. A much simpler (and less powerful) format is used. A simple schema file looks as follows:
--BEGINNING OF FILE:--
"The Technical schema 'tis about those camera details this is a comment" "'name' is the name of the tab in rdfpic" name = "Technical" "'URI' is the URI to use in the rdf document" URI = "http://www.w3.org/2000/PhotoRDF/technical-1-0" "which builtin functionality to use. Unless you modify the source, should be 0" builtin = "0" "'add' adds a property. The first parameter is the name, the second the tooltip for that name, and all following values (none here) are interpreted as default values - which is how the 'Type' attribute in DC is alreadt set on startup" add("camera","Which type of camera was used to take the photo.") add("lens","The lens with which the photo was taken.") add("film","The type of film on which the photo was taken.") add("devel-date","The date on which the film was developed.") "and that's all folks"--END OF FILE--
Rdfpic uses SiRPAC and parts of Jigsaw, and stripped down versions of both are included in this package.
As of this writing, SiRPAC is maintained by Sergey Melnik. More information can be found at his Rdf Api page.
Jigsaw is the W3C's web server. More information can be found at W3C's Jigsaw page.
Comments on version 2.1 to Yves Lafon <email@example.com> or Bert Bos <firstname.lastname@example.org>. Version 2.0 was made by Eamon Nerbonne.