メタデータとはデータについて述べる構造化されたデータのことである。
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 ( Resource Description Framework - リソース記述フレームワーク)の定義を含む以前の W3C Metadata Activity を基に築かれた。 RDF の仕様は次に挙げるリンクで得られる:
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 specifications for RDF can be found at:
メタデータの応用のほとんどに関わる別の活動は Dublin Core によるものであり、汎用性のあるコアメタデータプロパティ(例えば Title, Creator/Author, Subject, Description, 等々)のセットを定めている。
Another activity relevant to most applications of metadata is the Dublin Core, 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.
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 の混成内容の規則 [XML-MIXED] が受け入れてくれないからである。将来版における 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 [ XML-MIXED] 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.
<!ENTITY % SVG.metadata.extra.content "" > <!ENTITY % SVG.metadata.element "INCLUDE" > <![%SVG.metadata.element;[ <!ENTITY % SVG.metadata.content "( #PCDATA %SVG.metadata.extra.content; )*" > <!ELEMENT %SVG.metadata.qname; %SVG.metadata.content; > <!-- end of SVG.metadata.element -->]]> <!ENTITY % SVG.metadata.attlist "INCLUDE" > <![%SVG.metadata.attlist;[ <!ATTLIST %SVG.metadata.qname; %SVG.Core.attrib; >
メタデータを 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>
次のインターフェースが以下で定義される: SVGMetadataElement
SVGMetadataElement インターフェースは 'metadata' 要素に対応する。
interface SVGMetadataElement : SVGElement {};