22 Metadata

22.1 Introduction

Metadata is information about a document.

RDF is the appropriate language for metadata. The specifications for RDF can be found at:

Metadata within an SVG document should be expressed in the appropriate RDF namespaces and should be placed within the <metadata> child element to the document's <svg> root element. (See Example below.)

Here are some suggestions for content creators regarding metadata:

Individual industries or individual content creators are free to define their own metadata schema, but everyone is encouraged to follow existing metadata standards and use standard metadata schema wherever possible to promote interchange and interoperability. If a particular standard metadata schema does not meet your needs, then it is usually better to define an additional metadata schema in RDF which is used in combination with the given standard metadata schema than to totally avoid the standard schema.

22.2 The SVG Metadata Schema

(This schema has not yet been defined. Here are some candidate attributes for the schema: MeetsAccessibilityGuidelines, UsesDynamicElements, ListOfExtensionsUsed, ListOfICCProfilesUsed, LiistOfFontsUsed, ListOfImagesUsed, ListOfForeignObjectsUsed, ListOfExternalReferences.)

22.3 An Example

Here is an example of how metadata can be included in an SVG document. The example uses the Dublin Core version 1.0 schema and the SVG metadata schema:

<?xml version="1.0" standalone="yes"?>
<svg width="4in" height="3in"
 xmlns = 'http://www.w3.org/Graphics/SVG/svg-19990625.dtd'>
  <desc>This example shows how to include metadata 
        into an SVG document.
             xmlns:rdf = "http://www.w3.org/...-rdf-syntax-ns"
             xmlns:rdfs = "http://www.w3.org/TR/...-schema"
             xmlns:dc = "http://purl.org/dc/elements/1.0/"
             xmlns:svgmetadata = "http://www.w3.org/..." >
      <rdf:Description about=""
               dc:Title="MyCompany Floor Layout"
               dc:Description="Floor layout for MyCompany office space"
               dc:Publisher="MyCompany Incorporated"
               dc:Type="technical specification"
               dc:Language="en" >
          <rdf:Bag rdf:_1="Billy Potts"
                   rdf:_2="Mary Graham" />
        <svgmetadata:General MeetsAccessibilityGuidelines="true"/>

Download this example