source: main/trunk/model-sites-dev/mars/collect/cosi-slac/etc/collectionConfig.xml@ 30434

Last change on this file since 30434 was 30434, checked in by davidb, 8 years ago

Initial set of files for the MARS -- Music Affect Recommender System project. Contains basic Greenstone3 collection that makes use of jAudio and jSongMiner. Intented for use with MP3 files from SLAC (originally devised during a Centre for Open Source Innovation or COSI project at Waikato), hence the collection name

File size: 10.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <metadataList>
4 <metadata lang="en" name="creator"></metadata>
5 <metadata lang="en" name="maintainer"></metadata>
6 <metadata lang="en" name="public">true</metadata>
7 </metadataList>
8 <displayItemList>
9 <displayItem assigned="true" lang="en" name="name">cosi-slac</displayItem>
10 <displayItem assigned="true" lang="en" name="description">
11 &lt;p&gt;
12 This collection shows the capabilities of
13 &lt;a href="http://jmir.sourceforge.net/jAudio.html"&gt;jAudio&lt;/a&gt;
14 and
15 &lt;a href="http://jmir.sourceforge.net/jSongMiner.html"&gt;jSongMiner&lt;/a&gt;
16 in combination with Greenstone3, based on the
17 250 MP3 files from the
18 &lt;a href="http://jmir.sourceforge.net/Codaich.html"&gt;SLAC&lt;/a&gt;
19 (Symbolic Lyrical Audio Cultural) dataset which&#x2014;broadly speaking&#x2014;spans
20 5 broad genre, with 50 examples of each:
21 &lt;ul&gt;
22 &lt;li&gt;Modern Blues and Traditional Blues;
23 &lt;li&gt;Baroque and Romantic;
24 &lt;li&gt;Bebop and Swing;
25 &lt;li&gt;Hardcore Rap and Pop Rap; and
26 &lt;li&gt;Alternative Rock and Metal.
27 &lt;/ul&gt;
28 &lt;/p&gt;
29
30 &lt;p&gt;
31 When the digital library collection is built, jAudio is used to compute
32 a range of audio fetures commonly
33 used in the field of Music Information Retrieval (MIR). These features are bound to
34 the document in the digital library correspondig to the source MP3 file. Similarly,
35 jSongMiner is used to undertake audio-fingerprinting of the source MP3 files, and
36 seek out matches at sites such as LastFM and EchoNest. Again, the results of
37 this process (a rich set of metadata about a song) is bound into the digital
38 library collection.
39 &lt;/p&gt;
40
41 </displayItem>
42 </displayItemList>
43 <search type="lucene">
44 <level name="document">
45 <displayItem lang="en" name="name">document</displayItem>
46 </level>
47 <level name="section">
48 <displayItem lang="en" name="name">section</displayItem>
49 </level>
50 <defaultLevel name="document"/>
51 <index name="text">
52 <displayItem lang="en" name="name">text</displayItem>
53 </index>
54 <index name="Title">
55 <displayItem lang="en" name="name">titles</displayItem>
56 </index>
57 <index name="Source">
58 <displayItem lang="en" name="name">filenames</displayItem>
59 </index>
60 <defaultIndex name="text"/>
61 <searchType name="plain"/>
62 <searchType name="simpleform"/>
63 <searchType name="advancedform"/>
64 <format>
65 <gsf:template match="documentNode">
66 <td valign="top">
67 <gsf:link type="document">
68 <gsf:icon type="document"/>
69 </gsf:link>
70 </td>
71 <td>
72 <gsf:switch>
73 <gsf:metadata name="Title" select="ancestors" separator=": "/>
74 <gsf:when test="exists">
75 <gsf:metadata name="Title" select="ancestors" separator=": "/>:
76 </gsf:when>
77 </gsf:switch>
78 <gsf:link type="document">
79 <gsf:metadata name="Title"/>
80 </gsf:link>
81 </td>
82 </gsf:template>
83 </format>
84 </search>
85 <infodb type="jdbm"/>
86 <import>
87 <pluginList>
88 <plugin name="ZIPPlugin"/>
89 <plugin name="GreenstoneXMLPlugin"/>
90
91 <plugin name="EmbeddedMetadataPlugin"/>
92
93 <plugin name="MusicIRPlugin">
94 <option name="-compute_mir_features" value="true"/>
95 <option name="-retrieve_mir_metadata" value="true"/>
96 <option name="-enable_cache"/>
97 </plugin>
98
99 <plugin name="TextPlugin"/>
100 <plugin name="HTMLPlugin"/>
101 <plugin name="EmailPlugin"/>
102 <plugin name="PDFPlugin"/>
103 <plugin name="RTFPlugin"/>
104 <plugin name="WordPlugin"/>
105 <plugin name="PostScriptPlugin"/>
106 <plugin name="PowerPointPlugin"/>
107 <plugin name="ExcelPlugin"/>
108 <plugin name="ImagePlugin"/>
109 <plugin name="ISISPlugin"/>
110 <plugin name="NulPlugin"/>
111 <plugin name="MetadataXMLPlugin"/>
112 <plugin name="ArchivesInfPlugin"/>
113 <plugin name="DirectoryPlugin"/>
114 </pluginList>
115 </import>
116 <browse>
117 <classifier name="List">
118 <option name="-metadata" value="dc.Title;Title"/>
119 <option name="-partition_type_within_level" value="approximate_size"/>
120 </classifier>
121 <classifier name="AZCompactList">
122 <option name="-metadata" value="dc.Type.genre"/>
123 <option name="-buttonname" value="Genre"/>
124 </classifier>
125 <format>
126 <gsf:template match="documentNode">
127 <td valign="top">
128 <gsf:link type="document">
129 <gsf:icon type="document"/>
130 </gsf:link>
131 </td>
132 <td valign="top">
133 <gsf:metadata name="srclink"/>
134 <gsf:choose-metadata>
135 <gsf:metadata name="thumbicon"/>
136 <gsf:metadata name="srcicon"/>
137 </gsf:choose-metadata>
138 <gsf:metadata name="/srclink"/>
139 </td>
140 <td valign="top">
141 <gsf:choose-metadata>
142 <gsf:metadata name="dc.Title"/>
143 <gsf:metadata name="exp.Title"/>
144 <gsf:metadata name="Title"/>
145 <gsf:default>Untitled</gsf:default>
146 </gsf:choose-metadata>
147 <gsf:switch>
148 <gsf:metadata name="Source"/>
149 <gsf:when test="exists">
150 <br/>
151 <i>(<gsf:metadata name="Source"/>)</i>
152 </gsf:when>
153 </gsf:switch>
154 </td>
155 </gsf:template>
156 <gsf:template match="classifierNode">
157 <td valign="top">
158 <gsf:link type="classifier">
159 <gsf:icon type="classifier"/>
160 </gsf:link>
161 </td>
162 <td valign="top">
163 <gsf:metadata name="srclink"/>
164 <gsf:choose-metadata>
165 <gsf:metadata name="thumbicon"/>
166 <gsf:metadata name="srcicon"/>
167 </gsf:choose-metadata>
168 <gsf:metadata name="/srclink"/>
169 </td>
170 <td valign="top">
171 <gsf:choose-metadata>
172 <gsf:metadata name="dc.Title"/>
173 <gsf:metadata name="exp.Title"/>
174 <gsf:metadata name="Title"/>
175 <gsf:default>Untitled</gsf:default>
176 </gsf:choose-metadata>
177 <gsf:switch>
178 <gsf:metadata name="Source"/>
179 <gsf:when test="exists">
180 <br/><i>(<gsf:metadata name="Source"/>)</i>
181 </gsf:when>
182 </gsf:switch>
183 </td>
184 </gsf:template>
185 <gsf:template match="classifierNode" mode="horizontal">
186 <gsf:link type="horizontal">
187 <gsf:metadata name="Title"/>
188 </gsf:link>
189 </gsf:template>
190 </format>
191 </browse>
192 <display>
193 <format>
194 <gsf:option name="TOC" value="false"/>
195
196 <xsl:template name="documentContent">
197
198 <xsl:variable name="httpCollection"><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/></xsl:variable>
199
200 <xsl:variable name="assocFilePath"><gsf:metadata name="assocfilepath" select="root"/></xsl:variable>
201
202 <xsl:variable name="lastfmtrackurl">
203 <gsf:metadata name="dc.Identifier.lastfmtrackurl"/>
204 </xsl:variable>
205
206 <xsl:variable name="echonestid">
207 <gsf:metadata name="dc.Identifier"/>
208 </xsl:variable>
209
210 <div class="documenttext">
211
212<table>
213 <tbody>
214 <tr style="background-color:#afa">
215 <td>
216 Title
217 </td>
218 <td>
219 <gsf:metadata name="dc.Title"/>
220 </td>
221 </tr>
222
223 <tr style="background-color:#ffa">
224 <td>Album Title</td>
225 <td><gsf:metadata name="dc.Title.albumtitle"/></td>
226 </tr>
227
228 <tr style="background-color:#afa">
229 <td>Artist</td>
230 <td><gsf:metadata name="dc.Creator"/></td>
231 </tr>
232
233 <tr style="background-color:#ffa" valign='top'>
234 <td>Artist Summary</td>
235 <td><i><gsf:metadata name="LastFM.LastFMArtistWikiSummary"/></i></td>
236 </tr>
237
238 <tr style="background-color:#afa">
239 <td>Identifier</td>
240 <td>
241 <gsf:metadata name="dc.Identifier"/><br />
242
243 <xsl:copy-of select="$lastfmtrackurl"/><br />
244 (<a href="{$lastfmtrackurl}" target="#lastfm">Visit @ LastFM</a>)
245 </td>
246 </tr>
247
248 <tr style="background-color:#ffa">
249 <td>jAudio Features</td><td><a href="{$httpCollection}/index/assoc/{$assocFilePath}/jaudio.xml">download ACE XML feature values file</a></td>
250 </tr>
251
252 <tr style="background-color:#afa">
253 <td>jSongMiner Metadata</td><td><a href="{$httpCollection}/index/assoc/{$assocFilePath}/jsongminer.xml">download ACE XML classifications file</a></td>
254 </tr>
255
256
257
258
259 </tbody>
260</table>
261
262 </div>
263 </xsl:template>
264
265
266 </format>
267
268 </display>
269
270
271 <replaceListRef id="gs2-standard"/>
272 <serviceRackList>
273 <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
274 <serviceRack name="OAIPMH">
275 <ListMetadataFormats>
276 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
277 The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
278 -->
279 <metadataFormat metadataPrefix="oai_dc">
280 <metadataPrefix>oai_dc</metadataPrefix>
281 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
282 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
283 <!--<metadataElements>dc.Title,dc.Creator,dc.Subject,dc.Description,dc.Publisher,dc.Contributor,dc.Date,dc.Type,dc.Format,dc.Identifier,dc.Source,dc.Language,dc.Relation,dc.Coverage,dc.Rights</metadataElements>
284 -->
285 <mappingList>
286 <!--
287 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
288 The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
289 searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
290 number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
291 if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
292
293 **Bear in mind: if this mapping list is not present, the standard dc. metadata names (15 in total) will be used to retrieve metadata in the database.
294
295 **The only case when this mapping is not present is that: 1. this metadata format is oai_dc; 2. the metadata is also stored in the database by Dublin Core's names.
296 -->
297 <mapping>dc.Title,Title</mapping>
298 <!-- This mapping example means that the dc.Title is requested and the value of the metadata Title, which is used in this repository, is returned as response. -->
299 </mappingList>
300 </metadataFormat>
301 </ListMetadataFormats>
302 </serviceRack>
303 </serviceRackList>
304</CollectionConfig>
Note: See TracBrowser for help on using the repository browser.