目次詳細目次前章次章要素属性プロパティ

21 メタデータ

目次

21.1 概要

メタデータとはデータについて述べる構造化されたデータのことである。 Metadata is structured data about data.

コンピュータ産業においては、産業における相互運用性と効率性の向上に向けてメタデータの標準化の努力が進行中である。 内容製作者はこれらの開発に追随し、様々なメタデータ標準が現れる度、必要に応じてこれらのメタデータ標準に適合する適切なメタデータを SVG 内容に含めるべきである。 In the computing industry, there are ongoing standardization efforts towards metadata with the goal of promoting industry interoperability and efficiency. Content creators should track these developments and include appropriate metadata in their SVG content which conforms to these various metadata standards as they emerge.

W3C の Semantic Web Activity は、様々なアプリケーションにわたるデータの自動処理, 統合, 再利用をサポートするため、仕様の設計および技術の開かれた共同開発において指導的役割を果たすものとして設立された。 Semantic Web Activity は、リソース記述フレームワーク( RDF - リソース記述フレームワーク)の定義を含む、以前の W3C Metadata Activity を基に築かれた。 RDF 入門 はリソース記述フレームワークを定める6つの仕様 [RDF-PRIMER] の最初のものである。 The W3C has a Semantic Web Activity which has been established to serve a leadership role, in both the design of enabling specifications and the open, collaborative development of technologies that support the automation, integration and reuse of data across various applications. The Semantic Web Activity builds upon the earlier W3C Metadata Activity, including the definition of Resource Description Framework (RDF). The RDF Primer is the first in a set of six documents that define the Resource Description Framework [RDF-PRIMER].

メタデータの応用のほとんどに関わる別の活動は Dublin Core [DCORE] によるものであり、汎用性のあるコアメタデータプロパティ(例えば Title, Creator/Author, Subject, Description, 等々)のセットを定めている。 Another activity relevant to most applications of metadata is the Dublin Core [DCORE], which is a set of generally applicable core metadata properties (e.g., Title, Creator/Author, Subject, Description, etc.).

個々の業者または内容製作者達が彼等独自のメタデータスキーマを定義するのは自由であるが、データ互換性と相互運用性を促すためには、可能な限り既存のメタデータ標準に従い、標準メタデータスキーマを利用することが奨励される。 特定の標準メタデータスキーマが要求を満たさない場合は、標準スキーマを完全に無視するよりはむしろ、 RDF の様な存在するフレームワークに対する追加のメタデータスキーマを定義して、独自のメタデータスキーマを標準のメタデータスキーマと組み合わせて利用する方が通常は良い結果が得られる。 Individual industries or individual content creators are free to define their own metadata schema but are 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 an existing framework such as RDF and to use custom metadata schema in combination with standard metadata schema, rather than totally ignore the standard schema.

21.2 metadata 要素

SVG 内容に含まれるメタデータは metadata 要素内で指定されるべきである。 metadata の内容は他の XML 名前空間の要素にするべきであり、これら名前空間に属するそれらの要素は XML 名前空間 勧告 [XML-NS] に適合する作法で表記されるべきである。 Metadata which is included with SVG content should be specified within ‘metadata’ elements. The contents of the ‘metadata’ should be elements from other XML namespaces, with these elements from these namespaces expressed in a manner conforming with the Namespaces in XML Recommendation [XML-NS].

独立 SVG 文書に対しては、文書作成者は 最も外側の svg 要素metadata 子要素を与えるべきである。 svg 要素の子要素として metadata を与えることにより、文書レベルのメタデータが識別されるようになる。 Authors should provide a ‘metadata’ child element to the outermost svg element within a stand-alone SVG document. The ‘metadata’ child element to an ‘svg’ element serves the purposes of identifying document-level metadata.

SVG 要素の多く(特にコンテナ要素とテキスト要素)における DTD 定義では metadata 子要素の個数や位置に制限を設けていない。 この融通性はコンテナ要素に対する一貫性のある内容モデルが開発されるまでの一時的な措置である。 一部のコンテナ要素は混成内容を許容し、望まれる制約を XML の混成内容の規則 ([XML10], 3.2.2 節) が受け入れてくれないからである。 将来版における SVG 言語の表現は、 DTD より表出的になり、より制約された混成内容規則を備えることになるであろう。 すべての要素に対し高々 1 個の metadata 要素が、子要素として他のすべての子要素(但し desc または title 要素は除く)と文字データ内容の前に現れるようにすることが強く推奨される。 もしメタデータ処理を行う UA が複数の metadata 要素からの選択を迫られた場合は、最初のものを選ぶべきである。 The DTD definitions of many of SVG's elements (particularly, container and text elements) place no restriction on the placement or number of the ‘metadata’ sub-elements. This flexibility is only present so that there will be a consistent content model for container elements, because some container elements in SVG allow for mixed content, and because the mixed content rules for XML ([XML10], section 3.2.2) do not permit the desired restrictions. Representations of future versions of the SVG language might use more expressive representations than DTDs which allow for more restrictive mixed content rules. It is strongly recommended that at most one ‘metadata’ element appear as a child of any particular element, and that this element appear before any other child elements (except possibly ‘desc’ or ‘title’ elements) or character data content. If metadata-processing user agents need to choose among multiple ‘metadata’ elements for processing it should choose the first one.

metadata
分類:
記述的要素
内容モデル:
任意の要素または文字列
属性:
DOM インタフェース:

21.3 例

メタデータを SVG 文書にどのように含めるかの例をここに示す。 この例では Dublin Core バージョン 1.1 のスキーマを利用している。 ( RDF に基づかないものも含めた他の XML 互換メタデータ言語を利用することもできる。) Here is an example of how metadata can be included in an SVG document. The example uses the Dublin Core version 1.1 schema. (Other XML-compatible metadata languages, including ones not based on RDF, can be used also.)

<?xml version="1.0" standalone="yes"?>
<svg width="4in" height="3in" version="1.1"
    xmlns = 'http://www.w3.org/2000/svg'>
    <desc xmlns:myfoo="http://example.org/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>
   </desc>
    <metadata>
      <rdf:RDF
           xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
           xmlns:rdfs = "http://www.w3.org/2000/01/rdf-schema#"
           xmlns:dc = "http://purl.org/dc/elements/1.1/" >
        <rdf:Description about="http://example.org/myfoo"
             dc:title="MyFoo Financial Report"
             dc:description="$three $bar $thousands $dollars $from 1998 $through 2000"
             dc:publisher="Example Organization"
             dc:date="2000-04-11"
             dc:format="image/svg+xml"
             dc:language="en" >
          <dc:creator>
            <rdf:Bag>
              <rdf:li>Irving Bird</rdf:li>
              <rdf:li>Mary Lambert</rdf:li>
            </rdf:Bag>
          </dc:creator>
        </rdf:Description>
      </rdf:RDF>
    </metadata>
</svg>

21.4 DOM インタフェース

21.4.1 インタフェース SVGMetadataElement

SVGMetadataElement インタフェースは metadata 要素に対応する。 The SVGMetadataElement interface corresponds to the ‘metadata’ element.

interface SVGMetadataElement : SVGElement {
};
目次詳細目次前章次章要素属性プロパティ