metadata Element (Microsoft.Speech)

Microsoft Speech Platform SDK 11

Collapse image Expand Image Copy image CopyHover image

Contains information about the grammar document in a metadata schema.

Syntax

XML Copy imageCopy Code
<metadata>...</metadata>

Attributes

None.

Remarks

The metadata element may be located either before or after meta or lexicon elements, but must occur before all rule elements contained within the root grammar element.

The metadata element is a container in which authors can place information about the document using a metadata schema. Authors can use any metadata schema. However, the Speech Recognition Grammar Specification (SRGS) Version 1.0 recommends that authors use the Resource Description Format (RDF) schema in conjunction with the general metadata properties (for example, Title, Creator, Subject, Description, and Copyrights) defined in the Dublin Core Metadata Initiative.

Example

XML Copy imageCopy Code
<?xml version="1.0"?> 
<grammar
    xmlns="http://www.w3.org/2001/06/grammar" version="1.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.w3.org/2001/06/grammar 
    http://www.w3.org/TR/speech-grammar/grammar.xsd"
    xml:lang="en-US">
    
  <metadata>
   <rdf:RDF
       xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       xmlns:rdfs = "http://www.w3.org/TR/1999/PR-rdf-schema-19990303#"
       xmlns:dc = "http://purl.org/metadata/dublin_core#">

   <!-- Metadata about the grammar document -->
   <rdf:Description about="http://www.example.com/meta.grxml"
       dc:Title="Digit Grammar"
       dc:Description="Digit Grammar in W3C XML Form"
       dc:Publisher="W3C"
       dc:Language="en"
       dc:Date="2002-02-14"
       dc:Rights="Copyright 2002 Jan Smith"
       dc:Format="application/srgs+xml" >                
       <dc:Creator>
          <rdf:Seq ID="CreatorsAlphabeticalBySurname">
             <rdf:li>Jackie Crystal</rdf:li>
             <rdf:li>Jan Smith</rdf:li>
          </rdf:Seq>
       </dc:Creator>
   </rdf:Description>
  </rdf:RDF>
 </metadata>

</grammar>