Herunterladen Inhalt Inhalt Diese Seite drucken

Beispiel Einer Schemadatei - Sun Microsystems StorageTek 5800 Handbuch

Systemverwaltungshandbuch
Vorschau ausblenden Andere Handbücher für StorageTek 5800:
Inhaltsverzeichnis

Werbung

Beispiel einer Schemadatei

ABBILDUNG 7-3
Musikdateien im MP3-Format gespeichert werden.

Beispiel einer Schemadatei

ABBILDUNG 7-3
<?xml version="1.0" encoding="UTF-8"?>
<!--Example of schema configuration file for a system storing MP3
music files.-->
<metadataConfig>
<schema>
<namespace name="mp3" writable="true" extensible="true">
<field name="artist" type="string" length="128"
queryable="true" />
<field name="album" type="string" length="128"
queryable="true" />
<field name="title" type="string" length="128"
queryable="true" />
<field name="type" type="string" length="128"
queryable="true" />
<field name="year" type="long" queryable="true"/>
</namespace>
</schema>
<fsViews>
<fsView name="byArtist" namespace="mp3"
filename="${title}.{type}" fsattrs="true"
filesonlyatleaflevel="true">
<attribute name="artist"/>
<attribute name="album"/>
</fsView>
<fsView name="byAlbum" filename="${mp3.title}.mp3"
<attribute name="mp3.album"/>
</fsView>
</fsViews>
<tables>
<table name="mp3">
<column name="mp3.artist"/>
<column name="mp3.album"/>
<column name="mp3.title"/>
<column name="mp3.year"/>
</table>
</tables>
</metadataConfig>
zeigt ein Beispiel einer Schemadatei für ein System, auf dem
readonly="true" fsattrs="true">
Kapitel 7 Konfiguration von Metadaten und virtuellen Dateisystemansichten
67

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis