previous   next   contents   properties   index  

21 Metadata



21.1 Introduction

Metadata is information about a document.

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

It is recommended that metadata within an SVG document fragment be expressed in an appropriate RDF namespaces and 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.

21.2 An example

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

<?xml version="1.0" standalone="yes"?>
<svg width="4in" height="3in"
    xmlns = ''>
    <desc xmlns:myfoo="">
      <myfoo:title>This is a financial report</myfoo:title>
      <myfoo:descr>The global description uses markup from the
        <myfoo:emph>myfoo</myfoo:emph> namespace.</myfoo:descr>
      <myfoo:scene><myfoo:what>widget $growth</myfoo:what>
      <myfoo:contains>$three $graph-bar</myfoo:contains>
        <myfoo:when>1998 $through 2000</myfoo:when> </myfoo:scene>
               xmlns:rdf = ""
               xmlns:rdfs = ""
               xmlns:dc = ""
               xmlns:svgmetadata = "" >
        <rdf:Description about=""
                 dc:title="MyFoo Financial Report"
                 dc:description="$three $bar $thousands $dollars $from 1998
$through 2000"
                 dc:publisher="BarOrg Incorporated"
                 dc:language="en" >
                <rdf:li>Irving Bird</rdf:li>
                <rdf:li>Mary Lambert</rdf:li>
          <svgmetadata:General UsesControlledVocabulary="true"/>

Download this example

21.3 DOM interfaces

The following interfaces are defined below: SVGMetadataElement.

Interface SVGMetadataElement

The SVGMetadataElement interface corresponds to the 'metadata' element.

IDL Definition
interface SVGMetadataElement : SVGElement;

previous   next   contents   properties   index