Changeset 1430 for FederatedSearch


Ignore:
Timestamp:
06/22/11 07:32:38 (13 years ago)
Author:
vronk
Message:

minor comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FederatedSearch/ccsResource.xsd

    r1427 r1430  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    3     targetNamespace="http://clarin.eu/schemas/ccs"
    4     xmlns:ccs="http://clarin.eu/schemas/ccs"
    5     >
     3    targetNamespace="http://clarin.eu/schemas/ccs" xmlns:ccs="http://clarin.eu/schemas/ccs">
    64    <xs:annotation>
    75        <xs:documentation>This schema shall define the generic inner structure
     
    2422        <xs:complexType>
    2523            <xs:sequence>
    26                 <xs:element maxOccurs="unbounded" minOccurs="0" name="Metadata" type="ccs:MetadataType"/>
    27                 <xs:element maxOccurs="unbounded" minOccurs="0" name="ResourceFragment" type="ccs:ResourceFragmentType"/>
    28                 <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" type="ccs:DataViewType"/>                   
     24                <xs:element maxOccurs="unbounded" minOccurs="0" name="Metadata"
     25                    type="ccs:MetadataType"/>
     26                <xs:element maxOccurs="unbounded" minOccurs="0" name="ResourceFragment"
     27                    type="ccs:ResourceFragmentType"/>
     28                <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView"
     29                    type="ccs:DataViewType"/>
    2930            </xs:sequence>
    3031            <xs:attribute name="pid" type="ccs:pidType" use="optional"/>
    3132            <xs:attribute name="ref" type="ccs:refType" use="optional"/>
    3233        </xs:complexType>
    33        
     34
    3435    </xs:element>
    35    
    36    
    37     <xs:complexType name="ResourceFragmentType">       
    38            <xs:sequence>
    39                <xs:element maxOccurs="unbounded" minOccurs="0" name="Metadata" type="ccs:MetadataType"/>
    40                <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" type="ccs:DataViewType"/>                   
    41            </xs:sequence>
     36
     37
     38    <xs:complexType name="ResourceFragmentType">
     39        <xs:sequence>
     40            <xs:element maxOccurs="unbounded" minOccurs="0" name="Metadata" type="ccs:MetadataType"/>
     41            <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" type="ccs:DataViewType"
     42            />
     43        </xs:sequence>
    4244        <xs:attribute name="pid" type="ccs:pidType" use="optional"/>
    4345        <xs:attribute name="ref" type="ccs:refType" use="optional"/>
    44     </xs:complexType>       
    45        
    46    
     46    </xs:complexType>
     47
     48
    4749    <xs:complexType name="MetadataType">
    4850        <xs:annotation>
     
    5860        </xs:sequence>
    5961        <xs:attribute name="pid" type="ccs:pidType" use="optional"/>
    60         <xs:attribute name="ref" type="ccs:refType" use="optional"/>       
     62        <xs:attribute name="ref" type="ccs:refType" use="optional"/>
    6163    </xs:complexType>
    62    
     64
    6365    <xs:complexType name="DataViewType">
    6466        <xs:annotation>
     
    6870        <xs:sequence>
    6971            <xs:any namespace="##other" processContents="strict"/>
    70         </xs:sequence>                   
    71         <xs:attribute name="type" type="ccs:DataViewTypeType"/>           
     72        </xs:sequence>
     73        <xs:attribute name="type" type="ccs:DataViewTypeType"/>
    7274        <xs:attribute name="pid" type="ccs:pidType"/>
    7375        <xs:attribute name="ref" type="ccs:refType"/>
    74     </xs:complexType>   
    75    
     76    </xs:complexType>
     77
    7678    <xs:simpleType name="DataViewTypeType">
    7779        <xs:annotation>
    78             <xs:documentation>This is obviously not exhaustive.</xs:documentation>
    79         </xs:annotation>       
     80            <xs:documentation>This is obviously not exhaustive.
     81
     82Shouldn't this be MIME-type ?</xs:documentation>
     83        </xs:annotation>
    8084        <xs:restriction base="xs:string">
    8185            <xs:enumeration value="kwic"/>
    82             <xs:enumeration value="fulltext"/>           
     86            <xs:enumeration value="fulltext"/>
    8387            <xs:enumeration value="image"/>
    8488        </xs:restriction>
    8589    </xs:simpleType>
    86    
     90
    8791    <xs:simpleType name="pidType">
    8892        <xs:annotation>
    89             <xs:documentation>a persistent! identifier of given entity. This should be really only used, when a PID is available</xs:documentation>
     93            <xs:documentation>a persistent! identifier of given entity. This should be really only used, when a PID is available. Provider should also fill the sru:record/sru:recordIdentifier-element. If there are more PIDs in one record (for Resource, Metadata, DataView), provider selects the "most important"/primary PID to put into sru:recordIdentifier</xs:documentation>
    9094        </xs:annotation>
    9195        <xs:restriction base="xs:anyURI"/>
     
    98102        <xs:restriction base="xs:anyURI"/>
    99103    </xs:simpleType>
    100    
    101    
     104
     105
    102106</xs:schema>
Note: See TracChangeset for help on using the changeset viewer.