source: metadata/trunk/toolkit/example/example-component-actor.xml @ 6

Last change on this file since 6 was 6, checked in by dietuyt, 15 years ago

Initial checkin of the CLARIN component metadata toolkit.

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<CMD_ComponentSpec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4    xsi:noNamespaceSchemaLocation="general-component-schema.xsd">
5   
6    <Header/>
7   
8    <CMD_Component name="Actor" CardinalityMin="0" CardinalityMax="unbounded">
9       
10        <CMD_Element name="firstName" ValueScheme="string">
11            <!-- provide a nickname attribute for the firstName element -->
12            <AttributeList>
13                <Attribute>
14                    <Name>nickname</Name>
15                    <Type>string</Type>
16                </Attribute>
17            </AttributeList>
18        </CMD_Element>
19       
20        <CMD_Element name="lastName" ValueScheme="string"/>
21       
22        <CMD_Element name="sex" ConceptLink="http://www.isocat.org/datcat/CMD-000">
23            <ValueScheme>
24                <enumeration>
25                    <item ConceptLink="http://www.isocat.org/datcat/CMD-0010">male</item>
26                    <item ConceptLink="http://www.isocat.org/datcat/CMD-001">female</item>
27                </enumeration>
28            </ValueScheme>
29        </CMD_Element>
30        <CMD_Element name="age" ConceptLink="http://www.isocat.org/datcat/CMD-000">
31            <ValueScheme>
32                <pattern>([0-9]+)*(;[0-9]+)*(.[0-9]+)</pattern>
33            </ValueScheme>
34        </CMD_Element>
35
36        <CMD_Component ConceptLink="http://www.isocat.org/datcat/CMD-000" name="ActorLanguage"
37            id="ActorLanguage" CardinalityMin="0" CardinalityMax="unbounded">
38            <!-- inline element definitions -->
39            <CMD_Element name="ActorLanguageName" ValueScheme="string"
40                ConceptLink="http://www.isocat.org/datcat/DC-1766"/>
41        </CMD_Component>
42
43    </CMD_Component>
44
45</CMD_ComponentSpec>
Note: See TracBrowser for help on using the repository browser.