Changes between Version 227 and Version 228 of CMDI 1.2/Specification
- Timestamp:
- 08/15/16 08:18:02 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CMDI 1.2/Specification
v227 v228 191 191 || `xs` || `http://www.w3.org/2001/XMLSchema` || XML Schema || prefixed || 192 192 193 '''Note''': the inclusion of the major version number (i.e. 1) in the clarin.eu namespaces, but not the minor version number reflects the approach that across minor versions within a major version of the CMDI specification, the namespace is kept constant for compatibility reasons. 194 193 195 ---- 194 196 = Structure of CMDI files = … … 198 200 }}} 199 201 200 '''{TODO}:''' finish and embed UML diagram ([https://drive.google.com/file/d/0B6mqjTCSImiVdFJYV2kwMVJDcTg/view?usp=sharing working version], [https://drive.google.com/file/d/0B6mqjTCSImiV MDVCdUQyck1mS1k/view?usp=sharing=sharing PDF snapshot])202 '''{TODO}:''' finish and embed UML diagram ([https://drive.google.com/file/d/0B6mqjTCSImiVdFJYV2kwMVJDcTg/view?usp=sharing working version], [https://drive.google.com/file/d/0B6mqjTCSImiVQXRlNnltOXB2Ums/view?usp=sharing PDF snapshot]) 201 203 202 204 ''(Caption): The structure of a CMDI file (CMD instance). Colour scheme: Green boxes represent elements that are potentially present in all CMDI files (the CMD instance envelope). Blue boxes represent elements defined by the CMD profile (the CMD instance payload). The diagram is meant for overview and illustration; full details to be found in the tables below.'' … … 213 215 || || `<cmd:Resources>` || `xs:complexType` || 1 || Includes 3 lists containing information about resource proxies and their interrelations. || 214 216 || || `<cmd:IsPartOfList>` || `xs:complexType` || 0 or 1 || A list of `<cmd:IsPartOf>` elements, each referencing a larger external resource of which the described resource (as a whole) forms a part. || 215 || || `<cmd:Components>` || `xs:complexType` || 1 || This element co rresponds to – and is in turn structured according to - the `<cmdp:{CMDProfile}>` applied. Here the descriptive metadata of the resource are found. ||217 || || `<cmd:Components>` || `xs:complexType` || 1 || This element contains the profile specific section of the CMDI file. Here the descriptive metadata of the resource are found. || 216 218 217 219 The first three elements (`<cmd:Header>`, `<cmd:Resources>` and `<cmd:IsPartOfList>`) constitute the ''CMD instance envelope'' and reside in the `cmd` namespace. The ''CMD instance payload'' is contained in the `<cmd:Components>` element, which (profile specific) substructure exists in the profile-specific namespace (prefix `cmdp`), possibly adorned with attributes in the `cmd` namespace. … … 308 310 ==== Resource types ==== 309 311 * '''Resource''' 310 * A resource that is described in the present CMD Iinstance, e.g. a text document, media file or tool.312 * A resource that is described in the present CMD instance, e.g. a text document, media file or tool. 311 313 * '''Metadata''' 312 * A metadata resource, i.e. another CMD I instance, that is subordinate to the present CMDI instance.314 * A metadata resource, i.e. another CMD instance, that is subordinate to the present CMD instance. The media type of this metadata resource `SHOULD` be `application/x-cmdi+xml`. 313 315 * '''!SearchPage''' 314 316 * Resource that is a web page that allows the described resource to be queried by an end-user. … … 360 362 </cmd:ResourceProxy> 361 363 <cmd:ResourceProxy id="c_0000000001"> 362 <cmd:ResourceType mimetype=" text/xml">Metadata</cmd:ResourceType>364 <cmd:ResourceType mimetype="application/x-cmdi+xml">Metadata</cmd:ResourceType> 363 365 <cmd:ResourceRef>https://clarin.phonetik.uni-muenchen.de/BASRepository/Public/Corpora/ZIPTEL/0001.1.cmdi.xml</cmd:ResourceRef> 364 366 </cmd:ResourceProxy> … … 384 386 #!xml 385 387 <cmd:ResourceRelation> 386 <cmd:RelationType> is front of</cmd:RelationType>388 <cmd:RelationType>duplicates</cmd:RelationType> 387 389 <cmd:Resource ref="_395"> 388 390 <cmd:Resource ref="_394"/> … … 392 394 === Example 5 A maximally specified relation between resource files === 393 395 394 This example shows a semantic rich specification of a relationship between two resources, i.e., relation type and roles are annotated with concept references from various semantic registries.396 This example shows a semantically rich specification of a relationship between two resources, i.e., relation type and roles are annotated with concept references from various semantic registries. 395 397 396 398 {{{ 397 399 #!xml 398 400 <cmd:ResourceRelation> 399 <cmd:RelationType ConceptLink="http://www.w3.org/ns/oa#describing">describing</RelationType>400 <cmd:Resource ref="rp1">401 <cmd:RelationType ConceptLink="http://www.w3.org/ns/oa#describing">describing</RelationType> 402 <cmd:Resource ref="rp1"> 401 403 <cmd:Role ConceptLink="http://hdl.handle.net/11459/CCR_C-6024_88c0ac12-c24b-dd5a-d183-07e6dae25c52">source</cmd:Role> 402 404 </cmd:Resource> 403 <cmd:Resource ConceptLink="http://hdl.handle.net/11459/CCR_C-..." ref="rp2"> 404 {TODO} Add a target concept to the CCR to get a handle 405 <cmd:Role>target</cmd:Role> 405 <cmd:Resource ref="rp2"> 406 <cmd:Role ConceptLink="http://hdl.handle.net/11459/CCR_C-">target</cmd:Role> <!--TODO: register in the CCR --> 406 407 </cmd:Resource> 407 408 </cmd:ResourceRelation> … … 418 419 * The inverse of the !IsPartOf `MAY` be indicated by a resource proxy with resource type Metadata in the instance that describes the composite. 419 420 420 === Example tThe !IsPartOf List ===421 === Example 6 The !IsPartOf List === 421 422 {{{ 422 423 #!xml … … 428 429 This section of the CMDI file forms what may be referred to as descriptive metadata about the described resource. 429 430 430 '''{TODO}:''' couple of lines that describe the nature of the components section, i.e. it has a partially fixed structure and the rest is determined by the profile definition. Replacing: "Both content and structure are completely defined by the CMD Profile referenced by the XML element `<cmd:MdProfile>` in `<cmd:Header>`." 431 432 If these parts are present they `MUST` appear in this order: 431 The CMD Profile referenced by the XML element `<cmd:MdProfile>` in `<cmd:Header>` defines what XML elements and XML attributes are mandatory or optional in this section. Some attributes `MAY` appear universally in XML elements contained in any CMD instance payload section regardless of the profile, but rather depending on the corresponding level in the matching CMD Profile, i.e. whether the XML element is reflecting a CMD Component or CMD element. The next table describes the mandatory structure and order of this section as a function of the definition of a specific CMD Profile: 433 432 434 433 ||||||||= Name =||= Value type =||= Occurrences =||= Description =|| 435 434 ||||||||`<cmd:Components>` || `xs:complexType` || || Container for the CMD instance payload. || 436 || ||||||`<cmdp:{ CMDProfile}>` || `xs:complexType` || 1 || The XML element housing all the metadata about the described resource, complying with the CMD profile schema identified in the `<cmd:MdProfile>` element in the CMD instance header. ||435 || ||||||`<cmdp:{RootComponent}>` || `xs:complexType` || 1 || The XML element housing all the metadata about the described resource, complying with the CMD profile schema identified in the `<cmd:MdProfile>` element in the CMD instance header. || 437 436 || || |||| `@cmd:ref` || `xs:IDREF` || 0 or 1 || Reference to a `<cmd:ResourceProxy>` with id=ref, to which this substructure specifically applies. || 438 437 || || |||| `@{CMDAttribute}*` || As specified in the CMD profile || As specified in the CMD profile || Custom attribute, defined as an allowed or mandatory child in a component specification. || … … 462 461 <cmdp:Description xml:lang="en">A web-application with which an end user can have historical Dutch text tokenized, lemmatized and part-of-speech tagged, using the most appropriate resources (such as lexica) for the text in question.</cmdp:Description> 463 462 </cmdp:Description> 464 <cmdp:Description xml:lang="nl">Een web applicatie waarmee een eindgebruiker teksten in oud nederlands kan laten tokeniseren, lemmatiseren en ontleden, gerbuikmakend van de resources (zoals lexica) die het beste bij die tekst passen.</cmdp:Description>463 <cmdp:Description xml:lang="nl">Een webapplicatie waarmee een eindgebruiker teksten in oud nederlands kan laten tokeniseren, lemmatiseren en ontleden, gebruikmakend van de resources (zoals lexica) die het beste bij die tekst passen.</cmdp:Description> 465 464 </cmdp:GeneralInfo> 466 465 ...