Changeset 934


Ignore:
Timestamp:
11/24/10 16:09:51 (14 years ago)
Author:
dietuyt
Message:

Update of the example CMDI to point to the component registry and to
feature new additions like the multilingual fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/example/example-md-instance.cmdi

    r564 r934  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <CMD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace"
    3     xsi:schemaLocation="http://www.clarin.eu/cmd http://www.clarin.eu/cmd/example/example-md-schema.xsd" >
    4     <Header>
    5         <MdCreator>Dieter Van Uytvanck</MdCreator>
    6         <MdCreationDate>2009-11-18</MdCreationDate>
    7         <MdSelfLink>http://www.clarin.eu/cmd/example/example-md-instance.xml</MdSelfLink>
    8         <MdProfile>http://www.clarin.eu/cmd/example/example-profile-instance.xml</MdProfile>
    9     </Header>
    10     <Resources>
    11         <ResourceProxyList>
    12             <ResourceProxy id="a_text">
    13                 <ResourceType>Resource</ResourceType>
    14                 <ResourceRef>http://hdl.handle.net/1839/00-0000-0000-0009-2951-C</ResourceRef>
    15             </ResourceProxy>
    16             <ResourceProxy id="b_text">
    17                 <ResourceType>Resource</ResourceType>
    18                 <ResourceRef>hdl://1839/00-0000-0000-0009-2951-C</ResourceRef>
    19             </ResourceProxy>
    20             <ResourceProxy id="c_text">
    21                 <ResourceType>Resource</ResourceType>
    22                 <ResourceRef>test.txt</ResourceRef>
    23             </ResourceProxy>
    24             <ResourceProxy id="a_picture">
    25                 <ResourceType>Resource</ResourceType>
    26                 <ResourceRef>http://corpus1.mpi.nl/qfs1/media-archive/demo/pewi/Media/route_to_kleve.jpg</ResourceRef>
    27             </ResourceProxy>
    28             <ResourceProxy id="a_movie">
    29                 <ResourceType>Resource</ResourceType>
    30                 <ResourceRef>http://corpus1.mpi.nl/qfs1/media-archive/demo/Talks/Media/Talk_section.mp4</ResourceRef>
    31             </ResourceProxy>
    32            
    33         </ResourceProxyList>
    34         <JournalFileProxyList></JournalFileProxyList>
    35         <ResourceRelationList>
    36             <ResourceRelation>
    37                 <RelationType>describes</RelationType>
    38                 <Res1 ref="a_text"/>
    39                 <Res2 ref="a_picture"/>
    40             </ResourceRelation>
    41         </ResourceRelationList>
    42     </Resources>
    43     <Components>
    44         <TextTMD ref="a_text" >
     2<CMD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     3     xsi:schemaLocation="http://www.clarin.eu/cmd http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1290431694484/xsd">
     4   
     5   <!-- General Information Header -->
     6   <Header>
     7      <MdCreator>Dieter Van Uytvanck</MdCreator>
     8      <MdCreationDate>2009-11-18</MdCreationDate>
     9      <!-- A link to this very file -->
     10      <MdSelfLink>http://www.clarin.eu/cmd/example/example-md-instance.cmdi</MdSelfLink>
     11      <!-- A reference to the unique identifier of the profile this metadata instance is based on -->
     12      <MdProfile>clarin.eu:cr1:p_1290431694484</MdProfile>
     13   </Header>
     14   
     15   <!-- List of external resource files and (CMDI) metadata files -->
     16   <Resources>
     17      <ResourceProxyList>
     18         
     19         <ResourceProxy id="a_photo">
     20            <ResourceType>Resource</ResourceType>
     21            <ResourceRef>http://www.clarin.eu/sites/all/themes/clarin/images/clarin-name-logo.png</ResourceRef>
     22         </ResourceProxy>
     23         
     24         <ResourceProxy id="a_text">
     25            <ResourceType>Resource</ResourceType>
     26            <ResourceRef>http://www.clarin.eu/sometext.txt</ResourceRef>
     27         </ResourceProxy>
     28         
     29         <ResourceProxy id="another_md_file">
     30            <ResourceType>Metadata</ResourceType>
     31            <ResourceRef>http://www.clarin.eu/cmd/example/example-md-instance.cmdi</ResourceRef>
     32         </ResourceProxy>
     33         
     34      </ResourceProxyList>
     35      <JournalFileProxyList/>
     36      <ResourceRelationList/>
     37   </Resources>
     38   
     39   <!-- start of the profile-dependent part -->
     40   <Components>
     41     
     42      <Example_Profile_Instance>
     43     
     44         <!-- instantation of the first embedded component: technical metadata about a text -->
     45         <!-- Instead of having a URL to the resource here we link with a ref attribute to the relevant ResourceProxy element defined above -->
     46         <example-component-text ref="a_text">
    4547            <Format>text/plain</Format>
    46             <TextType><TextTypeDescription>manuscript</TextTypeDescription></TextType>
    47         </TextTMD>
    48         <PhotoTMD ref="a_picture">
     48            <example-component-texttype/>
     49         </example-component-text>
     50         
     51         <!-- instantation of the second embedded component: technical metadata about a digital image -->
     52         <example-component-photo ref="a_photo">
    4953            <Format>image/png</Format>
    50         </PhotoTMD>
    51         <Actor  ref="c_text">
     54         </example-component-photo>
     55         
     56         <!-- instantation of the first embedded component: metadata about a person -->
     57         <example-component-actor>
     58            <!-- Note the support for multilingual fields, using the xml:lang attribute -->
    5259            <title xml:lang="eng">mister</title>
    5360            <title xml:lang="fra">monsieur</title>
    54             <title xml:lang="nld">meneer</title>
     61            <title xml:lang="nld">mijnheer</title>
    5562            <firstName>Foo</firstName>
    5663            <lastName>Bar</lastName>
    5764            <sex>female</sex>
    58             <age>22</age>
     65            <age>55</age>
     66            <!-- start of an embedded component within the Actor component -->
    5967            <ActorLanguage>
    60                 <ActorLanguageName>Some language name</ActorLanguageName>
     68               <!-- For the sake of the example as self-chosen language name here. In reality one would prefer an ISO-639-3 component like http://catalog.clarin.eu/ds/ComponentRegistry/?item=clarin.eu:cr1:c_1271859438110 -->
     69               <ActorLanguageName>Dutch</ActorLanguageName>
    6170            </ActorLanguage>
    62             <ActorLanguage>
    63                 <ActorLanguageName>Yet another language</ActorLanguageName>
    64             </ActorLanguage>
    65         </Actor>
    66         <!-- Bob is depicted in a_picture -->
    67         <Actor ref="a_picture" >
    68             <title>mister</title>
    69             <firstName nickname="bobby">Bob</firstName>
    70             <lastName></lastName>
    71             <sex>male</sex>
    72             <age>33</age>
    73         </Actor>
    74         <Actor ref="b_text">
    75             <title>test</title>
    76             <firstName>A</firstName>
    77             <lastName></lastName>
    78             <sex>female</sex>
    79             <age>11</age>
    80         </Actor>
    81        
    82     </Components>
     71         </example-component-actor>
     72     
     73      </Example_Profile_Instance>
     74   </Components>
    8375</CMD>
Note: See TracChangeset for help on using the changeset viewer.